flatpickr 2.4.7.0 → 2.4.8.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: 844eceb664e44b93ce50dde2774c1ebb8f193b89
|
4
|
+
data.tar.gz: b60bfc6f0717e983004d4ff33700ece0cf0a7b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242ae8fc941374c10f186c579c4767e4da00c65358f0f9dc7b09874a9c051d95ab9f91571685ddbad6cd50ac8f37d96aeaf8dd1601fabb7e3b70c65908ab1e29
|
7
|
+
data.tar.gz: ef33f75bf97f9382721df6391bdaf39ed957d06dbb4cf429b8b66dde21d9154bf7ca05656f460e319f51dcde68c4d9e0ead110efa052ce4d2bf422710ec6a2f5
|
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.8, @license MIT */
|
6
6
|
function Flatpickr(element, config) {
|
7
7
|
var self = this;
|
8
8
|
|
@@ -12,7 +12,6 @@ function Flatpickr(element, config) {
|
|
12
12
|
self.close = close;
|
13
13
|
self._createElement = createElement;
|
14
14
|
self.destroy = destroy;
|
15
|
-
self.formatDate = formatDate;
|
16
15
|
self.isEnabled = isEnabled;
|
17
16
|
self.jumpToDate = jumpToDate;
|
18
17
|
self.open = open;
|
@@ -29,6 +28,7 @@ function Flatpickr(element, config) {
|
|
29
28
|
self.element = element;
|
30
29
|
self.instanceConfig = config || {};
|
31
30
|
self.parseDate = Flatpickr.prototype.parseDate.bind(self);
|
31
|
+
self.formatDate = Flatpickr.prototype.formatDate.bind(self);
|
32
32
|
|
33
33
|
setupFormats();
|
34
34
|
parseConfig();
|
@@ -46,7 +46,9 @@ function Flatpickr(element, config) {
|
|
46
46
|
bind();
|
47
47
|
|
48
48
|
if (self.selectedDates.length || self.config.noCalendar) {
|
49
|
-
if (self.config.enableTime)
|
49
|
+
if (self.config.enableTime) {
|
50
|
+
setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj || self.config.minDate : null);
|
51
|
+
}
|
50
52
|
updateValue();
|
51
53
|
}
|
52
54
|
|
@@ -88,8 +90,8 @@ function Flatpickr(element, config) {
|
|
88
90
|
function setHoursFromInputs() {
|
89
91
|
if (!self.config.enableTime) return;
|
90
92
|
|
91
|
-
var hours = parseInt(self.hourElement.value, 10) || 0,
|
92
|
-
minutes = parseInt(self.minuteElement.value, 10) || 0,
|
93
|
+
var hours = (parseInt(self.hourElement.value, 10) || 0) % (self.amPM ? 12 : 24),
|
94
|
+
minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60,
|
93
95
|
seconds = self.config.enableSeconds ? parseInt(self.secondElement.value, 10) || 0 : 0;
|
94
96
|
|
95
97
|
if (self.amPM) hours = hours % 12 + 12 * (self.amPM.textContent === "PM");
|
@@ -349,16 +351,21 @@ function Flatpickr(element, config) {
|
|
349
351
|
(customAppend ? self.config.appendTo : window.document.body).appendChild(self.calendarContainer);
|
350
352
|
}
|
351
353
|
|
352
|
-
function createDay(className, date, dayNumber) {
|
354
|
+
function createDay(className, date, dayNumber, i) {
|
353
355
|
var dateIsEnabled = isEnabled(date, true),
|
354
356
|
dayElement = createElement("span", "flatpickr-day " + className, date.getDate());
|
355
357
|
|
356
358
|
dayElement.dateObj = date;
|
359
|
+
dayElement.$i = i;
|
360
|
+
dayElement.setAttribute("aria-label", self.formatDate(date, "F j, Y"));
|
357
361
|
|
358
|
-
|
362
|
+
if (compareDates(date, self.now) === 0) {
|
363
|
+
self.todayDateElem = dayElement;
|
364
|
+
dayElement.classList.add("today");
|
365
|
+
}
|
359
366
|
|
360
367
|
if (dateIsEnabled) {
|
361
|
-
|
368
|
+
dayElement.tabIndex = -1;
|
362
369
|
if (isDateSelected(date)) {
|
363
370
|
dayElement.classList.add("selected");
|
364
371
|
self.selectedDateElem = dayElement;
|
@@ -388,16 +395,33 @@ function Flatpickr(element, config) {
|
|
388
395
|
return dayElement;
|
389
396
|
}
|
390
397
|
|
398
|
+
function focusOnDay(currentIndex, offset) {
|
399
|
+
if (currentIndex === undefined) return (self.todayDateElem || self.days.childNodes[0]).focus();
|
400
|
+
|
401
|
+
var newIndex = currentIndex + offset || 0,
|
402
|
+
targetNode = self.days.childNodes[newIndex];
|
403
|
+
|
404
|
+
if (targetNode) targetNode.focus();else if (offset > 0) {
|
405
|
+
self.changeMonth(1);
|
406
|
+
self.days.childNodes[newIndex % 42].focus();
|
407
|
+
} else {
|
408
|
+
self.changeMonth(-1);
|
409
|
+
self.days.childNodes[42 + newIndex].focus();
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
391
413
|
function buildDays(year, month) {
|
392
414
|
var firstOfMonth = (new Date(self.currentYear, self.currentMonth, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7,
|
393
415
|
isRangeMode = self.config.mode === "range";
|
394
416
|
|
395
417
|
self.prevMonthDays = self.utils.getDaysinMonth((self.currentMonth - 1 + 12) % 12);
|
418
|
+
self.todayDateElem = null;
|
396
419
|
|
397
420
|
var daysInMonth = self.utils.getDaysinMonth(),
|
398
421
|
days = window.document.createDocumentFragment();
|
399
422
|
|
400
|
-
var dayNumber = self.prevMonthDays + 1 - firstOfMonth
|
423
|
+
var dayNumber = self.prevMonthDays + 1 - firstOfMonth,
|
424
|
+
dayIndex = 0;
|
401
425
|
|
402
426
|
if (self.config.weekNumbers && self.weekNumbers.firstChild) self.weekNumbers.textContent = "";
|
403
427
|
|
@@ -410,18 +434,18 @@ function Flatpickr(element, config) {
|
|
410
434
|
if (self.days.firstChild) self.days.textContent = "";
|
411
435
|
|
412
436
|
// prepend days from the ending of previous month
|
413
|
-
for (; dayNumber <= self.prevMonthDays; dayNumber++) {
|
414
|
-
days.appendChild(createDay("prevMonthDay", new Date(self.currentYear, self.currentMonth - 1, dayNumber), dayNumber));
|
437
|
+
for (; dayNumber <= self.prevMonthDays; dayNumber++, dayIndex++) {
|
438
|
+
days.appendChild(createDay("prevMonthDay", new Date(self.currentYear, self.currentMonth - 1, dayNumber), dayNumber, dayIndex));
|
415
439
|
}
|
416
440
|
|
417
441
|
// Start at 1 since there is no 0th day
|
418
|
-
for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++) {
|
419
|
-
days.appendChild(createDay("", new Date(self.currentYear, self.currentMonth, dayNumber), dayNumber));
|
442
|
+
for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {
|
443
|
+
days.appendChild(createDay("", new Date(self.currentYear, self.currentMonth, dayNumber), dayNumber, dayIndex));
|
420
444
|
}
|
421
445
|
|
422
446
|
// append days from the next month
|
423
|
-
for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth; dayNum++) {
|
424
|
-
days.appendChild(createDay("nextMonthDay", new Date(self.currentYear, self.currentMonth + 1, dayNum % daysInMonth), dayNum));
|
447
|
+
for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth; dayNum++, dayIndex++) {
|
448
|
+
days.appendChild(createDay("nextMonthDay", new Date(self.currentYear, self.currentMonth + 1, dayNum % daysInMonth), dayNum, dayIndex));
|
425
449
|
}
|
426
450
|
|
427
451
|
if (isRangeMode && self.selectedDates.length === 1 && days.childNodes[0]) {
|
@@ -600,8 +624,6 @@ function Flatpickr(element, config) {
|
|
600
624
|
updateNavigationCurrentMonth();
|
601
625
|
buildDays();
|
602
626
|
|
603
|
-
if (!self.config.noCalendar) self.days.focus();
|
604
|
-
|
605
627
|
triggerEvent("MonthChange");
|
606
628
|
}
|
607
629
|
|
@@ -668,14 +690,7 @@ function Flatpickr(element, config) {
|
|
668
690
|
function isCalendarElem(elem) {
|
669
691
|
if (self.config.appendTo && self.config.appendTo.contains(elem)) return true;
|
670
692
|
|
671
|
-
|
672
|
-
while (e) {
|
673
|
-
|
674
|
-
if (e === self.calendarContainer) return true;
|
675
|
-
e = e.parentNode;
|
676
|
-
}
|
677
|
-
|
678
|
-
return false;
|
693
|
+
return self.calendarContainer.contains(elem);
|
679
694
|
}
|
680
695
|
|
681
696
|
function documentClick(e) {
|
@@ -699,15 +714,6 @@ function Flatpickr(element, config) {
|
|
699
714
|
}
|
700
715
|
}
|
701
716
|
|
702
|
-
function formatDate(frmt, dateObj) {
|
703
|
-
if (self.config.formatDate) return self.config.formatDate(frmt, dateObj);
|
704
|
-
|
705
|
-
var chars = frmt.split("");
|
706
|
-
return chars.map(function (c, i) {
|
707
|
-
return self.formats[c] && chars[i - 1] !== "\\" ? self.formats[c](dateObj) : c !== "\\" ? c : "";
|
708
|
-
}).join("");
|
709
|
-
}
|
710
|
-
|
711
717
|
function changeYear(newYear) {
|
712
718
|
if (!newYear || self.currentYearElement.min && newYear < self.currentYearElement.min || self.currentYearElement.max && newYear > self.currentYearElement.max) return;
|
713
719
|
|
@@ -757,8 +763,7 @@ function Flatpickr(element, config) {
|
|
757
763
|
}
|
758
764
|
|
759
765
|
function onKeyDown(e) {
|
760
|
-
|
761
|
-
if (e.target === (self.altInput || self.input) && e.which === 13) selectDate(e);else if (self.isOpen || self.config.inline) {
|
766
|
+
if (e.target === (self.altInput || self.input) && e.key === "Enter") selectDate(e);else if (self.isOpen || self.config.inline) {
|
762
767
|
switch (e.key) {
|
763
768
|
case "Enter":
|
764
769
|
if (self.timeContainer && self.timeContainer.contains(e.target)) updateValue();else selectDate(e);
|
@@ -767,40 +772,43 @@ function Flatpickr(element, config) {
|
|
767
772
|
|
768
773
|
case "Escape":
|
769
774
|
// escape
|
775
|
+
e.preventDefault();
|
770
776
|
self.close();
|
771
777
|
break;
|
772
778
|
|
773
779
|
case "ArrowLeft":
|
774
|
-
|
775
|
-
|
776
|
-
changeMonth(-1);
|
777
|
-
|
780
|
+
e.preventDefault();
|
781
|
+
if (!e.ctrlKey) focusOnDay(e.target.$i, -1);else {
|
782
|
+
changeMonth(-1, true);
|
783
|
+
focusOnDay(e.target.$i, 0);
|
778
784
|
}
|
779
|
-
break;
|
780
|
-
|
781
|
-
case "ArrowUp":
|
782
|
-
if (!self.timeContainer || !self.timeContainer.contains(e.target)) {
|
783
|
-
e.preventDefault();
|
784
|
-
self.currentYear++;
|
785
|
-
self.redraw();
|
786
|
-
} else updateTime(e);
|
787
785
|
|
788
786
|
break;
|
789
787
|
|
790
788
|
case "ArrowRight":
|
791
|
-
|
792
|
-
|
793
|
-
changeMonth(1);
|
794
|
-
|
789
|
+
e.preventDefault();
|
790
|
+
if (!e.ctrlKey) focusOnDay(e.target.$i, 1);else {
|
791
|
+
changeMonth(1, true);
|
792
|
+
focusOnDay(e.target.$i, 0);
|
795
793
|
}
|
794
|
+
|
795
|
+
break;
|
796
|
+
|
797
|
+
case "ArrowUp":
|
798
|
+
e.preventDefault();
|
799
|
+
if (e.ctrlKey) {
|
800
|
+
changeYear(self.currentYear + 1);
|
801
|
+
focusOnDay(e.target.$i, 0);
|
802
|
+
} else if (!self.timeContainer || !self.timeContainer.contains(e.target)) focusOnDay(e.target.$i, -7);else updateTime(e);
|
803
|
+
|
796
804
|
break;
|
797
805
|
|
798
806
|
case "ArrowDown":
|
799
|
-
|
800
|
-
|
801
|
-
self.currentYear
|
802
|
-
|
803
|
-
} else updateTime(e);
|
807
|
+
e.preventDefault();
|
808
|
+
if (e.ctrlKey) {
|
809
|
+
changeYear(self.currentYear - 1);
|
810
|
+
focusOnDay(e.target.$i, 0);
|
811
|
+
} else if (!self.timeContainer || !self.timeContainer.contains(e.target)) focusOnDay(e.target.$i, 7);else updateTime(e);
|
804
812
|
|
805
813
|
break;
|
806
814
|
|
@@ -815,6 +823,22 @@ function Flatpickr(element, config) {
|
|
815
823
|
|
816
824
|
break;
|
817
825
|
|
826
|
+
case "a":
|
827
|
+
if (e.target === self.amPM) {
|
828
|
+
self.amPM.textContent = "AM";
|
829
|
+
setHoursFromInputs();
|
830
|
+
updateValue();
|
831
|
+
}
|
832
|
+
break;
|
833
|
+
|
834
|
+
case "p":
|
835
|
+
if (e.target === self.amPM) {
|
836
|
+
self.amPM.textContent = "PM";
|
837
|
+
setHoursFromInputs();
|
838
|
+
updateValue();
|
839
|
+
}
|
840
|
+
break;
|
841
|
+
|
818
842
|
default:
|
819
843
|
break;
|
820
844
|
|
@@ -975,7 +999,9 @@ function Flatpickr(element, config) {
|
|
975
999
|
var pluginConf = self.config.plugins[_i2](self) || {};
|
976
1000
|
for (var key in pluginConf) {
|
977
1001
|
|
978
|
-
if (Array.isArray(self.config[key]) || ~hooks.indexOf(key))
|
1002
|
+
if (Array.isArray(self.config[key]) || ~hooks.indexOf(key)) {
|
1003
|
+
self.config[key] = arrayify(pluginConf[key]).map(bindToInstance).concat(self.config[key]);
|
1004
|
+
} else if (typeof userConfig[key] === "undefined") self.config[key] = pluginConf[key];
|
979
1005
|
}
|
980
1006
|
}
|
981
1007
|
|
@@ -1098,7 +1124,7 @@ function Flatpickr(element, config) {
|
|
1098
1124
|
}
|
1099
1125
|
|
1100
1126
|
if (self.config.enableTime) setTimeout(function () {
|
1101
|
-
self.hourElement.select();
|
1127
|
+
return self.hourElement.select();
|
1102
1128
|
}, 451);
|
1103
1129
|
|
1104
1130
|
if (self.config.mode === "single" && !self.config.enableTime) self.close();
|
@@ -1149,7 +1175,7 @@ function Flatpickr(element, config) {
|
|
1149
1175
|
}
|
1150
1176
|
|
1151
1177
|
function setDate(date, triggerChange, format) {
|
1152
|
-
if (!date) return self.clear();
|
1178
|
+
if (!date) return self.clear(triggerChange);
|
1153
1179
|
|
1154
1180
|
setSelectedDate(date, format);
|
1155
1181
|
|
@@ -1289,12 +1315,12 @@ function Flatpickr(element, config) {
|
|
1289
1315
|
self.mobileFormatStr = inputType === "datetime-local" ? "Y-m-d\\TH:i:S" : inputType === "date" ? "Y-m-d" : "H:i:S";
|
1290
1316
|
|
1291
1317
|
if (self.selectedDates.length) {
|
1292
|
-
self.mobileInput.defaultValue = self.mobileInput.value = formatDate(self.
|
1318
|
+
self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);
|
1293
1319
|
}
|
1294
1320
|
|
1295
|
-
if (self.config.minDate) self.mobileInput.min = formatDate("Y-m-d"
|
1321
|
+
if (self.config.minDate) self.mobileInput.min = self.formatDate(self.config.minDate, "Y-m-d");
|
1296
1322
|
|
1297
|
-
if (self.config.maxDate) self.mobileInput.max = formatDate("Y-m-d"
|
1323
|
+
if (self.config.maxDate) self.mobileInput.max = self.formatDate(self.config.maxDate, "Y-m-d");
|
1298
1324
|
|
1299
1325
|
self.input.type = "hidden";
|
1300
1326
|
if (self.config.altInput) self.altInput.type = "hidden";
|
@@ -1371,18 +1397,18 @@ function Flatpickr(element, config) {
|
|
1371
1397
|
if (!self.selectedDates.length) return self.clear();
|
1372
1398
|
|
1373
1399
|
if (self.isMobile) {
|
1374
|
-
self.mobileInput.value = self.selectedDates.length ? formatDate(self.
|
1400
|
+
self.mobileInput.value = self.selectedDates.length ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr) : "";
|
1375
1401
|
}
|
1376
1402
|
|
1377
1403
|
var joinChar = self.config.mode !== "range" ? "; " : self.l10n.rangeSeparator;
|
1378
1404
|
|
1379
1405
|
self.input.value = self.selectedDates.map(function (dObj) {
|
1380
|
-
return formatDate(self.config.dateFormat
|
1406
|
+
return self.formatDate(dObj, self.config.dateFormat);
|
1381
1407
|
}).join(joinChar);
|
1382
1408
|
|
1383
1409
|
if (self.config.altInput) {
|
1384
1410
|
self.altInput.value = self.selectedDates.map(function (dObj) {
|
1385
|
-
return formatDate(self.config.altFormat
|
1411
|
+
return self.formatDate(dObj, self.config.altFormat);
|
1386
1412
|
}).join(joinChar);
|
1387
1413
|
}
|
1388
1414
|
|
@@ -1793,6 +1819,25 @@ Flatpickr.prototype = {
|
|
1793
1819
|
}
|
1794
1820
|
},
|
1795
1821
|
|
1822
|
+
formatDate: function formatDate(dateObj, frmt) {
|
1823
|
+
var _this = this;
|
1824
|
+
|
1825
|
+
if (this.config.formatDate) {
|
1826
|
+
try {
|
1827
|
+
return this.config.formatDate(dateObj, frmt);
|
1828
|
+
} catch (e) {
|
1829
|
+
console.warn("Please swap the format string and the date object parameters in your formatDate option", "\nThe old signature will be deprecated by v2.5");
|
1830
|
+
|
1831
|
+
return this.config.formatDate(frmt, dateObj);
|
1832
|
+
}
|
1833
|
+
}
|
1834
|
+
|
1835
|
+
return frmt.split("").map(function (c, i, arr) {
|
1836
|
+
return _this.formats[c] && arr[i - 1] !== "\\" ? _this.formats[c](dateObj) : c !== "\\" ? c : "";
|
1837
|
+
}).join("");
|
1838
|
+
},
|
1839
|
+
|
1840
|
+
|
1796
1841
|
revFormat: {
|
1797
1842
|
D: function D() {},
|
1798
1843
|
F: function F(dateObj, monthName) {
|
@@ -1882,8 +1927,8 @@ Flatpickr.prototype = {
|
|
1882
1927
|
|
1883
1928
|
var date_orig = date;
|
1884
1929
|
|
1885
|
-
if (date.toFixed) // timestamp
|
1886
|
-
date = new Date(date);else if (typeof date === "string") {
|
1930
|
+
if (date.toFixed || /^\d{8}/.test(date)) // timestamp
|
1931
|
+
date = new Date(parseInt(date, 10));else if (typeof date === "string") {
|
1887
1932
|
var format = typeof givenFormat === "string" ? givenFormat : this.config.dateFormat;
|
1888
1933
|
date = date.trim();
|
1889
1934
|
|
@@ -1,13 +0,0 @@
|
|
1
|
-
.flatpickr-calendar{background:transparent;overflow:hidden;max-height:0;opacity:0;visibility:hidden;text-align:center;padding:0;animation:none;direction:rtl;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:315px;box-sizing:border-box;background:#fff;box-shadow:-1px 0 0 #e6e6e6,1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;visibility:visible;overflow:visible;max-height:640px}.flatpickr-calendar.open{display:inline-block;animation:flatpickrFadeInDown 300ms cubic-bezier(0,1,.5,1);z-index:99999}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;right:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.rightMost:after{right:auto;left:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:28px;line-height:24px;text-align:center;position:relative;user-select:none}.flatpickr-prev-month,.flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:10px;height:16px;line-height:16px;}.flatpickr-prev-month i,.flatpickr-next-month i{position:relative}.flatpickr-prev-month.flatpickr-prev-month,.flatpickr-next-month.flatpickr-prev-month{/*
|
2
|
-
/*rtl:begin:ignore*/right:calc(3.57% - 1.5px);/*
|
3
|
-
/*rtl:end:ignore*/}/*
|
4
|
-
/*rtl:begin:ignore*/
|
5
|
-
/*
|
6
|
-
/*rtl:end:ignore*/
|
7
|
-
.flatpickr-prev-month.flatpickr-next-month,.flatpickr-next-month.flatpickr-next-month{/*
|
8
|
-
/*rtl:begin:ignore*/left:calc(3.57% - 1.5px);/*
|
9
|
-
/*rtl:end:ignore*/}/*
|
10
|
-
/*rtl:begin:ignore*/
|
11
|
-
/*
|
12
|
-
/*rtl:end:ignore*/
|
13
|
-
.flatpickr-prev-month:hover,.flatpickr-next-month:hover{color:#959ea9;}.flatpickr-prev-month:hover svg,.flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-prev-month svg,.flatpickr-next-month svg{width:14px;}.flatpickr-prev-month svg path,.flatpickr-next-month svg path{transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto;}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper span{position:absolute;left:0;width:14px;padding:0 2px 0 4px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.05);box-sizing:border-box;}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute;top:33%}.numInputWrapper span.arrowUp{top:0;border-bottom:0;}.numInputWrapper span.arrowUp:after{border-right:4px solid transparent;border-left:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6)}.numInputWrapper span.arrowDown{top:50%;}.numInputWrapper span.arrowDown:after{border-right:4px solid transparent;border-left:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6)}.numInputWrapper span svg{width:inherit;height:auto;}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05);}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;right:12.5%;top:5px;display:inline-block;text-align:center;}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-right:7px;padding:0;}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block;}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;box-sizing:border-box;color:inherit;cursor:default;padding:0 .5ch 0 0;margin:0;display:inline;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:initial;border:0;border-radius:0;vertical-align:initial;}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden}.flatpickr-days,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{padding:0;outline:0;text-align:right;width:315px;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:flex;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-around;}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;flex-basis:14.2857143%;max-width:40px;height:40px;line-height:40px;margin:0;display:inline-block;position:relative;justify-content:center;text-align:center;}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9;}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;box-shadow:5px 0 0 #e6e6e6,-5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{pointer-events:none}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}span.flatpickr-weekday{cursor:default;font-size:90%;color:rgba(0,0,0,0.54);height:27.333333333333332px;line-height:24px;margin:0;background:transparent;text-align:center;display:block;float:right;width:14.28%;font-weight:bold;margin:0;padding-top:3.333333333333333px}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:right;}.flatpickr-weekwrapper .flatpickr-weeks{padding:1px 12px 0 12px;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%}.flatpickr-weekwrapper span.flatpickr-day{display:block;width:100%;max-width:none}.flatpickr-innerContainer{display:block;display:flex;box-sizing:border-box;overflow:hidden;}.flatpickr-rContainer{display:inline-block;padding:0;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;box-sizing:border-box;overflow:hidden;transition:height .33s cubic-bezier(0,1,.5,1);display:flex;}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{flex:1;width:40%;height:40px;float:right;}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;cursor:pointer;color:#393939;font-size:14px;position:relative;box-sizing:border-box;}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;display:inline-block;float:right;line-height:inherit;color:#393939;font-weight:bold;width:2%;user-select:none}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400;}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .flatpickr-am-pm:focus{background:#f0f0f0}.hasWeeks .flatpickr-days,.hasTime .flatpickr-days{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.hasWeeks .flatpickr-days{border-right:0}@media all and (-ms-high-contrast:none){.flatpickr-month{padding:0;}.flatpickr-month svg{top:0 !important}}.flatpickr-input[readonly]{cursor:pointer}@-moz-keyframes flatpickrFadeInDown{from{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:none}}@-webkit-keyframes flatpickrFadeInDown{from{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:none}}@-o-keyframes flatpickrFadeInDown{from{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:none}}@keyframes flatpickrFadeInDown{from{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:none}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatpickr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zoran
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.6.
|
156
|
+
rubygems_version: 2.6.11
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Flatpickr packaged for use in Rails projects.
|