react-big-calendar
Advanced tools
Comparing version 0.22.0 to 0.22.1
235
CHANGELOG.md
@@ -1,2 +0,2 @@ | ||
# [0.21.0](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.4...v0.21.0) (2019-05-14) | ||
## [0.22.1](https://github.com/intljusticemission/react-big-calendar/compare/v0.22.0...v0.22.1) (2019-09-13) | ||
@@ -6,7 +6,7 @@ | ||
* prevent un/mounting of date components ([#1276](https://github.com/intljusticemission/react-big-calendar/issues/1276)) ([3c25009](https://github.com/intljusticemission/react-big-calendar/commit/3c25009)), closes [/github.com/intljusticemission/react-big-calendar/blob/master/src/DateContentRow.js#L121](https://github.com//github.com/intljusticemission/react-big-calendar/blob/master/src/DateContentRow.js/issues/L121) | ||
* support point-in-time events in the Agenda view ([#1246](https://github.com/intljusticemission/react-big-calendar/issues/1246)) ([58c39c3](https://github.com/intljusticemission/react-big-calendar/commit/58c39c3)) | ||
* TimeGrid display on DST change days when min is after the transition ([#1303](https://github.com/intljusticemission/react-big-calendar/issues/1303)) ([b436017](https://github.com/intljusticemission/react-big-calendar/commit/b436017)), closes [#1098](https://github.com/intljusticemission/react-big-calendar/issues/1098) [#1273](https://github.com/intljusticemission/react-big-calendar/issues/1273) | ||
* update time indicator position if min prop changes ([#1311](https://github.com/intljusticemission/react-big-calendar/issues/1311)) ([97ea841](https://github.com/intljusticemission/react-big-calendar/commit/97ea841)) | ||
* use React.createRef instead of string refs ([#1282](https://github.com/intljusticemission/react-big-calendar/issues/1282)) ([239f0a3](https://github.com/intljusticemission/react-big-calendar/commit/239f0a3)) | ||
* add new method to get correct time indicator top position | fixes [#1396](https://github.com/intljusticemission/react-big-calendar/issues/1396) ([#1447](https://github.com/intljusticemission/react-big-calendar/issues/1447)) ([1cf0205](https://github.com/intljusticemission/react-big-calendar/commit/1cf0205)) | ||
* drag cancelation for month view ([#1322](https://github.com/intljusticemission/react-big-calendar/issues/1322)) ([9c81e9e](https://github.com/intljusticemission/react-big-calendar/commit/9c81e9e)) | ||
* invalid prop-types. ([#1435](https://github.com/intljusticemission/react-big-calendar/issues/1435)) ([61e1a1e](https://github.com/intljusticemission/react-big-calendar/commit/61e1a1e)) | ||
* update time indicator position if max prop changes ([#1379](https://github.com/intljusticemission/react-big-calendar/issues/1379)) ([ac945b7](https://github.com/intljusticemission/react-big-calendar/commit/ac945b7)) | ||
* use fixed date arithmetic lib and move bt-sass to devdepen… ([#1374](https://github.com/intljusticemission/react-big-calendar/issues/1374)) ([b223a61](https://github.com/intljusticemission/react-big-calendar/commit/b223a61)) | ||
@@ -16,67 +16,110 @@ | ||
* **dnd:** add onDropFromOutside prop for Dnd Cal ([#1290](https://github.com/intljusticemission/react-big-calendar/issues/1290)) ([b9fdce4](https://github.com/intljusticemission/react-big-calendar/commit/b9fdce4)), closes [#1090](https://github.com/intljusticemission/react-big-calendar/issues/1090) | ||
* **dnd:** implement callback on initializing drag or resize action ([#1206](https://github.com/intljusticemission/react-big-calendar/issues/1206)) ([0fa2c30](https://github.com/intljusticemission/react-big-calendar/commit/0fa2c30)), closes [#1205](https://github.com/intljusticemission/react-big-calendar/issues/1205) | ||
* add resource to handleDropFromOutside ([#1319](https://github.com/intljusticemission/react-big-calendar/issues/1319)) ([2b7ad2a](https://github.com/intljusticemission/react-big-calendar/commit/2b7ad2a)) | ||
* switch to Sass for styles ([884bece](https://github.com/intljusticemission/react-big-calendar/commit/884bece)) | ||
* [#1390](https://github.com/intljusticemission/react-big-calendar/issues/1390) use en dashes in ranges ([#1391](https://github.com/intljusticemission/react-big-calendar/issues/1391)) ([7619e59](https://github.com/intljusticemission/react-big-calendar/commit/7619e59)) | ||
* added continuesPrior and continuesAfter props to Event component ([#1201](https://github.com/intljusticemission/react-big-calendar/issues/1201)) ([74a2233](https://github.com/intljusticemission/react-big-calendar/commit/74a2233)) | ||
* upgrade react-overlays ([#1421](https://github.com/intljusticemission/react-big-calendar/issues/1421)) ([9117549](https://github.com/intljusticemission/react-big-calendar/commit/9117549)) | ||
* **dnd:** add preview of an item inside cell while dragging ([#1369](https://github.com/intljusticemission/react-big-calendar/issues/1369)) ([ac715f8](https://github.com/intljusticemission/react-big-calendar/commit/ac715f8)) | ||
### BREAKING CHANGES | ||
* Less files have been replaced with Sass versions | ||
## 0.22.0 (2019-06-18) | ||
- Chore: clean up prop-types (#1344) ([94e3679](https://github.com/intljusticemission/react-big-calendar/commit/94e3679)), closes [#1344](https://github.com/intljusticemission/react-big-calendar/issues/1344) | ||
- Publish v0.22.0 ([321d8cf](https://github.com/intljusticemission/react-big-calendar/commit/321d8cf)) | ||
- save snapshot ([8480413](https://github.com/intljusticemission/react-big-calendar/commit/8480413)) | ||
- stale-bot ([0e0ebb2](https://github.com/intljusticemission/react-big-calendar/commit/0e0ebb2)) | ||
- chore: fix linting ([976faf1](https://github.com/intljusticemission/react-big-calendar/commit/976faf1)) | ||
- chore: remove prop-types-extra (#1349) ([c3b7734](https://github.com/intljusticemission/react-big-calendar/commit/c3b7734)), closes [#1349](https://github.com/intljusticemission/react-big-calendar/issues/1349) | ||
- chore(deps): upgrade date-math (#1354) ([762e8cf](https://github.com/intljusticemission/react-big-calendar/commit/762e8cf)), closes [#1354](https://github.com/intljusticemission/react-big-calendar/issues/1354) | ||
- chore(deps): upgrade uncontrollable (#1357) ([689f74e](https://github.com/intljusticemission/react-big-calendar/commit/689f74e)), closes [#1357](https://github.com/intljusticemission/react-big-calendar/issues/1357) | ||
- fix: bad propType. (#1351) ([e704e17](https://github.com/intljusticemission/react-big-calendar/commit/e704e17)), closes [#1351](https://github.com/intljusticemission/react-big-calendar/issues/1351) | ||
- fix: bug where appointments can appear outside the calendar (#1204) ([9689b7d](https://github.com/intljusticemission/react-big-calendar/commit/9689b7d)), closes [#1204](https://github.com/intljusticemission/react-big-calendar/issues/1204) | ||
- fix: bug with dayWrapper not applying (#1196) ([f3ea6f8](https://github.com/intljusticemission/react-big-calendar/commit/f3ea6f8)), closes [#1196](https://github.com/intljusticemission/react-big-calendar/issues/1196) | ||
- fix: ie fix for event bindings on unmounted components (#1338) ([8ef00d6](https://github.com/intljusticemission/react-big-calendar/commit/8ef00d6)), closes [#1338](https://github.com/intljusticemission/react-big-calendar/issues/1338) | ||
- fix: rtl incorrectly named or not propagated (#1353) ([caa863f](https://github.com/intljusticemission/react-big-calendar/commit/caa863f)), closes [#1353](https://github.com/intljusticemission/react-big-calendar/issues/1353) | ||
- fix(addons): do not cut end while dragging multiday event (#1342) ([6fab261](https://github.com/intljusticemission/react-big-calendar/commit/6fab261)), closes [#1342](https://github.com/intljusticemission/react-big-calendar/issues/1342) | ||
- docs: update docs and examples with named exports (#1352) ([f478be0](https://github.com/intljusticemission/react-big-calendar/commit/f478be0)), closes [#1352](https://github.com/intljusticemission/react-big-calendar/issues/1352) | ||
- docs(dnd): remove deprecated comment about `react-dnd` (#1323) ([4d933c1](https://github.com/intljusticemission/react-big-calendar/commit/4d933c1)), closes [#1323](https://github.com/intljusticemission/react-big-calendar/issues/1323) | ||
- feat: provide named exports api (#1348) ([4e09704](https://github.com/intljusticemission/react-big-calendar/commit/4e09704)), closes [#1348](https://github.com/intljusticemission/react-big-calendar/issues/1348) | ||
- feat: redeclared all sass variables as !default (#1321) ([c4f09cd](https://github.com/intljusticemission/react-big-calendar/commit/c4f09cd)), closes [#1321](https://github.com/intljusticemission/react-big-calendar/issues/1321) | ||
- feat: use lodash-es for esm bundle (#1350) ([fb0fe5e](https://github.com/intljusticemission/react-big-calendar/commit/fb0fe5e)), closes [#1350](https://github.com/intljusticemission/react-big-calendar/issues/1350) | ||
- Feat: expose date localizer (#1347) ([5d93c9d](https://github.com/intljusticemission/react-big-calendar/commit/5d93c9d)), closes [#1347](https://github.com/intljusticemission/react-big-calendar/issues/1347) | ||
### BREAKING CHANGE | ||
## [0.20.4](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.3...v0.20.4) (2019-03-21) | ||
- must use named exports for additional RBC imports | ||
```js | ||
import { | ||
Calendar, | ||
DateLocalizer, | ||
momentLocalizer, | ||
globalizeLocalizer, | ||
move, | ||
Views, | ||
Navigate, | ||
components, | ||
} from 'react-big-calendar' | ||
``` | ||
# [0.21.0](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.4...v0.21.0) (2019-05-14) | ||
### Bug Fixes | ||
* allow override onShowMore callback ([#1214](https://github.com/intljusticemission/react-big-calendar/issues/1214)) ([8fefeee](https://github.com/intljusticemission/react-big-calendar/commit/8fefeee)), closes [/github.com/intljusticemission/react-big-calendar/blob/f9a873368a78f5ced81b799c4dffe1095b3ab712/src/Calendar.jsx#L280](https://github.com//github.com/intljusticemission/react-big-calendar/blob/f9a873368a78f5ced81b799c4dffe1095b3ab712/src/Calendar.jsx/issues/L280) [/github.com/intljusticemission/react-big-calendar/blob/1d62c432eaa183ed6b38f08cfcec5ee7edcbfe41/src/Month.js#L300-L307](https://github.com//github.com/intljusticemission/react-big-calendar/blob/1d62c432eaa183ed6b38f08cfcec5ee7edcbfe41/src/Month.js/issues/L300-L307) [#1147](https://github.com/intljusticemission/react-big-calendar/issues/1147) | ||
* firefox event click bug ([#1262](https://github.com/intljusticemission/react-big-calendar/issues/1262)) ([b526416](https://github.com/intljusticemission/react-big-calendar/commit/b526416)), closes [#1173](https://github.com/intljusticemission/react-big-calendar/issues/1173) | ||
* issue with gutter width initialization ([#1181](https://github.com/intljusticemission/react-big-calendar/issues/1181)) ([69b28af](https://github.com/intljusticemission/react-big-calendar/commit/69b28af)) | ||
* misplacement of current time indicator ([#1239](https://github.com/intljusticemission/react-big-calendar/issues/1239)) ([2d6e99e](https://github.com/intljusticemission/react-big-calendar/commit/2d6e99e)), closes [#1054](https://github.com/intljusticemission/react-big-calendar/issues/1054) | ||
* remove duplicate getter prop ([#1185](https://github.com/intljusticemission/react-big-calendar/issues/1185)) ([6b90182](https://github.com/intljusticemission/react-big-calendar/commit/6b90182)) | ||
* remove global window from Map() usage, update eslint rules for new es6 environment ([#1195](https://github.com/intljusticemission/react-big-calendar/issues/1195)) ([4768188](https://github.com/intljusticemission/react-big-calendar/commit/4768188)) | ||
* selecting events in mobile browsers ([#1233](https://github.com/intljusticemission/react-big-calendar/issues/1233)) ([2bc9fee](https://github.com/intljusticemission/react-big-calendar/commit/2bc9fee)) | ||
- prevent un/mounting of date components ([#1276](https://github.com/intljusticemission/react-big-calendar/issues/1276)) ([3c25009](https://github.com/intljusticemission/react-big-calendar/commit/3c25009)), closes [/github.com/intljusticemission/react-big-calendar/blob/master/src/DateContentRow.js#L121](https://github.com//github.com/intljusticemission/react-big-calendar/blob/master/src/DateContentRow.js/issues/L121) | ||
- support point-in-time events in the Agenda view ([#1246](https://github.com/intljusticemission/react-big-calendar/issues/1246)) ([58c39c3](https://github.com/intljusticemission/react-big-calendar/commit/58c39c3)) | ||
- TimeGrid display on DST change days when min is after the transition ([#1303](https://github.com/intljusticemission/react-big-calendar/issues/1303)) ([b436017](https://github.com/intljusticemission/react-big-calendar/commit/b436017)), closes [#1098](https://github.com/intljusticemission/react-big-calendar/issues/1098) [#1273](https://github.com/intljusticemission/react-big-calendar/issues/1273) | ||
- update time indicator position if min prop changes ([#1311](https://github.com/intljusticemission/react-big-calendar/issues/1311)) ([97ea841](https://github.com/intljusticemission/react-big-calendar/commit/97ea841)) | ||
- use React.createRef instead of string refs ([#1282](https://github.com/intljusticemission/react-big-calendar/issues/1282)) ([239f0a3](https://github.com/intljusticemission/react-big-calendar/commit/239f0a3)) | ||
### Features | ||
* add ability to set custom resource headers ([#1187](https://github.com/intljusticemission/react-big-calendar/issues/1187)) ([6708a45](https://github.com/intljusticemission/react-big-calendar/commit/6708a45)), closes [#1174](https://github.com/intljusticemission/react-big-calendar/issues/1174) | ||
* adding bounds and box on slot select in Month view ([#1241](https://github.com/intljusticemission/react-big-calendar/issues/1241)) ([2a870b0](https://github.com/intljusticemission/react-big-calendar/commit/2a870b0)) | ||
* remove propTypes in production ([#1180](https://github.com/intljusticemission/react-big-calendar/issues/1180)) ([ce0d56b](https://github.com/intljusticemission/react-big-calendar/commit/ce0d56b)) | ||
- **dnd:** add onDropFromOutside prop for Dnd Cal ([#1290](https://github.com/intljusticemission/react-big-calendar/issues/1290)) ([b9fdce4](https://github.com/intljusticemission/react-big-calendar/commit/b9fdce4)), closes [#1090](https://github.com/intljusticemission/react-big-calendar/issues/1090) | ||
- **dnd:** implement callback on initializing drag or resize action ([#1206](https://github.com/intljusticemission/react-big-calendar/issues/1206)) ([0fa2c30](https://github.com/intljusticemission/react-big-calendar/commit/0fa2c30)), closes [#1205](https://github.com/intljusticemission/react-big-calendar/issues/1205) | ||
- add resource to handleDropFromOutside ([#1319](https://github.com/intljusticemission/react-big-calendar/issues/1319)) ([2b7ad2a](https://github.com/intljusticemission/react-big-calendar/commit/2b7ad2a)) | ||
- switch to Sass for styles ([884bece](https://github.com/intljusticemission/react-big-calendar/commit/884bece)) | ||
### BREAKING CHANGES | ||
- Less files have been replaced with Sass versions | ||
## [0.20.4](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.3...v0.20.4) (2019-03-21) | ||
## [0.20.2](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.0...v0.20.2) (2018-11-07) | ||
### Bug Fixes | ||
* add runtime to deps ([ade68bb](https://github.com/intljusticemission/react-big-calendar/commit/ade68bb)) | ||
* calculation of slots number for date when DST ends. ([#1046](https://github.com/intljusticemission/react-big-calendar/issues/1046)) ([2ca0226](https://github.com/intljusticemission/react-big-calendar/commit/2ca0226)) | ||
* dragging is disabled if resizing is not allowed ([#1072](https://github.com/intljusticemission/react-big-calendar/issues/1072)) ([#1073](https://github.com/intljusticemission/react-big-calendar/issues/1073)) ([0d5ed30](https://github.com/intljusticemission/react-big-calendar/commit/0d5ed30)) | ||
* elements position on TimeGrid if max prop is set ([#1057](https://github.com/intljusticemission/react-big-calendar/issues/1057)) ([f174a60](https://github.com/intljusticemission/react-big-calendar/commit/f174a60)) | ||
* move [@babel](https://github.com/babel)/cli to devDependencies ([#1062](https://github.com/intljusticemission/react-big-calendar/issues/1062)) ([4cfcb1f](https://github.com/intljusticemission/react-big-calendar/commit/4cfcb1f)) | ||
* onRangeChange not passing localizer ([#1056](https://github.com/intljusticemission/react-big-calendar/issues/1056)) ([80855e8](https://github.com/intljusticemission/react-big-calendar/commit/80855e8)) | ||
* proptype warnings ([#1084](https://github.com/intljusticemission/react-big-calendar/issues/1084)) ([08c2494](https://github.com/intljusticemission/react-big-calendar/commit/08c2494)) | ||
* reference to draggable/resizable Accessor ([#1070](https://github.com/intljusticemission/react-big-calendar/issues/1070)) ([1889a51](https://github.com/intljusticemission/react-big-calendar/commit/1889a51)) | ||
- allow override onShowMore callback ([#1214](https://github.com/intljusticemission/react-big-calendar/issues/1214)) ([8fefeee](https://github.com/intljusticemission/react-big-calendar/commit/8fefeee)), closes [/github.com/intljusticemission/react-big-calendar/blob/f9a873368a78f5ced81b799c4dffe1095b3ab712/src/Calendar.jsx#L280](https://github.com//github.com/intljusticemission/react-big-calendar/blob/f9a873368a78f5ced81b799c4dffe1095b3ab712/src/Calendar.jsx/issues/L280) [/github.com/intljusticemission/react-big-calendar/blob/1d62c432eaa183ed6b38f08cfcec5ee7edcbfe41/src/Month.js#L300-L307](https://github.com//github.com/intljusticemission/react-big-calendar/blob/1d62c432eaa183ed6b38f08cfcec5ee7edcbfe41/src/Month.js/issues/L300-L307) [#1147](https://github.com/intljusticemission/react-big-calendar/issues/1147) | ||
- firefox event click bug ([#1262](https://github.com/intljusticemission/react-big-calendar/issues/1262)) ([b526416](https://github.com/intljusticemission/react-big-calendar/commit/b526416)), closes [#1173](https://github.com/intljusticemission/react-big-calendar/issues/1173) | ||
- issue with gutter width initialization ([#1181](https://github.com/intljusticemission/react-big-calendar/issues/1181)) ([69b28af](https://github.com/intljusticemission/react-big-calendar/commit/69b28af)) | ||
- misplacement of current time indicator ([#1239](https://github.com/intljusticemission/react-big-calendar/issues/1239)) ([2d6e99e](https://github.com/intljusticemission/react-big-calendar/commit/2d6e99e)), closes [#1054](https://github.com/intljusticemission/react-big-calendar/issues/1054) | ||
- remove duplicate getter prop ([#1185](https://github.com/intljusticemission/react-big-calendar/issues/1185)) ([6b90182](https://github.com/intljusticemission/react-big-calendar/commit/6b90182)) | ||
- remove global window from Map() usage, update eslint rules for new es6 environment ([#1195](https://github.com/intljusticemission/react-big-calendar/issues/1195)) ([4768188](https://github.com/intljusticemission/react-big-calendar/commit/4768188)) | ||
- selecting events in mobile browsers ([#1233](https://github.com/intljusticemission/react-big-calendar/issues/1233)) ([2bc9fee](https://github.com/intljusticemission/react-big-calendar/commit/2bc9fee)) | ||
### Features | ||
* hide single day header with css ([#1019](https://github.com/intljusticemission/react-big-calendar/issues/1019)) ([5857d8f](https://github.com/intljusticemission/react-big-calendar/commit/5857d8f)) | ||
- add ability to set custom resource headers ([#1187](https://github.com/intljusticemission/react-big-calendar/issues/1187)) ([6708a45](https://github.com/intljusticemission/react-big-calendar/commit/6708a45)), closes [#1174](https://github.com/intljusticemission/react-big-calendar/issues/1174) | ||
- adding bounds and box on slot select in Month view ([#1241](https://github.com/intljusticemission/react-big-calendar/issues/1241)) ([2a870b0](https://github.com/intljusticemission/react-big-calendar/commit/2a870b0)) | ||
- remove propTypes in production ([#1180](https://github.com/intljusticemission/react-big-calendar/issues/1180)) ([ce0d56b](https://github.com/intljusticemission/react-big-calendar/commit/ce0d56b)) | ||
## [0.20.2](https://github.com/intljusticemission/react-big-calendar/compare/v0.20.0...v0.20.2) (2018-11-07) | ||
### Performance Improvements | ||
### Bug Fixes | ||
* increase startup time of event dragging ([#1020](https://github.com/intljusticemission/react-big-calendar/issues/1020)) ([167b69f](https://github.com/intljusticemission/react-big-calendar/commit/167b69f)) | ||
- add runtime to deps ([ade68bb](https://github.com/intljusticemission/react-big-calendar/commit/ade68bb)) | ||
- calculation of slots number for date when DST ends. ([#1046](https://github.com/intljusticemission/react-big-calendar/issues/1046)) ([2ca0226](https://github.com/intljusticemission/react-big-calendar/commit/2ca0226)) | ||
- dragging is disabled if resizing is not allowed ([#1072](https://github.com/intljusticemission/react-big-calendar/issues/1072)) ([#1073](https://github.com/intljusticemission/react-big-calendar/issues/1073)) ([0d5ed30](https://github.com/intljusticemission/react-big-calendar/commit/0d5ed30)) | ||
- elements position on TimeGrid if max prop is set ([#1057](https://github.com/intljusticemission/react-big-calendar/issues/1057)) ([f174a60](https://github.com/intljusticemission/react-big-calendar/commit/f174a60)) | ||
- move [@babel](https://github.com/babel)/cli to devDependencies ([#1062](https://github.com/intljusticemission/react-big-calendar/issues/1062)) ([4cfcb1f](https://github.com/intljusticemission/react-big-calendar/commit/4cfcb1f)) | ||
- onRangeChange not passing localizer ([#1056](https://github.com/intljusticemission/react-big-calendar/issues/1056)) ([80855e8](https://github.com/intljusticemission/react-big-calendar/commit/80855e8)) | ||
- proptype warnings ([#1084](https://github.com/intljusticemission/react-big-calendar/issues/1084)) ([08c2494](https://github.com/intljusticemission/react-big-calendar/commit/08c2494)) | ||
- reference to draggable/resizable Accessor ([#1070](https://github.com/intljusticemission/react-big-calendar/issues/1070)) ([1889a51](https://github.com/intljusticemission/react-big-calendar/commit/1889a51)) | ||
### Features | ||
- hide single day header with css ([#1019](https://github.com/intljusticemission/react-big-calendar/issues/1019)) ([5857d8f](https://github.com/intljusticemission/react-big-calendar/commit/5857d8f)) | ||
### Performance Improvements | ||
- increase startup time of event dragging ([#1020](https://github.com/intljusticemission/react-big-calendar/issues/1020)) ([167b69f](https://github.com/intljusticemission/react-big-calendar/commit/167b69f)) | ||
@@ -93,3 +136,3 @@ ## v0.19.2 - Wed, 27 Jun 2018 14:24:55 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 | ||
@@ -120,7 +163,7 @@ ## v0.17.0 - Thu, 02 Nov 2017 15:26:08 GMT | ||
* [45687c9](../../commit/45687c9) [fixed] allow string names in `move()` | ||
- [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 | ||
- [5578559](../../commit/5578559) [fixed] all day event selection | ||
@@ -137,3 +180,3 @@ ## v0.12.0 - Sat, 07 Jan 2017 22:03:45 GMT | ||
* [741c882](../../commit/741c882) [fixed] rm jsx imports | ||
- [741c882](../../commit/741c882) [fixed] rm jsx imports | ||
@@ -152,118 +195,118 @@ ## v0.10.1 - Thu, 09 Jun 2016 18:39:57 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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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" | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 | ||
- [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 |
@@ -127,2 +127,8 @@ "use strict"; | ||
}); | ||
selector.on('dragOver', function (point) { | ||
if (!_this.context.draggable.dragFromOutsideItem) return; | ||
var bounds = (0, _Selection.getBoundsForNode)(node); | ||
_this.handleDropFromOutside(point, bounds); | ||
}); | ||
selector.on('selectStart', function () { | ||
@@ -287,3 +293,4 @@ return _this.context.draggable.onStart(); | ||
onBeginAction: _propTypes.default.func, | ||
dragAndDropAction: _propTypes.default.object | ||
dragAndDropAction: _propTypes.default.object, | ||
dragFromOutsideItem: _propTypes.default.func | ||
}) | ||
@@ -290,0 +297,0 @@ }; |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -92,3 +92,3 @@ var _propTypes2 = require("../../utils/propTypes"); | ||
if (event.__isPreview) return _react.default.cloneElement(children, { | ||
className: (0, _classnames.default)(children.props.className, 'rbc-addons-dnd-drag-preview') | ||
className: (0, _clsx.default)(children.props.className, 'rbc-addons-dnd-drag-preview') | ||
}); | ||
@@ -105,20 +105,20 @@ var draggable = this.context.draggable; | ||
/* | ||
* The resizability of events depends on whether they are | ||
* allDay events and how they are displayed. | ||
* | ||
* 1. If the event is being shown in an event row (because | ||
* it is an allDay event shown in the header row or because as | ||
* in month view the view is showing all events as rows) then we | ||
* allow east-west resizing. | ||
* | ||
* 2. Otherwise the event is being displayed | ||
* normally, we can drag it north-south to resize the times. | ||
* | ||
* See `DropWrappers` for handling of the drop of such events. | ||
* | ||
* Notwithstanding the above, we never show drag anchors for | ||
* events which continue beyond current component. This happens | ||
* in the middle of events when showMultiDay is true, and to | ||
* events at the edges of the calendar's min/max location. | ||
*/ | ||
* The resizability of events depends on whether they are | ||
* allDay events and how they are displayed. | ||
* | ||
* 1. If the event is being shown in an event row (because | ||
* it is an allDay event shown in the header row or because as | ||
* in month view the view is showing all events as rows) then we | ||
* allow east-west resizing. | ||
* | ||
* 2. Otherwise the event is being displayed | ||
* normally, we can drag it north-south to resize the times. | ||
* | ||
* See `DropWrappers` for handling of the drop of such events. | ||
* | ||
* Notwithstanding the above, we never show drag anchors for | ||
* events which continue beyond current component. This happens | ||
* in the middle of events when showMultiDay is true, and to | ||
* events at the edges of the calendar's min/max location. | ||
*/ | ||
@@ -130,9 +130,9 @@ | ||
/* | ||
* props.children is the singular <Event> component. | ||
* BigCalendar positions the Event abolutely and we | ||
* need the anchors to be part of that positioning. | ||
* So we insert the anchors inside the Event's children | ||
* rather than wrap the Event here as the latter approach | ||
* would lose the positioning. | ||
*/ | ||
* props.children is the singular <Event> component. | ||
* BigCalendar positions the Event abolutely and we | ||
* need the anchors to be part of that positioning. | ||
* So we insert the anchors inside the Event's children | ||
* rather than wrap the Event here as the latter approach | ||
* would lose the positioning. | ||
*/ | ||
var newProps = { | ||
@@ -165,3 +165,3 @@ onMouseDown: this.handleStartDragging, | ||
// add a new class to it | ||
newProps.className = (0, _classnames.default)(children.props.className, 'rbc-addons-dnd-dragged-event'); | ||
newProps.className = (0, _clsx.default)(children.props.className, 'rbc-addons-dnd-dragged-event'); | ||
} | ||
@@ -168,0 +168,0 @@ |
@@ -62,6 +62,7 @@ "use strict"; | ||
_this.handleMove = function (_ref, node) { | ||
_this.handleMove = function (_ref, node, draggedEvent) { | ||
var x = _ref.x, | ||
y = _ref.y; | ||
var event = _this.context.draggable.dragAndDropAction.event; | ||
var _this$context$draggab = _this.context.draggable.dragAndDropAction.event, | ||
event = _this$context$draggab === void 0 ? draggedEvent : _this$context$draggab; | ||
var metrics = _this.props.slotMetrics; | ||
@@ -100,2 +101,13 @@ var accessors = _this.props.accessors; | ||
_this.handleDragOverFromOutside = function (_ref2, node) { | ||
var x = _ref2.x, | ||
y = _ref2.y; | ||
if (!_this.context.draggable.dragFromOutsideItem) return; | ||
_this.handleMove({ | ||
x: x, | ||
y: y | ||
}, node, _this.context.draggable.dragFromOutsideItem()); | ||
}; | ||
_this._selectable = function () { | ||
@@ -134,5 +146,16 @@ var node = (0, _reactDom.findDOMNode)((0, _assertThisInitialized2.default)(_this)).closest('.rbc-month-row, .rbc-allday-cell'); | ||
}); | ||
selector.on('dragOverFromOutside', function (point) { | ||
if (!_this.context.draggable.dragFromOutsideItem) return; | ||
var bounds = (0, _Selection.getBoundsForNode)(node); | ||
_this.handleDragOverFromOutside(point, bounds); | ||
}); | ||
selector.on('click', function () { | ||
return _this.context.draggable.onEnd(null); | ||
}); | ||
selector.on('reset', function () { | ||
_this.reset(); | ||
_this.context.draggable.onEnd(null); | ||
}); | ||
}; | ||
@@ -202,5 +225,5 @@ | ||
_proto.handleResize = function handleResize(point, node) { | ||
var _this$context$draggab = this.context.draggable.dragAndDropAction, | ||
event = _this$context$draggab.event, | ||
direction = _this$context$draggab.direction; | ||
var _this$context$draggab2 = this.context.draggable.dragAndDropAction, | ||
event = _this$context$draggab2.event, | ||
direction = _this$context$draggab2.direction; | ||
var _this$props2 = this.props, | ||
@@ -274,3 +297,4 @@ accessors = _this$props2.accessors, | ||
onDropFromOutside: _propTypes.default.func, | ||
onBeginAction: _propTypes.default.func | ||
onBeginAction: _propTypes.default.func, | ||
dragFromOutsideItem: _propTypes.default.func | ||
}) | ||
@@ -277,0 +301,0 @@ }; |
@@ -18,3 +18,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -169,2 +169,3 @@ var _propTypes2 = require("../../utils/propTypes"); | ||
onDropFromOutside: this.props.onDropFromOutside, | ||
dragFromOutsideItem: this.props.dragFromOutsideItem, | ||
draggableAccessor: this.props.draggableAccessor, | ||
@@ -189,3 +190,3 @@ resizableAccessor: this.props.resizableAccessor, | ||
}) : elementProps; | ||
props.className = (0, _classnames.default)(props.className, 'rbc-addons-dnd', !!interacting && 'rbc-addons-dnd-is-dragging'); | ||
props.className = (0, _clsx.default)(props.className, 'rbc-addons-dnd', !!interacting && 'rbc-addons-dnd-is-dragging'); | ||
return _react.default.createElement(Calendar, (0, _extends2.default)({}, props, { | ||
@@ -215,3 +216,4 @@ elementProps: elementPropsWithDropFromOutside, | ||
onBeginAction: _propTypes.default.func, | ||
onDropFromOutside: _propTypes.default.fun, | ||
onDropFromOutside: _propTypes.default.func, | ||
dragFromOutsideItem: _propTypes.default.func, | ||
draggableAccessor: _propTypes2.accessor, | ||
@@ -228,2 +230,3 @@ resizableAccessor: _propTypes2.accessor, | ||
onDropFromOutside: _propTypes.default.func, | ||
dragFromOutsideItem: _propTypes.default.func, | ||
draggableAccessor: _propTypes2.accessor, | ||
@@ -230,0 +233,0 @@ resizableAccessor: _propTypes2.accessor, |
@@ -16,8 +16,10 @@ "use strict"; | ||
var _class = _interopRequireDefault(require("dom-helpers/class")); | ||
var _addClass = _interopRequireDefault(require("dom-helpers/addClass")); | ||
var _width = _interopRequireDefault(require("dom-helpers/query/width")); | ||
var _removeClass = _interopRequireDefault(require("dom-helpers/removeClass")); | ||
var _scrollbarSize = _interopRequireDefault(require("dom-helpers/util/scrollbarSize")); | ||
var _width = _interopRequireDefault(require("dom-helpers/width")); | ||
var _scrollbarSize = _interopRequireDefault(require("dom-helpers/scrollbarSize")); | ||
var dates = _interopRequireWildcard(require("./utils/dates")); | ||
@@ -133,7 +135,6 @@ | ||
if (isOverflowing) { | ||
_class.default.addClass(header, 'rbc-header-overflowing'); | ||
(0, _addClass.default)(header, 'rbc-header-overflowing'); | ||
header.style.marginRight = (0, _scrollbarSize.default)() + 'px'; | ||
} else { | ||
_class.default.removeClass(header, 'rbc-header-overflowing'); | ||
(0, _removeClass.default)(header, 'rbc-header-overflowing'); | ||
} | ||
@@ -140,0 +141,0 @@ }; |
@@ -20,3 +20,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -88,3 +88,3 @@ var dates = _interopRequireWildcard(require("./utils/dates")); | ||
style: style, | ||
className: (0, _classnames.default)('rbc-day-bg', className, selected && 'rbc-selected-cell', dates.eq(date, current, 'day') && 'rbc-today', currentDate && dates.month(currentDate) !== dates.month(date) && 'rbc-off-range-bg') | ||
className: (0, _clsx.default)('rbc-day-bg', className, selected && 'rbc-selected-cell', dates.eq(date, current, 'day') && 'rbc-today', currentDate && dates.month(currentDate) !== dates.month(date) && 'rbc-off-range-bg') | ||
})); | ||
@@ -91,0 +91,0 @@ })); |
@@ -20,3 +20,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -316,3 +316,3 @@ var _propTypes2 = require("./utils/propTypes"); | ||
return _react.default.createElement("div", (0, _extends2.default)({}, elementProps, { | ||
className: (0, _classnames.default)(className, 'rbc-calendar', props.rtl && 'rbc-rtl'), | ||
className: (0, _clsx.default)(className, 'rbc-calendar', props.rtl && 'rbc-rtl'), | ||
style: style | ||
@@ -880,3 +880,3 @@ }), toolbar && _react.default.createElement(CalToolbar, { | ||
* dayRangeHeaderFormat: ({ start, end }, culture, localizer) => | ||
* localizer.format(start, { date: 'short' }, culture) + ' — ' + | ||
* localizer.format(start, { date: 'short' }, culture) + ' – ' + | ||
* localizer.format(end, { date: 'short' }, culture) | ||
@@ -934,3 +934,3 @@ * } | ||
/** | ||
* Toolbar header format for the Agenda view, e.g. "4/1/2015 — 5/1/2015" | ||
* Toolbar header format for the Agenda view, e.g. "4/1/2015 – 5/1/2015" | ||
*/ | ||
@@ -940,3 +940,3 @@ agendaHeaderFormat: _propTypes2.dateRangeFormat, | ||
/** | ||
* A time range format for selecting time slots, e.g "8:00am — 2:00pm" | ||
* A time range format for selecting time slots, e.g "8:00am – 2:00pm" | ||
*/ | ||
@@ -943,0 +943,0 @@ selectRangeFormat: _propTypes2.dateRangeFormat, |
@@ -16,7 +16,7 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
var _height = _interopRequireDefault(require("dom-helpers/query/height")); | ||
var _height = _interopRequireDefault(require("dom-helpers/height")); | ||
var _querySelectorAll = _interopRequireDefault(require("dom-helpers/query/querySelectorAll")); | ||
var _querySelectorAll = _interopRequireDefault(require("dom-helpers/querySelectorAll")); | ||
@@ -94,3 +94,3 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
key: "header_" + index, | ||
className: (0, _classnames.default)('rbc-date-cell', dates.eq(date, getNow(), 'day') && 'rbc-now') | ||
className: (0, _clsx.default)('rbc-date-cell', dates.eq(date, getNow(), 'day') && 'rbc-now') | ||
}); | ||
@@ -97,0 +97,0 @@ }; |
@@ -24,3 +24,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -152,6 +152,14 @@ var _Selection = _interopRequireWildcard(require("./Selection")); | ||
if (!_this.state.selecting) _this._initialSlot = currentSlot; | ||
if (!_this.state.selecting) { | ||
_this._initialSlot = currentSlot; | ||
} | ||
var initialSlot = _this._initialSlot; | ||
if (initialSlot === currentSlot) currentSlot = _this.slotMetrics.nextSlot(initialSlot); | ||
if (dates.lte(initialSlot, currentSlot)) { | ||
currentSlot = _this.slotMetrics.nextSlot(currentSlot); | ||
} else if (dates.gt(initialSlot, currentSlot)) { | ||
initialSlot = _this.slotMetrics.nextSlot(initialSlot); | ||
} | ||
var selectRange = _this.slotMetrics.getRange(dates.min(initialSlot, currentSlot), dates.max(initialSlot, currentSlot)); | ||
@@ -303,3 +311,3 @@ | ||
} | ||
} else if (this.props.isNow && !dates.eq(prevProps.min, this.props.min, 'minutes')) { | ||
} else if (this.props.isNow && (!dates.eq(prevProps.min, this.props.min, 'minutes') || !dates.eq(prevProps.max, this.props.max, 'minutes'))) { | ||
this.positionTimeIndicator(); | ||
@@ -346,5 +354,3 @@ } | ||
if (current >= min && current <= max) { | ||
var _this$slotMetrics$get = this.slotMetrics.getRange(current, current), | ||
top = _this$slotMetrics$get.top; | ||
var top = this.slotMetrics.getCurrentTimePosition(current); | ||
this.setState({ | ||
@@ -390,3 +396,3 @@ timeIndicatorPosition: top | ||
style: style, | ||
className: (0, _classnames.default)(className, 'rbc-day-slot', 'rbc-time-column', isNow && 'rbc-now', isNow && 'rbc-today', // WHY | ||
className: (0, _clsx.default)(className, 'rbc-day-slot', 'rbc-time-column', isNow && 'rbc-now', isNow && 'rbc-today', // WHY | ||
selecting && 'rbc-slot-selecting') | ||
@@ -409,3 +415,3 @@ }, slotMetrics.groups.map(function (grp, idx) { | ||
}, _react.default.createElement("div", { | ||
className: (0, _classnames.default)('rbc-events-container', rtl && 'rtl') | ||
className: (0, _clsx.default)('rbc-events-container', rtl && 'rtl') | ||
}, this.renderEvents())), selecting && _react.default.createElement("div", { | ||
@@ -412,0 +418,0 @@ className: "rbc-slot-selection", |
@@ -20,3 +20,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -54,3 +54,5 @@ var dates = _interopRequireWildcard(require("./utils/dates")); | ||
EventWrapper = _this$props$component.eventWrapper, | ||
props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["style", "className", "event", "selected", "isAllDay", "onSelect", "onDoubleClick", "localizer", "continuesPrior", "continuesAfter", "accessors", "getters", "children", "components"]); | ||
slotStart = _this$props.slotStart, | ||
slotEnd = _this$props.slotEnd, | ||
props = (0, _objectWithoutPropertiesLoose2.default)(_this$props, ["style", "className", "event", "selected", "isAllDay", "onSelect", "onDoubleClick", "localizer", "continuesPrior", "continuesAfter", "accessors", "getters", "children", "components", "slotStart", "slotEnd"]); | ||
var title = accessors.title(event); | ||
@@ -69,5 +71,9 @@ var tooltip = accessors.tooltip(event); | ||
event: event, | ||
continuesPrior: continuesPrior, | ||
continuesAfter: continuesAfter, | ||
title: title, | ||
isAllDay: allDay, | ||
localizer: localizer | ||
localizer: localizer, | ||
slotStart: slotStart, | ||
slotEnd: slotEnd | ||
}) : title); | ||
@@ -80,3 +86,3 @@ | ||
style: (0, _extends2.default)({}, userProps.style, style), | ||
className: (0, _classnames.default)('rbc-event', className, userProps.className, { | ||
className: (0, _clsx.default)('rbc-event', className, userProps.className, { | ||
'rbc-selected': selected, | ||
@@ -83,0 +89,0 @@ 'rbc-event-allday': showAsAllDay, |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -41,3 +41,3 @@ var _react = _interopRequireDefault(require("react")); | ||
return _react.default.createElement("div", { | ||
className: (0, _classnames.default)(className, 'rbc-row') | ||
className: (0, _clsx.default)(className, 'rbc-row') | ||
}, segments.reduce(function (row, _ref, li) { | ||
@@ -44,0 +44,0 @@ var event = _ref.event, |
@@ -55,2 +55,4 @@ "use strict"; | ||
continuesAfter: continuesAfter, | ||
slotStart: slotMetrics.first, | ||
slotEnd: slotMetrics.last, | ||
selected: (0, _selection.isSelected)(event, selected) | ||
@@ -57,0 +59,0 @@ }); |
@@ -24,3 +24,3 @@ "use strict"; | ||
date: 'short' | ||
}, culture) + ' — ' + local.format(end, { | ||
}, culture) + ' – ' + local.format(end, { | ||
date: 'short' | ||
@@ -35,3 +35,3 @@ }, culture); | ||
time: 'short' | ||
}, culture) + ' — ' + local.format(end, { | ||
}, culture) + ' – ' + local.format(end, { | ||
time: 'short' | ||
@@ -45,3 +45,3 @@ }, culture); | ||
time: 'short' | ||
}, culture) + ' — '; | ||
}, culture) + ' – '; | ||
}; | ||
@@ -51,3 +51,3 @@ | ||
var end = _ref4.end; | ||
return ' — ' + local.format(end, { | ||
return ' – ' + local.format(end, { | ||
time: 'short' | ||
@@ -60,3 +60,3 @@ }, culture); | ||
end = _ref5.end; | ||
return local.format(start, 'MMM dd', culture) + ' — ' + local.format(end, dates.eq(start, end, 'month') ? 'dd' : 'MMM dd', culture); | ||
return local.format(start, 'MMM dd', culture) + ' – ' + local.format(end, dates.eq(start, end, 'month') ? 'dd' : 'MMM dd', culture); | ||
}; | ||
@@ -63,0 +63,0 @@ |
@@ -16,3 +16,3 @@ "use strict"; | ||
end = _ref.end; | ||
return local.format(start, 'L', culture) + ' — ' + local.format(end, 'L', culture); | ||
return local.format(start, 'L', culture) + ' – ' + local.format(end, 'L', culture); | ||
}; | ||
@@ -23,3 +23,3 @@ | ||
end = _ref2.end; | ||
return local.format(start, 'LT', culture) + ' — ' + local.format(end, 'LT', culture); | ||
return local.format(start, 'LT', culture) + ' – ' + local.format(end, 'LT', culture); | ||
}; | ||
@@ -29,3 +29,3 @@ | ||
var start = _ref3.start; | ||
return local.format(start, 'LT', culture) + ' — '; | ||
return local.format(start, 'LT', culture) + ' – '; | ||
}; | ||
@@ -35,3 +35,3 @@ | ||
var end = _ref4.end; | ||
return ' — ' + local.format(end, 'LT', culture); | ||
return ' – ' + local.format(end, 'LT', culture); | ||
}; | ||
@@ -42,3 +42,3 @@ | ||
end = _ref5.end; | ||
return local.format(start, 'MMMM DD', culture) + ' - ' + local.format(end, dates.eq(start, end, 'month') ? 'DD' : 'MMMM DD', culture); | ||
return local.format(start, 'MMMM DD', culture) + ' – ' + local.format(end, dates.eq(start, end, 'month') ? 'DD' : 'MMMM DD', culture); | ||
}; | ||
@@ -45,0 +45,0 @@ |
@@ -16,3 +16,3 @@ "use strict"; | ||
end = _ref.end; | ||
return local.format(start, 'd', culture) + ' — ' + local.format(end, 'd', culture); | ||
return local.format(start, 'd', culture) + ' – ' + local.format(end, 'd', culture); | ||
}; | ||
@@ -23,3 +23,3 @@ | ||
end = _ref2.end; | ||
return local.format(start, 't', culture) + ' — ' + local.format(end, 't', culture); | ||
return local.format(start, 't', culture) + ' – ' + local.format(end, 't', culture); | ||
}; | ||
@@ -29,3 +29,3 @@ | ||
var start = _ref3.start; | ||
return local.format(start, 't', culture) + ' — '; | ||
return local.format(start, 't', culture) + ' – '; | ||
}; | ||
@@ -35,3 +35,3 @@ | ||
var end = _ref4.end; | ||
return ' — ' + local.format(end, 't', culture); | ||
return ' – ' + local.format(end, 't', culture); | ||
}; | ||
@@ -42,3 +42,3 @@ | ||
end = _ref5.end; | ||
return local.format(start, 'MMM dd', culture) + ' - ' + local.format(end, dates.eq(start, end, 'month') ? 'dd' : 'MMM dd', culture); | ||
return local.format(start, 'MMM dd', culture) + ' – ' + local.format(end, dates.eq(start, end, 'month') ? 'dd' : 'MMM dd', culture); | ||
}; | ||
@@ -45,0 +45,0 @@ |
@@ -24,3 +24,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -35,5 +35,5 @@ var dates = _interopRequireWildcard(require("./utils/dates")); | ||
var _position = _interopRequireDefault(require("dom-helpers/query/position")); | ||
var _position = _interopRequireDefault(require("dom-helpers/position")); | ||
var _requestAnimationFrame = _interopRequireDefault(require("dom-helpers/util/requestAnimationFrame")); | ||
var animationFrame = _interopRequireWildcard(require("dom-helpers/animationFrame")); | ||
@@ -136,3 +136,3 @@ var _Popup = _interopRequireDefault(require("./Popup")); | ||
return _react.default.createElement("div", (0, _extends2.default)({}, props, { | ||
className: (0, _classnames.default)(className, isOffRange && 'rbc-off-range', isCurrent && 'rbc-current') | ||
className: (0, _clsx.default)(className, isOffRange && 'rbc-off-range', isCurrent && 'rbc-current') | ||
}), _react.default.createElement(DateHeaderComponent, { | ||
@@ -238,3 +238,3 @@ label: label, | ||
if (!running) { | ||
(0, _requestAnimationFrame.default)(function () { | ||
animationFrame.request(function () { | ||
running = false; | ||
@@ -268,3 +268,3 @@ | ||
return _react.default.createElement("div", { | ||
className: (0, _classnames.default)('rbc-month-view', className) | ||
className: (0, _clsx.default)('rbc-month-view', className) | ||
}, _react.default.createElement("div", { | ||
@@ -303,7 +303,7 @@ className: "rbc-row rbc-month-header" | ||
getters = _this$props6.getters, | ||
selected = _this$props6.selected; | ||
selected = _this$props6.selected, | ||
popupOffset = _this$props6.popupOffset; | ||
return _react.default.createElement(_Overlay.default, { | ||
rootClose: true, | ||
placement: "bottom", | ||
container: this, | ||
show: !!overlay.position, | ||
@@ -321,2 +321,3 @@ onHide: function onHide() { | ||
return _react.default.createElement(_Popup.default, (0, _extends2.default)({}, props, { | ||
popupOffset: popupOffset, | ||
accessors: accessors, | ||
@@ -323,0 +324,0 @@ getters: getters, |
@@ -18,7 +18,7 @@ "use strict"; | ||
var _offset = _interopRequireDefault(require("dom-helpers/query/offset")); | ||
var _offset = _interopRequireDefault(require("dom-helpers/offset")); | ||
var _scrollTop = _interopRequireDefault(require("dom-helpers/query/scrollTop")); | ||
var _scrollTop = _interopRequireDefault(require("dom-helpers/scrollTop")); | ||
var _scrollLeft = _interopRequireDefault(require("dom-helpers/query/scrollLeft")); | ||
var _scrollLeft = _interopRequireDefault(require("dom-helpers/scrollLeft")); | ||
@@ -81,15 +81,12 @@ var dates = _interopRequireWildcard(require("./utils/dates")); | ||
popperRef = _this$props2.popperRef; | ||
var _this$props$position = this.props.position, | ||
left = _this$props$position.left, | ||
width = _this$props$position.width, | ||
top = _this$props$position.top, | ||
var width = this.props.position.width, | ||
topOffset = (this.state || {}).topOffset || 0, | ||
leftOffset = (this.state || {}).leftOffset || 0; | ||
var style = { | ||
top: Math.max(0, top - topOffset), | ||
left: left - leftOffset, | ||
top: -topOffset, | ||
left: -leftOffset, | ||
minWidth: width + width / 2 | ||
}; | ||
return _react.default.createElement("div", { | ||
style: style, | ||
style: (0, _extends2.default)({}, this.props.style, style), | ||
className: "rbc-overlay", | ||
@@ -111,2 +108,4 @@ ref: popperRef | ||
continuesAfter: dates.gte(accessors.start(event), slotEnd, 'day'), | ||
slotStart: slotStart, | ||
slotEnd: slotEnd, | ||
selected: (0, _selection.isSelected)(event, selected) | ||
@@ -113,0 +112,0 @@ }); |
@@ -12,7 +12,7 @@ "use strict"; | ||
var _contains = _interopRequireDefault(require("dom-helpers/query/contains")); | ||
var _contains = _interopRequireDefault(require("dom-helpers/contains")); | ||
var _closest = _interopRequireDefault(require("dom-helpers/query/closest")); | ||
var _closest = _interopRequireDefault(require("dom-helpers/closest")); | ||
var _events = _interopRequireDefault(require("dom-helpers/events")); | ||
var _listen = _interopRequireDefault(require("dom-helpers/listen")); | ||
@@ -24,11 +24,5 @@ function addEventListener(type, handler, target) { | ||
_events.default.on(target, type, handler, { | ||
return (0, _listen.default)(target, type, handler, { | ||
passive: false | ||
}); | ||
return { | ||
remove: function remove() { | ||
_events.default.off(target, type, handler); | ||
} | ||
}; | ||
} | ||
@@ -88,9 +82,11 @@ | ||
this._keyListener = this._keyListener.bind(this); | ||
this._dropFromOutsideListener = this._dropFromOutsideListener.bind(this); // Fixes an iOS 10 bug where scrolling could not be prevented on the window. | ||
this._dropFromOutsideListener = this._dropFromOutsideListener.bind(this); | ||
this._dragOverFromOutsideListener = this._dragOverFromOutsideListener.bind(this); // Fixes an iOS 10 bug where scrolling could not be prevented on the window. | ||
// https://github.com/metafizzy/flickity/issues/457#issuecomment-254501356 | ||
this._onTouchMoveWindowListener = addEventListener('touchmove', function () {}, window); | ||
this._onKeyDownListener = addEventListener('keydown', this._keyListener); | ||
this._onKeyUpListener = addEventListener('keyup', this._keyListener); | ||
this._onDropFromOutsideListener = addEventListener('drop', this._dropFromOutsideListener); | ||
this._removeTouchMoveWindowListener = addEventListener('touchmove', function () {}, window); | ||
this._removeKeyDownListener = addEventListener('keydown', this._keyListener); | ||
this._removeKeyUpListener = addEventListener('keyup', this._keyListener); | ||
this._removeDropFromOutsideListener = addEventListener('drop', this._dropFromOutsideListener); | ||
this._onDragOverfromOutisde = addEventListener('dragover', this._dragOverFromOutsideListener); | ||
@@ -129,9 +125,10 @@ this._addInitialEventListener(); | ||
this.listeners = Object.create(null); | ||
this._onTouchMoveWindowListener && this._onTouchMoveWindowListener.remove(); | ||
this._onInitialEventListener && this._onInitialEventListener.remove(); | ||
this._onEndListener && this._onEndListener.remove(); | ||
this._onEscListener && this._onEscListener.remove(); | ||
this._onMoveListener && this._onMoveListener.remove(); | ||
this._onKeyUpListener && this._onKeyUpListener.remove(); | ||
this._onKeyDownListener && this._onKeyDownListener.remove(); | ||
this._removeTouchMoveWindowListener && this._removeTouchMoveWindowListener(); | ||
this._removeInitialEventListener && this._removeInitialEventListener(); | ||
this._removeEndListener && this._removeEndListener(); | ||
this._onEscListener && this._onEscListener(); | ||
this._removeMoveListener && this._removeMoveListener(); | ||
this._removeKeyUpListener && this._removeKeyUpListener(); | ||
this._removeKeyDownListener && this._removeKeyDownListener(); | ||
this._removeDropFromOutsideListener && this._removeDropFromOutsideListener(); | ||
}; | ||
@@ -158,4 +155,4 @@ | ||
var timer = null; | ||
var touchMoveListener = null; | ||
var touchEndListener = null; | ||
var removeTouchMoveListener = null; | ||
var removeTouchEndListener = null; | ||
@@ -167,6 +164,6 @@ var handleTouchStart = function handleTouchStart(initialEvent) { | ||
}, _this.longPressThreshold); | ||
touchMoveListener = addEventListener('touchmove', function () { | ||
removeTouchMoveListener = addEventListener('touchmove', function () { | ||
return cleanup(); | ||
}); | ||
touchEndListener = addEventListener('touchend', function () { | ||
removeTouchEndListener = addEventListener('touchend', function () { | ||
return cleanup(); | ||
@@ -176,3 +173,3 @@ }); | ||
var touchStartListener = addEventListener('touchstart', handleTouchStart); | ||
var removeTouchStartListener = addEventListener('touchstart', handleTouchStart); | ||
@@ -184,13 +181,13 @@ var cleanup = function cleanup() { | ||
if (touchMoveListener) { | ||
touchMoveListener.remove(); | ||
if (removeTouchMoveListener) { | ||
removeTouchMoveListener(); | ||
} | ||
if (touchEndListener) { | ||
touchEndListener.remove(); | ||
if (removeTouchEndListener) { | ||
removeTouchEndListener(); | ||
} | ||
timer = null; | ||
touchMoveListener = null; | ||
touchEndListener = null; | ||
removeTouchMoveListener = null; | ||
removeTouchEndListener = null; | ||
}; | ||
@@ -202,7 +199,5 @@ | ||
return { | ||
remove: function remove() { | ||
cleanup(); | ||
touchStartListener.remove(); | ||
} | ||
return function () { | ||
cleanup(); | ||
removeTouchStartListener(); | ||
}; | ||
@@ -216,19 +211,18 @@ } // Listen for mousedown and touchstart events. When one is received, disable the other and setup | ||
var mouseDownListener = addEventListener('mousedown', function (e) { | ||
_this2._onInitialEventListener.remove(); | ||
var removeMouseDownListener = addEventListener('mousedown', function (e) { | ||
_this2._removeInitialEventListener(); | ||
_this2._handleInitialEvent(e); | ||
_this2._onInitialEventListener = addEventListener('mousedown', _this2._handleInitialEvent); | ||
_this2._removeInitialEventListener = addEventListener('mousedown', _this2._handleInitialEvent); | ||
}); | ||
var touchStartListener = addEventListener('touchstart', function (e) { | ||
_this2._onInitialEventListener.remove(); | ||
var removeTouchStartListener = addEventListener('touchstart', function (e) { | ||
_this2._removeInitialEventListener(); | ||
_this2._onInitialEventListener = _this2._addLongPressListener(_this2._handleInitialEvent, e); | ||
_this2._removeInitialEventListener = _this2._addLongPressListener(_this2._handleInitialEvent, e); | ||
}); | ||
this._onInitialEventListener = { | ||
remove: function remove() { | ||
mouseDownListener.remove(); | ||
touchStartListener.remove(); | ||
} | ||
this._removeInitialEventListener = function () { | ||
removeMouseDownListener(); | ||
removeTouchStartListener(); | ||
}; | ||
@@ -253,2 +247,18 @@ }; | ||
_proto._dragOverFromOutsideListener = function _dragOverFromOutsideListener(e) { | ||
var _getEventCoordinates2 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates2.pageX, | ||
pageY = _getEventCoordinates2.pageY, | ||
clientX = _getEventCoordinates2.clientX, | ||
clientY = _getEventCoordinates2.clientY; | ||
this.emit('dragOverFromOutside', { | ||
x: pageX, | ||
y: pageY, | ||
clientX: clientX, | ||
clientY: clientY | ||
}); | ||
e.preventDefault(); | ||
}; | ||
_proto._handleInitialEvent = function _handleInitialEvent(e) { | ||
@@ -259,7 +269,7 @@ if (this.isDetached) { | ||
var _getEventCoordinates2 = getEventCoordinates(e), | ||
clientX = _getEventCoordinates2.clientX, | ||
clientY = _getEventCoordinates2.clientY, | ||
pageX = _getEventCoordinates2.pageX, | ||
pageY = _getEventCoordinates2.pageY; | ||
var _getEventCoordinates3 = getEventCoordinates(e), | ||
clientX = _getEventCoordinates3.clientX, | ||
clientY = _getEventCoordinates3.clientY, | ||
pageX = _getEventCoordinates3.pageX, | ||
pageY = _getEventCoordinates3.pageY; | ||
@@ -303,5 +313,5 @@ var node = this.container(), | ||
case 'mousedown': | ||
this._onEndListener = addEventListener('mouseup', this._handleTerminatingEvent); | ||
this._removeEndListener = addEventListener('mouseup', this._handleTerminatingEvent); | ||
this._onEscListener = addEventListener('keydown', this._handleTerminatingEvent); | ||
this._onMoveListener = addEventListener('mousemove', this._handleMoveEvent); | ||
this._removeMoveListener = addEventListener('mousemove', this._handleMoveEvent); | ||
break; | ||
@@ -312,4 +322,4 @@ | ||
this._onEndListener = addEventListener('touchend', this._handleTerminatingEvent); | ||
this._onMoveListener = addEventListener('touchmove', this._handleMoveEvent); | ||
this._removeEndListener = addEventListener('touchend', this._handleTerminatingEvent); | ||
this._removeMoveListener = addEventListener('touchmove', this._handleMoveEvent); | ||
break; | ||
@@ -323,9 +333,9 @@ | ||
_proto._handleTerminatingEvent = function _handleTerminatingEvent(e) { | ||
var _getEventCoordinates3 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates3.pageX, | ||
pageY = _getEventCoordinates3.pageY; | ||
var _getEventCoordinates4 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates4.pageX, | ||
pageY = _getEventCoordinates4.pageY; | ||
this.selecting = false; | ||
this._onEndListener && this._onEndListener.remove(); | ||
this._onMoveListener && this._onMoveListener.remove(); | ||
this._removeEndListener && this._removeEndListener(); | ||
this._removeMoveListener && this._removeMoveListener(); | ||
if (!this._initialEventData) return; | ||
@@ -354,7 +364,7 @@ var inRoot = !this.container || (0, _contains.default)(this.container(), e.target); | ||
_proto._handleClickEvent = function _handleClickEvent(e) { | ||
var _getEventCoordinates4 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates4.pageX, | ||
pageY = _getEventCoordinates4.pageY, | ||
clientX = _getEventCoordinates4.clientX, | ||
clientY = _getEventCoordinates4.clientY; | ||
var _getEventCoordinates5 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates5.pageX, | ||
pageY = _getEventCoordinates5.pageY, | ||
clientX = _getEventCoordinates5.clientX, | ||
clientY = _getEventCoordinates5.clientY; | ||
@@ -395,5 +405,5 @@ var now = new Date().getTime(); | ||
var _getEventCoordinates5 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates5.pageX, | ||
pageY = _getEventCoordinates5.pageY; | ||
var _getEventCoordinates6 = getEventCoordinates(e), | ||
pageX = _getEventCoordinates6.pageX, | ||
pageY = _getEventCoordinates6.pageY; | ||
@@ -400,0 +410,0 @@ var w = Math.abs(x - pageX); |
@@ -16,5 +16,5 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
var _requestAnimationFrame = _interopRequireDefault(require("dom-helpers/util/requestAnimationFrame")); | ||
var animationFrame = _interopRequireWildcard(require("dom-helpers/animationFrame")); | ||
@@ -33,3 +33,3 @@ var _react = _interopRequireWildcard(require("react")); | ||
var _width = _interopRequireDefault(require("dom-helpers/query/width")); | ||
var _width = _interopRequireDefault(require("dom-helpers/width")); | ||
@@ -61,5 +61,4 @@ var _TimeGridHeader = _interopRequireDefault(require("./TimeGridHeader")); | ||
_this.handleResize = function () { | ||
_requestAnimationFrame.default.cancel(_this.rafHandle); | ||
_this.rafHandle = (0, _requestAnimationFrame.default)(_this.checkOverflow); | ||
animationFrame.cancel(_this.rafHandle); | ||
_this.rafHandle = animationFrame.request(_this.checkOverflow); | ||
}; | ||
@@ -139,5 +138,4 @@ | ||
window.removeEventListener('resize', this.handleResize); | ||
animationFrame.cancel(this.rafHandle); | ||
_requestAnimationFrame.default.cancel(this.rafHandle); | ||
if (this.measureGutterAnimationFrameRequest) { | ||
@@ -238,3 +236,3 @@ window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest); | ||
return _react.default.createElement("div", { | ||
className: (0, _classnames.default)('rbc-time-view', resources && 'rbc-time-view-resources') | ||
className: (0, _clsx.default)('rbc-time-view', resources && 'rbc-time-view-resources') | ||
}, _react.default.createElement(_TimeGridHeader.default, { | ||
@@ -241,0 +239,0 @@ range: range, |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -63,3 +63,3 @@ var _react = _interopRequireDefault(require("react")); | ||
title: tooltip ? (typeof label === 'string' ? label + ': ' : '') + tooltip : undefined, | ||
className: (0, _classnames.default)('rbc-event', className, userProps.className, { | ||
className: (0, _clsx.default)('rbc-event', className, userProps.className, { | ||
'rbc-selected': selected, | ||
@@ -66,0 +66,0 @@ 'rbc-event-continues-earlier': continuesEarlier, |
@@ -14,5 +14,5 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
var _scrollbarSize = _interopRequireDefault(require("dom-helpers/util/scrollbarSize")); | ||
var _scrollbarSize = _interopRequireDefault(require("dom-helpers/scrollbarSize")); | ||
@@ -120,3 +120,3 @@ var _react = _interopRequireDefault(require("react")); | ||
style: style, | ||
className: (0, _classnames.default)('rbc-header', className, dates.eq(date, today, 'day') && 'rbc-today') | ||
className: (0, _clsx.default)('rbc-header', className, dates.eq(date, today, 'day') && 'rbc-today') | ||
}, drilldownView ? _react.default.createElement("a", { | ||
@@ -162,3 +162,3 @@ href: "#", | ||
ref: scrollRef, | ||
className: (0, _classnames.default)('rbc-time-header', isOverflowing && 'rbc-overflowing') | ||
className: (0, _clsx.default)('rbc-time-header', isOverflowing && 'rbc-overflowing') | ||
}, _react.default.createElement("div", { | ||
@@ -165,0 +165,0 @@ className: "rbc-label rbc-time-header-gutter", |
@@ -12,3 +12,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -46,3 +46,3 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
return _react.default.createElement("span", { | ||
className: (0, _classnames.default)('rbc-label', isNow && 'rbc-now') | ||
className: (0, _clsx.default)('rbc-label', isNow && 'rbc-now') | ||
}, localizer.format(value, 'timeGutterFormat')); | ||
@@ -49,0 +49,0 @@ }; |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -53,3 +53,3 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
}, _react.default.createElement("div", (0, _extends2.default)({}, slotProps, { | ||
className: (0, _classnames.default)('rbc-time-slot', slotProps.className) | ||
className: (0, _clsx.default)('rbc-time-slot', slotProps.className) | ||
}), renderSlot && renderSlot(value, idx))); | ||
@@ -56,0 +56,0 @@ })); |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _clsx = _interopRequireDefault(require("clsx")); | ||
@@ -81,3 +81,3 @@ var _constants = require("./utils/constants"); | ||
key: name, | ||
className: (0, _classnames.default)({ | ||
className: (0, _clsx.default)({ | ||
'rbc-active': view === name | ||
@@ -84,0 +84,0 @@ }), |
@@ -106,3 +106,3 @@ "use strict"; | ||
var rangeEndMin = positionFromDate(rangeEnd); | ||
var top = rangeEndMin - rangeStartMin < step ? (rangeStartMin - step) / (step * numSlots) * 100 : rangeStartMin / (step * numSlots) * 100; | ||
var top = rangeEndMin - rangeStartMin < step && !dates.eq(end, rangeEnd) ? (rangeStartMin - step) / (step * numSlots) * 100 : rangeStartMin / (step * numSlots) * 100; | ||
return { | ||
@@ -116,4 +116,9 @@ top: top, | ||
}; | ||
}, | ||
getCurrentTimePosition: function getCurrentTimePosition(rangeStart) { | ||
var rangeStartMin = positionFromDate(rangeStart); | ||
var top = rangeStartMin / (step * numSlots) * 100; | ||
return top; | ||
} | ||
}; | ||
} |
{ | ||
"name": "react-big-calendar", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Calendar! with events", | ||
"author": "Jason Quense <monastic.panic@gmail.com>", | ||
"repository": "intljusticemission/react-big-calendar", | ||
"author": { | ||
"name": "Jason Quense", | ||
"email": "monastic.panic@gmail.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/intljusticemission/react-big-calendar.git" | ||
}, | ||
"license": "MIT", | ||
@@ -70,3 +76,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@4c/rollout": "^1.2.0", | ||
"@4c/rollout": "^1.4.0", | ||
"@babel/cli": "^7.1.0", | ||
@@ -84,2 +90,3 @@ "@babel/core": "^7.1.5", | ||
"bootstrap": "^3.3.5", | ||
"bootstrap-sass": "^3.4.1", | ||
"component-metadata-loader": "^4.0.0", | ||
@@ -126,6 +133,5 @@ "cpy-cli": "^2.0.0", | ||
"@babel/runtime": "^7.1.5", | ||
"bootstrap-sass": "^3.4.1", | ||
"classnames": "^2.2.6", | ||
"date-arithmetic": "^4.0.0", | ||
"dom-helpers": "^3.4.0", | ||
"clsx": "^1.0.4", | ||
"date-arithmetic": "^4.0.1", | ||
"dom-helpers": "^5.1.0", | ||
"invariant": "^2.2.4", | ||
@@ -136,4 +142,4 @@ "lodash": "^4.17.11", | ||
"prop-types": "^15.6.2", | ||
"react-overlays": "^1.2.0", | ||
"uncontrollable": "^6.2.3", | ||
"react-overlays": "^2.0.0-0", | ||
"uncontrollable": "^7.0.0", | ||
"warning": "^4.0.2" | ||
@@ -143,3 +149,9 @@ }, | ||
"babel-core": "7.0.0-bridge.0" | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/intljusticemission/react-big-calendar/issues" | ||
}, | ||
"readme": "ERROR: No README data found!", | ||
"homepage": "https://github.com/intljusticemission/react-big-calendar#readme", | ||
"_id": "react-big-calendar@0.22.0" | ||
} |
@@ -86,3 +86,3 @@ # react-big-calendar | ||
@import 'react-big-calendar/lib/sass/styles'; | ||
@import 'react-big-calendar/addons/dragAndDrop/styles'; // if using DnD | ||
@import 'react-big-calendar/lib/addons/dragAndDrop/styles'; // if using DnD | ||
``` | ||
@@ -89,0 +89,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
14
0
2
62
1103445
52
25608
+ Addedclsx@^1.0.4
+ Added@restart/hooks@0.3.27(transitive)
+ Added@types/prop-types@15.7.12(transitive)
+ Added@types/react@18.3.4(transitive)
+ Addedclsx@1.2.1(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddom-helpers@5.2.1(transitive)
+ Addedreact-lifecycles-compat@3.0.4(transitive)
+ Addedreact-overlays@2.1.1(transitive)
+ Addeduncontrollable@7.2.1(transitive)
- Removedbootstrap-sass@^3.4.1
- Removedclassnames@^2.2.6
- Removed@hypnosphi/create-react-context@0.3.1(transitive)
- Removedbootstrap-sass@3.4.3(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedclassnames@2.5.1(transitive)
- Removeddeep-equal@1.1.2(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removeddom-helpers@3.4.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedgud@1.0.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedobject-is@1.1.6(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedprop-types-extra@1.1.1(transitive)
- Removedreact-context-toolbox@2.0.2(transitive)
- Removedreact-overlays@1.2.0(transitive)
- Removedreact-popper@1.3.11(transitive)
- Removedregexp.prototype.flags@1.5.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedtyped-styles@0.0.7(transitive)
- Removeduncontrollable@6.2.3(transitive)
Updateddate-arithmetic@^4.0.1
Updateddom-helpers@^5.1.0
Updatedreact-overlays@^2.0.0-0
Updateduncontrollable@^7.0.0