@@ -12,7 +12,7 @@ MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
12
12
exports [ "Datetime" ] = factory ( require ( "React" ) , require ( "moment" ) , require ( "ReactDOM" ) ) ;
13
13
else
14
14
root [ "Datetime" ] = factory ( root [ "React" ] , root [ "moment" ] , root [ "ReactDOM" ] ) ;
15
- } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_12__ , __WEBPACK_EXTERNAL_MODULE_15__ , __WEBPACK_EXTERNAL_MODULE_19__ ) {
15
+ } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_12__ , __WEBPACK_EXTERNAL_MODULE_16__ , __WEBPACK_EXTERNAL_MODULE_20__ ) {
16
16
return /******/ ( function ( modules ) { // webpackBootstrap
17
17
/******/ // The module cache
18
18
/******/ var installedModules = { } ;
@@ -64,9 +64,9 @@ return /******/ (function(modules) { // webpackBootstrap
64
64
var assign = __webpack_require__ ( 1 ) ,
65
65
PropTypes = __webpack_require__ ( 2 ) ,
66
66
createClass = __webpack_require__ ( 11 ) ,
67
- moment = __webpack_require__ ( 15 ) ,
67
+ moment = __webpack_require__ ( 16 ) ,
68
68
React = __webpack_require__ ( 12 ) ,
69
- CalendarContainer = __webpack_require__ ( 16 )
69
+ CalendarContainer = __webpack_require__ ( 17 )
70
70
;
71
71
72
72
var viewModes = Object . freeze ( {
@@ -1720,9 +1720,9 @@ return /******/ (function(modules) { // webpackBootstrap
1720
1720
1721
1721
'use strict' ;
1722
1722
1723
- var _assign = __webpack_require__ ( 1 ) ;
1723
+ var _assign = __webpack_require__ ( 14 ) ;
1724
1724
1725
- var emptyObject = __webpack_require__ ( 14 ) ;
1725
+ var emptyObject = __webpack_require__ ( 15 ) ;
1726
1726
var _invariant = __webpack_require__ ( 6 ) ;
1727
1727
1728
1728
if ( process . env . NODE_ENV !== 'production' ) {
@@ -2585,6 +2585,102 @@ return /******/ (function(modules) { // webpackBootstrap
2585
2585
2586
2586
/***/ } ) ,
2587
2587
/* 14 */
2588
+ /***/ ( function ( module , exports ) {
2589
+
2590
+ /*
2591
+ object-assign
2592
+ (c) Sindre Sorhus
2593
+ @license MIT
2594
+ */
2595
+
2596
+ 'use strict' ;
2597
+ /* eslint-disable no-unused-vars */
2598
+ var getOwnPropertySymbols = Object . getOwnPropertySymbols ;
2599
+ var hasOwnProperty = Object . prototype . hasOwnProperty ;
2600
+ var propIsEnumerable = Object . prototype . propertyIsEnumerable ;
2601
+
2602
+ function toObject ( val ) {
2603
+ if ( val === null || val === undefined ) {
2604
+ throw new TypeError ( 'Object.assign cannot be called with null or undefined' ) ;
2605
+ }
2606
+
2607
+ return Object ( val ) ;
2608
+ }
2609
+
2610
+ function shouldUseNative ( ) {
2611
+ try {
2612
+ if ( ! Object . assign ) {
2613
+ return false ;
2614
+ }
2615
+
2616
+ // Detect buggy property enumeration order in older V8 versions.
2617
+
2618
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
2619
+ var test1 = new String ( 'abc' ) ; // eslint-disable-line no-new-wrappers
2620
+ test1 [ 5 ] = 'de' ;
2621
+ if ( Object . getOwnPropertyNames ( test1 ) [ 0 ] === '5' ) {
2622
+ return false ;
2623
+ }
2624
+
2625
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
2626
+ var test2 = { } ;
2627
+ for ( var i = 0 ; i < 10 ; i ++ ) {
2628
+ test2 [ '_' + String . fromCharCode ( i ) ] = i ;
2629
+ }
2630
+ var order2 = Object . getOwnPropertyNames ( test2 ) . map ( function ( n ) {
2631
+ return test2 [ n ] ;
2632
+ } ) ;
2633
+ if ( order2 . join ( '' ) !== '0123456789' ) {
2634
+ return false ;
2635
+ }
2636
+
2637
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
2638
+ var test3 = { } ;
2639
+ 'abcdefghijklmnopqrst' . split ( '' ) . forEach ( function ( letter ) {
2640
+ test3 [ letter ] = letter ;
2641
+ } ) ;
2642
+ if ( Object . keys ( Object . assign ( { } , test3 ) ) . join ( '' ) !==
2643
+ 'abcdefghijklmnopqrst' ) {
2644
+ return false ;
2645
+ }
2646
+
2647
+ return true ;
2648
+ } catch ( err ) {
2649
+ // We don't expect any of the above to throw, but better to be safe.
2650
+ return false ;
2651
+ }
2652
+ }
2653
+
2654
+ module . exports = shouldUseNative ( ) ? Object . assign : function ( target , source ) {
2655
+ var from ;
2656
+ var to = toObject ( target ) ;
2657
+ var symbols ;
2658
+
2659
+ for ( var s = 1 ; s < arguments . length ; s ++ ) {
2660
+ from = Object ( arguments [ s ] ) ;
2661
+
2662
+ for ( var key in from ) {
2663
+ if ( hasOwnProperty . call ( from , key ) ) {
2664
+ to [ key ] = from [ key ] ;
2665
+ }
2666
+ }
2667
+
2668
+ if ( getOwnPropertySymbols ) {
2669
+ symbols = getOwnPropertySymbols ( from ) ;
2670
+ for ( var i = 0 ; i < symbols . length ; i ++ ) {
2671
+ if ( propIsEnumerable . call ( from , symbols [ i ] ) ) {
2672
+ to [ symbols [ i ] ] = from [ symbols [ i ] ] ;
2673
+ }
2674
+ }
2675
+ }
2676
+ }
2677
+
2678
+ return to ;
2679
+ } ;
2680
+
2681
+
2682
+ /***/ } ) ,
2683
+ /* 15 */
2588
2684
/***/ ( function ( module , exports , __webpack_require__ ) {
2589
2685
2590
2686
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
@@ -2609,23 +2705,23 @@ return /******/ (function(modules) { // webpackBootstrap
2609
2705
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 3 ) ) )
2610
2706
2611
2707
/***/ } ) ,
2612
- /* 15 */
2708
+ /* 16 */
2613
2709
/***/ ( function ( module , exports ) {
2614
2710
2615
- module . exports = __WEBPACK_EXTERNAL_MODULE_15__ ;
2711
+ module . exports = __WEBPACK_EXTERNAL_MODULE_16__ ;
2616
2712
2617
2713
/***/ } ) ,
2618
- /* 16 */
2714
+ /* 17 */
2619
2715
/***/ ( function ( module , exports , __webpack_require__ ) {
2620
2716
2621
2717
'use strict' ;
2622
2718
2623
2719
var React = __webpack_require__ ( 12 ) ,
2624
2720
createClass = __webpack_require__ ( 11 ) ,
2625
- DaysView = __webpack_require__ ( 17 ) ,
2626
- MonthsView = __webpack_require__ ( 21 ) ,
2627
- YearsView = __webpack_require__ ( 22 ) ,
2628
- TimeView = __webpack_require__ ( 23 )
2721
+ DaysView = __webpack_require__ ( 18 ) ,
2722
+ MonthsView = __webpack_require__ ( 22 ) ,
2723
+ YearsView = __webpack_require__ ( 23 ) ,
2724
+ TimeView = __webpack_require__ ( 24 )
2629
2725
;
2630
2726
2631
2727
var CalendarContainer = createClass ( {
@@ -2645,15 +2741,15 @@ return /******/ (function(modules) { // webpackBootstrap
2645
2741
2646
2742
2647
2743
/***/ } ) ,
2648
- /* 17 */
2744
+ /* 18 */
2649
2745
/***/ ( function ( module , exports , __webpack_require__ ) {
2650
2746
2651
2747
'use strict' ;
2652
2748
2653
2749
var React = __webpack_require__ ( 12 ) ,
2654
2750
createClass = __webpack_require__ ( 11 ) ,
2655
- moment = __webpack_require__ ( 15 ) ,
2656
- onClickOutside = __webpack_require__ ( 18 ) . default
2751
+ moment = __webpack_require__ ( 16 ) ,
2752
+ onClickOutside = __webpack_require__ ( 19 ) . default
2657
2753
;
2658
2754
2659
2755
var DateTimePickerDays = onClickOutside ( createClass ( {
@@ -2668,7 +2764,7 @@ return /******/ (function(modules) { // webpackBootstrap
2668
2764
React . createElement ( 'thead' , { key : 'th' } , [
2669
2765
React . createElement ( 'tr' , { key : 'h' } , [
2670
2766
React . createElement ( 'th' , { key : 'p' , className : 'rdtPrev' , onClick : this . props . subtractTime ( 1 , 'months' ) } , React . createElement ( 'span' , { } , '‹' ) ) ,
2671
- React . createElement ( 'th' , { key : 's' , className : 'rdtSwitch' , onClick : this . props . showView ( 'months' ) , colSpan : 5 , 'data-value' : this . props . viewDate . month ( ) } , locale . months ( date ) + ' ' + date . year ( ) ) ,
2767
+ React . createElement ( 'th' , { key : 's' , className : 'rdtSwitch' , onClick : this . props . showView ( 'months' ) , colspan : 5 , 'data-value' : this . props . viewDate . month ( ) } , locale . months ( date ) + ' ' + date . year ( ) ) ,
2672
2768
React . createElement ( 'th' , { key : 'n' , className : 'rdtNext' , onClick : this . props . addTime ( 1 , 'months' ) } , React . createElement ( 'span' , { } , '›' ) )
2673
2769
] ) ,
2674
2770
React . createElement ( 'tr' , { key : 'd' } , this . getDaysOfWeek ( locale ) . map ( function ( day , index ) { return React . createElement ( 'th' , { key : day + index , className : 'dow' } , day ) ; } ) )
@@ -2777,7 +2873,7 @@ return /******/ (function(modules) { // webpackBootstrap
2777
2873
2778
2874
return React . createElement ( 'tfoot' , { key : 'tf' } ,
2779
2875
React . createElement ( 'tr' , { } ,
2780
- React . createElement ( 'td' , { onClick : this . props . showView ( 'time' ) , colSpan : 7 , className : 'rdtTimeToggle' } , date . format ( this . props . timeFormat ) )
2876
+ React . createElement ( 'td' , { onClick : this . props . showView ( 'time' ) , colspan : 7 , className : 'rdtTimeToggle' } , date . format ( this . props . timeFormat ) )
2781
2877
)
2782
2878
) ;
2783
2879
} ,
@@ -2795,7 +2891,7 @@ return /******/ (function(modules) { // webpackBootstrap
2795
2891
2796
2892
2797
2893
/***/ } ) ,
2798
- /* 18 */
2894
+ /* 19 */
2799
2895
/***/ ( function ( module , exports , __webpack_require__ ) {
2800
2896
2801
2897
'use strict' ;
@@ -2806,9 +2902,9 @@ return /******/ (function(modules) { // webpackBootstrap
2806
2902
2807
2903
var _react = __webpack_require__ ( 12 ) ;
2808
2904
2809
- var _reactDom = __webpack_require__ ( 19 ) ;
2905
+ var _reactDom = __webpack_require__ ( 20 ) ;
2810
2906
2811
- var _generateOutsideCheck = __webpack_require__ ( 20 ) ;
2907
+ var _generateOutsideCheck = __webpack_require__ ( 21 ) ;
2812
2908
2813
2909
var _generateOutsideCheck2 = _interopRequireDefault ( _generateOutsideCheck ) ;
2814
2910
@@ -3054,13 +3150,13 @@ return /******/ (function(modules) { // webpackBootstrap
3054
3150
}
3055
3151
3056
3152
/***/ } ) ,
3057
- /* 19 */
3153
+ /* 20 */
3058
3154
/***/ ( function ( module , exports ) {
3059
3155
3060
- module . exports = __WEBPACK_EXTERNAL_MODULE_19__ ;
3156
+ module . exports = __WEBPACK_EXTERNAL_MODULE_20__ ;
3061
3157
3062
3158
/***/ } ) ,
3063
- /* 20 */
3159
+ /* 21 */
3064
3160
/***/ ( function ( module , exports ) {
3065
3161
3066
3162
"use strict" ;
@@ -3137,22 +3233,22 @@ return /******/ (function(modules) { // webpackBootstrap
3137
3233
}
3138
3234
3139
3235
/***/ } ) ,
3140
- /* 21 */
3236
+ /* 22 */
3141
3237
/***/ ( function ( module , exports , __webpack_require__ ) {
3142
3238
3143
3239
'use strict' ;
3144
3240
3145
3241
var React = __webpack_require__ ( 12 ) ,
3146
3242
createClass = __webpack_require__ ( 11 ) ,
3147
- onClickOutside = __webpack_require__ ( 18 ) . default
3243
+ onClickOutside = __webpack_require__ ( 19 ) . default
3148
3244
;
3149
3245
3150
3246
var DateTimePickerMonths = onClickOutside ( createClass ( {
3151
3247
render : function ( ) {
3152
3248
return React . createElement ( 'div' , { className : 'rdtMonths' } , [
3153
3249
React . createElement ( 'table' , { key : 'a' } , React . createElement ( 'thead' , { } , React . createElement ( 'tr' , { } , [
3154
3250
React . createElement ( 'th' , { key : 'prev' , className : 'rdtPrev' , onClick : this . props . subtractTime ( 1 , 'years' ) } , React . createElement ( 'span' , { } , '‹' ) ) ,
3155
- React . createElement ( 'th' , { key : 'year' , className : 'rdtSwitch' , onClick : this . props . showView ( 'years' ) , colSpan : 2 , 'data-value' : this . props . viewDate . year ( ) } , this . props . viewDate . year ( ) ) ,
3251
+ React . createElement ( 'th' , { key : 'year' , className : 'rdtSwitch' , onClick : this . props . showView ( 'years' ) , colspan : 2 , 'data-value' : this . props . viewDate . year ( ) } , this . props . viewDate . year ( ) ) ,
3156
3252
React . createElement ( 'th' , { key : 'next' , className : 'rdtNext' , onClick : this . props . addTime ( 1 , 'years' ) } , React . createElement ( 'span' , { } , '›' ) )
3157
3253
] ) ) ) ,
3158
3254
React . createElement ( 'table' , { key : 'months' } , React . createElement ( 'tbody' , { key : 'b' } , this . renderMonths ( ) ) )
@@ -3250,14 +3346,14 @@ return /******/ (function(modules) { // webpackBootstrap
3250
3346
3251
3347
3252
3348
/***/ } ) ,
3253
- /* 22 */
3349
+ /* 23 */
3254
3350
/***/ ( function ( module , exports , __webpack_require__ ) {
3255
3351
3256
3352
'use strict' ;
3257
3353
3258
3354
var React = __webpack_require__ ( 12 ) ,
3259
3355
createClass = __webpack_require__ ( 11 ) ,
3260
- onClickOutside = __webpack_require__ ( 18 ) . default
3356
+ onClickOutside = __webpack_require__ ( 19 ) . default
3261
3357
;
3262
3358
3263
3359
var DateTimePickerYears = onClickOutside ( createClass ( {
@@ -3267,7 +3363,7 @@ return /******/ (function(modules) { // webpackBootstrap
3267
3363
return React . createElement ( 'div' , { className : 'rdtYears' } , [
3268
3364
React . createElement ( 'table' , { key : 'a' } , React . createElement ( 'thead' , { } , React . createElement ( 'tr' , { } , [
3269
3365
React . createElement ( 'th' , { key : 'prev' , className : 'rdtPrev' , onClick : this . props . subtractTime ( 10 , 'years' ) } , React . createElement ( 'span' , { } , '‹' ) ) ,
3270
- React . createElement ( 'th' , { key : 'year' , className : 'rdtSwitch' , onClick : this . props . showView ( 'years' ) , colSpan : 2 } , year + '-' + ( year + 9 ) ) ,
3366
+ React . createElement ( 'th' , { key : 'year' , className : 'rdtSwitch' , onClick : this . props . showView ( 'years' ) , colspan : 2 } , year + '-' + ( year + 9 ) ) ,
3271
3367
React . createElement ( 'th' , { key : 'next' , className : 'rdtNext' , onClick : this . props . addTime ( 10 , 'years' ) } , React . createElement ( 'span' , { } , '›' ) )
3272
3368
] ) ) ) ,
3273
3369
React . createElement ( 'table' , { key : 'years' } , React . createElement ( 'tbody' , { } , this . renderYears ( year ) ) )
@@ -3361,15 +3457,15 @@ return /******/ (function(modules) { // webpackBootstrap
3361
3457
3362
3458
3363
3459
/***/ } ) ,
3364
- /* 23 */
3460
+ /* 24 */
3365
3461
/***/ ( function ( module , exports , __webpack_require__ ) {
3366
3462
3367
3463
'use strict' ;
3368
3464
3369
3465
var React = __webpack_require__ ( 12 ) ,
3370
3466
createClass = __webpack_require__ ( 11 ) ,
3371
3467
assign = __webpack_require__ ( 1 ) ,
3372
- onClickOutside = __webpack_require__ ( 18 ) . default
3468
+ onClickOutside = __webpack_require__ ( 19 ) . default
3373
3469
;
3374
3470
3375
3471
var DateTimePickerTime = onClickOutside ( createClass ( {
@@ -3394,7 +3490,7 @@ return /******/ (function(modules) { // webpackBootstrap
3394
3490
}
3395
3491
3396
3492
var hours = date . format ( 'H' ) ;
3397
-
3493
+
3398
3494
var daypart = false ;
3399
3495
if ( this . state !== null && this . props . timeFormat . toLowerCase ( ) . indexOf ( ' a' ) !== - 1 ) {
3400
3496
if ( this . props . timeFormat . indexOf ( ' A' ) !== - 1 ) {
@@ -3523,7 +3619,7 @@ return /******/ (function(modules) { // webpackBootstrap
3523
3619
3524
3620
var date = this . props . selectedDate || this . props . viewDate ;
3525
3621
return React . createElement ( 'thead' , { key : 'h' } , React . createElement ( 'tr' , { } ,
3526
- React . createElement ( 'th' , { className : 'rdtSwitch' , colSpan : 4 , onClick : this . props . showView ( 'days' ) } , date . format ( this . props . dateFormat ) )
3622
+ React . createElement ( 'th' , { className : 'rdtSwitch' , colspan : 4 , onClick : this . props . showView ( 'days' ) } , date . format ( this . props . dateFormat ) )
3527
3623
) ) ;
3528
3624
} ,
3529
3625
0 commit comments