react-bootstrap-daterangepicker
Advanced tools
Comparing version 1.0.6 to 2.0.0
@@ -17,4 +17,10 @@ var gulp = require('gulp'); | ||
gulp.task('css-copy', function () { | ||
gulp.src('./node_modules/bootstrap-daterangepicker/daterangepicker.css') | ||
// this task downloads the lastest .js and .css from the 'parent' | ||
// library that we are wrapping for react | ||
gulp.task('download', function () { | ||
// download the .js file | ||
download('https://raw.githubusercontent.com/dangrossman/bootstrap-daterangepicker/master/daterangepicker.js') | ||
.pipe(gulp.dest('./lib/')); | ||
// download the .css files | ||
download('https://raw.githubusercontent.com/dangrossman/bootstrap-daterangepicker/master/daterangepicker.css') | ||
.pipe(gulp.dest('./css/')); | ||
@@ -25,3 +31,3 @@ }); | ||
var downloadedOptions = require('./lib/get-options')(), | ||
options = fs.readFileSync('./node_modules/bootstrap-daterangepicker/daterangepicker.js', 'utf-8') | ||
options = fs.readFileSync('./lib/daterangepicker.js', 'utf-8') | ||
.toString().split(' ').filter(function (item) { | ||
@@ -146,3 +152,3 @@ return item.indexOf('options.') === 0; | ||
gulp.task('update', ['css-copy', 'get-options']); | ||
gulp.task('update', ['download', 'get-options']); | ||
gulp.task('build', ['lint', 'fonts', 'app-content', 'demo']); | ||
@@ -149,0 +155,0 @@ gulp.task('default', ['build', 'server', 'watch']); |
@@ -6,2 +6,3 @@ "use strict"; | ||
"<input>", | ||
"alwaysShowCalendars", | ||
"applyClass", | ||
@@ -34,2 +35,2 @@ "autoApply", | ||
]; | ||
}; | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
* A slightly modified version of bootstrap-daterangepicker.js for use in react and npm. | ||
* Original copyright in: ./node_modules/bootstrap-daterangepicker/ | ||
* Original copyright in: ./lib/daterangepicker.js | ||
*/ | ||
@@ -51,2 +51,11 @@ var React = require('react'); | ||
componentDidMount: function () { | ||
this.initializeDateRangePicker(); | ||
}, | ||
componentWillUnmount: function () { | ||
this.removeDateRangePicker(); | ||
}, | ||
removeDateRangePicker: function() { | ||
this.$picker.data('daterangepicker').remove(); | ||
}, | ||
initializeDateRangePicker: function() { | ||
var $this = this; | ||
@@ -63,5 +72,2 @@ $ = (window.jQuery && window.jQuery.fn.daterangepicker)? window.jQuery : $; | ||
}, | ||
componentWillUnmount: function () { | ||
this.$picker.data('daterangepicker').remove(); | ||
}, | ||
render: function () { | ||
@@ -68,0 +74,0 @@ this.setOptionsFromProps(); |
{ | ||
"name": "react-bootstrap-daterangepicker", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"description": "A date/time picker for react (using bootstrap). This is a react port of: https://github.com/dangrossman/bootstrap-daterangepicker", | ||
@@ -20,29 +20,32 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"bootstrap-daterangepicker": "^2.1.13" | ||
"bootstrap-daterangepicker": "^2.1.19" | ||
}, | ||
"peerDependencies": { | ||
"jquery": "^1.11.3", | ||
"react": "^0.14.0" | ||
"jquery": ">=1.11.3||>=2.0.0", | ||
"react": ">=0.14.0||>=15.0.0" | ||
}, | ||
"devDependencies": { | ||
"babelify": "^6.3.0", | ||
"bootstrap": "^3.3.5", | ||
"cheerio": "^0.19.0", | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^5.3.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babelify": "^7.2.0", | ||
"bootstrap": "^3.3.6", | ||
"cheerio": "^0.20.0", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-browserify": "^0.5.1", | ||
"gulp-connect": "^2.2.0", | ||
"gulp-connect": "^3.1.0", | ||
"gulp-cssmin": "^0.1.7", | ||
"gulp-download": "0.0.1", | ||
"gulp-less": "^3.0.3", | ||
"gulp-nodemon": "^2.0.4", | ||
"gulp-less": "^3.0.5", | ||
"gulp-nodemon": "^2.0.6", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^1.4.2", | ||
"gulp-uglify": "^1.5.3", | ||
"jsxhint": "^0.15.1", | ||
"request": "^2.65.0", | ||
"wordwrap": "^1.0.0", | ||
"react": "^0.14.0", | ||
"react-dom": "^0.14.0", | ||
"react-bootstrap": "^0.27.2", | ||
"moment": "^2.10.6" | ||
"moment": "^2.12.0", | ||
"react": "^0.14.7", | ||
"react-bootstrap": "^0.28.3", | ||
"react-dom": "^0.14.7", | ||
"request": "^2.69.0", | ||
"wordwrap": "^1.0.0" | ||
}, | ||
@@ -49,0 +52,0 @@ "keywords": [ |
@@ -49,7 +49,7 @@ # react-bootstrap-daterangepicker | ||
- **<input>, applyClass, autoApply, autoUpdateInput, buttonClasses, | ||
cancelClass, dateLimit, drops, endDate, isInvalidDate, linkedCalendars, | ||
locale, maxDate, minDate, opens, parentEl, ranges, showDropdowns, | ||
showWeekNumbers, singleDatePicker, startDate, template, timePicker, | ||
timePicker24Hour, timePickerIncrement, timePickerSeconds, timeZone** | ||
- **<input>, alwaysShowCalendars, applyClass, autoApply, autoUpdateInput, | ||
buttonClasses, cancelClass, dateLimit, drops, endDate, isInvalidDate, | ||
linkedCalendars, locale, maxDate, minDate, opens, parentEl, ranges, | ||
showDropdowns, showWeekNumbers, singleDatePicker, startDate, template, | ||
timePicker, timePicker24Hour, timePickerIncrement, timePickerSeconds, timeZone** | ||
@@ -56,0 +56,0 @@ You can listen to the following 7 events: |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
95185
12
1729
23
2
+ Addedjquery@3.7.1(transitive)
+ Addedreact@18.3.1(transitive)
- Removedacorn@5.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedasap@2.0.6(transitive)
- Removedast-types@0.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-js@1.2.7(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedfbjs@0.6.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjquery@1.12.4(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedpromise@7.3.1(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.14.10(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedthrough@2.3.8(transitive)
- Removedua-parser-js@0.7.38(transitive)
- Removedwhatwg-fetch@0.9.0(transitive)
- Removedwrappy@1.0.2(transitive)