flatpickr 2.4.5.0 → 2.4.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3a731b04950592a0624e0f89ce1d6af55bf181f
|
4
|
+
data.tar.gz: 4a957a8ca1e0ac9c3b8a2a0595f511764155bce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3cabc9032e5c6ffe4901e583a0d15e74d7f83f88ce95659312f4dbd5b846cb5d4eebab4f83af3bc63d3cd4b82c0d860797d5c4dbc0e6cc415f0c0ff590d812
|
7
|
+
data.tar.gz: c8fb2b2f9621c397edf9627c66dc5b6d6e0f4b76be023b2b8674ce1b21ad068577d0f8639782ade5411c41ba2cdc4fdfd6fc3869ef2e337b84337c7a03d6dfea
|
data/lib/flatpickr/version.rb
CHANGED
@@ -2,7 +2,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
2
2
|
|
3
3
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
4
4
|
|
5
|
-
/*! flatpickr v2.4.
|
5
|
+
/*! flatpickr v2.4.6, @license MIT */
|
6
6
|
function Flatpickr(element, config) {
|
7
7
|
var self = this;
|
8
8
|
|
@@ -259,17 +259,17 @@ function Flatpickr(element, config) {
|
|
259
259
|
|
260
260
|
function incrementNumInput(e, delta, inputElem) {
|
261
261
|
var input = inputElem || e.target.parentNode.childNodes[0];
|
262
|
+
var ev = void 0;
|
262
263
|
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
var _ev = window.document.createEvent("CustomEvent");
|
269
|
-
_ev.initCustomEvent("increment", true, true, {});
|
270
|
-
_ev.delta = delta;
|
271
|
-
input.dispatchEvent(_ev);
|
264
|
+
try {
|
265
|
+
ev = new Event("increment", { "bubbles": true });
|
266
|
+
} catch (err) {
|
267
|
+
ev = window.document.createEvent("CustomEvent");
|
268
|
+
ev.initCustomEvent("increment", true, true, {});
|
272
269
|
}
|
270
|
+
|
271
|
+
ev.delta = delta;
|
272
|
+
input.dispatchEvent(ev);
|
273
273
|
}
|
274
274
|
|
275
275
|
function createNumberInput(inputClassName) {
|
@@ -668,7 +668,14 @@ function Flatpickr(element, config) {
|
|
668
668
|
function isCalendarElem(elem) {
|
669
669
|
if (self.config.appendTo && self.config.appendTo.contains(elem)) return true;
|
670
670
|
|
671
|
-
|
671
|
+
var e = elem;
|
672
|
+
while (e) {
|
673
|
+
|
674
|
+
if (e === self.calendarContainer) return true;
|
675
|
+
e = e.parentNode;
|
676
|
+
}
|
677
|
+
|
678
|
+
return false;
|
672
679
|
}
|
673
680
|
|
674
681
|
function documentClick(e) {
|
@@ -678,7 +685,7 @@ function Flatpickr(element, config) {
|
|
678
685
|
// web components
|
679
686
|
e.path && e.path.indexOf && (~e.path.indexOf(self.input) || ~e.path.indexOf(self.altInput));
|
680
687
|
|
681
|
-
var lostFocus = e.type === "blur" ? isInput && !isCalendarElem(e.relatedTarget) : !isInput && !isCalendarElement;
|
688
|
+
var lostFocus = e.type === "blur" ? isInput && e.relatedTarget && !isCalendarElem(e.relatedTarget) : !isInput && !isCalendarElement;
|
682
689
|
|
683
690
|
if (lostFocus) {
|
684
691
|
e.preventDefault();
|
@@ -15,8 +15,8 @@
|
|
15
15
|
position: absolute;
|
16
16
|
width: 315px;
|
17
17
|
box-sizing: border-box;
|
18
|
-
background: rgba(
|
19
|
-
box-shadow: -1px 0 0 #
|
18
|
+
background: rgba(63,68,88,0.95);
|
19
|
+
box-shadow: -1px 0 0 #3f4458, 1px 0 0 #3f4458, 0 1px 0 #3f4458, 0 -1px 0 #3f4458, 0 3px 13px rgba(0,0,0,0.08);
|
20
20
|
}
|
21
21
|
.flatpickr-calendar.open,
|
22
22
|
.flatpickr-calendar.inline {
|
@@ -48,7 +48,7 @@
|
|
48
48
|
}
|
49
49
|
.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
|
50
50
|
height: 40px;
|
51
|
-
border-top: 1px solid #
|
51
|
+
border-top: 1px solid #3f4458;
|
52
52
|
}
|
53
53
|
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
|
54
54
|
height: auto;
|
@@ -82,20 +82,20 @@
|
|
82
82
|
bottom: 100%;
|
83
83
|
}
|
84
84
|
.flatpickr-calendar.arrowTop:before {
|
85
|
-
border-bottom-color: #
|
85
|
+
border-bottom-color: #3f4458;
|
86
86
|
}
|
87
87
|
.flatpickr-calendar.arrowTop:after {
|
88
|
-
border-bottom-color: rgba(
|
88
|
+
border-bottom-color: rgba(63,68,88,0.95);
|
89
89
|
}
|
90
90
|
.flatpickr-calendar.arrowBottom:before,
|
91
91
|
.flatpickr-calendar.arrowBottom:after {
|
92
92
|
top: 100%;
|
93
93
|
}
|
94
94
|
.flatpickr-calendar.arrowBottom:before {
|
95
|
-
border-top-color: #
|
95
|
+
border-top-color: #3f4458;
|
96
96
|
}
|
97
97
|
.flatpickr-calendar.arrowBottom:after {
|
98
|
-
border-top-color: rgba(
|
98
|
+
border-top-color: rgba(63,68,88,0.95);
|
99
99
|
}
|
100
100
|
.flatpickr-wrapper {
|
101
101
|
position: relative;
|
@@ -197,10 +197,10 @@
|
|
197
197
|
box-sizing: border-box;
|
198
198
|
}
|
199
199
|
.numInputWrapper span:hover {
|
200
|
-
background: rgba(
|
200
|
+
background: rgba(192,187,167,0.1);
|
201
201
|
}
|
202
202
|
.numInputWrapper span:active {
|
203
|
-
background: rgba(
|
203
|
+
background: rgba(192,187,167,0.2);
|
204
204
|
}
|
205
205
|
.numInputWrapper span:after {
|
206
206
|
display: block;
|
@@ -233,7 +233,7 @@
|
|
233
233
|
fill: rgba(255,255,255,0.5);
|
234
234
|
}
|
235
235
|
.numInputWrapper:hover {
|
236
|
-
background: rgba(
|
236
|
+
background: rgba(192,187,167,0.05);
|
237
237
|
}
|
238
238
|
.numInputWrapper:hover span {
|
239
239
|
opacity: 1;
|
@@ -259,7 +259,7 @@
|
|
259
259
|
padding: 0;
|
260
260
|
}
|
261
261
|
.flatpickr-current-month span.cur-month:hover {
|
262
|
-
background: rgba(
|
262
|
+
background: rgba(192,187,167,0.05);
|
263
263
|
}
|
264
264
|
.flatpickr-current-month .numInputWrapper {
|
265
265
|
width: 6ch;
|
@@ -355,8 +355,8 @@
|
|
355
355
|
.flatpickr-day.nextMonthDay:focus {
|
356
356
|
cursor: pointer;
|
357
357
|
outline: 0;
|
358
|
-
background: rgba(
|
359
|
-
border-color: rgba(
|
358
|
+
background: rgba(100,108,140,0.95);
|
359
|
+
border-color: rgba(100,108,140,0.95);
|
360
360
|
}
|
361
361
|
.flatpickr-day.today {
|
362
362
|
border-color: #eee;
|
@@ -403,7 +403,7 @@
|
|
403
403
|
}
|
404
404
|
.flatpickr-day.inRange {
|
405
405
|
border-radius: 0;
|
406
|
-
box-shadow: 5px 0 0 rgba(
|
406
|
+
box-shadow: 5px 0 0 rgba(100,108,140,0.95), -5px 0 0 rgba(100,108,140,0.95);
|
407
407
|
}
|
408
408
|
.flatpickr-day.disabled,
|
409
409
|
.flatpickr-day.disabled:hover {
|
@@ -446,7 +446,7 @@ span.flatpickr-weekday {
|
|
446
446
|
}
|
447
447
|
.flatpickr-weekwrapper .flatpickr-weeks {
|
448
448
|
padding: 1px 12px 0 12px;
|
449
|
-
box-shadow: -1px 0 0 #
|
449
|
+
box-shadow: -1px 0 0 #3f4458;
|
450
450
|
}
|
451
451
|
.flatpickr-weekwrapper .flatpickr-weekday {
|
452
452
|
float: none;
|
@@ -550,7 +550,7 @@ span.flatpickr-weekday {
|
|
550
550
|
}
|
551
551
|
.flatpickr-time .flatpickr-am-pm:hover,
|
552
552
|
.flatpickr-time .flatpickr-am-pm:focus {
|
553
|
-
background: rgba(
|
553
|
+
background: rgba(109,118,151,0.95);
|
554
554
|
}
|
555
555
|
.hasWeeks .flatpickr-days,
|
556
556
|
.hasTime .flatpickr-days {
|
@@ -15,8 +15,8 @@
|
|
15
15
|
position: absolute;
|
16
16
|
width: 315px;
|
17
17
|
box-sizing: border-box;
|
18
|
-
background: rgba(
|
19
|
-
box-shadow: 1px 0 0 #
|
18
|
+
background: rgba(63,68,88,0.95);
|
19
|
+
box-shadow: 1px 0 0 #3f4458, -1px 0 0 #3f4458, 0 1px 0 #3f4458, 0 -1px 0 #3f4458, 0 3px 13px rgba(0,0,0,0.08);
|
20
20
|
}
|
21
21
|
.flatpickr-calendar.open,
|
22
22
|
.flatpickr-calendar.inline {
|
@@ -48,7 +48,7 @@
|
|
48
48
|
}
|
49
49
|
.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
|
50
50
|
height: 40px;
|
51
|
-
border-top: 1px solid #
|
51
|
+
border-top: 1px solid #3f4458;
|
52
52
|
}
|
53
53
|
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
|
54
54
|
height: auto;
|
@@ -82,20 +82,20 @@
|
|
82
82
|
bottom: 100%;
|
83
83
|
}
|
84
84
|
.flatpickr-calendar.arrowTop:before {
|
85
|
-
border-bottom-color: #
|
85
|
+
border-bottom-color: #3f4458;
|
86
86
|
}
|
87
87
|
.flatpickr-calendar.arrowTop:after {
|
88
|
-
border-bottom-color: rgba(
|
88
|
+
border-bottom-color: rgba(63,68,88,0.95);
|
89
89
|
}
|
90
90
|
.flatpickr-calendar.arrowBottom:before,
|
91
91
|
.flatpickr-calendar.arrowBottom:after {
|
92
92
|
top: 100%;
|
93
93
|
}
|
94
94
|
.flatpickr-calendar.arrowBottom:before {
|
95
|
-
border-top-color: #
|
95
|
+
border-top-color: #3f4458;
|
96
96
|
}
|
97
97
|
.flatpickr-calendar.arrowBottom:after {
|
98
|
-
border-top-color: rgba(
|
98
|
+
border-top-color: rgba(63,68,88,0.95);
|
99
99
|
}
|
100
100
|
.flatpickr-wrapper {
|
101
101
|
position: relative;
|
@@ -197,10 +197,10 @@
|
|
197
197
|
box-sizing: border-box;
|
198
198
|
}
|
199
199
|
.numInputWrapper span:hover {
|
200
|
-
background: rgba(
|
200
|
+
background: rgba(192,187,167,0.1);
|
201
201
|
}
|
202
202
|
.numInputWrapper span:active {
|
203
|
-
background: rgba(
|
203
|
+
background: rgba(192,187,167,0.2);
|
204
204
|
}
|
205
205
|
.numInputWrapper span:after {
|
206
206
|
display: block;
|
@@ -233,7 +233,7 @@
|
|
233
233
|
fill: rgba(255,255,255,0.5);
|
234
234
|
}
|
235
235
|
.numInputWrapper:hover {
|
236
|
-
background: rgba(
|
236
|
+
background: rgba(192,187,167,0.05);
|
237
237
|
}
|
238
238
|
.numInputWrapper:hover span {
|
239
239
|
opacity: 1;
|
@@ -259,7 +259,7 @@
|
|
259
259
|
padding: 0;
|
260
260
|
}
|
261
261
|
.flatpickr-current-month span.cur-month:hover {
|
262
|
-
background: rgba(
|
262
|
+
background: rgba(192,187,167,0.05);
|
263
263
|
}
|
264
264
|
.flatpickr-current-month .numInputWrapper {
|
265
265
|
width: 6ch;
|
@@ -355,8 +355,8 @@
|
|
355
355
|
.flatpickr-day.nextMonthDay:focus {
|
356
356
|
cursor: pointer;
|
357
357
|
outline: 0;
|
358
|
-
background: rgba(
|
359
|
-
border-color: rgba(
|
358
|
+
background: rgba(100,108,140,0.95);
|
359
|
+
border-color: rgba(100,108,140,0.95);
|
360
360
|
}
|
361
361
|
.flatpickr-day.today {
|
362
362
|
border-color: #eee;
|
@@ -403,7 +403,7 @@
|
|
403
403
|
}
|
404
404
|
.flatpickr-day.inRange {
|
405
405
|
border-radius: 0;
|
406
|
-
box-shadow: -5px 0 0 rgba(
|
406
|
+
box-shadow: -5px 0 0 rgba(100,108,140,0.95), 5px 0 0 rgba(100,108,140,0.95);
|
407
407
|
}
|
408
408
|
.flatpickr-day.disabled,
|
409
409
|
.flatpickr-day.disabled:hover {
|
@@ -446,7 +446,7 @@ span.flatpickr-weekday {
|
|
446
446
|
}
|
447
447
|
.flatpickr-weekwrapper .flatpickr-weeks {
|
448
448
|
padding: 1px 12px 0 12px;
|
449
|
-
box-shadow: 1px 0 0 #
|
449
|
+
box-shadow: 1px 0 0 #3f4458;
|
450
450
|
}
|
451
451
|
.flatpickr-weekwrapper .flatpickr-weekday {
|
452
452
|
float: none;
|
@@ -550,7 +550,7 @@ span.flatpickr-weekday {
|
|
550
550
|
}
|
551
551
|
.flatpickr-time .flatpickr-am-pm:hover,
|
552
552
|
.flatpickr-time .flatpickr-am-pm:focus {
|
553
|
-
background: rgba(
|
553
|
+
background: rgba(109,118,151,0.95);
|
554
554
|
}
|
555
555
|
.hasWeeks .flatpickr-days,
|
556
556
|
.hasTime .flatpickr-days {
|