@limetech/lime-elements 35.0.0-next.31 → 35.0.0-next.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +971 -647
- package/dist/cjs/limel-table.cjs.entry.js +3 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +1 -1
- package/dist/collection/components/table/table.css +194 -151
- package/dist/collection/components/table/table.js +8 -8
- package/dist/esm/limel-flatpickr-adapter.entry.js +971 -647
- package/dist/esm/limel-table.entry.js +3 -3
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-87a8afd2.entry.js +16 -0
- package/dist/lime-elements/{p-2542b5a3.entry.js → p-ab88cc76.entry.js} +1 -1
- package/package.json +6 -6
- package/dist/lime-elements/p-75846313.entry.js +0 -16
|
@@ -173,7 +173,7 @@ function createRange(fromRight) {
|
|
|
173
173
|
*/
|
|
174
174
|
var range = createRange();
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
var HOOKS = [
|
|
177
177
|
"onChange",
|
|
178
178
|
"onClose",
|
|
179
179
|
"onDayCreate",
|
|
@@ -187,7 +187,7 @@ const HOOKS = [
|
|
|
187
187
|
"onYearChange",
|
|
188
188
|
"onPreCalendarPosition",
|
|
189
189
|
];
|
|
190
|
-
|
|
190
|
+
var defaults = {
|
|
191
191
|
_disable: [],
|
|
192
192
|
allowInput: false,
|
|
193
193
|
allowInvalidPreload: false,
|
|
@@ -209,9 +209,11 @@ const defaults = {
|
|
|
209
209
|
disableMobile: false,
|
|
210
210
|
enableSeconds: false,
|
|
211
211
|
enableTime: false,
|
|
212
|
-
errorHandler: (err)
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
errorHandler: function (err) {
|
|
213
|
+
return typeof console !== "undefined" && console.warn(err);
|
|
214
|
+
},
|
|
215
|
+
getWeek: function (givenDate) {
|
|
216
|
+
var date = new Date(givenDate.getTime());
|
|
215
217
|
date.setHours(0, 0, 0, 0);
|
|
216
218
|
date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
|
|
217
219
|
var week1 = new Date(date.getFullYear(), 0, 4);
|
|
@@ -255,7 +257,7 @@ const defaults = {
|
|
|
255
257
|
wrap: false,
|
|
256
258
|
};
|
|
257
259
|
|
|
258
|
-
|
|
260
|
+
var english = {
|
|
259
261
|
weekdays: {
|
|
260
262
|
shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
261
263
|
longhand: [
|
|
@@ -300,8 +302,8 @@ const english = {
|
|
|
300
302
|
},
|
|
301
303
|
daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
302
304
|
firstDayOfWeek: 0,
|
|
303
|
-
ordinal: (nth)
|
|
304
|
-
|
|
305
|
+
ordinal: function (nth) {
|
|
306
|
+
var s = nth % 100;
|
|
305
307
|
if (s > 3 && s < 21)
|
|
306
308
|
return "th";
|
|
307
309
|
switch (s % 10) {
|
|
@@ -327,16 +329,23 @@ const english = {
|
|
|
327
329
|
time_24hr: false,
|
|
328
330
|
};
|
|
329
331
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
+
var pad = function (number, length) {
|
|
333
|
+
if (length === void 0) { length = 2; }
|
|
334
|
+
return ("000" + number).slice(length * -1);
|
|
335
|
+
};
|
|
336
|
+
var int = function (bool) { return (bool === true ? 1 : 0); };
|
|
332
337
|
function debounce(fn, wait) {
|
|
333
|
-
|
|
338
|
+
var t;
|
|
334
339
|
return function () {
|
|
340
|
+
var _this = this;
|
|
341
|
+
var args = arguments;
|
|
335
342
|
clearTimeout(t);
|
|
336
|
-
t = setTimeout(()
|
|
343
|
+
t = setTimeout(function () { return fn.apply(_this, args); }, wait);
|
|
337
344
|
};
|
|
338
345
|
}
|
|
339
|
-
|
|
346
|
+
var arrayify = function (obj) {
|
|
347
|
+
return obj instanceof Array ? obj : [obj];
|
|
348
|
+
};
|
|
340
349
|
|
|
341
350
|
function toggleClass(elem, className, bool) {
|
|
342
351
|
if (bool === true)
|
|
@@ -344,7 +353,7 @@ function toggleClass(elem, className, bool) {
|
|
|
344
353
|
elem.classList.remove(className);
|
|
345
354
|
}
|
|
346
355
|
function createElement$1(tag, className, content) {
|
|
347
|
-
|
|
356
|
+
var e = window.document.createElement(tag);
|
|
348
357
|
className = className || "";
|
|
349
358
|
content = content || "";
|
|
350
359
|
e.className = className;
|
|
@@ -364,7 +373,7 @@ function findParent(node, condition) {
|
|
|
364
373
|
return undefined;
|
|
365
374
|
}
|
|
366
375
|
function createNumberInput(inputClassName, opts) {
|
|
367
|
-
|
|
376
|
+
var wrapper = createElement$1("div", "numInputWrapper"), numInput = createElement$1("input", "numInput " + inputClassName), arrowUp = createElement$1("span", "arrowUp"), arrowDown = createElement$1("span", "arrowDown");
|
|
368
377
|
if (navigator.userAgent.indexOf("MSIE 9.0") === -1) {
|
|
369
378
|
numInput.type = "number";
|
|
370
379
|
}
|
|
@@ -373,7 +382,7 @@ function createNumberInput(inputClassName, opts) {
|
|
|
373
382
|
numInput.pattern = "\\d*";
|
|
374
383
|
}
|
|
375
384
|
if (opts !== undefined)
|
|
376
|
-
for (
|
|
385
|
+
for (var key in opts)
|
|
377
386
|
numInput.setAttribute(key, opts[key]);
|
|
378
387
|
wrapper.appendChild(numInput);
|
|
379
388
|
wrapper.appendChild(arrowUp);
|
|
@@ -383,7 +392,7 @@ function createNumberInput(inputClassName, opts) {
|
|
|
383
392
|
function getEventTarget(event) {
|
|
384
393
|
try {
|
|
385
394
|
if (typeof event.composedPath === "function") {
|
|
386
|
-
|
|
395
|
+
var path = event.composedPath();
|
|
387
396
|
return path[0];
|
|
388
397
|
}
|
|
389
398
|
return event.target;
|
|
@@ -393,79 +402,81 @@ function getEventTarget(event) {
|
|
|
393
402
|
}
|
|
394
403
|
}
|
|
395
404
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
405
|
+
var doNothing = function () { return undefined; };
|
|
406
|
+
var monthToStr = function (monthNumber, shorthand, locale) { return locale.months[shorthand ? "shorthand" : "longhand"][monthNumber]; };
|
|
407
|
+
var revFormat = {
|
|
399
408
|
D: doNothing,
|
|
400
409
|
F: function (dateObj, monthName, locale) {
|
|
401
410
|
dateObj.setMonth(locale.months.longhand.indexOf(monthName));
|
|
402
411
|
},
|
|
403
|
-
G: (dateObj, hour)
|
|
404
|
-
dateObj.setHours(parseFloat(hour));
|
|
412
|
+
G: function (dateObj, hour) {
|
|
413
|
+
dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));
|
|
405
414
|
},
|
|
406
|
-
H: (dateObj, hour)
|
|
415
|
+
H: function (dateObj, hour) {
|
|
407
416
|
dateObj.setHours(parseFloat(hour));
|
|
408
417
|
},
|
|
409
|
-
J: (dateObj, day)
|
|
418
|
+
J: function (dateObj, day) {
|
|
410
419
|
dateObj.setDate(parseFloat(day));
|
|
411
420
|
},
|
|
412
|
-
K: (dateObj, amPM, locale)
|
|
421
|
+
K: function (dateObj, amPM, locale) {
|
|
413
422
|
dateObj.setHours((dateObj.getHours() % 12) +
|
|
414
423
|
12 * int(new RegExp(locale.amPM[1], "i").test(amPM)));
|
|
415
424
|
},
|
|
416
425
|
M: function (dateObj, shortMonth, locale) {
|
|
417
426
|
dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));
|
|
418
427
|
},
|
|
419
|
-
S: (dateObj, seconds)
|
|
428
|
+
S: function (dateObj, seconds) {
|
|
420
429
|
dateObj.setSeconds(parseFloat(seconds));
|
|
421
430
|
},
|
|
422
|
-
U: (_, unixSeconds)
|
|
431
|
+
U: function (_, unixSeconds) { return new Date(parseFloat(unixSeconds) * 1000); },
|
|
423
432
|
W: function (dateObj, weekNum, locale) {
|
|
424
|
-
|
|
425
|
-
|
|
433
|
+
var weekNumber = parseInt(weekNum);
|
|
434
|
+
var date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);
|
|
426
435
|
date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);
|
|
427
436
|
return date;
|
|
428
437
|
},
|
|
429
|
-
Y: (dateObj, year)
|
|
438
|
+
Y: function (dateObj, year) {
|
|
430
439
|
dateObj.setFullYear(parseFloat(year));
|
|
431
440
|
},
|
|
432
|
-
Z: (_, ISODate)
|
|
433
|
-
d: (dateObj, day)
|
|
441
|
+
Z: function (_, ISODate) { return new Date(ISODate); },
|
|
442
|
+
d: function (dateObj, day) {
|
|
434
443
|
dateObj.setDate(parseFloat(day));
|
|
435
444
|
},
|
|
436
|
-
h: (dateObj, hour)
|
|
437
|
-
dateObj.setHours(parseFloat(hour));
|
|
445
|
+
h: function (dateObj, hour) {
|
|
446
|
+
dateObj.setHours((dateObj.getHours() >= 12 ? 12 : 0) + parseFloat(hour));
|
|
438
447
|
},
|
|
439
|
-
i: (dateObj, minutes)
|
|
448
|
+
i: function (dateObj, minutes) {
|
|
440
449
|
dateObj.setMinutes(parseFloat(minutes));
|
|
441
450
|
},
|
|
442
|
-
j: (dateObj, day)
|
|
451
|
+
j: function (dateObj, day) {
|
|
443
452
|
dateObj.setDate(parseFloat(day));
|
|
444
453
|
},
|
|
445
454
|
l: doNothing,
|
|
446
|
-
m: (dateObj, month)
|
|
455
|
+
m: function (dateObj, month) {
|
|
447
456
|
dateObj.setMonth(parseFloat(month) - 1);
|
|
448
457
|
},
|
|
449
|
-
n: (dateObj, month)
|
|
458
|
+
n: function (dateObj, month) {
|
|
450
459
|
dateObj.setMonth(parseFloat(month) - 1);
|
|
451
460
|
},
|
|
452
|
-
s: (dateObj, seconds)
|
|
461
|
+
s: function (dateObj, seconds) {
|
|
453
462
|
dateObj.setSeconds(parseFloat(seconds));
|
|
454
463
|
},
|
|
455
|
-
u: (_, unixMillSeconds)
|
|
464
|
+
u: function (_, unixMillSeconds) {
|
|
465
|
+
return new Date(parseFloat(unixMillSeconds));
|
|
466
|
+
},
|
|
456
467
|
w: doNothing,
|
|
457
|
-
y: (dateObj, year)
|
|
468
|
+
y: function (dateObj, year) {
|
|
458
469
|
dateObj.setFullYear(2000 + parseFloat(year));
|
|
459
470
|
},
|
|
460
471
|
};
|
|
461
|
-
|
|
462
|
-
D: "
|
|
463
|
-
F: "
|
|
472
|
+
var tokenRegex = {
|
|
473
|
+
D: "",
|
|
474
|
+
F: "",
|
|
464
475
|
G: "(\\d\\d|\\d)",
|
|
465
476
|
H: "(\\d\\d|\\d)",
|
|
466
477
|
J: "(\\d\\d|\\d)\\w+",
|
|
467
478
|
K: "",
|
|
468
|
-
M: "
|
|
479
|
+
M: "",
|
|
469
480
|
S: "(\\d\\d|\\d)",
|
|
470
481
|
U: "(.+)",
|
|
471
482
|
W: "(\\d\\d|\\d)",
|
|
@@ -475,7 +486,7 @@ const tokenRegex = {
|
|
|
475
486
|
h: "(\\d\\d|\\d)",
|
|
476
487
|
i: "(\\d\\d|\\d)",
|
|
477
488
|
j: "(\\d\\d|\\d)",
|
|
478
|
-
l: "
|
|
489
|
+
l: "",
|
|
479
490
|
m: "(\\d\\d|\\d)",
|
|
480
491
|
n: "(\\d\\d|\\d)",
|
|
481
492
|
s: "(\\d\\d|\\d)",
|
|
@@ -483,8 +494,8 @@ const tokenRegex = {
|
|
|
483
494
|
w: "(\\d\\d|\\d)",
|
|
484
495
|
y: "(\\d{2})",
|
|
485
496
|
};
|
|
486
|
-
|
|
487
|
-
Z: (date)
|
|
497
|
+
var formats = {
|
|
498
|
+
Z: function (date) { return date.toISOString(); },
|
|
488
499
|
D: function (date, locale, options) {
|
|
489
500
|
return locale.weekdays.shorthand[formats.w(date, locale, options)];
|
|
490
501
|
},
|
|
@@ -494,130 +505,151 @@ const formats = {
|
|
|
494
505
|
G: function (date, locale, options) {
|
|
495
506
|
return pad(formats.h(date, locale, options));
|
|
496
507
|
},
|
|
497
|
-
H: (date)
|
|
508
|
+
H: function (date) { return pad(date.getHours()); },
|
|
498
509
|
J: function (date, locale) {
|
|
499
510
|
return locale.ordinal !== undefined
|
|
500
511
|
? date.getDate() + locale.ordinal(date.getDate())
|
|
501
512
|
: date.getDate();
|
|
502
513
|
},
|
|
503
|
-
K: (date, locale)
|
|
514
|
+
K: function (date, locale) { return locale.amPM[int(date.getHours() > 11)]; },
|
|
504
515
|
M: function (date, locale) {
|
|
505
516
|
return monthToStr(date.getMonth(), true, locale);
|
|
506
517
|
},
|
|
507
|
-
S: (date)
|
|
508
|
-
U: (date)
|
|
518
|
+
S: function (date) { return pad(date.getSeconds()); },
|
|
519
|
+
U: function (date) { return date.getTime() / 1000; },
|
|
509
520
|
W: function (date, _, options) {
|
|
510
521
|
return options.getWeek(date);
|
|
511
522
|
},
|
|
512
|
-
Y: (date)
|
|
513
|
-
d: (date)
|
|
514
|
-
h: (date)
|
|
515
|
-
i: (date)
|
|
516
|
-
j: (date)
|
|
523
|
+
Y: function (date) { return pad(date.getFullYear(), 4); },
|
|
524
|
+
d: function (date) { return pad(date.getDate()); },
|
|
525
|
+
h: function (date) { return (date.getHours() % 12 ? date.getHours() % 12 : 12); },
|
|
526
|
+
i: function (date) { return pad(date.getMinutes()); },
|
|
527
|
+
j: function (date) { return date.getDate(); },
|
|
517
528
|
l: function (date, locale) {
|
|
518
529
|
return locale.weekdays.longhand[date.getDay()];
|
|
519
530
|
},
|
|
520
|
-
m: (date)
|
|
521
|
-
n: (date)
|
|
522
|
-
s: (date)
|
|
523
|
-
u: (date)
|
|
524
|
-
w: (date)
|
|
525
|
-
y: (date)
|
|
531
|
+
m: function (date) { return pad(date.getMonth() + 1); },
|
|
532
|
+
n: function (date) { return date.getMonth() + 1; },
|
|
533
|
+
s: function (date) { return date.getSeconds(); },
|
|
534
|
+
u: function (date) { return date.getTime(); },
|
|
535
|
+
w: function (date) { return date.getDay(); },
|
|
536
|
+
y: function (date) { return String(date.getFullYear()).substring(2); },
|
|
526
537
|
};
|
|
527
538
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
var createDateFormatter = function (_a) {
|
|
540
|
+
var _b = _a.config, config = _b === void 0 ? defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? english : _c, _d = _a.isMobile, isMobile = _d === void 0 ? false : _d;
|
|
541
|
+
return function (dateObj, frmt, overrideLocale) {
|
|
542
|
+
var locale = overrideLocale || l10n;
|
|
543
|
+
if (config.formatDate !== undefined && !isMobile) {
|
|
544
|
+
return config.formatDate(dateObj, frmt, locale);
|
|
545
|
+
}
|
|
546
|
+
return frmt
|
|
547
|
+
.split("")
|
|
548
|
+
.map(function (c, i, arr) {
|
|
549
|
+
return formats[c] && arr[i - 1] !== "\\"
|
|
550
|
+
? formats[c](dateObj, locale, config)
|
|
551
|
+
: c !== "\\"
|
|
552
|
+
? c
|
|
553
|
+
: "";
|
|
554
|
+
})
|
|
555
|
+
.join("");
|
|
556
|
+
};
|
|
541
557
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
const format = givenFormat || (config || defaults).dateFormat;
|
|
555
|
-
const datestr = String(date).trim();
|
|
556
|
-
if (datestr === "today") {
|
|
557
|
-
parsedDate = new Date();
|
|
558
|
-
timeless = true;
|
|
559
|
-
}
|
|
560
|
-
else if (/Z$/.test(datestr) ||
|
|
561
|
-
/GMT$/.test(datestr))
|
|
558
|
+
var createDateParser = function (_a) {
|
|
559
|
+
var _b = _a.config, config = _b === void 0 ? defaults : _b, _c = _a.l10n, l10n = _c === void 0 ? english : _c;
|
|
560
|
+
return function (date, givenFormat, timeless, customLocale) {
|
|
561
|
+
if (date !== 0 && !date)
|
|
562
|
+
return undefined;
|
|
563
|
+
var locale = customLocale || l10n;
|
|
564
|
+
var parsedDate;
|
|
565
|
+
var dateOrig = date;
|
|
566
|
+
if (date instanceof Date)
|
|
567
|
+
parsedDate = new Date(date.getTime());
|
|
568
|
+
else if (typeof date !== "string" &&
|
|
569
|
+
date.toFixed !== undefined)
|
|
562
570
|
parsedDate = new Date(date);
|
|
563
|
-
else if (
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
571
|
+
else if (typeof date === "string") {
|
|
572
|
+
var format = givenFormat || (config || defaults).dateFormat;
|
|
573
|
+
var datestr = String(date).trim();
|
|
574
|
+
if (datestr === "today") {
|
|
575
|
+
parsedDate = new Date();
|
|
576
|
+
timeless = true;
|
|
577
|
+
}
|
|
578
|
+
else if (config && config.parseDate) {
|
|
579
|
+
parsedDate = config.parseDate(date, format);
|
|
580
|
+
}
|
|
581
|
+
else if (/Z$/.test(datestr) ||
|
|
582
|
+
/GMT$/.test(datestr)) {
|
|
583
|
+
parsedDate = new Date(date);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
var matched = void 0, ops = [];
|
|
587
|
+
for (var i = 0, matchIndex = 0, regexStr = ""; i < format.length; i++) {
|
|
588
|
+
var token = format[i];
|
|
589
|
+
var isBackSlash = token === "\\";
|
|
590
|
+
var escaped = format[i - 1] === "\\" || isBackSlash;
|
|
591
|
+
if (tokenRegex[token] && !escaped) {
|
|
592
|
+
regexStr += tokenRegex[token];
|
|
593
|
+
var match = new RegExp(regexStr).exec(date);
|
|
594
|
+
if (match && (matched = true)) {
|
|
595
|
+
ops[token !== "Y" ? "push" : "unshift"]({
|
|
596
|
+
fn: revFormat[token],
|
|
597
|
+
val: match[++matchIndex],
|
|
598
|
+
});
|
|
599
|
+
}
|
|
583
600
|
}
|
|
601
|
+
else if (!isBackSlash)
|
|
602
|
+
regexStr += ".";
|
|
584
603
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
604
|
+
parsedDate =
|
|
605
|
+
!config || !config.noCalendar
|
|
606
|
+
? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)
|
|
607
|
+
: new Date(new Date().setHours(0, 0, 0, 0));
|
|
608
|
+
ops.forEach(function (_a) {
|
|
609
|
+
var fn = _a.fn, val = _a.val;
|
|
610
|
+
return (parsedDate = fn(parsedDate, val, locale) || parsedDate);
|
|
611
|
+
});
|
|
612
|
+
parsedDate = matched ? parsedDate : undefined;
|
|
588
613
|
}
|
|
589
|
-
parsedDate = matched ? parsedDate : undefined;
|
|
590
614
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
parsedDate
|
|
598
|
-
|
|
615
|
+
if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {
|
|
616
|
+
config.errorHandler(new Error("Invalid date provided: " + dateOrig));
|
|
617
|
+
return undefined;
|
|
618
|
+
}
|
|
619
|
+
if (timeless === true)
|
|
620
|
+
parsedDate.setHours(0, 0, 0, 0);
|
|
621
|
+
return parsedDate;
|
|
622
|
+
};
|
|
599
623
|
};
|
|
600
|
-
function compareDates(date1, date2, timeless
|
|
624
|
+
function compareDates(date1, date2, timeless) {
|
|
625
|
+
if (timeless === void 0) { timeless = true; }
|
|
601
626
|
if (timeless !== false) {
|
|
602
627
|
return (new Date(date1.getTime()).setHours(0, 0, 0, 0) -
|
|
603
628
|
new Date(date2.getTime()).setHours(0, 0, 0, 0));
|
|
604
629
|
}
|
|
605
630
|
return date1.getTime() - date2.getTime();
|
|
606
631
|
}
|
|
607
|
-
|
|
632
|
+
var isBetween = function (ts, ts1, ts2) {
|
|
608
633
|
return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);
|
|
609
634
|
};
|
|
610
|
-
|
|
635
|
+
var calculateSecondsSinceMidnight = function (hours, minutes, seconds) {
|
|
636
|
+
return hours * 3600 + minutes * 60 + seconds;
|
|
637
|
+
};
|
|
638
|
+
var parseSeconds = function (secondsSinceMidnight) {
|
|
639
|
+
var hours = Math.floor(secondsSinceMidnight / 3600), minutes = (secondsSinceMidnight - hours * 3600) / 60;
|
|
640
|
+
return [hours, minutes, secondsSinceMidnight - hours * 3600 - minutes * 60];
|
|
641
|
+
};
|
|
642
|
+
var duration = {
|
|
611
643
|
DAY: 86400000,
|
|
612
644
|
};
|
|
613
645
|
function getDefaultHours(config) {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
646
|
+
var hours = config.defaultHour;
|
|
647
|
+
var minutes = config.defaultMinute;
|
|
648
|
+
var seconds = config.defaultSeconds;
|
|
617
649
|
if (config.minDate !== undefined) {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
650
|
+
var minHour = config.minDate.getHours();
|
|
651
|
+
var minMinutes = config.minDate.getMinutes();
|
|
652
|
+
var minSeconds = config.minDate.getSeconds();
|
|
621
653
|
if (hours < minHour) {
|
|
622
654
|
hours = minHour;
|
|
623
655
|
}
|
|
@@ -628,35 +660,61 @@ function getDefaultHours(config) {
|
|
|
628
660
|
seconds = config.minDate.getSeconds();
|
|
629
661
|
}
|
|
630
662
|
if (config.maxDate !== undefined) {
|
|
631
|
-
|
|
632
|
-
|
|
663
|
+
var maxHr = config.maxDate.getHours();
|
|
664
|
+
var maxMinutes = config.maxDate.getMinutes();
|
|
633
665
|
hours = Math.min(hours, maxHr);
|
|
634
666
|
if (hours === maxHr)
|
|
635
667
|
minutes = Math.min(maxMinutes, minutes);
|
|
636
668
|
if (hours === maxHr && minutes === maxMinutes)
|
|
637
669
|
seconds = config.maxDate.getSeconds();
|
|
638
670
|
}
|
|
639
|
-
return { hours, minutes, seconds };
|
|
671
|
+
return { hours: hours, minutes: minutes, seconds: seconds };
|
|
640
672
|
}
|
|
641
673
|
|
|
642
674
|
if (typeof Object.assign !== "function") {
|
|
643
|
-
Object.assign = function (target
|
|
675
|
+
Object.assign = function (target) {
|
|
676
|
+
var args = [];
|
|
677
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
678
|
+
args[_i - 1] = arguments[_i];
|
|
679
|
+
}
|
|
644
680
|
if (!target) {
|
|
645
681
|
throw TypeError("Cannot convert undefined or null to object");
|
|
646
682
|
}
|
|
647
|
-
|
|
683
|
+
var _loop_1 = function (source) {
|
|
648
684
|
if (source) {
|
|
649
|
-
Object.keys(source).forEach((key)
|
|
685
|
+
Object.keys(source).forEach(function (key) { return (target[key] = source[key]); });
|
|
650
686
|
}
|
|
687
|
+
};
|
|
688
|
+
for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
|
|
689
|
+
var source = args_1[_a];
|
|
690
|
+
_loop_1(source);
|
|
651
691
|
}
|
|
652
692
|
return target;
|
|
653
693
|
};
|
|
654
694
|
}
|
|
655
695
|
|
|
656
|
-
|
|
696
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
697
|
+
__assign = Object.assign || function(t) {
|
|
698
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
699
|
+
s = arguments[i];
|
|
700
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
701
|
+
t[p] = s[p];
|
|
702
|
+
}
|
|
703
|
+
return t;
|
|
704
|
+
};
|
|
705
|
+
return __assign.apply(this, arguments);
|
|
706
|
+
};
|
|
707
|
+
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
|
|
708
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
709
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
710
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
711
|
+
r[k] = a[j];
|
|
712
|
+
return r;
|
|
713
|
+
};
|
|
714
|
+
var DEBOUNCED_CHANGE_MS = 300;
|
|
657
715
|
function FlatpickrInstance(element, instanceConfig) {
|
|
658
|
-
|
|
659
|
-
config:
|
|
716
|
+
var self = {
|
|
717
|
+
config: __assign(__assign({}, defaults), flatpickr.defaultConfig),
|
|
660
718
|
l10n: english,
|
|
661
719
|
};
|
|
662
720
|
self.parseDate = createDateParser({ config: self.config, l10n: self.l10n });
|
|
@@ -670,10 +728,13 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
670
728
|
self.changeYear = changeYear;
|
|
671
729
|
self.clear = clear;
|
|
672
730
|
self.close = close;
|
|
731
|
+
self.onMouseOver = onMouseOver;
|
|
673
732
|
self._createElement = createElement$1;
|
|
733
|
+
self.createDay = createDay;
|
|
674
734
|
self.destroy = destroy;
|
|
675
735
|
self.isEnabled = isEnabled;
|
|
676
736
|
self.jumpToDate = jumpToDate;
|
|
737
|
+
self.updateValue = updateValue;
|
|
677
738
|
self.open = open;
|
|
678
739
|
self.redraw = redraw;
|
|
679
740
|
self.set = set;
|
|
@@ -681,7 +742,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
681
742
|
self.toggle = toggle;
|
|
682
743
|
function setupHelperFunctions() {
|
|
683
744
|
self.utils = {
|
|
684
|
-
getDaysInMonth(month
|
|
745
|
+
getDaysInMonth: function (month, yr) {
|
|
746
|
+
if (month === void 0) { month = self.currentMonth; }
|
|
747
|
+
if (yr === void 0) { yr = self.currentYear; }
|
|
685
748
|
if (month === 1 && ((yr % 4 === 0 && yr % 100 !== 0) || yr % 400 === 0))
|
|
686
749
|
return 29;
|
|
687
750
|
return self.l10n.daysInMonth[month];
|
|
@@ -706,17 +769,21 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
706
769
|
updateValue(false);
|
|
707
770
|
}
|
|
708
771
|
setCalendarWidth();
|
|
709
|
-
|
|
772
|
+
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
710
773
|
if (!self.isMobile && isSafari) {
|
|
711
774
|
positionCalendar();
|
|
712
775
|
}
|
|
713
776
|
triggerEvent("onReady");
|
|
714
777
|
}
|
|
778
|
+
function getClosestActiveElement() {
|
|
779
|
+
var _a;
|
|
780
|
+
return ((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode()).activeElement || document.activeElement;
|
|
781
|
+
}
|
|
715
782
|
function bindToInstance(fn) {
|
|
716
783
|
return fn.bind(self);
|
|
717
784
|
}
|
|
718
785
|
function setCalendarWidth() {
|
|
719
|
-
|
|
786
|
+
var config = self.config;
|
|
720
787
|
if (config.weekNumbers === false && config.showMonths === 1) {
|
|
721
788
|
return;
|
|
722
789
|
}
|
|
@@ -727,7 +794,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
727
794
|
self.calendarContainer.style.display = "block";
|
|
728
795
|
}
|
|
729
796
|
if (self.daysContainer !== undefined) {
|
|
730
|
-
|
|
797
|
+
var daysWidth = (self.days.offsetWidth + 1) * config.showMonths;
|
|
731
798
|
self.daysContainer.style.width = daysWidth + "px";
|
|
732
799
|
self.calendarContainer.style.width =
|
|
733
800
|
daysWidth +
|
|
@@ -743,11 +810,11 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
743
810
|
}
|
|
744
811
|
function updateTime(e) {
|
|
745
812
|
if (self.selectedDates.length === 0) {
|
|
746
|
-
|
|
813
|
+
var defaultDate = self.config.minDate === undefined ||
|
|
747
814
|
compareDates(new Date(), self.config.minDate) >= 0
|
|
748
815
|
? new Date()
|
|
749
816
|
: new Date(self.config.minDate.getTime());
|
|
750
|
-
|
|
817
|
+
var defaults = getDefaultHours(self.config);
|
|
751
818
|
defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());
|
|
752
819
|
self.selectedDates = [defaultDate];
|
|
753
820
|
self.latestSelectedDateObj = defaultDate;
|
|
@@ -755,10 +822,17 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
755
822
|
if (e !== undefined && e.type !== "blur") {
|
|
756
823
|
timeWrapper(e);
|
|
757
824
|
}
|
|
758
|
-
|
|
759
|
-
|
|
825
|
+
var valueFromInput = self._input.value;
|
|
826
|
+
var dateFromInput = self.parseDate(valueFromInput);
|
|
827
|
+
var latestDate = self.latestSelectedDateObj;
|
|
828
|
+
if (valueFromInput && latestDate && (dateFromInput === null || dateFromInput === void 0 ? void 0 : dateFromInput.getTime()) !== (latestDate === null || latestDate === void 0 ? void 0 : latestDate.getTime())) {
|
|
829
|
+
setDate(dateFromInput);
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
setHoursFromInputs();
|
|
833
|
+
}
|
|
760
834
|
updateValue();
|
|
761
|
-
if (self._input.value !==
|
|
835
|
+
if (self._input.value !== valueFromInput) {
|
|
762
836
|
self._debouncedChange();
|
|
763
837
|
}
|
|
764
838
|
}
|
|
@@ -777,48 +851,63 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
777
851
|
function setHoursFromInputs() {
|
|
778
852
|
if (self.hourElement === undefined || self.minuteElement === undefined)
|
|
779
853
|
return;
|
|
780
|
-
|
|
854
|
+
var hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24, minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60, seconds = self.secondElement !== undefined
|
|
781
855
|
? (parseInt(self.secondElement.value, 10) || 0) % 60
|
|
782
856
|
: 0;
|
|
783
857
|
if (self.amPM !== undefined) {
|
|
784
858
|
hours = ampm2military(hours, self.amPM.textContent);
|
|
785
859
|
}
|
|
786
|
-
|
|
860
|
+
var limitMinHours = self.config.minTime !== undefined ||
|
|
787
861
|
(self.config.minDate &&
|
|
788
862
|
self.minDateHasTime &&
|
|
789
863
|
self.latestSelectedDateObj &&
|
|
790
864
|
compareDates(self.latestSelectedDateObj, self.config.minDate, true) ===
|
|
791
865
|
0);
|
|
792
|
-
|
|
866
|
+
var limitMaxHours = self.config.maxTime !== undefined ||
|
|
793
867
|
(self.config.maxDate &&
|
|
794
868
|
self.maxDateHasTime &&
|
|
795
869
|
self.latestSelectedDateObj &&
|
|
796
870
|
compareDates(self.latestSelectedDateObj, self.config.maxDate, true) ===
|
|
797
871
|
0);
|
|
798
|
-
if (
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
872
|
+
if (self.config.maxTime !== undefined &&
|
|
873
|
+
self.config.minTime !== undefined &&
|
|
874
|
+
self.config.minTime > self.config.maxTime) {
|
|
875
|
+
var minBound = calculateSecondsSinceMidnight(self.config.minTime.getHours(), self.config.minTime.getMinutes(), self.config.minTime.getSeconds());
|
|
876
|
+
var maxBound = calculateSecondsSinceMidnight(self.config.maxTime.getHours(), self.config.maxTime.getMinutes(), self.config.maxTime.getSeconds());
|
|
877
|
+
var currentTime = calculateSecondsSinceMidnight(hours, minutes, seconds);
|
|
878
|
+
if (currentTime > maxBound && currentTime < minBound) {
|
|
879
|
+
var result = parseSeconds(minBound);
|
|
880
|
+
hours = result[0];
|
|
881
|
+
minutes = result[1];
|
|
882
|
+
seconds = result[2];
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
if (limitMaxHours) {
|
|
887
|
+
var maxTime = self.config.maxTime !== undefined
|
|
888
|
+
? self.config.maxTime
|
|
889
|
+
: self.config.maxDate;
|
|
890
|
+
hours = Math.min(hours, maxTime.getHours());
|
|
891
|
+
if (hours === maxTime.getHours())
|
|
892
|
+
minutes = Math.min(minutes, maxTime.getMinutes());
|
|
893
|
+
if (minutes === maxTime.getMinutes())
|
|
894
|
+
seconds = Math.min(seconds, maxTime.getSeconds());
|
|
895
|
+
}
|
|
896
|
+
if (limitMinHours) {
|
|
897
|
+
var minTime = self.config.minTime !== undefined
|
|
898
|
+
? self.config.minTime
|
|
899
|
+
: self.config.minDate;
|
|
900
|
+
hours = Math.max(hours, minTime.getHours());
|
|
901
|
+
if (hours === minTime.getHours() && minutes < minTime.getMinutes())
|
|
902
|
+
minutes = minTime.getMinutes();
|
|
903
|
+
if (minutes === minTime.getMinutes())
|
|
904
|
+
seconds = Math.max(seconds, minTime.getSeconds());
|
|
905
|
+
}
|
|
817
906
|
}
|
|
818
907
|
setHours(hours, minutes, seconds);
|
|
819
908
|
}
|
|
820
909
|
function setHoursFromDate(dateObj) {
|
|
821
|
-
|
|
910
|
+
var date = dateObj || self.latestSelectedDateObj;
|
|
822
911
|
if (date) {
|
|
823
912
|
setHours(date.getHours(), date.getMinutes(), date.getSeconds());
|
|
824
913
|
}
|
|
@@ -839,8 +928,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
839
928
|
self.secondElement.value = pad(seconds);
|
|
840
929
|
}
|
|
841
930
|
function onYearInput(event) {
|
|
842
|
-
|
|
843
|
-
|
|
931
|
+
var eventTarget = getEventTarget(event);
|
|
932
|
+
var year = parseInt(eventTarget.value) + (event.delta || 0);
|
|
844
933
|
if (year / 1000 > 1 ||
|
|
845
934
|
(event.key === "Enter" && !/[^\d]/.test(year.toString()))) {
|
|
846
935
|
changeYear(year);
|
|
@@ -848,12 +937,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
848
937
|
}
|
|
849
938
|
function bind(element, event, handler, options) {
|
|
850
939
|
if (event instanceof Array)
|
|
851
|
-
return event.forEach((ev)
|
|
940
|
+
return event.forEach(function (ev) { return bind(element, ev, handler, options); });
|
|
852
941
|
if (element instanceof Array)
|
|
853
|
-
return element.forEach((el)
|
|
942
|
+
return element.forEach(function (el) { return bind(el, event, handler, options); });
|
|
854
943
|
element.addEventListener(event, handler, options);
|
|
855
944
|
self._handlers.push({
|
|
856
|
-
remove: ()
|
|
945
|
+
remove: function () { return element.removeEventListener(event, handler, options); },
|
|
857
946
|
});
|
|
858
947
|
}
|
|
859
948
|
function triggerChange() {
|
|
@@ -861,22 +950,27 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
861
950
|
}
|
|
862
951
|
function bindEvents() {
|
|
863
952
|
if (self.config.wrap) {
|
|
864
|
-
["open", "close", "toggle", "clear"].forEach((evt)
|
|
865
|
-
Array.prototype.forEach.call(self.element.querySelectorAll(
|
|
953
|
+
["open", "close", "toggle", "clear"].forEach(function (evt) {
|
|
954
|
+
Array.prototype.forEach.call(self.element.querySelectorAll("[data-" + evt + "]"), function (el) {
|
|
955
|
+
return bind(el, "click", self[evt]);
|
|
956
|
+
});
|
|
866
957
|
});
|
|
867
958
|
}
|
|
868
959
|
if (self.isMobile) {
|
|
869
960
|
setupMobile();
|
|
870
961
|
return;
|
|
871
962
|
}
|
|
872
|
-
|
|
963
|
+
var debouncedResize = debounce(onResize, 50);
|
|
873
964
|
self._debouncedChange = debounce(triggerChange, DEBOUNCED_CHANGE_MS);
|
|
874
965
|
if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent))
|
|
875
|
-
bind(self.daysContainer, "mouseover", (e)
|
|
966
|
+
bind(self.daysContainer, "mouseover", function (e) {
|
|
876
967
|
if (self.config.mode === "range")
|
|
877
968
|
onMouseOver(getEventTarget(e));
|
|
878
969
|
});
|
|
879
|
-
bind(
|
|
970
|
+
bind(self._input, "keydown", onKeyDown);
|
|
971
|
+
if (self.calendarContainer !== undefined) {
|
|
972
|
+
bind(self.calendarContainer, "keydown", onKeyDown);
|
|
973
|
+
}
|
|
880
974
|
if (!self.config.inline && !self.config.static)
|
|
881
975
|
bind(window, "resize", debouncedResize);
|
|
882
976
|
if (window.ontouchstart !== undefined)
|
|
@@ -896,17 +990,18 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
896
990
|
if (self.timeContainer !== undefined &&
|
|
897
991
|
self.minuteElement !== undefined &&
|
|
898
992
|
self.hourElement !== undefined) {
|
|
899
|
-
|
|
993
|
+
var selText = function (e) {
|
|
994
|
+
return getEventTarget(e).select();
|
|
995
|
+
};
|
|
900
996
|
bind(self.timeContainer, ["increment"], updateTime);
|
|
901
997
|
bind(self.timeContainer, "blur", updateTime, { capture: true });
|
|
902
998
|
bind(self.timeContainer, "click", timeIncrement);
|
|
903
999
|
bind([self.hourElement, self.minuteElement], ["focus", "click"], selText);
|
|
904
1000
|
if (self.secondElement !== undefined)
|
|
905
|
-
bind(self.secondElement, "focus", ()
|
|
1001
|
+
bind(self.secondElement, "focus", function () { return self.secondElement && self.secondElement.select(); });
|
|
906
1002
|
if (self.amPM !== undefined) {
|
|
907
|
-
bind(self.amPM, "click", (e)
|
|
1003
|
+
bind(self.amPM, "click", function (e) {
|
|
908
1004
|
updateTime(e);
|
|
909
|
-
triggerChange();
|
|
910
1005
|
});
|
|
911
1006
|
}
|
|
912
1007
|
}
|
|
@@ -915,7 +1010,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
915
1010
|
}
|
|
916
1011
|
}
|
|
917
1012
|
function jumpToDate(jumpDate, triggerChange) {
|
|
918
|
-
|
|
1013
|
+
var jumpTo = jumpDate !== undefined
|
|
919
1014
|
? self.parseDate(jumpDate)
|
|
920
1015
|
: self.latestSelectedDateObj ||
|
|
921
1016
|
(self.config.minDate && self.config.minDate > self.now
|
|
@@ -923,8 +1018,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
923
1018
|
: self.config.maxDate && self.config.maxDate < self.now
|
|
924
1019
|
? self.config.maxDate
|
|
925
1020
|
: self.now);
|
|
926
|
-
|
|
927
|
-
|
|
1021
|
+
var oldYear = self.currentYear;
|
|
1022
|
+
var oldMonth = self.currentMonth;
|
|
928
1023
|
try {
|
|
929
1024
|
if (jumpTo !== undefined) {
|
|
930
1025
|
self.currentYear = jumpTo.getFullYear();
|
|
@@ -946,27 +1041,27 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
946
1041
|
self.redraw();
|
|
947
1042
|
}
|
|
948
1043
|
function timeIncrement(e) {
|
|
949
|
-
|
|
1044
|
+
var eventTarget = getEventTarget(e);
|
|
950
1045
|
if (~eventTarget.className.indexOf("arrow"))
|
|
951
1046
|
incrementNumInput(e, eventTarget.classList.contains("arrowUp") ? 1 : -1);
|
|
952
1047
|
}
|
|
953
1048
|
function incrementNumInput(e, delta, inputElem) {
|
|
954
|
-
|
|
955
|
-
|
|
1049
|
+
var target = e && getEventTarget(e);
|
|
1050
|
+
var input = inputElem ||
|
|
956
1051
|
(target && target.parentNode && target.parentNode.firstChild);
|
|
957
|
-
|
|
1052
|
+
var event = createEvent("increment");
|
|
958
1053
|
event.delta = delta;
|
|
959
1054
|
input && input.dispatchEvent(event);
|
|
960
1055
|
}
|
|
961
1056
|
function build() {
|
|
962
|
-
|
|
1057
|
+
var fragment = window.document.createDocumentFragment();
|
|
963
1058
|
self.calendarContainer = createElement$1("div", "flatpickr-calendar");
|
|
964
1059
|
self.calendarContainer.tabIndex = -1;
|
|
965
1060
|
if (!self.config.noCalendar) {
|
|
966
1061
|
fragment.appendChild(buildMonthNav());
|
|
967
1062
|
self.innerContainer = createElement$1("div", "flatpickr-innerContainer");
|
|
968
1063
|
if (self.config.weekNumbers) {
|
|
969
|
-
|
|
1064
|
+
var _a = buildWeeks(), weekWrapper = _a.weekWrapper, weekNumbers = _a.weekNumbers;
|
|
970
1065
|
self.innerContainer.appendChild(weekWrapper);
|
|
971
1066
|
self.weekNumbers = weekNumbers;
|
|
972
1067
|
self.weekWrapper = weekWrapper;
|
|
@@ -989,7 +1084,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
989
1084
|
toggleClass(self.calendarContainer, "animate", self.config.animate === true);
|
|
990
1085
|
toggleClass(self.calendarContainer, "multiMonth", self.config.showMonths > 1);
|
|
991
1086
|
self.calendarContainer.appendChild(fragment);
|
|
992
|
-
|
|
1087
|
+
var customAppend = self.config.appendTo !== undefined &&
|
|
993
1088
|
self.config.appendTo.nodeType !== undefined;
|
|
994
1089
|
if (self.config.inline || self.config.static) {
|
|
995
1090
|
self.calendarContainer.classList.add(self.config.inline ? "inline" : "static");
|
|
@@ -1000,7 +1095,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1000
1095
|
self.config.appendTo.appendChild(self.calendarContainer);
|
|
1001
1096
|
}
|
|
1002
1097
|
if (self.config.static) {
|
|
1003
|
-
|
|
1098
|
+
var wrapper = createElement$1("div", "flatpickr-wrapper");
|
|
1004
1099
|
if (self.element.parentNode)
|
|
1005
1100
|
self.element.parentNode.insertBefore(wrapper, self.element);
|
|
1006
1101
|
wrapper.appendChild(self.element);
|
|
@@ -1015,7 +1110,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1015
1110
|
: window.document.body).appendChild(self.calendarContainer);
|
|
1016
1111
|
}
|
|
1017
1112
|
function createDay(className, date, dayNumber, i) {
|
|
1018
|
-
|
|
1113
|
+
var dateIsEnabled = isEnabled(date, true), dayElement = createElement$1("span", className, date.getDate().toString());
|
|
1019
1114
|
dayElement.dateObj = date;
|
|
1020
1115
|
dayElement.$i = i;
|
|
1021
1116
|
dayElement.setAttribute("aria-label", self.formatDate(date, self.config.ariaDateFormat));
|
|
@@ -1062,14 +1157,14 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1062
1157
|
onMouseOver(targetNode);
|
|
1063
1158
|
}
|
|
1064
1159
|
function getFirstAvailableDay(delta) {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
for (
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
for (
|
|
1072
|
-
|
|
1160
|
+
var startMonth = delta > 0 ? 0 : self.config.showMonths - 1;
|
|
1161
|
+
var endMonth = delta > 0 ? self.config.showMonths : -1;
|
|
1162
|
+
for (var m = startMonth; m != endMonth; m += delta) {
|
|
1163
|
+
var month = self.daysContainer.children[m];
|
|
1164
|
+
var startIndex = delta > 0 ? 0 : month.children.length - 1;
|
|
1165
|
+
var endIndex = delta > 0 ? month.children.length : -1;
|
|
1166
|
+
for (var i = startIndex; i != endIndex; i += delta) {
|
|
1167
|
+
var c = month.children[i];
|
|
1073
1168
|
if (c.className.indexOf("hidden") === -1 && isEnabled(c.dateObj))
|
|
1074
1169
|
return c;
|
|
1075
1170
|
}
|
|
@@ -1077,21 +1172,21 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1077
1172
|
return undefined;
|
|
1078
1173
|
}
|
|
1079
1174
|
function getNextAvailableDay(current, delta) {
|
|
1080
|
-
|
|
1175
|
+
var givenMonth = current.className.indexOf("Month") === -1
|
|
1081
1176
|
? current.dateObj.getMonth()
|
|
1082
1177
|
: self.currentMonth;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
for (
|
|
1086
|
-
|
|
1087
|
-
|
|
1178
|
+
var endMonth = delta > 0 ? self.config.showMonths : -1;
|
|
1179
|
+
var loopDelta = delta > 0 ? 1 : -1;
|
|
1180
|
+
for (var m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {
|
|
1181
|
+
var month = self.daysContainer.children[m];
|
|
1182
|
+
var startIndex = givenMonth - self.currentMonth === m
|
|
1088
1183
|
? current.$i + delta
|
|
1089
1184
|
: delta < 0
|
|
1090
1185
|
? month.children.length - 1
|
|
1091
1186
|
: 0;
|
|
1092
|
-
|
|
1093
|
-
for (
|
|
1094
|
-
|
|
1187
|
+
var numMonthDays = month.children.length;
|
|
1188
|
+
for (var i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {
|
|
1189
|
+
var c = month.children[i];
|
|
1095
1190
|
if (c.className.indexOf("hidden") === -1 &&
|
|
1096
1191
|
isEnabled(c.dateObj) &&
|
|
1097
1192
|
Math.abs(current.$i - i) >= Math.abs(delta))
|
|
@@ -1103,11 +1198,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1103
1198
|
return undefined;
|
|
1104
1199
|
}
|
|
1105
1200
|
function focusOnDay(current, offset) {
|
|
1106
|
-
|
|
1107
|
-
|
|
1201
|
+
var activeElement = getClosestActiveElement();
|
|
1202
|
+
var dayFocused = isInView(activeElement || document.body);
|
|
1203
|
+
var startElem = current !== undefined
|
|
1108
1204
|
? current
|
|
1109
1205
|
: dayFocused
|
|
1110
|
-
?
|
|
1206
|
+
? activeElement
|
|
1111
1207
|
: self.selectedDateElem !== undefined && isInView(self.selectedDateElem)
|
|
1112
1208
|
? self.selectedDateElem
|
|
1113
1209
|
: self.todayDateElem !== undefined && isInView(self.todayDateElem)
|
|
@@ -1124,21 +1220,21 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1124
1220
|
}
|
|
1125
1221
|
}
|
|
1126
1222
|
function buildMonthDays(year, month) {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1223
|
+
var firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;
|
|
1224
|
+
var prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);
|
|
1225
|
+
var daysInMonth = self.utils.getDaysInMonth(month, year), days = window.document.createDocumentFragment(), isMultiMonth = self.config.showMonths > 1, prevMonthDayClass = isMultiMonth ? "prevMonthDay hidden" : "prevMonthDay", nextMonthDayClass = isMultiMonth ? "nextMonthDay hidden" : "nextMonthDay";
|
|
1226
|
+
var dayNumber = prevMonthDays + 1 - firstOfMonth, dayIndex = 0;
|
|
1131
1227
|
for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {
|
|
1132
|
-
days.appendChild(createDay(prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));
|
|
1228
|
+
days.appendChild(createDay("flatpickr-day " + prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));
|
|
1133
1229
|
}
|
|
1134
1230
|
for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {
|
|
1135
|
-
days.appendChild(createDay("", new Date(year, month, dayNumber), dayNumber, dayIndex));
|
|
1231
|
+
days.appendChild(createDay("flatpickr-day", new Date(year, month, dayNumber), dayNumber, dayIndex));
|
|
1136
1232
|
}
|
|
1137
|
-
for (
|
|
1233
|
+
for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth &&
|
|
1138
1234
|
(self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {
|
|
1139
|
-
days.appendChild(createDay(nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));
|
|
1235
|
+
days.appendChild(createDay("flatpickr-day " + nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));
|
|
1140
1236
|
}
|
|
1141
|
-
|
|
1237
|
+
var dayContainer = createElement$1("div", "dayContainer");
|
|
1142
1238
|
dayContainer.appendChild(days);
|
|
1143
1239
|
return dayContainer;
|
|
1144
1240
|
}
|
|
@@ -1149,9 +1245,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1149
1245
|
clearNode(self.daysContainer);
|
|
1150
1246
|
if (self.weekNumbers)
|
|
1151
1247
|
clearNode(self.weekNumbers);
|
|
1152
|
-
|
|
1153
|
-
for (
|
|
1154
|
-
|
|
1248
|
+
var frag = document.createDocumentFragment();
|
|
1249
|
+
for (var i = 0; i < self.config.showMonths; i++) {
|
|
1250
|
+
var d = new Date(self.currentYear, self.currentMonth, 1);
|
|
1155
1251
|
d.setMonth(self.currentMonth + i);
|
|
1156
1252
|
frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));
|
|
1157
1253
|
}
|
|
@@ -1165,7 +1261,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1165
1261
|
if (self.config.showMonths > 1 ||
|
|
1166
1262
|
self.config.monthSelectorType !== "dropdown")
|
|
1167
1263
|
return;
|
|
1168
|
-
|
|
1264
|
+
var shouldBuildMonth = function (month) {
|
|
1169
1265
|
if (self.config.minDate !== undefined &&
|
|
1170
1266
|
self.currentYear === self.config.minDate.getFullYear() &&
|
|
1171
1267
|
month < self.config.minDate.getMonth()) {
|
|
@@ -1177,10 +1273,10 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1177
1273
|
};
|
|
1178
1274
|
self.monthsDropdownContainer.tabIndex = -1;
|
|
1179
1275
|
self.monthsDropdownContainer.innerHTML = "";
|
|
1180
|
-
for (
|
|
1276
|
+
for (var i = 0; i < 12; i++) {
|
|
1181
1277
|
if (!shouldBuildMonth(i))
|
|
1182
1278
|
continue;
|
|
1183
|
-
|
|
1279
|
+
var month = createElement$1("option", "flatpickr-monthDropdown-month");
|
|
1184
1280
|
month.value = new Date(self.currentYear, i).getMonth().toString();
|
|
1185
1281
|
month.textContent = monthToStr(i, self.config.shorthandCurrentMonth, self.l10n);
|
|
1186
1282
|
month.tabIndex = -1;
|
|
@@ -1191,9 +1287,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1191
1287
|
}
|
|
1192
1288
|
}
|
|
1193
1289
|
function buildMonth() {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1290
|
+
var container = createElement$1("div", "flatpickr-month");
|
|
1291
|
+
var monthNavFragment = window.document.createDocumentFragment();
|
|
1292
|
+
var monthElement;
|
|
1197
1293
|
if (self.config.showMonths > 1 ||
|
|
1198
1294
|
self.config.monthSelectorType === "static") {
|
|
1199
1295
|
monthElement = createElement$1("span", "cur-month");
|
|
@@ -1201,17 +1297,17 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1201
1297
|
else {
|
|
1202
1298
|
self.monthsDropdownContainer = createElement$1("select", "flatpickr-monthDropdown-months");
|
|
1203
1299
|
self.monthsDropdownContainer.setAttribute("aria-label", self.l10n.monthAriaLabel);
|
|
1204
|
-
bind(self.monthsDropdownContainer, "change", (e)
|
|
1205
|
-
|
|
1206
|
-
|
|
1300
|
+
bind(self.monthsDropdownContainer, "change", function (e) {
|
|
1301
|
+
var target = getEventTarget(e);
|
|
1302
|
+
var selectedMonth = parseInt(target.value, 10);
|
|
1207
1303
|
self.changeMonth(selectedMonth - self.currentMonth);
|
|
1208
1304
|
triggerEvent("onMonthChange");
|
|
1209
1305
|
});
|
|
1210
1306
|
buildMonthSwitch();
|
|
1211
1307
|
monthElement = self.monthsDropdownContainer;
|
|
1212
1308
|
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1309
|
+
var yearInput = createNumberInput("cur-year", { tabindex: "-1" });
|
|
1310
|
+
var yearElement = yearInput.getElementsByTagName("input")[0];
|
|
1215
1311
|
yearElement.setAttribute("aria-label", self.l10n.yearAriaLabel);
|
|
1216
1312
|
if (self.config.minDate) {
|
|
1217
1313
|
yearElement.setAttribute("min", self.config.minDate.getFullYear().toString());
|
|
@@ -1222,15 +1318,15 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1222
1318
|
!!self.config.minDate &&
|
|
1223
1319
|
self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();
|
|
1224
1320
|
}
|
|
1225
|
-
|
|
1321
|
+
var currentMonth = createElement$1("div", "flatpickr-current-month");
|
|
1226
1322
|
currentMonth.appendChild(monthElement);
|
|
1227
1323
|
currentMonth.appendChild(yearInput);
|
|
1228
1324
|
monthNavFragment.appendChild(currentMonth);
|
|
1229
1325
|
container.appendChild(monthNavFragment);
|
|
1230
1326
|
return {
|
|
1231
|
-
container,
|
|
1232
|
-
yearElement,
|
|
1233
|
-
monthElement,
|
|
1327
|
+
container: container,
|
|
1328
|
+
yearElement: yearElement,
|
|
1329
|
+
monthElement: monthElement,
|
|
1234
1330
|
};
|
|
1235
1331
|
}
|
|
1236
1332
|
function buildMonths() {
|
|
@@ -1240,8 +1336,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1240
1336
|
self.yearElements = [];
|
|
1241
1337
|
self.monthElements = [];
|
|
1242
1338
|
}
|
|
1243
|
-
for (
|
|
1244
|
-
|
|
1339
|
+
for (var m = self.config.showMonths; m--;) {
|
|
1340
|
+
var month = buildMonth();
|
|
1245
1341
|
self.yearElements.push(month.yearElement);
|
|
1246
1342
|
self.monthElements.push(month.monthElement);
|
|
1247
1343
|
self.monthNav.appendChild(month.container);
|
|
@@ -1258,8 +1354,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1258
1354
|
self.nextMonthNav.innerHTML = self.config.nextArrow;
|
|
1259
1355
|
buildMonths();
|
|
1260
1356
|
Object.defineProperty(self, "_hidePrevMonthArrow", {
|
|
1261
|
-
get: ()
|
|
1262
|
-
set(bool) {
|
|
1357
|
+
get: function () { return self.__hidePrevMonthArrow; },
|
|
1358
|
+
set: function (bool) {
|
|
1263
1359
|
if (self.__hidePrevMonthArrow !== bool) {
|
|
1264
1360
|
toggleClass(self.prevMonthNav, "flatpickr-disabled", bool);
|
|
1265
1361
|
self.__hidePrevMonthArrow = bool;
|
|
@@ -1267,8 +1363,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1267
1363
|
},
|
|
1268
1364
|
});
|
|
1269
1365
|
Object.defineProperty(self, "_hideNextMonthArrow", {
|
|
1270
|
-
get: ()
|
|
1271
|
-
set(bool) {
|
|
1366
|
+
get: function () { return self.__hideNextMonthArrow; },
|
|
1367
|
+
set: function (bool) {
|
|
1272
1368
|
if (self.__hideNextMonthArrow !== bool) {
|
|
1273
1369
|
toggleClass(self.nextMonthNav, "flatpickr-disabled", bool);
|
|
1274
1370
|
self.__hideNextMonthArrow = bool;
|
|
@@ -1283,15 +1379,15 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1283
1379
|
self.calendarContainer.classList.add("hasTime");
|
|
1284
1380
|
if (self.config.noCalendar)
|
|
1285
1381
|
self.calendarContainer.classList.add("noCalendar");
|
|
1286
|
-
|
|
1382
|
+
var defaults = getDefaultHours(self.config);
|
|
1287
1383
|
self.timeContainer = createElement$1("div", "flatpickr-time");
|
|
1288
1384
|
self.timeContainer.tabIndex = -1;
|
|
1289
|
-
|
|
1290
|
-
|
|
1385
|
+
var separator = createElement$1("span", "flatpickr-time-separator", ":");
|
|
1386
|
+
var hourInput = createNumberInput("flatpickr-hour", {
|
|
1291
1387
|
"aria-label": self.l10n.hourAriaLabel,
|
|
1292
1388
|
});
|
|
1293
1389
|
self.hourElement = hourInput.getElementsByTagName("input")[0];
|
|
1294
|
-
|
|
1390
|
+
var minuteInput = createNumberInput("flatpickr-minute", {
|
|
1295
1391
|
"aria-label": self.l10n.minuteAriaLabel,
|
|
1296
1392
|
});
|
|
1297
1393
|
self.minuteElement = minuteInput.getElementsByTagName("input")[0];
|
|
@@ -1319,7 +1415,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1319
1415
|
self.timeContainer.classList.add("time24hr");
|
|
1320
1416
|
if (self.config.enableSeconds) {
|
|
1321
1417
|
self.timeContainer.classList.add("hasSeconds");
|
|
1322
|
-
|
|
1418
|
+
var secondInput = createNumberInput("flatpickr-second");
|
|
1323
1419
|
self.secondElement = secondInput.getElementsByTagName("input")[0];
|
|
1324
1420
|
self.secondElement.value = pad(self.latestSelectedDateObj
|
|
1325
1421
|
? self.latestSelectedDateObj.getSeconds()
|
|
@@ -1346,8 +1442,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1346
1442
|
self.weekdayContainer = createElement$1("div", "flatpickr-weekdays");
|
|
1347
1443
|
else
|
|
1348
1444
|
clearNode(self.weekdayContainer);
|
|
1349
|
-
for (
|
|
1350
|
-
|
|
1445
|
+
for (var i = self.config.showMonths; i--;) {
|
|
1446
|
+
var container = createElement$1("div", "flatpickr-weekdaycontainer");
|
|
1351
1447
|
self.weekdayContainer.appendChild(container);
|
|
1352
1448
|
}
|
|
1353
1449
|
updateWeekdays();
|
|
@@ -1357,35 +1453,29 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1357
1453
|
if (!self.weekdayContainer) {
|
|
1358
1454
|
return;
|
|
1359
1455
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1456
|
+
var firstDayOfWeek = self.l10n.firstDayOfWeek;
|
|
1457
|
+
var weekdays = __spreadArrays(self.l10n.weekdays.shorthand);
|
|
1362
1458
|
if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {
|
|
1363
|
-
weekdays =
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
];
|
|
1367
|
-
}
|
|
1368
|
-
for (let i = self.config.showMonths; i--;) {
|
|
1369
|
-
self.weekdayContainer.children[i].innerHTML = `
|
|
1370
|
-
<span class='flatpickr-weekday'>
|
|
1371
|
-
${weekdays.join("</span><span class='flatpickr-weekday'>")}
|
|
1372
|
-
</span>
|
|
1373
|
-
`;
|
|
1459
|
+
weekdays = __spreadArrays(weekdays.splice(firstDayOfWeek, weekdays.length), weekdays.splice(0, firstDayOfWeek));
|
|
1460
|
+
}
|
|
1461
|
+
for (var i = self.config.showMonths; i--;) {
|
|
1462
|
+
self.weekdayContainer.children[i].innerHTML = "\n <span class='flatpickr-weekday'>\n " + weekdays.join("</span><span class='flatpickr-weekday'>") + "\n </span>\n ";
|
|
1374
1463
|
}
|
|
1375
1464
|
}
|
|
1376
1465
|
function buildWeeks() {
|
|
1377
1466
|
self.calendarContainer.classList.add("hasWeeks");
|
|
1378
|
-
|
|
1467
|
+
var weekWrapper = createElement$1("div", "flatpickr-weekwrapper");
|
|
1379
1468
|
weekWrapper.appendChild(createElement$1("span", "flatpickr-weekday", self.l10n.weekAbbreviation));
|
|
1380
|
-
|
|
1469
|
+
var weekNumbers = createElement$1("div", "flatpickr-weeks");
|
|
1381
1470
|
weekWrapper.appendChild(weekNumbers);
|
|
1382
1471
|
return {
|
|
1383
|
-
weekWrapper,
|
|
1384
|
-
weekNumbers,
|
|
1472
|
+
weekWrapper: weekWrapper,
|
|
1473
|
+
weekNumbers: weekNumbers,
|
|
1385
1474
|
};
|
|
1386
1475
|
}
|
|
1387
|
-
function changeMonth(value, isOffset
|
|
1388
|
-
|
|
1476
|
+
function changeMonth(value, isOffset) {
|
|
1477
|
+
if (isOffset === void 0) { isOffset = true; }
|
|
1478
|
+
var delta = isOffset ? value : value - self.currentMonth;
|
|
1389
1479
|
if ((delta < 0 && self._hidePrevMonthArrow === true) ||
|
|
1390
1480
|
(delta > 0 && self._hideNextMonthArrow === true))
|
|
1391
1481
|
return;
|
|
@@ -1400,7 +1490,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1400
1490
|
triggerEvent("onMonthChange");
|
|
1401
1491
|
updateNavigationCurrentMonth();
|
|
1402
1492
|
}
|
|
1403
|
-
function clear(triggerChangeEvent
|
|
1493
|
+
function clear(triggerChangeEvent, toInitial) {
|
|
1494
|
+
if (triggerChangeEvent === void 0) { triggerChangeEvent = true; }
|
|
1495
|
+
if (toInitial === void 0) { toInitial = true; }
|
|
1404
1496
|
self.input.value = "";
|
|
1405
1497
|
if (self.altInput !== undefined)
|
|
1406
1498
|
self.altInput.value = "";
|
|
@@ -1413,7 +1505,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1413
1505
|
self.currentMonth = self._initialDate.getMonth();
|
|
1414
1506
|
}
|
|
1415
1507
|
if (self.config.enableTime === true) {
|
|
1416
|
-
|
|
1508
|
+
var _a = getDefaultHours(self.config), hours = _a.hours, minutes = _a.minutes, seconds = _a.seconds;
|
|
1417
1509
|
setHours(hours, minutes, seconds);
|
|
1418
1510
|
}
|
|
1419
1511
|
self.redraw();
|
|
@@ -1435,7 +1527,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1435
1527
|
function destroy() {
|
|
1436
1528
|
if (self.config !== undefined)
|
|
1437
1529
|
triggerEvent("onDestroy");
|
|
1438
|
-
for (
|
|
1530
|
+
for (var i = self._handlers.length; i--;) {
|
|
1439
1531
|
self._handlers[i].remove();
|
|
1440
1532
|
}
|
|
1441
1533
|
self._handlers = [];
|
|
@@ -1446,7 +1538,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1446
1538
|
}
|
|
1447
1539
|
else if (self.calendarContainer && self.calendarContainer.parentNode) {
|
|
1448
1540
|
if (self.config.static && self.calendarContainer.parentNode) {
|
|
1449
|
-
|
|
1541
|
+
var wrapper = self.calendarContainer.parentNode;
|
|
1450
1542
|
wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);
|
|
1451
1543
|
if (wrapper.parentNode) {
|
|
1452
1544
|
while (wrapper.firstChild)
|
|
@@ -1498,7 +1590,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1498
1590
|
"navigationCurrentMonth",
|
|
1499
1591
|
"selectedDateElem",
|
|
1500
1592
|
"config",
|
|
1501
|
-
].forEach((k)
|
|
1593
|
+
].forEach(function (k) {
|
|
1502
1594
|
try {
|
|
1503
1595
|
delete self[k];
|
|
1504
1596
|
}
|
|
@@ -1506,30 +1598,35 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1506
1598
|
});
|
|
1507
1599
|
}
|
|
1508
1600
|
function isCalendarElem(elem) {
|
|
1509
|
-
if (self.config.appendTo && self.config.appendTo.contains(elem))
|
|
1510
|
-
return true;
|
|
1511
1601
|
return self.calendarContainer.contains(elem);
|
|
1512
1602
|
}
|
|
1513
1603
|
function documentClick(e) {
|
|
1514
1604
|
if (self.isOpen && !self.config.inline) {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
self.element.contains(
|
|
1605
|
+
var eventTarget_1 = getEventTarget(e);
|
|
1606
|
+
var isCalendarElement = isCalendarElem(eventTarget_1);
|
|
1607
|
+
var isInput = eventTarget_1 === self.input ||
|
|
1608
|
+
eventTarget_1 === self.altInput ||
|
|
1609
|
+
self.element.contains(eventTarget_1) ||
|
|
1520
1610
|
(e.path &&
|
|
1521
1611
|
e.path.indexOf &&
|
|
1522
1612
|
(~e.path.indexOf(self.input) ||
|
|
1523
1613
|
~e.path.indexOf(self.altInput)));
|
|
1524
|
-
|
|
1614
|
+
var lostFocus = e.type === "blur"
|
|
1525
1615
|
? isInput &&
|
|
1526
1616
|
e.relatedTarget &&
|
|
1527
1617
|
!isCalendarElem(e.relatedTarget)
|
|
1528
1618
|
: !isInput &&
|
|
1529
1619
|
!isCalendarElement &&
|
|
1530
1620
|
!isCalendarElem(e.relatedTarget);
|
|
1531
|
-
|
|
1621
|
+
var isIgnored = !self.config.ignoredFocusElements.some(function (elem) {
|
|
1622
|
+
return elem.contains(eventTarget_1);
|
|
1623
|
+
});
|
|
1532
1624
|
if (lostFocus && isIgnored) {
|
|
1625
|
+
if (self.config.allowInput) {
|
|
1626
|
+
self.setDate(self._input.value, true, self.config.altInput
|
|
1627
|
+
? self.config.altFormat
|
|
1628
|
+
: self.config.dateFormat);
|
|
1629
|
+
}
|
|
1533
1630
|
if (self.timeContainer !== undefined &&
|
|
1534
1631
|
self.minuteElement !== undefined &&
|
|
1535
1632
|
self.hourElement !== undefined &&
|
|
@@ -1540,10 +1637,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1540
1637
|
self.close();
|
|
1541
1638
|
if (self.config &&
|
|
1542
1639
|
self.config.mode === "range" &&
|
|
1543
|
-
self.selectedDates.length === 1)
|
|
1640
|
+
self.selectedDates.length === 1)
|
|
1544
1641
|
self.clear(false);
|
|
1545
|
-
self.redraw();
|
|
1546
|
-
}
|
|
1547
1642
|
}
|
|
1548
1643
|
}
|
|
1549
1644
|
}
|
|
@@ -1552,7 +1647,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1552
1647
|
(self.config.minDate && newYear < self.config.minDate.getFullYear()) ||
|
|
1553
1648
|
(self.config.maxDate && newYear > self.config.maxDate.getFullYear()))
|
|
1554
1649
|
return;
|
|
1555
|
-
|
|
1650
|
+
var newYearNum = newYear, isNewYear = self.currentYear !== newYearNum;
|
|
1556
1651
|
self.currentYear = newYearNum || self.currentYear;
|
|
1557
1652
|
if (self.config.maxDate &&
|
|
1558
1653
|
self.currentYear === self.config.maxDate.getFullYear()) {
|
|
@@ -1568,9 +1663,10 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1568
1663
|
buildMonthSwitch();
|
|
1569
1664
|
}
|
|
1570
1665
|
}
|
|
1571
|
-
function isEnabled(date, timeless
|
|
1666
|
+
function isEnabled(date, timeless) {
|
|
1572
1667
|
var _a;
|
|
1573
|
-
|
|
1668
|
+
if (timeless === void 0) { timeless = true; }
|
|
1669
|
+
var dateToCheck = self.parseDate(date, undefined, timeless);
|
|
1574
1670
|
if ((self.config.minDate &&
|
|
1575
1671
|
dateToCheck &&
|
|
1576
1672
|
compareDates(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0) ||
|
|
@@ -1582,8 +1678,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1582
1678
|
return true;
|
|
1583
1679
|
if (dateToCheck === undefined)
|
|
1584
1680
|
return false;
|
|
1585
|
-
|
|
1586
|
-
for (
|
|
1681
|
+
var bool = !!self.config.enable, array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;
|
|
1682
|
+
for (var i = 0, d = void 0; i < array.length; i++) {
|
|
1587
1683
|
d = array[i];
|
|
1588
1684
|
if (typeof d === "function" &&
|
|
1589
1685
|
d(dateToCheck))
|
|
@@ -1593,7 +1689,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1593
1689
|
d.getTime() === dateToCheck.getTime())
|
|
1594
1690
|
return bool;
|
|
1595
1691
|
else if (typeof d === "string") {
|
|
1596
|
-
|
|
1692
|
+
var parsed = self.parseDate(d, undefined, true);
|
|
1597
1693
|
return parsed && parsed.getTime() === dateToCheck.getTime()
|
|
1598
1694
|
? bool
|
|
1599
1695
|
: !bool;
|
|
@@ -1616,7 +1712,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1616
1712
|
return false;
|
|
1617
1713
|
}
|
|
1618
1714
|
function onBlur(e) {
|
|
1619
|
-
|
|
1715
|
+
var isInput = e.target === self._input;
|
|
1620
1716
|
if (isInput &&
|
|
1621
1717
|
(self.selectedDates.length > 0 || self._input.value.length > 0) &&
|
|
1622
1718
|
!(e.relatedTarget && isCalendarElem(e.relatedTarget))) {
|
|
@@ -1626,18 +1722,19 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1626
1722
|
}
|
|
1627
1723
|
}
|
|
1628
1724
|
function onKeyDown(e) {
|
|
1629
|
-
|
|
1630
|
-
|
|
1725
|
+
var eventTarget = getEventTarget(e);
|
|
1726
|
+
var isInput = self.config.wrap
|
|
1631
1727
|
? element.contains(eventTarget)
|
|
1632
1728
|
: eventTarget === self._input;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1729
|
+
var allowInput = self.config.allowInput;
|
|
1730
|
+
var allowKeydown = self.isOpen && (!allowInput || !isInput);
|
|
1731
|
+
var allowInlineKeydown = self.config.inline && isInput && !allowInput;
|
|
1636
1732
|
if (e.keyCode === 13 && isInput) {
|
|
1637
1733
|
if (allowInput) {
|
|
1638
1734
|
self.setDate(self._input.value, true, eventTarget === self.altInput
|
|
1639
1735
|
? self.config.altFormat
|
|
1640
1736
|
: self.config.dateFormat);
|
|
1737
|
+
self.close();
|
|
1641
1738
|
return eventTarget.blur();
|
|
1642
1739
|
}
|
|
1643
1740
|
else {
|
|
@@ -1647,7 +1744,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1647
1744
|
else if (isCalendarElem(eventTarget) ||
|
|
1648
1745
|
allowKeydown ||
|
|
1649
1746
|
allowInlineKeydown) {
|
|
1650
|
-
|
|
1747
|
+
var isTimeObj = !!self.timeContainer &&
|
|
1651
1748
|
self.timeContainer.contains(eventTarget);
|
|
1652
1749
|
switch (e.keyCode) {
|
|
1653
1750
|
case 13:
|
|
@@ -1674,15 +1771,16 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1674
1771
|
case 39:
|
|
1675
1772
|
if (!isTimeObj && !isInput) {
|
|
1676
1773
|
e.preventDefault();
|
|
1774
|
+
var activeElement = getClosestActiveElement();
|
|
1677
1775
|
if (self.daysContainer !== undefined &&
|
|
1678
1776
|
(allowInput === false ||
|
|
1679
|
-
(
|
|
1680
|
-
|
|
1777
|
+
(activeElement && isInView(activeElement)))) {
|
|
1778
|
+
var delta_1 = e.keyCode === 39 ? 1 : -1;
|
|
1681
1779
|
if (!e.ctrlKey)
|
|
1682
|
-
focusOnDay(undefined,
|
|
1780
|
+
focusOnDay(undefined, delta_1);
|
|
1683
1781
|
else {
|
|
1684
1782
|
e.stopPropagation();
|
|
1685
|
-
changeMonth(
|
|
1783
|
+
changeMonth(delta_1);
|
|
1686
1784
|
focusOnDay(getFirstAvailableDay(1), 0);
|
|
1687
1785
|
}
|
|
1688
1786
|
}
|
|
@@ -1693,7 +1791,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1693
1791
|
case 38:
|
|
1694
1792
|
case 40:
|
|
1695
1793
|
e.preventDefault();
|
|
1696
|
-
|
|
1794
|
+
var delta = e.keyCode === 40 ? 1 : -1;
|
|
1697
1795
|
if ((self.daysContainer &&
|
|
1698
1796
|
eventTarget.$i !== undefined) ||
|
|
1699
1797
|
eventTarget === self.input ||
|
|
@@ -1718,17 +1816,17 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1718
1816
|
break;
|
|
1719
1817
|
case 9:
|
|
1720
1818
|
if (isTimeObj) {
|
|
1721
|
-
|
|
1819
|
+
var elems = [
|
|
1722
1820
|
self.hourElement,
|
|
1723
1821
|
self.minuteElement,
|
|
1724
1822
|
self.secondElement,
|
|
1725
1823
|
self.amPM,
|
|
1726
1824
|
]
|
|
1727
1825
|
.concat(self.pluginElements)
|
|
1728
|
-
.filter((x)
|
|
1729
|
-
|
|
1826
|
+
.filter(function (x) { return x; });
|
|
1827
|
+
var i = elems.indexOf(eventTarget);
|
|
1730
1828
|
if (i !== -1) {
|
|
1731
|
-
|
|
1829
|
+
var target = elems[i + (e.shiftKey ? -1 : 1)];
|
|
1732
1830
|
e.preventDefault();
|
|
1733
1831
|
(target || self._input).focus();
|
|
1734
1832
|
}
|
|
@@ -1763,18 +1861,19 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1763
1861
|
triggerEvent("onKeyDown", e);
|
|
1764
1862
|
}
|
|
1765
1863
|
}
|
|
1766
|
-
function onMouseOver(elem) {
|
|
1864
|
+
function onMouseOver(elem, cellClass) {
|
|
1865
|
+
if (cellClass === void 0) { cellClass = "flatpickr-day"; }
|
|
1767
1866
|
if (self.selectedDates.length !== 1 ||
|
|
1768
1867
|
(elem &&
|
|
1769
|
-
(!elem.classList.contains(
|
|
1868
|
+
(!elem.classList.contains(cellClass) ||
|
|
1770
1869
|
elem.classList.contains("flatpickr-disabled"))))
|
|
1771
1870
|
return;
|
|
1772
|
-
|
|
1871
|
+
var hoverDate = elem
|
|
1773
1872
|
? elem.dateObj.getTime()
|
|
1774
1873
|
: self.days.firstElementChild.dateObj.getTime(), initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(), rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()), rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
for (
|
|
1874
|
+
var containsDisabled = false;
|
|
1875
|
+
var minRange = 0, maxRange = 0;
|
|
1876
|
+
for (var t = rangeStartDate; t < rangeEndDate; t += duration.DAY) {
|
|
1778
1877
|
if (!isEnabled(new Date(t), true)) {
|
|
1779
1878
|
containsDisabled =
|
|
1780
1879
|
containsDisabled || (t > rangeStartDate && t < rangeEndDate);
|
|
@@ -1784,50 +1883,49 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1784
1883
|
maxRange = t;
|
|
1785
1884
|
}
|
|
1786
1885
|
}
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
["inRange", "startRange", "endRange"].forEach((c) => {
|
|
1797
|
-
dayElem.classList.remove(c);
|
|
1798
|
-
});
|
|
1799
|
-
continue;
|
|
1800
|
-
}
|
|
1801
|
-
else if (containsDisabled && !outOfRange)
|
|
1802
|
-
continue;
|
|
1803
|
-
["startRange", "inRange", "endRange", "notAllowed"].forEach((c) => {
|
|
1886
|
+
var hoverableCells = Array.from(self.rContainer.querySelectorAll("*:nth-child(-n+" + self.config.showMonths + ") > ." + cellClass));
|
|
1887
|
+
hoverableCells.forEach(function (dayElem) {
|
|
1888
|
+
var date = dayElem.dateObj;
|
|
1889
|
+
var timestamp = date.getTime();
|
|
1890
|
+
var outOfRange = (minRange > 0 && timestamp < minRange) ||
|
|
1891
|
+
(maxRange > 0 && timestamp > maxRange);
|
|
1892
|
+
if (outOfRange) {
|
|
1893
|
+
dayElem.classList.add("notAllowed");
|
|
1894
|
+
["inRange", "startRange", "endRange"].forEach(function (c) {
|
|
1804
1895
|
dayElem.classList.remove(c);
|
|
1805
1896
|
});
|
|
1806
|
-
|
|
1807
|
-
elem.classList.add(hoverDate <= self.selectedDates[0].getTime()
|
|
1808
|
-
? "startRange"
|
|
1809
|
-
: "endRange");
|
|
1810
|
-
if (initialDate < hoverDate && timestamp === initialDate)
|
|
1811
|
-
dayElem.classList.add("startRange");
|
|
1812
|
-
else if (initialDate > hoverDate && timestamp === initialDate)
|
|
1813
|
-
dayElem.classList.add("endRange");
|
|
1814
|
-
if (timestamp >= minRange &&
|
|
1815
|
-
(maxRange === 0 || timestamp <= maxRange) &&
|
|
1816
|
-
isBetween(timestamp, initialDate, hoverDate))
|
|
1817
|
-
dayElem.classList.add("inRange");
|
|
1818
|
-
}
|
|
1897
|
+
return;
|
|
1819
1898
|
}
|
|
1820
|
-
|
|
1899
|
+
else if (containsDisabled && !outOfRange)
|
|
1900
|
+
return;
|
|
1901
|
+
["startRange", "inRange", "endRange", "notAllowed"].forEach(function (c) {
|
|
1902
|
+
dayElem.classList.remove(c);
|
|
1903
|
+
});
|
|
1904
|
+
if (elem !== undefined) {
|
|
1905
|
+
elem.classList.add(hoverDate <= self.selectedDates[0].getTime()
|
|
1906
|
+
? "startRange"
|
|
1907
|
+
: "endRange");
|
|
1908
|
+
if (initialDate < hoverDate && timestamp === initialDate)
|
|
1909
|
+
dayElem.classList.add("startRange");
|
|
1910
|
+
else if (initialDate > hoverDate && timestamp === initialDate)
|
|
1911
|
+
dayElem.classList.add("endRange");
|
|
1912
|
+
if (timestamp >= minRange &&
|
|
1913
|
+
(maxRange === 0 || timestamp <= maxRange) &&
|
|
1914
|
+
isBetween(timestamp, initialDate, hoverDate))
|
|
1915
|
+
dayElem.classList.add("inRange");
|
|
1916
|
+
}
|
|
1917
|
+
});
|
|
1821
1918
|
}
|
|
1822
1919
|
function onResize() {
|
|
1823
1920
|
if (self.isOpen && !self.config.static && !self.config.inline)
|
|
1824
1921
|
positionCalendar();
|
|
1825
1922
|
}
|
|
1826
|
-
function open(e, positionElement
|
|
1923
|
+
function open(e, positionElement) {
|
|
1924
|
+
if (positionElement === void 0) { positionElement = self._positionElement; }
|
|
1827
1925
|
if (self.isMobile === true) {
|
|
1828
1926
|
if (e) {
|
|
1829
1927
|
e.preventDefault();
|
|
1830
|
-
|
|
1928
|
+
var eventTarget = getEventTarget(e);
|
|
1831
1929
|
if (eventTarget) {
|
|
1832
1930
|
eventTarget.blur();
|
|
1833
1931
|
}
|
|
@@ -1842,7 +1940,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1842
1940
|
else if (self._input.disabled || self.config.inline) {
|
|
1843
1941
|
return;
|
|
1844
1942
|
}
|
|
1845
|
-
|
|
1943
|
+
var wasOpen = self.isOpen;
|
|
1846
1944
|
self.isOpen = true;
|
|
1847
1945
|
if (!wasOpen) {
|
|
1848
1946
|
self.calendarContainer.classList.add("open");
|
|
@@ -1854,14 +1952,14 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1854
1952
|
if (self.config.allowInput === false &&
|
|
1855
1953
|
(e === undefined ||
|
|
1856
1954
|
!self.timeContainer.contains(e.relatedTarget))) {
|
|
1857
|
-
setTimeout(()
|
|
1955
|
+
setTimeout(function () { return self.hourElement.select(); }, 50);
|
|
1858
1956
|
}
|
|
1859
1957
|
}
|
|
1860
1958
|
}
|
|
1861
1959
|
function minMaxDateSetter(type) {
|
|
1862
|
-
return (date)
|
|
1863
|
-
|
|
1864
|
-
|
|
1960
|
+
return function (date) {
|
|
1961
|
+
var dateObj = (self.config["_" + type + "Date"] = self.parseDate(date, self.config.dateFormat));
|
|
1962
|
+
var inverseDateObj = self.config["_" + (type === "min" ? "max" : "min") + "Date"];
|
|
1865
1963
|
if (dateObj !== undefined) {
|
|
1866
1964
|
self[type === "min" ? "minDateHasTime" : "maxDateHasTime"] =
|
|
1867
1965
|
dateObj.getHours() > 0 ||
|
|
@@ -1869,7 +1967,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1869
1967
|
dateObj.getSeconds() > 0;
|
|
1870
1968
|
}
|
|
1871
1969
|
if (self.selectedDates) {
|
|
1872
|
-
self.selectedDates = self.selectedDates.filter((d)
|
|
1970
|
+
self.selectedDates = self.selectedDates.filter(function (d) { return isEnabled(d); });
|
|
1873
1971
|
if (!self.selectedDates.length && type === "min")
|
|
1874
1972
|
setHoursFromDate(dateObj);
|
|
1875
1973
|
updateValue();
|
|
@@ -1888,7 +1986,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1888
1986
|
};
|
|
1889
1987
|
}
|
|
1890
1988
|
function parseConfig() {
|
|
1891
|
-
|
|
1989
|
+
var boolOpts = [
|
|
1892
1990
|
"wrap",
|
|
1893
1991
|
"weekNumbers",
|
|
1894
1992
|
"allowInput",
|
|
@@ -1904,25 +2002,25 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1904
2002
|
"enableSeconds",
|
|
1905
2003
|
"disableMobile",
|
|
1906
2004
|
];
|
|
1907
|
-
|
|
1908
|
-
|
|
2005
|
+
var userConfig = __assign(__assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);
|
|
2006
|
+
var formats = {};
|
|
1909
2007
|
self.config.parseDate = userConfig.parseDate;
|
|
1910
2008
|
self.config.formatDate = userConfig.formatDate;
|
|
1911
2009
|
Object.defineProperty(self.config, "enable", {
|
|
1912
|
-
get: ()
|
|
1913
|
-
set: (dates)
|
|
2010
|
+
get: function () { return self.config._enable; },
|
|
2011
|
+
set: function (dates) {
|
|
1914
2012
|
self.config._enable = parseDateRules(dates);
|
|
1915
2013
|
},
|
|
1916
2014
|
});
|
|
1917
2015
|
Object.defineProperty(self.config, "disable", {
|
|
1918
|
-
get: ()
|
|
1919
|
-
set: (dates)
|
|
2016
|
+
get: function () { return self.config._disable; },
|
|
2017
|
+
set: function (dates) {
|
|
1920
2018
|
self.config._disable = parseDateRules(dates);
|
|
1921
2019
|
},
|
|
1922
2020
|
});
|
|
1923
|
-
|
|
2021
|
+
var timeMode = userConfig.mode === "time";
|
|
1924
2022
|
if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {
|
|
1925
|
-
|
|
2023
|
+
var defaultDateFormat = flatpickr.defaultConfig.dateFormat || defaults.dateFormat;
|
|
1926
2024
|
formats.dateFormat =
|
|
1927
2025
|
userConfig.noCalendar || timeMode
|
|
1928
2026
|
? "H:i" + (userConfig.enableSeconds ? ":S" : "")
|
|
@@ -1931,29 +2029,29 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1931
2029
|
if (userConfig.altInput &&
|
|
1932
2030
|
(userConfig.enableTime || timeMode) &&
|
|
1933
2031
|
!userConfig.altFormat) {
|
|
1934
|
-
|
|
2032
|
+
var defaultAltFormat = flatpickr.defaultConfig.altFormat || defaults.altFormat;
|
|
1935
2033
|
formats.altFormat =
|
|
1936
2034
|
userConfig.noCalendar || timeMode
|
|
1937
2035
|
? "h:i" + (userConfig.enableSeconds ? ":S K" : " K")
|
|
1938
|
-
: defaultAltFormat +
|
|
2036
|
+
: defaultAltFormat + (" h:i" + (userConfig.enableSeconds ? ":S" : "") + " K");
|
|
1939
2037
|
}
|
|
1940
2038
|
Object.defineProperty(self.config, "minDate", {
|
|
1941
|
-
get: ()
|
|
2039
|
+
get: function () { return self.config._minDate; },
|
|
1942
2040
|
set: minMaxDateSetter("min"),
|
|
1943
2041
|
});
|
|
1944
2042
|
Object.defineProperty(self.config, "maxDate", {
|
|
1945
|
-
get: ()
|
|
2043
|
+
get: function () { return self.config._maxDate; },
|
|
1946
2044
|
set: minMaxDateSetter("max"),
|
|
1947
2045
|
});
|
|
1948
|
-
|
|
2046
|
+
var minMaxTimeSetter = function (type) { return function (val) {
|
|
1949
2047
|
self.config[type === "min" ? "_minTime" : "_maxTime"] = self.parseDate(val, "H:i:S");
|
|
1950
|
-
};
|
|
2048
|
+
}; };
|
|
1951
2049
|
Object.defineProperty(self.config, "minTime", {
|
|
1952
|
-
get: ()
|
|
2050
|
+
get: function () { return self.config._minTime; },
|
|
1953
2051
|
set: minMaxTimeSetter("min"),
|
|
1954
2052
|
});
|
|
1955
2053
|
Object.defineProperty(self.config, "maxTime", {
|
|
1956
|
-
get: ()
|
|
2054
|
+
get: function () { return self.config._maxTime; },
|
|
1957
2055
|
set: minMaxTimeSetter("max"),
|
|
1958
2056
|
});
|
|
1959
2057
|
if (userConfig.mode === "time") {
|
|
@@ -1961,11 +2059,11 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1961
2059
|
self.config.enableTime = true;
|
|
1962
2060
|
}
|
|
1963
2061
|
Object.assign(self.config, formats, userConfig);
|
|
1964
|
-
for (
|
|
2062
|
+
for (var i = 0; i < boolOpts.length; i++)
|
|
1965
2063
|
self.config[boolOpts[i]] =
|
|
1966
2064
|
self.config[boolOpts[i]] === true ||
|
|
1967
2065
|
self.config[boolOpts[i]] === "true";
|
|
1968
|
-
HOOKS.filter((hook)
|
|
2066
|
+
HOOKS.filter(function (hook) { return self.config[hook] !== undefined; }).forEach(function (hook) {
|
|
1969
2067
|
self.config[hook] = arrayify(self.config[hook] || []).map(bindToInstance);
|
|
1970
2068
|
});
|
|
1971
2069
|
self.isMobile =
|
|
@@ -1976,9 +2074,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1976
2074
|
!self.config.enable &&
|
|
1977
2075
|
!self.config.weekNumbers &&
|
|
1978
2076
|
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1979
|
-
for (
|
|
1980
|
-
|
|
1981
|
-
for (
|
|
2077
|
+
for (var i = 0; i < self.config.plugins.length; i++) {
|
|
2078
|
+
var pluginConf = self.config.plugins[i](self) || {};
|
|
2079
|
+
for (var key in pluginConf) {
|
|
1982
2080
|
if (HOOKS.indexOf(key) > -1) {
|
|
1983
2081
|
self.config[key] = arrayify(pluginConf[key])
|
|
1984
2082
|
.map(bindToInstance)
|
|
@@ -2002,14 +2100,18 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2002
2100
|
function setupLocale() {
|
|
2003
2101
|
if (typeof self.config.locale !== "object" &&
|
|
2004
2102
|
typeof flatpickr.l10ns[self.config.locale] === "undefined")
|
|
2005
|
-
self.config.errorHandler(new Error(
|
|
2006
|
-
self.l10n =
|
|
2103
|
+
self.config.errorHandler(new Error("flatpickr: invalid locale " + self.config.locale));
|
|
2104
|
+
self.l10n = __assign(__assign({}, flatpickr.l10ns.default), (typeof self.config.locale === "object"
|
|
2007
2105
|
? self.config.locale
|
|
2008
2106
|
: self.config.locale !== "default"
|
|
2009
2107
|
? flatpickr.l10ns[self.config.locale]
|
|
2010
2108
|
: undefined));
|
|
2011
|
-
tokenRegex.
|
|
2012
|
-
|
|
2109
|
+
tokenRegex.D = "(" + self.l10n.weekdays.shorthand.join("|") + ")";
|
|
2110
|
+
tokenRegex.l = "(" + self.l10n.weekdays.longhand.join("|") + ")";
|
|
2111
|
+
tokenRegex.M = "(" + self.l10n.months.shorthand.join("|") + ")";
|
|
2112
|
+
tokenRegex.F = "(" + self.l10n.months.longhand.join("|") + ")";
|
|
2113
|
+
tokenRegex.K = "(" + self.l10n.amPM[0] + "|" + self.l10n.amPM[1] + "|" + self.l10n.amPM[0].toLowerCase() + "|" + self.l10n.amPM[1].toLowerCase() + ")";
|
|
2114
|
+
var userConfig = __assign(__assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));
|
|
2013
2115
|
if (userConfig.time_24hr === undefined &&
|
|
2014
2116
|
flatpickr.defaultConfig.time_24hr === undefined) {
|
|
2015
2117
|
self.config.time_24hr = self.l10n.time_24hr;
|
|
@@ -2024,21 +2126,21 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2024
2126
|
if (self.calendarContainer === undefined)
|
|
2025
2127
|
return;
|
|
2026
2128
|
triggerEvent("onPreCalendarPosition");
|
|
2027
|
-
|
|
2028
|
-
|
|
2129
|
+
var positionElement = customPositionElement || self._positionElement;
|
|
2130
|
+
var calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, (function (acc, child) { return acc + child.offsetHeight; }), 0), calendarWidth = self.calendarContainer.offsetWidth, configPos = self.config.position.split(" "), configPosVertical = configPos[0], configPosHorizontal = configPos.length > 1 ? configPos[1] : null, inputBounds = positionElement.getBoundingClientRect(), distanceFromBottom = window.innerHeight - inputBounds.bottom, showOnTop = configPosVertical === "above" ||
|
|
2029
2131
|
(configPosVertical !== "below" &&
|
|
2030
2132
|
distanceFromBottom < calendarHeight &&
|
|
2031
2133
|
inputBounds.top > calendarHeight);
|
|
2032
|
-
|
|
2134
|
+
var top = window.pageYOffset +
|
|
2033
2135
|
inputBounds.top +
|
|
2034
2136
|
(!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);
|
|
2035
2137
|
toggleClass(self.calendarContainer, "arrowTop", !showOnTop);
|
|
2036
2138
|
toggleClass(self.calendarContainer, "arrowBottom", showOnTop);
|
|
2037
2139
|
if (self.config.inline)
|
|
2038
2140
|
return;
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2141
|
+
var left = window.pageXOffset + inputBounds.left;
|
|
2142
|
+
var isCenter = false;
|
|
2143
|
+
var isRight = false;
|
|
2042
2144
|
if (configPosHorizontal === "center") {
|
|
2043
2145
|
left -= (calendarWidth - inputBounds.width) / 2;
|
|
2044
2146
|
isCenter = true;
|
|
@@ -2050,50 +2152,52 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2050
2152
|
toggleClass(self.calendarContainer, "arrowLeft", !isCenter && !isRight);
|
|
2051
2153
|
toggleClass(self.calendarContainer, "arrowCenter", isCenter);
|
|
2052
2154
|
toggleClass(self.calendarContainer, "arrowRight", isRight);
|
|
2053
|
-
|
|
2155
|
+
var right = window.document.body.offsetWidth -
|
|
2054
2156
|
(window.pageXOffset + inputBounds.right);
|
|
2055
|
-
|
|
2056
|
-
|
|
2157
|
+
var rightMost = left + calendarWidth > window.document.body.offsetWidth;
|
|
2158
|
+
var centerMost = right + calendarWidth > window.document.body.offsetWidth;
|
|
2057
2159
|
toggleClass(self.calendarContainer, "rightMost", rightMost);
|
|
2058
2160
|
if (self.config.static)
|
|
2059
2161
|
return;
|
|
2060
|
-
self.calendarContainer.style.top =
|
|
2162
|
+
self.calendarContainer.style.top = top + "px";
|
|
2061
2163
|
if (!rightMost) {
|
|
2062
|
-
self.calendarContainer.style.left =
|
|
2164
|
+
self.calendarContainer.style.left = left + "px";
|
|
2063
2165
|
self.calendarContainer.style.right = "auto";
|
|
2064
2166
|
}
|
|
2065
2167
|
else if (!centerMost) {
|
|
2066
2168
|
self.calendarContainer.style.left = "auto";
|
|
2067
|
-
self.calendarContainer.style.right =
|
|
2169
|
+
self.calendarContainer.style.right = right + "px";
|
|
2068
2170
|
}
|
|
2069
2171
|
else {
|
|
2070
|
-
|
|
2172
|
+
var doc = getDocumentStyleSheet();
|
|
2071
2173
|
if (doc === undefined)
|
|
2072
2174
|
return;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2175
|
+
var bodyWidth = window.document.body.offsetWidth;
|
|
2176
|
+
var centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);
|
|
2177
|
+
var centerBefore = ".flatpickr-calendar.centerMost:before";
|
|
2178
|
+
var centerAfter = ".flatpickr-calendar.centerMost:after";
|
|
2179
|
+
var centerIndex = doc.cssRules.length;
|
|
2180
|
+
var centerStyle = "{left:" + inputBounds.left + "px;right:auto;}";
|
|
2079
2181
|
toggleClass(self.calendarContainer, "rightMost", false);
|
|
2080
2182
|
toggleClass(self.calendarContainer, "centerMost", true);
|
|
2081
|
-
doc.insertRule(
|
|
2082
|
-
self.calendarContainer.style.left =
|
|
2183
|
+
doc.insertRule(centerBefore + "," + centerAfter + centerStyle, centerIndex);
|
|
2184
|
+
self.calendarContainer.style.left = centerLeft + "px";
|
|
2083
2185
|
self.calendarContainer.style.right = "auto";
|
|
2084
2186
|
}
|
|
2085
2187
|
}
|
|
2086
2188
|
function getDocumentStyleSheet() {
|
|
2087
|
-
|
|
2088
|
-
for (
|
|
2089
|
-
|
|
2189
|
+
var editableSheet = null;
|
|
2190
|
+
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
2191
|
+
var sheet = document.styleSheets[i];
|
|
2192
|
+
if (!sheet.cssRules)
|
|
2193
|
+
continue;
|
|
2090
2194
|
editableSheet = sheet;
|
|
2091
2195
|
break;
|
|
2092
2196
|
}
|
|
2093
2197
|
return editableSheet != null ? editableSheet : createStyleSheet();
|
|
2094
2198
|
}
|
|
2095
2199
|
function createStyleSheet() {
|
|
2096
|
-
|
|
2200
|
+
var style = document.createElement("style");
|
|
2097
2201
|
document.head.appendChild(style);
|
|
2098
2202
|
return style.sheet;
|
|
2099
2203
|
}
|
|
@@ -2117,16 +2221,18 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2117
2221
|
function selectDate(e) {
|
|
2118
2222
|
e.preventDefault();
|
|
2119
2223
|
e.stopPropagation();
|
|
2120
|
-
|
|
2121
|
-
day.classList
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2224
|
+
var isSelectable = function (day) {
|
|
2225
|
+
return day.classList &&
|
|
2226
|
+
day.classList.contains("flatpickr-day") &&
|
|
2227
|
+
!day.classList.contains("flatpickr-disabled") &&
|
|
2228
|
+
!day.classList.contains("notAllowed");
|
|
2229
|
+
};
|
|
2230
|
+
var t = findParent(getEventTarget(e), isSelectable);
|
|
2125
2231
|
if (t === undefined)
|
|
2126
2232
|
return;
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2233
|
+
var target = t;
|
|
2234
|
+
var selectedDate = (self.latestSelectedDateObj = new Date(target.dateObj.getTime()));
|
|
2235
|
+
var shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth ||
|
|
2130
2236
|
selectedDate.getMonth() >
|
|
2131
2237
|
self.currentMonth + self.config.showMonths - 1) &&
|
|
2132
2238
|
self.config.mode !== "range";
|
|
@@ -2134,7 +2240,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2134
2240
|
if (self.config.mode === "single")
|
|
2135
2241
|
self.selectedDates = [selectedDate];
|
|
2136
2242
|
else if (self.config.mode === "multiple") {
|
|
2137
|
-
|
|
2243
|
+
var selectedIndex = isDateSelected(selectedDate);
|
|
2138
2244
|
if (selectedIndex)
|
|
2139
2245
|
self.selectedDates.splice(parseInt(selectedIndex), 1);
|
|
2140
2246
|
else
|
|
@@ -2147,11 +2253,11 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2147
2253
|
self.latestSelectedDateObj = selectedDate;
|
|
2148
2254
|
self.selectedDates.push(selectedDate);
|
|
2149
2255
|
if (compareDates(selectedDate, self.selectedDates[0], true) !== 0)
|
|
2150
|
-
self.selectedDates.sort((a, b)
|
|
2256
|
+
self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });
|
|
2151
2257
|
}
|
|
2152
2258
|
setHoursFromInputs();
|
|
2153
2259
|
if (shouldChangeMonth) {
|
|
2154
|
-
|
|
2260
|
+
var isNewYear = self.currentYear !== selectedDate.getFullYear();
|
|
2155
2261
|
self.currentYear = selectedDate.getFullYear();
|
|
2156
2262
|
self.currentMonth = selectedDate.getMonth();
|
|
2157
2263
|
if (isNewYear) {
|
|
@@ -2174,8 +2280,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2174
2280
|
if (self.hourElement !== undefined)
|
|
2175
2281
|
self.hourElement !== undefined && self.hourElement.focus();
|
|
2176
2282
|
if (self.config.closeOnSelect) {
|
|
2177
|
-
|
|
2178
|
-
|
|
2283
|
+
var single = self.config.mode === "single" && !self.config.enableTime;
|
|
2284
|
+
var range = self.config.mode === "range" &&
|
|
2179
2285
|
self.selectedDates.length === 2 &&
|
|
2180
2286
|
!self.config.enableTime;
|
|
2181
2287
|
if (single || range) {
|
|
@@ -2184,13 +2290,14 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2184
2290
|
}
|
|
2185
2291
|
triggerChange();
|
|
2186
2292
|
}
|
|
2187
|
-
|
|
2293
|
+
var CALLBACKS = {
|
|
2188
2294
|
locale: [setupLocale, updateWeekdays],
|
|
2189
2295
|
showMonths: [buildMonths, setCalendarWidth, buildWeekdays],
|
|
2190
2296
|
minDate: [jumpToDate],
|
|
2191
2297
|
maxDate: [jumpToDate],
|
|
2298
|
+
positionElement: [updatePositionElement],
|
|
2192
2299
|
clickOpens: [
|
|
2193
|
-
()
|
|
2300
|
+
function () {
|
|
2194
2301
|
if (self.config.clickOpens === true) {
|
|
2195
2302
|
bind(self._input, "focus", self.open);
|
|
2196
2303
|
bind(self._input, "click", self.open);
|
|
@@ -2205,15 +2312,15 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2205
2312
|
function set(option, value) {
|
|
2206
2313
|
if (option !== null && typeof option === "object") {
|
|
2207
2314
|
Object.assign(self.config, option);
|
|
2208
|
-
for (
|
|
2315
|
+
for (var key in option) {
|
|
2209
2316
|
if (CALLBACKS[key] !== undefined)
|
|
2210
|
-
CALLBACKS[key].forEach((x)
|
|
2317
|
+
CALLBACKS[key].forEach(function (x) { return x(); });
|
|
2211
2318
|
}
|
|
2212
2319
|
}
|
|
2213
2320
|
else {
|
|
2214
2321
|
self.config[option] = value;
|
|
2215
2322
|
if (CALLBACKS[option] !== undefined)
|
|
2216
|
-
CALLBACKS[option].forEach((x)
|
|
2323
|
+
CALLBACKS[option].forEach(function (x) { return x(); });
|
|
2217
2324
|
else if (HOOKS.indexOf(option) > -1)
|
|
2218
2325
|
self.config[option] = arrayify(value);
|
|
2219
2326
|
}
|
|
@@ -2221,9 +2328,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2221
2328
|
updateValue(true);
|
|
2222
2329
|
}
|
|
2223
2330
|
function setSelectedDate(inputDate, format) {
|
|
2224
|
-
|
|
2331
|
+
var dates = [];
|
|
2225
2332
|
if (inputDate instanceof Array)
|
|
2226
|
-
dates = inputDate.map((d)
|
|
2333
|
+
dates = inputDate.map(function (d) { return self.parseDate(d, format); });
|
|
2227
2334
|
else if (inputDate instanceof Date || typeof inputDate === "number")
|
|
2228
2335
|
dates = [self.parseDate(inputDate, format)];
|
|
2229
2336
|
else if (typeof inputDate === "string") {
|
|
@@ -2235,24 +2342,26 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2235
2342
|
case "multiple":
|
|
2236
2343
|
dates = inputDate
|
|
2237
2344
|
.split(self.config.conjunction)
|
|
2238
|
-
.map((date)
|
|
2345
|
+
.map(function (date) { return self.parseDate(date, format); });
|
|
2239
2346
|
break;
|
|
2240
2347
|
case "range":
|
|
2241
2348
|
dates = inputDate
|
|
2242
2349
|
.split(self.l10n.rangeSeparator)
|
|
2243
|
-
.map((date)
|
|
2350
|
+
.map(function (date) { return self.parseDate(date, format); });
|
|
2244
2351
|
break;
|
|
2245
2352
|
}
|
|
2246
2353
|
}
|
|
2247
2354
|
else
|
|
2248
|
-
self.config.errorHandler(new Error(
|
|
2355
|
+
self.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(inputDate)));
|
|
2249
2356
|
self.selectedDates = (self.config.allowInvalidPreload
|
|
2250
2357
|
? dates
|
|
2251
|
-
: dates.filter((d)
|
|
2358
|
+
: dates.filter(function (d) { return d instanceof Date && isEnabled(d, false); }));
|
|
2252
2359
|
if (self.config.mode === "range")
|
|
2253
|
-
self.selectedDates.sort((a, b)
|
|
2360
|
+
self.selectedDates.sort(function (a, b) { return a.getTime() - b.getTime(); });
|
|
2254
2361
|
}
|
|
2255
|
-
function setDate(date, triggerChange
|
|
2362
|
+
function setDate(date, triggerChange, format) {
|
|
2363
|
+
if (triggerChange === void 0) { triggerChange = false; }
|
|
2364
|
+
if (format === void 0) { format = self.config.dateFormat; }
|
|
2256
2365
|
if ((date !== 0 && !date) || (date instanceof Array && date.length === 0))
|
|
2257
2366
|
return self.clear(triggerChange);
|
|
2258
2367
|
setSelectedDate(date, format);
|
|
@@ -2271,7 +2380,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2271
2380
|
function parseDateRules(arr) {
|
|
2272
2381
|
return arr
|
|
2273
2382
|
.slice()
|
|
2274
|
-
.map((rule)
|
|
2383
|
+
.map(function (rule) {
|
|
2275
2384
|
if (typeof rule === "string" ||
|
|
2276
2385
|
typeof rule === "number" ||
|
|
2277
2386
|
rule instanceof Date) {
|
|
@@ -2287,12 +2396,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2287
2396
|
};
|
|
2288
2397
|
return rule;
|
|
2289
2398
|
})
|
|
2290
|
-
.filter((x)
|
|
2399
|
+
.filter(function (x) { return x; });
|
|
2291
2400
|
}
|
|
2292
2401
|
function setupDates() {
|
|
2293
2402
|
self.selectedDates = [];
|
|
2294
2403
|
self.now = self.parseDate(self.config.now) || new Date();
|
|
2295
|
-
|
|
2404
|
+
var preloadedDate = self.config.defaultDate ||
|
|
2296
2405
|
((self.input.nodeName === "INPUT" ||
|
|
2297
2406
|
self.input.nodeName === "TEXTAREA") &&
|
|
2298
2407
|
self.input.placeholder &&
|
|
@@ -2354,10 +2463,13 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2354
2463
|
}
|
|
2355
2464
|
if (!self.config.allowInput)
|
|
2356
2465
|
self._input.setAttribute("readonly", "readonly");
|
|
2466
|
+
updatePositionElement();
|
|
2467
|
+
}
|
|
2468
|
+
function updatePositionElement() {
|
|
2357
2469
|
self._positionElement = self.config.positionElement || self._input;
|
|
2358
2470
|
}
|
|
2359
2471
|
function setupMobile() {
|
|
2360
|
-
|
|
2472
|
+
var inputType = self.config.enableTime
|
|
2361
2473
|
? self.config.noCalendar
|
|
2362
2474
|
? "time"
|
|
2363
2475
|
: "datetime-local"
|
|
@@ -2391,7 +2503,7 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2391
2503
|
self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);
|
|
2392
2504
|
}
|
|
2393
2505
|
catch (_a) { }
|
|
2394
|
-
bind(self.mobileInput, "change", (e)
|
|
2506
|
+
bind(self.mobileInput, "change", function (e) {
|
|
2395
2507
|
self.setDate(getEventTarget(e).value, false, self.mobileFormatStr);
|
|
2396
2508
|
triggerEvent("onChange");
|
|
2397
2509
|
triggerEvent("onClose");
|
|
@@ -2405,9 +2517,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2405
2517
|
function triggerEvent(event, data) {
|
|
2406
2518
|
if (self.config === undefined)
|
|
2407
2519
|
return;
|
|
2408
|
-
|
|
2520
|
+
var hooks = self.config[event];
|
|
2409
2521
|
if (hooks !== undefined && hooks.length > 0) {
|
|
2410
|
-
for (
|
|
2522
|
+
for (var i = 0; hooks[i] && i < hooks.length; i++)
|
|
2411
2523
|
hooks[i](self.selectedDates, self.input.value, self, data);
|
|
2412
2524
|
}
|
|
2413
2525
|
if (event === "onChange") {
|
|
@@ -2416,12 +2528,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2416
2528
|
}
|
|
2417
2529
|
}
|
|
2418
2530
|
function createEvent(name) {
|
|
2419
|
-
|
|
2531
|
+
var e = document.createEvent("Event");
|
|
2420
2532
|
e.initEvent(name, true, true);
|
|
2421
2533
|
return e;
|
|
2422
2534
|
}
|
|
2423
2535
|
function isDateSelected(date) {
|
|
2424
|
-
for (
|
|
2536
|
+
for (var i = 0; i < self.selectedDates.length; i++) {
|
|
2425
2537
|
if (compareDates(self.selectedDates[i], date) === 0)
|
|
2426
2538
|
return "" + i;
|
|
2427
2539
|
}
|
|
@@ -2436,8 +2548,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2436
2548
|
function updateNavigationCurrentMonth() {
|
|
2437
2549
|
if (self.config.noCalendar || self.isMobile || !self.monthNav)
|
|
2438
2550
|
return;
|
|
2439
|
-
self.yearElements.forEach((yearElement, i)
|
|
2440
|
-
|
|
2551
|
+
self.yearElements.forEach(function (yearElement, i) {
|
|
2552
|
+
var d = new Date(self.currentYear, self.currentMonth, 1);
|
|
2441
2553
|
d.setMonth(self.currentMonth + i);
|
|
2442
2554
|
if (self.config.showMonths > 1 ||
|
|
2443
2555
|
self.config.monthSelectorType === "static") {
|
|
@@ -2462,15 +2574,18 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2462
2574
|
}
|
|
2463
2575
|
function getDateStr(format) {
|
|
2464
2576
|
return self.selectedDates
|
|
2465
|
-
.map((dObj)
|
|
2466
|
-
.filter((d, i, arr)
|
|
2467
|
-
self.config.
|
|
2468
|
-
|
|
2577
|
+
.map(function (dObj) { return self.formatDate(dObj, format); })
|
|
2578
|
+
.filter(function (d, i, arr) {
|
|
2579
|
+
return self.config.mode !== "range" ||
|
|
2580
|
+
self.config.enableTime ||
|
|
2581
|
+
arr.indexOf(d) === i;
|
|
2582
|
+
})
|
|
2469
2583
|
.join(self.config.mode !== "range"
|
|
2470
2584
|
? self.config.conjunction
|
|
2471
2585
|
: self.l10n.rangeSeparator);
|
|
2472
2586
|
}
|
|
2473
|
-
function updateValue(triggerChange
|
|
2587
|
+
function updateValue(triggerChange) {
|
|
2588
|
+
if (triggerChange === void 0) { triggerChange = true; }
|
|
2474
2589
|
if (self.mobileInput !== undefined && self.mobileFormatStr) {
|
|
2475
2590
|
self.mobileInput.value =
|
|
2476
2591
|
self.latestSelectedDateObj !== undefined
|
|
@@ -2485,9 +2600,9 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2485
2600
|
triggerEvent("onValueUpdate");
|
|
2486
2601
|
}
|
|
2487
2602
|
function onMonthNavClick(e) {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2603
|
+
var eventTarget = getEventTarget(e);
|
|
2604
|
+
var isPrevMonth = self.prevMonthNav.contains(eventTarget);
|
|
2605
|
+
var isNextMonth = self.nextMonthNav.contains(eventTarget);
|
|
2491
2606
|
if (isPrevMonth || isNextMonth) {
|
|
2492
2607
|
changeMonth(isPrevMonth ? -1 : 1);
|
|
2493
2608
|
}
|
|
@@ -2503,16 +2618,16 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2503
2618
|
}
|
|
2504
2619
|
function timeWrapper(e) {
|
|
2505
2620
|
e.preventDefault();
|
|
2506
|
-
|
|
2621
|
+
var isKeyDown = e.type === "keydown", eventTarget = getEventTarget(e), input = eventTarget;
|
|
2507
2622
|
if (self.amPM !== undefined && eventTarget === self.amPM) {
|
|
2508
2623
|
self.amPM.textContent =
|
|
2509
2624
|
self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];
|
|
2510
2625
|
}
|
|
2511
|
-
|
|
2626
|
+
var min = parseFloat(input.getAttribute("min")), max = parseFloat(input.getAttribute("max")), step = parseFloat(input.getAttribute("step")), curValue = parseInt(input.value, 10), delta = e.delta ||
|
|
2512
2627
|
(isKeyDown ? (e.which === 38 ? 1 : -1) : 0);
|
|
2513
|
-
|
|
2628
|
+
var newValue = curValue + step * delta;
|
|
2514
2629
|
if (typeof input.value !== "undefined" && input.value.length === 2) {
|
|
2515
|
-
|
|
2630
|
+
var isHourElem = input === self.hourElement, isMinuteElem = input === self.minuteElement;
|
|
2516
2631
|
if (newValue < min) {
|
|
2517
2632
|
newValue =
|
|
2518
2633
|
max +
|
|
@@ -2543,12 +2658,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2543
2658
|
return self;
|
|
2544
2659
|
}
|
|
2545
2660
|
function _flatpickr(nodeList, config) {
|
|
2546
|
-
|
|
2661
|
+
var nodes = Array.prototype.slice
|
|
2547
2662
|
.call(nodeList)
|
|
2548
|
-
.filter((x)
|
|
2549
|
-
|
|
2550
|
-
for (
|
|
2551
|
-
|
|
2663
|
+
.filter(function (x) { return x instanceof HTMLElement; });
|
|
2664
|
+
var instances = [];
|
|
2665
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
2666
|
+
var node = nodes[i];
|
|
2552
2667
|
try {
|
|
2553
2668
|
if (node.getAttribute("data-fp-omit") !== null)
|
|
2554
2669
|
continue;
|
|
@@ -2588,14 +2703,14 @@ var flatpickr = function (selector, config) {
|
|
|
2588
2703
|
};
|
|
2589
2704
|
flatpickr.defaultConfig = {};
|
|
2590
2705
|
flatpickr.l10ns = {
|
|
2591
|
-
en:
|
|
2592
|
-
default:
|
|
2706
|
+
en: __assign({}, english),
|
|
2707
|
+
default: __assign({}, english),
|
|
2593
2708
|
};
|
|
2594
|
-
flatpickr.localize = (l10n)
|
|
2595
|
-
flatpickr.l10ns.default =
|
|
2709
|
+
flatpickr.localize = function (l10n) {
|
|
2710
|
+
flatpickr.l10ns.default = __assign(__assign({}, flatpickr.l10ns.default), l10n);
|
|
2596
2711
|
};
|
|
2597
|
-
flatpickr.setDefaults = (config)
|
|
2598
|
-
flatpickr.defaultConfig =
|
|
2712
|
+
flatpickr.setDefaults = function (config) {
|
|
2713
|
+
flatpickr.defaultConfig = __assign(__assign({}, flatpickr.defaultConfig), config);
|
|
2599
2714
|
};
|
|
2600
2715
|
flatpickr.parseDate = createDateParser({});
|
|
2601
2716
|
flatpickr.formatDate = createDateFormatter({});
|
|
@@ -2677,7 +2792,17 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2677
2792
|
"ديسمبر",
|
|
2678
2793
|
],
|
|
2679
2794
|
},
|
|
2680
|
-
|
|
2795
|
+
firstDayOfWeek: 6,
|
|
2796
|
+
rangeSeparator: " إلى ",
|
|
2797
|
+
weekAbbreviation: "Wk",
|
|
2798
|
+
scrollTitle: "قم بالتمرير للزيادة",
|
|
2799
|
+
toggleTitle: "اضغط للتبديل",
|
|
2800
|
+
amPM: ["ص", "م"],
|
|
2801
|
+
yearAriaLabel: "سنة",
|
|
2802
|
+
monthAriaLabel: "شهر",
|
|
2803
|
+
hourAriaLabel: "ساعة",
|
|
2804
|
+
minuteAriaLabel: "دقيقة",
|
|
2805
|
+
time_24hr: false,
|
|
2681
2806
|
};
|
|
2682
2807
|
fp.l10ns.ar = Arabic;
|
|
2683
2808
|
|
|
@@ -2734,6 +2859,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2734
2859
|
rangeSeparator: " bis ",
|
|
2735
2860
|
scrollTitle: "Zum Ändern scrollen",
|
|
2736
2861
|
toggleTitle: "Zum Umschalten klicken",
|
|
2862
|
+
time_24hr: true,
|
|
2737
2863
|
};
|
|
2738
2864
|
fp$1.l10ns.at = Austria;
|
|
2739
2865
|
|
|
@@ -3083,6 +3209,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3083
3209
|
}
|
|
3084
3210
|
},
|
|
3085
3211
|
firstDayOfWeek: 1,
|
|
3212
|
+
rangeSeparator: " a ",
|
|
3086
3213
|
time_24hr: true,
|
|
3087
3214
|
};
|
|
3088
3215
|
fp$7.l10ns.cat = fp$7.l10ns.ca = Catalan;
|
|
@@ -3092,6 +3219,61 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3092
3219
|
: {
|
|
3093
3220
|
l10ns: {},
|
|
3094
3221
|
};
|
|
3222
|
+
var Kurdish = {
|
|
3223
|
+
weekdays: {
|
|
3224
|
+
shorthand: ["یەکشەممە", "دووشەممە", "سێشەممە", "چوارشەممە", "پێنجشەممە", "هەینی", "شەممە"],
|
|
3225
|
+
longhand: [
|
|
3226
|
+
"یەکشەممە",
|
|
3227
|
+
"دووشەممە",
|
|
3228
|
+
"سێشەممە",
|
|
3229
|
+
"چوارشەممە",
|
|
3230
|
+
"پێنجشەممە",
|
|
3231
|
+
"هەینی",
|
|
3232
|
+
"شەممە",
|
|
3233
|
+
],
|
|
3234
|
+
},
|
|
3235
|
+
months: {
|
|
3236
|
+
shorthand: [
|
|
3237
|
+
"ڕێبەندان",
|
|
3238
|
+
"ڕەشەمە",
|
|
3239
|
+
"نەورۆز",
|
|
3240
|
+
"گوڵان",
|
|
3241
|
+
"جۆزەردان",
|
|
3242
|
+
"پووشپەڕ",
|
|
3243
|
+
"گەلاوێژ",
|
|
3244
|
+
"خەرمانان",
|
|
3245
|
+
"ڕەزبەر",
|
|
3246
|
+
"گەڵاڕێزان",
|
|
3247
|
+
"سەرماوەز",
|
|
3248
|
+
"بەفرانبار",
|
|
3249
|
+
],
|
|
3250
|
+
longhand: [
|
|
3251
|
+
"ڕێبەندان",
|
|
3252
|
+
"ڕەشەمە",
|
|
3253
|
+
"نەورۆز",
|
|
3254
|
+
"گوڵان",
|
|
3255
|
+
"جۆزەردان",
|
|
3256
|
+
"پووشپەڕ",
|
|
3257
|
+
"گەلاوێژ",
|
|
3258
|
+
"خەرمانان",
|
|
3259
|
+
"ڕەزبەر",
|
|
3260
|
+
"گەڵاڕێزان",
|
|
3261
|
+
"سەرماوەز",
|
|
3262
|
+
"بەفرانبار",
|
|
3263
|
+
],
|
|
3264
|
+
},
|
|
3265
|
+
firstDayOfWeek: 6,
|
|
3266
|
+
ordinal: function () {
|
|
3267
|
+
return "";
|
|
3268
|
+
},
|
|
3269
|
+
};
|
|
3270
|
+
fp$8.l10ns.ckb = Kurdish;
|
|
3271
|
+
|
|
3272
|
+
var fp$9 = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3273
|
+
? window.flatpickr
|
|
3274
|
+
: {
|
|
3275
|
+
l10ns: {},
|
|
3276
|
+
};
|
|
3095
3277
|
var Czech = {
|
|
3096
3278
|
weekdays: {
|
|
3097
3279
|
shorthand: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
|
|
@@ -3147,9 +3329,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3147
3329
|
yearAriaLabel: "Rok",
|
|
3148
3330
|
time_24hr: true,
|
|
3149
3331
|
};
|
|
3150
|
-
fp$
|
|
3332
|
+
fp$9.l10ns.cs = Czech;
|
|
3151
3333
|
|
|
3152
|
-
var fp$
|
|
3334
|
+
var fp$a = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3153
3335
|
? window.flatpickr
|
|
3154
3336
|
: {
|
|
3155
3337
|
l10ns: {},
|
|
@@ -3227,9 +3409,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3227
3409
|
},
|
|
3228
3410
|
time_24hr: true,
|
|
3229
3411
|
};
|
|
3230
|
-
fp$
|
|
3412
|
+
fp$a.l10ns.cy = Welsh;
|
|
3231
3413
|
|
|
3232
|
-
var fp$
|
|
3414
|
+
var fp$b = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3233
3415
|
? window.flatpickr
|
|
3234
3416
|
: {
|
|
3235
3417
|
l10ns: {},
|
|
@@ -3285,9 +3467,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3285
3467
|
weekAbbreviation: "uge",
|
|
3286
3468
|
time_24hr: true,
|
|
3287
3469
|
};
|
|
3288
|
-
fp$
|
|
3470
|
+
fp$b.l10ns.da = Danish;
|
|
3289
3471
|
|
|
3290
|
-
var fp$
|
|
3472
|
+
var fp$c = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3291
3473
|
? window.flatpickr
|
|
3292
3474
|
: {
|
|
3293
3475
|
l10ns: {},
|
|
@@ -3342,7 +3524,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3342
3524
|
toggleTitle: "Zum Umschalten klicken",
|
|
3343
3525
|
time_24hr: true,
|
|
3344
3526
|
};
|
|
3345
|
-
fp$
|
|
3527
|
+
fp$c.l10ns.de = German;
|
|
3346
3528
|
|
|
3347
3529
|
var english = {
|
|
3348
3530
|
weekdays: {
|
|
@@ -3416,7 +3598,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3416
3598
|
time_24hr: false,
|
|
3417
3599
|
};
|
|
3418
3600
|
|
|
3419
|
-
var fp$
|
|
3601
|
+
var fp$d = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3420
3602
|
? window.flatpickr
|
|
3421
3603
|
: {
|
|
3422
3604
|
l10ns: {},
|
|
@@ -3474,9 +3656,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3474
3656
|
},
|
|
3475
3657
|
time_24hr: true,
|
|
3476
3658
|
};
|
|
3477
|
-
fp$
|
|
3659
|
+
fp$d.l10ns.eo = Esperanto;
|
|
3478
3660
|
|
|
3479
|
-
var fp$
|
|
3661
|
+
var fp$e = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3480
3662
|
? window.flatpickr
|
|
3481
3663
|
: {
|
|
3482
3664
|
l10ns: {},
|
|
@@ -3531,9 +3713,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3531
3713
|
rangeSeparator: " a ",
|
|
3532
3714
|
time_24hr: true,
|
|
3533
3715
|
};
|
|
3534
|
-
fp$
|
|
3716
|
+
fp$e.l10ns.es = Spanish;
|
|
3535
3717
|
|
|
3536
|
-
var fp$
|
|
3718
|
+
var fp$f = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3537
3719
|
? window.flatpickr
|
|
3538
3720
|
: {
|
|
3539
3721
|
l10ns: {},
|
|
@@ -3591,9 +3773,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3591
3773
|
toggleTitle: "Klõpsa, et vahetada",
|
|
3592
3774
|
time_24hr: true,
|
|
3593
3775
|
};
|
|
3594
|
-
fp$
|
|
3776
|
+
fp$f.l10ns.et = Estonian;
|
|
3595
3777
|
|
|
3596
|
-
var fp$
|
|
3778
|
+
var fp$g = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3597
3779
|
? window.flatpickr
|
|
3598
3780
|
: {
|
|
3599
3781
|
l10ns: {},
|
|
@@ -3646,9 +3828,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3646
3828
|
return "";
|
|
3647
3829
|
},
|
|
3648
3830
|
};
|
|
3649
|
-
fp$
|
|
3831
|
+
fp$g.l10ns.fa = Persian;
|
|
3650
3832
|
|
|
3651
|
-
var fp$
|
|
3833
|
+
var fp$h = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3652
3834
|
? window.flatpickr
|
|
3653
3835
|
: {
|
|
3654
3836
|
l10ns: {},
|
|
@@ -3656,45 +3838,45 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3656
3838
|
var Finnish = {
|
|
3657
3839
|
firstDayOfWeek: 1,
|
|
3658
3840
|
weekdays: {
|
|
3659
|
-
shorthand: ["
|
|
3841
|
+
shorthand: ["su", "ma", "ti", "ke", "to", "pe", "la"],
|
|
3660
3842
|
longhand: [
|
|
3661
|
-
"
|
|
3662
|
-
"
|
|
3663
|
-
"
|
|
3664
|
-
"
|
|
3665
|
-
"
|
|
3666
|
-
"
|
|
3667
|
-
"
|
|
3843
|
+
"sunnuntai",
|
|
3844
|
+
"maanantai",
|
|
3845
|
+
"tiistai",
|
|
3846
|
+
"keskiviikko",
|
|
3847
|
+
"torstai",
|
|
3848
|
+
"perjantai",
|
|
3849
|
+
"lauantai",
|
|
3668
3850
|
],
|
|
3669
3851
|
},
|
|
3670
3852
|
months: {
|
|
3671
3853
|
shorthand: [
|
|
3672
|
-
"
|
|
3673
|
-
"
|
|
3674
|
-
"
|
|
3675
|
-
"
|
|
3676
|
-
"
|
|
3677
|
-
"
|
|
3678
|
-
"
|
|
3679
|
-
"
|
|
3680
|
-
"
|
|
3681
|
-
"
|
|
3682
|
-
"
|
|
3683
|
-
"
|
|
3854
|
+
"tammi",
|
|
3855
|
+
"helmi",
|
|
3856
|
+
"maalis",
|
|
3857
|
+
"huhti",
|
|
3858
|
+
"touko",
|
|
3859
|
+
"kesä",
|
|
3860
|
+
"heinä",
|
|
3861
|
+
"elo",
|
|
3862
|
+
"syys",
|
|
3863
|
+
"loka",
|
|
3864
|
+
"marras",
|
|
3865
|
+
"joulu",
|
|
3684
3866
|
],
|
|
3685
3867
|
longhand: [
|
|
3686
|
-
"
|
|
3687
|
-
"
|
|
3688
|
-
"
|
|
3689
|
-
"
|
|
3690
|
-
"
|
|
3691
|
-
"
|
|
3692
|
-
"
|
|
3693
|
-
"
|
|
3694
|
-
"
|
|
3695
|
-
"
|
|
3696
|
-
"
|
|
3697
|
-
"
|
|
3868
|
+
"tammikuu",
|
|
3869
|
+
"helmikuu",
|
|
3870
|
+
"maaliskuu",
|
|
3871
|
+
"huhtikuu",
|
|
3872
|
+
"toukokuu",
|
|
3873
|
+
"kesäkuu",
|
|
3874
|
+
"heinäkuu",
|
|
3875
|
+
"elokuu",
|
|
3876
|
+
"syyskuu",
|
|
3877
|
+
"lokakuu",
|
|
3878
|
+
"marraskuu",
|
|
3879
|
+
"joulukuu",
|
|
3698
3880
|
],
|
|
3699
3881
|
},
|
|
3700
3882
|
ordinal: function () {
|
|
@@ -3702,9 +3884,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3702
3884
|
},
|
|
3703
3885
|
time_24hr: true,
|
|
3704
3886
|
};
|
|
3705
|
-
fp$
|
|
3887
|
+
fp$h.l10ns.fi = Finnish;
|
|
3706
3888
|
|
|
3707
|
-
var fp$
|
|
3889
|
+
var fp$i = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3708
3890
|
? window.flatpickr
|
|
3709
3891
|
: {
|
|
3710
3892
|
l10ns: {},
|
|
@@ -3763,9 +3945,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3763
3945
|
yearAriaLabel: "Ár",
|
|
3764
3946
|
time_24hr: true,
|
|
3765
3947
|
};
|
|
3766
|
-
fp$
|
|
3948
|
+
fp$i.l10ns.fo = Faroese;
|
|
3767
3949
|
|
|
3768
|
-
var fp$
|
|
3950
|
+
var fp$j = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3769
3951
|
? window.flatpickr
|
|
3770
3952
|
: {
|
|
3771
3953
|
l10ns: {},
|
|
@@ -3825,9 +4007,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3825
4007
|
toggleTitle: "Cliquer pour basculer",
|
|
3826
4008
|
time_24hr: true,
|
|
3827
4009
|
};
|
|
3828
|
-
fp$
|
|
4010
|
+
fp$j.l10ns.fr = French;
|
|
3829
4011
|
|
|
3830
|
-
var fp$
|
|
4012
|
+
var fp$k = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3831
4013
|
? window.flatpickr
|
|
3832
4014
|
: {
|
|
3833
4015
|
l10ns: {},
|
|
@@ -3852,8 +4034,8 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3852
4034
|
"Μάρ",
|
|
3853
4035
|
"Απρ",
|
|
3854
4036
|
"Μάι",
|
|
3855
|
-
"
|
|
3856
|
-
"
|
|
4037
|
+
"Ιούν",
|
|
4038
|
+
"Ιούλ",
|
|
3857
4039
|
"Αύγ",
|
|
3858
4040
|
"Σεπ",
|
|
3859
4041
|
"Οκτ",
|
|
@@ -3884,10 +4066,14 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3884
4066
|
scrollTitle: "Μετακυλήστε για προσαύξηση",
|
|
3885
4067
|
toggleTitle: "Κάντε κλικ για αλλαγή",
|
|
3886
4068
|
amPM: ["ΠΜ", "ΜΜ"],
|
|
4069
|
+
yearAriaLabel: "χρόνος",
|
|
4070
|
+
monthAriaLabel: "μήνας",
|
|
4071
|
+
hourAriaLabel: "ώρα",
|
|
4072
|
+
minuteAriaLabel: "λεπτό",
|
|
3887
4073
|
};
|
|
3888
|
-
fp$
|
|
4074
|
+
fp$k.l10ns.gr = Greek;
|
|
3889
4075
|
|
|
3890
|
-
var fp$
|
|
4076
|
+
var fp$l = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3891
4077
|
? window.flatpickr
|
|
3892
4078
|
: {
|
|
3893
4079
|
l10ns: {},
|
|
@@ -3930,9 +4116,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3930
4116
|
rangeSeparator: " אל ",
|
|
3931
4117
|
time_24hr: true,
|
|
3932
4118
|
};
|
|
3933
|
-
fp$
|
|
4119
|
+
fp$l.l10ns.he = Hebrew;
|
|
3934
4120
|
|
|
3935
|
-
var fp$
|
|
4121
|
+
var fp$m = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3936
4122
|
? window.flatpickr
|
|
3937
4123
|
: {
|
|
3938
4124
|
l10ns: {},
|
|
@@ -3981,9 +4167,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3981
4167
|
],
|
|
3982
4168
|
},
|
|
3983
4169
|
};
|
|
3984
|
-
fp$
|
|
4170
|
+
fp$m.l10ns.hi = Hindi;
|
|
3985
4171
|
|
|
3986
|
-
var fp$
|
|
4172
|
+
var fp$n = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
3987
4173
|
? window.flatpickr
|
|
3988
4174
|
: {
|
|
3989
4175
|
l10ns: {},
|
|
@@ -4034,9 +4220,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4034
4220
|
},
|
|
4035
4221
|
time_24hr: true,
|
|
4036
4222
|
};
|
|
4037
|
-
fp$
|
|
4223
|
+
fp$n.l10ns.hr = Croatian;
|
|
4038
4224
|
|
|
4039
|
-
var fp$
|
|
4225
|
+
var fp$o = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4040
4226
|
? window.flatpickr
|
|
4041
4227
|
: {
|
|
4042
4228
|
l10ns: {},
|
|
@@ -4094,9 +4280,82 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4094
4280
|
rangeSeparator: " - ",
|
|
4095
4281
|
time_24hr: true,
|
|
4096
4282
|
};
|
|
4097
|
-
fp$
|
|
4283
|
+
fp$o.l10ns.hu = Hungarian;
|
|
4098
4284
|
|
|
4099
|
-
var fp$
|
|
4285
|
+
var fp$p = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4286
|
+
? window.flatpickr
|
|
4287
|
+
: {
|
|
4288
|
+
l10ns: {},
|
|
4289
|
+
};
|
|
4290
|
+
var Armenian = {
|
|
4291
|
+
weekdays: {
|
|
4292
|
+
shorthand: [
|
|
4293
|
+
"Կիր",
|
|
4294
|
+
"Երկ",
|
|
4295
|
+
"Երք",
|
|
4296
|
+
"Չրք",
|
|
4297
|
+
"Հնգ",
|
|
4298
|
+
"Ուրբ",
|
|
4299
|
+
"Շբթ",
|
|
4300
|
+
],
|
|
4301
|
+
longhand: [
|
|
4302
|
+
"Կիրակի",
|
|
4303
|
+
"Եկուշաբթի",
|
|
4304
|
+
"Երեքշաբթի",
|
|
4305
|
+
"Չորեքշաբթի",
|
|
4306
|
+
"Հինգշաբթի",
|
|
4307
|
+
"Ուրբաթ",
|
|
4308
|
+
"Շաբաթ",
|
|
4309
|
+
],
|
|
4310
|
+
},
|
|
4311
|
+
months: {
|
|
4312
|
+
shorthand: [
|
|
4313
|
+
"Հնվ",
|
|
4314
|
+
"Փտր",
|
|
4315
|
+
"Մար",
|
|
4316
|
+
"Ապր",
|
|
4317
|
+
"Մայ",
|
|
4318
|
+
"Հնս",
|
|
4319
|
+
"Հլս",
|
|
4320
|
+
"Օգս",
|
|
4321
|
+
"Սեպ",
|
|
4322
|
+
"Հոկ",
|
|
4323
|
+
"Նմբ",
|
|
4324
|
+
"Դեկ",
|
|
4325
|
+
],
|
|
4326
|
+
longhand: [
|
|
4327
|
+
"Հունվար",
|
|
4328
|
+
"Փետրվար",
|
|
4329
|
+
"Մարտ",
|
|
4330
|
+
"Ապրիլ",
|
|
4331
|
+
"Մայիս",
|
|
4332
|
+
"Հունիս",
|
|
4333
|
+
"Հուլիս",
|
|
4334
|
+
"Օգոստոս",
|
|
4335
|
+
"Սեպտեմբեր",
|
|
4336
|
+
"Հոկտեմբեր",
|
|
4337
|
+
"Նոյեմբեր",
|
|
4338
|
+
"Դեկտեմբեր",
|
|
4339
|
+
],
|
|
4340
|
+
},
|
|
4341
|
+
firstDayOfWeek: 1,
|
|
4342
|
+
ordinal: function () {
|
|
4343
|
+
return "";
|
|
4344
|
+
},
|
|
4345
|
+
rangeSeparator: " — ",
|
|
4346
|
+
weekAbbreviation: "ՇԲՏ",
|
|
4347
|
+
scrollTitle: "Ոլորեք՝ մեծացնելու համար",
|
|
4348
|
+
toggleTitle: "Սեղմեք՝ փոխելու համար",
|
|
4349
|
+
amPM: ["ՄԿ", "ԿՀ"],
|
|
4350
|
+
yearAriaLabel: "Տարի",
|
|
4351
|
+
monthAriaLabel: "Ամիս",
|
|
4352
|
+
hourAriaLabel: "Ժամ",
|
|
4353
|
+
minuteAriaLabel: "Րոպե",
|
|
4354
|
+
time_24hr: true,
|
|
4355
|
+
};
|
|
4356
|
+
fp$p.l10ns.hy = Armenian;
|
|
4357
|
+
|
|
4358
|
+
var fp$q = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4100
4359
|
? window.flatpickr
|
|
4101
4360
|
: {
|
|
4102
4361
|
l10ns: {},
|
|
@@ -4143,9 +4402,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4143
4402
|
time_24hr: true,
|
|
4144
4403
|
rangeSeparator: " - ",
|
|
4145
4404
|
};
|
|
4146
|
-
fp$
|
|
4405
|
+
fp$q.l10ns.id = Indonesian;
|
|
4147
4406
|
|
|
4148
|
-
var fp$
|
|
4407
|
+
var fp$r = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4149
4408
|
? window.flatpickr
|
|
4150
4409
|
: {
|
|
4151
4410
|
l10ns: {},
|
|
@@ -4202,9 +4461,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4202
4461
|
yearAriaLabel: "Ár",
|
|
4203
4462
|
time_24hr: true,
|
|
4204
4463
|
};
|
|
4205
|
-
fp$
|
|
4464
|
+
fp$r.l10ns.is = Icelandic;
|
|
4206
4465
|
|
|
4207
|
-
var fp$
|
|
4466
|
+
var fp$s = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4208
4467
|
? window.flatpickr
|
|
4209
4468
|
: {
|
|
4210
4469
|
l10ns: {},
|
|
@@ -4260,9 +4519,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4260
4519
|
toggleTitle: "Clicca per cambiare",
|
|
4261
4520
|
time_24hr: true,
|
|
4262
4521
|
};
|
|
4263
|
-
fp$
|
|
4522
|
+
fp$s.l10ns.it = Italian;
|
|
4264
4523
|
|
|
4265
|
-
var fp$
|
|
4524
|
+
var fp$t = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4266
4525
|
? window.flatpickr
|
|
4267
4526
|
: {
|
|
4268
4527
|
l10ns: {},
|
|
@@ -4318,9 +4577,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4318
4577
|
hourAriaLabel: "時間",
|
|
4319
4578
|
minuteAriaLabel: "分",
|
|
4320
4579
|
};
|
|
4321
|
-
fp$
|
|
4580
|
+
fp$t.l10ns.ja = Japanese;
|
|
4322
4581
|
|
|
4323
|
-
var fp$
|
|
4582
|
+
var fp$u = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4324
4583
|
? window.flatpickr
|
|
4325
4584
|
: {
|
|
4326
4585
|
l10ns: {},
|
|
@@ -4380,9 +4639,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4380
4639
|
yearAriaLabel: "წელი",
|
|
4381
4640
|
time_24hr: true,
|
|
4382
4641
|
};
|
|
4383
|
-
fp$
|
|
4642
|
+
fp$u.l10ns.ka = Georgian;
|
|
4384
4643
|
|
|
4385
|
-
var fp$
|
|
4644
|
+
var fp$v = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4386
4645
|
? window.flatpickr
|
|
4387
4646
|
: {
|
|
4388
4647
|
l10ns: {},
|
|
@@ -4434,10 +4693,11 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4434
4693
|
return "일";
|
|
4435
4694
|
},
|
|
4436
4695
|
rangeSeparator: " ~ ",
|
|
4696
|
+
amPM: ["오전", "오후"],
|
|
4437
4697
|
};
|
|
4438
|
-
fp$
|
|
4698
|
+
fp$v.l10ns.ko = Korean;
|
|
4439
4699
|
|
|
4440
|
-
var fp$
|
|
4700
|
+
var fp$w = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4441
4701
|
? window.flatpickr
|
|
4442
4702
|
: {
|
|
4443
4703
|
l10ns: {},
|
|
@@ -4496,9 +4756,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4496
4756
|
yearAriaLabel: "ឆ្នាំ",
|
|
4497
4757
|
time_24hr: true,
|
|
4498
4758
|
};
|
|
4499
|
-
fp$
|
|
4759
|
+
fp$w.l10ns.km = Khmer;
|
|
4500
4760
|
|
|
4501
|
-
var fp$
|
|
4761
|
+
var fp$x = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4502
4762
|
? window.flatpickr
|
|
4503
4763
|
: {
|
|
4504
4764
|
l10ns: {},
|
|
@@ -4557,9 +4817,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4557
4817
|
amPM: ["ТД", "ТК"],
|
|
4558
4818
|
yearAriaLabel: "Жыл",
|
|
4559
4819
|
};
|
|
4560
|
-
fp$
|
|
4820
|
+
fp$x.l10ns.kz = Kazakh;
|
|
4561
4821
|
|
|
4562
|
-
var fp$
|
|
4822
|
+
var fp$y = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4563
4823
|
? window.flatpickr
|
|
4564
4824
|
: {
|
|
4565
4825
|
l10ns: {},
|
|
@@ -4617,9 +4877,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4617
4877
|
toggleTitle: "Perjungti laiko formatą",
|
|
4618
4878
|
time_24hr: true,
|
|
4619
4879
|
};
|
|
4620
|
-
fp$
|
|
4880
|
+
fp$y.l10ns.lt = Lithuanian;
|
|
4621
4881
|
|
|
4622
|
-
var fp$
|
|
4882
|
+
var fp$z = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4623
4883
|
? window.flatpickr
|
|
4624
4884
|
: {
|
|
4625
4885
|
l10ns: {},
|
|
@@ -4671,9 +4931,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4671
4931
|
rangeSeparator: " līdz ",
|
|
4672
4932
|
time_24hr: true,
|
|
4673
4933
|
};
|
|
4674
|
-
fp$
|
|
4934
|
+
fp$z.l10ns.lv = Latvian;
|
|
4675
4935
|
|
|
4676
|
-
var fp$
|
|
4936
|
+
var fp$A = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4677
4937
|
? window.flatpickr
|
|
4678
4938
|
: {
|
|
4679
4939
|
l10ns: {},
|
|
@@ -4726,9 +4986,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4726
4986
|
rangeSeparator: " до ",
|
|
4727
4987
|
time_24hr: true,
|
|
4728
4988
|
};
|
|
4729
|
-
fp$
|
|
4989
|
+
fp$A.l10ns.mk = Macedonian;
|
|
4730
4990
|
|
|
4731
|
-
var fp$
|
|
4991
|
+
var fp$B = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4732
4992
|
? window.flatpickr
|
|
4733
4993
|
: {
|
|
4734
4994
|
l10ns: {},
|
|
@@ -4772,12 +5032,12 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4772
5032
|
rangeSeparator: "-с ",
|
|
4773
5033
|
time_24hr: true,
|
|
4774
5034
|
};
|
|
4775
|
-
fp$
|
|
5035
|
+
fp$B.l10ns.mn = Mongolian;
|
|
4776
5036
|
var Malaysian = {
|
|
4777
5037
|
weekdays: {
|
|
4778
|
-
shorthand: ["
|
|
5038
|
+
shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
|
|
4779
5039
|
longhand: [
|
|
4780
|
-
"
|
|
5040
|
+
"Ahad",
|
|
4781
5041
|
"Isnin",
|
|
4782
5042
|
"Selasa",
|
|
4783
5043
|
"Rabu",
|
|
@@ -4822,7 +5082,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4822
5082
|
},
|
|
4823
5083
|
};
|
|
4824
5084
|
|
|
4825
|
-
var fp$
|
|
5085
|
+
var fp$D = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4826
5086
|
? window.flatpickr
|
|
4827
5087
|
: {
|
|
4828
5088
|
l10ns: {},
|
|
@@ -4876,9 +5136,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4876
5136
|
},
|
|
4877
5137
|
time_24hr: true,
|
|
4878
5138
|
};
|
|
4879
|
-
fp$
|
|
5139
|
+
fp$D.l10ns.my = Burmese;
|
|
4880
5140
|
|
|
4881
|
-
var fp$
|
|
5141
|
+
var fp$E = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4882
5142
|
? window.flatpickr
|
|
4883
5143
|
: {
|
|
4884
5144
|
l10ns: {},
|
|
@@ -4938,9 +5198,69 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4938
5198
|
return "de";
|
|
4939
5199
|
},
|
|
4940
5200
|
};
|
|
4941
|
-
fp$
|
|
5201
|
+
fp$E.l10ns.nl = Dutch;
|
|
4942
5202
|
|
|
4943
|
-
var fp$
|
|
5203
|
+
var fp$F = typeof window !== 'undefined' && window.flatpickr !== undefined
|
|
5204
|
+
? window.flatpickr
|
|
5205
|
+
: {
|
|
5206
|
+
l10ns: {},
|
|
5207
|
+
};
|
|
5208
|
+
var NorwegianNynorsk = {
|
|
5209
|
+
weekdays: {
|
|
5210
|
+
shorthand: ['Sø.', 'Må.', 'Ty.', 'On.', 'To.', 'Fr.', 'La.'],
|
|
5211
|
+
longhand: [
|
|
5212
|
+
'Søndag',
|
|
5213
|
+
'Måndag',
|
|
5214
|
+
'Tysdag',
|
|
5215
|
+
'Onsdag',
|
|
5216
|
+
'Torsdag',
|
|
5217
|
+
'Fredag',
|
|
5218
|
+
'Laurdag',
|
|
5219
|
+
],
|
|
5220
|
+
},
|
|
5221
|
+
months: {
|
|
5222
|
+
shorthand: [
|
|
5223
|
+
'Jan',
|
|
5224
|
+
'Feb',
|
|
5225
|
+
'Mars',
|
|
5226
|
+
'Apr',
|
|
5227
|
+
'Mai',
|
|
5228
|
+
'Juni',
|
|
5229
|
+
'Juli',
|
|
5230
|
+
'Aug',
|
|
5231
|
+
'Sep',
|
|
5232
|
+
'Okt',
|
|
5233
|
+
'Nov',
|
|
5234
|
+
'Des',
|
|
5235
|
+
],
|
|
5236
|
+
longhand: [
|
|
5237
|
+
'Januar',
|
|
5238
|
+
'Februar',
|
|
5239
|
+
'Mars',
|
|
5240
|
+
'April',
|
|
5241
|
+
'Mai',
|
|
5242
|
+
'Juni',
|
|
5243
|
+
'Juli',
|
|
5244
|
+
'August',
|
|
5245
|
+
'September',
|
|
5246
|
+
'Oktober',
|
|
5247
|
+
'November',
|
|
5248
|
+
'Desember',
|
|
5249
|
+
],
|
|
5250
|
+
},
|
|
5251
|
+
firstDayOfWeek: 1,
|
|
5252
|
+
rangeSeparator: ' til ',
|
|
5253
|
+
weekAbbreviation: 'Veke',
|
|
5254
|
+
scrollTitle: 'Scroll for å endre',
|
|
5255
|
+
toggleTitle: 'Klikk for å veksle',
|
|
5256
|
+
time_24hr: true,
|
|
5257
|
+
ordinal: function () {
|
|
5258
|
+
return '.';
|
|
5259
|
+
},
|
|
5260
|
+
};
|
|
5261
|
+
fp$F.l10ns.nn = NorwegianNynorsk;
|
|
5262
|
+
|
|
5263
|
+
var fp$G = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
4944
5264
|
? window.flatpickr
|
|
4945
5265
|
: {
|
|
4946
5266
|
l10ns: {},
|
|
@@ -4998,9 +5318,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4998
5318
|
return ".";
|
|
4999
5319
|
},
|
|
5000
5320
|
};
|
|
5001
|
-
fp$
|
|
5321
|
+
fp$G.l10ns.no = Norwegian;
|
|
5002
5322
|
|
|
5003
|
-
var fp$
|
|
5323
|
+
var fp$H = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5004
5324
|
? window.flatpickr
|
|
5005
5325
|
: {
|
|
5006
5326
|
l10ns: {},
|
|
@@ -5050,9 +5370,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5050
5370
|
},
|
|
5051
5371
|
time_24hr: true,
|
|
5052
5372
|
};
|
|
5053
|
-
fp$
|
|
5373
|
+
fp$H.l10ns.pa = Punjabi;
|
|
5054
5374
|
|
|
5055
|
-
var fp$
|
|
5375
|
+
var fp$I = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5056
5376
|
? window.flatpickr
|
|
5057
5377
|
: {
|
|
5058
5378
|
l10ns: {},
|
|
@@ -5110,9 +5430,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5110
5430
|
return ".";
|
|
5111
5431
|
},
|
|
5112
5432
|
};
|
|
5113
|
-
fp$
|
|
5433
|
+
fp$I.l10ns.pl = Polish;
|
|
5114
5434
|
|
|
5115
|
-
var fp$
|
|
5435
|
+
var fp$J = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5116
5436
|
? window.flatpickr
|
|
5117
5437
|
: {
|
|
5118
5438
|
l10ns: {},
|
|
@@ -5163,9 +5483,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5163
5483
|
rangeSeparator: " até ",
|
|
5164
5484
|
time_24hr: true,
|
|
5165
5485
|
};
|
|
5166
|
-
fp$
|
|
5486
|
+
fp$J.l10ns.pt = Portuguese;
|
|
5167
5487
|
|
|
5168
|
-
var fp$
|
|
5488
|
+
var fp$K = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5169
5489
|
? window.flatpickr
|
|
5170
5490
|
: {
|
|
5171
5491
|
l10ns: {},
|
|
@@ -5219,9 +5539,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5219
5539
|
return "";
|
|
5220
5540
|
},
|
|
5221
5541
|
};
|
|
5222
|
-
fp$
|
|
5542
|
+
fp$K.l10ns.ro = Romanian;
|
|
5223
5543
|
|
|
5224
|
-
var fp$
|
|
5544
|
+
var fp$L = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5225
5545
|
? window.flatpickr
|
|
5226
5546
|
: {
|
|
5227
5547
|
l10ns: {},
|
|
@@ -5281,9 +5601,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5281
5601
|
yearAriaLabel: "Год",
|
|
5282
5602
|
time_24hr: true,
|
|
5283
5603
|
};
|
|
5284
|
-
fp$
|
|
5604
|
+
fp$L.l10ns.ru = Russian;
|
|
5285
5605
|
|
|
5286
|
-
var fp$
|
|
5606
|
+
var fp$M = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5287
5607
|
? window.flatpickr
|
|
5288
5608
|
: {
|
|
5289
5609
|
l10ns: {},
|
|
@@ -5333,9 +5653,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5333
5653
|
},
|
|
5334
5654
|
time_24hr: true,
|
|
5335
5655
|
};
|
|
5336
|
-
fp$
|
|
5656
|
+
fp$M.l10ns.si = Sinhala;
|
|
5337
5657
|
|
|
5338
|
-
var fp$
|
|
5658
|
+
var fp$N = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5339
5659
|
? window.flatpickr
|
|
5340
5660
|
: {
|
|
5341
5661
|
l10ns: {},
|
|
@@ -5390,9 +5710,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5390
5710
|
return ".";
|
|
5391
5711
|
},
|
|
5392
5712
|
};
|
|
5393
|
-
fp$
|
|
5713
|
+
fp$N.l10ns.sk = Slovak;
|
|
5394
5714
|
|
|
5395
|
-
var fp$
|
|
5715
|
+
var fp$O = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5396
5716
|
? window.flatpickr
|
|
5397
5717
|
: {
|
|
5398
5718
|
l10ns: {},
|
|
@@ -5447,9 +5767,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5447
5767
|
return ".";
|
|
5448
5768
|
},
|
|
5449
5769
|
};
|
|
5450
|
-
fp$
|
|
5770
|
+
fp$O.l10ns.sl = Slovenian;
|
|
5451
5771
|
|
|
5452
|
-
var fp$
|
|
5772
|
+
var fp$P = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5453
5773
|
? window.flatpickr
|
|
5454
5774
|
: {
|
|
5455
5775
|
l10ns: {},
|
|
@@ -5499,9 +5819,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5499
5819
|
},
|
|
5500
5820
|
time_24hr: true,
|
|
5501
5821
|
};
|
|
5502
|
-
fp$
|
|
5822
|
+
fp$P.l10ns.sq = Albanian;
|
|
5503
5823
|
|
|
5504
|
-
var fp$
|
|
5824
|
+
var fp$Q = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5505
5825
|
? window.flatpickr
|
|
5506
5826
|
: {
|
|
5507
5827
|
l10ns: {},
|
|
@@ -5554,9 +5874,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5554
5874
|
rangeSeparator: " do ",
|
|
5555
5875
|
time_24hr: true,
|
|
5556
5876
|
};
|
|
5557
|
-
fp$
|
|
5877
|
+
fp$Q.l10ns.sr = Serbian;
|
|
5558
5878
|
|
|
5559
|
-
var fp$
|
|
5879
|
+
var fp$R = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5560
5880
|
? window.flatpickr
|
|
5561
5881
|
: {
|
|
5562
5882
|
l10ns: {},
|
|
@@ -5565,55 +5885,56 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5565
5885
|
firstDayOfWeek: 1,
|
|
5566
5886
|
weekAbbreviation: "v",
|
|
5567
5887
|
weekdays: {
|
|
5568
|
-
shorthand: ["
|
|
5888
|
+
shorthand: ["sön", "mån", "tis", "ons", "tor", "fre", "lör"],
|
|
5569
5889
|
longhand: [
|
|
5570
|
-
"
|
|
5571
|
-
"
|
|
5572
|
-
"
|
|
5573
|
-
"
|
|
5574
|
-
"
|
|
5575
|
-
"
|
|
5576
|
-
"
|
|
5890
|
+
"söndag",
|
|
5891
|
+
"måndag",
|
|
5892
|
+
"tisdag",
|
|
5893
|
+
"onsdag",
|
|
5894
|
+
"torsdag",
|
|
5895
|
+
"fredag",
|
|
5896
|
+
"lördag",
|
|
5577
5897
|
],
|
|
5578
5898
|
},
|
|
5579
5899
|
months: {
|
|
5580
5900
|
shorthand: [
|
|
5581
|
-
"
|
|
5582
|
-
"
|
|
5583
|
-
"
|
|
5584
|
-
"
|
|
5585
|
-
"
|
|
5586
|
-
"
|
|
5587
|
-
"
|
|
5588
|
-
"
|
|
5589
|
-
"
|
|
5590
|
-
"
|
|
5591
|
-
"
|
|
5592
|
-
"
|
|
5901
|
+
"jan",
|
|
5902
|
+
"feb",
|
|
5903
|
+
"mar",
|
|
5904
|
+
"apr",
|
|
5905
|
+
"maj",
|
|
5906
|
+
"jun",
|
|
5907
|
+
"jul",
|
|
5908
|
+
"aug",
|
|
5909
|
+
"sep",
|
|
5910
|
+
"okt",
|
|
5911
|
+
"nov",
|
|
5912
|
+
"dec",
|
|
5593
5913
|
],
|
|
5594
5914
|
longhand: [
|
|
5595
|
-
"
|
|
5596
|
-
"
|
|
5597
|
-
"
|
|
5598
|
-
"
|
|
5599
|
-
"
|
|
5600
|
-
"
|
|
5601
|
-
"
|
|
5602
|
-
"
|
|
5603
|
-
"
|
|
5604
|
-
"
|
|
5605
|
-
"
|
|
5606
|
-
"
|
|
5915
|
+
"januari",
|
|
5916
|
+
"februari",
|
|
5917
|
+
"mars",
|
|
5918
|
+
"april",
|
|
5919
|
+
"maj",
|
|
5920
|
+
"juni",
|
|
5921
|
+
"juli",
|
|
5922
|
+
"augusti",
|
|
5923
|
+
"september",
|
|
5924
|
+
"oktober",
|
|
5925
|
+
"november",
|
|
5926
|
+
"december",
|
|
5607
5927
|
],
|
|
5608
5928
|
},
|
|
5929
|
+
rangeSeparator: ' till ',
|
|
5609
5930
|
time_24hr: true,
|
|
5610
5931
|
ordinal: function () {
|
|
5611
5932
|
return ".";
|
|
5612
5933
|
},
|
|
5613
5934
|
};
|
|
5614
|
-
fp$
|
|
5935
|
+
fp$R.l10ns.sv = Swedish;
|
|
5615
5936
|
|
|
5616
|
-
var fp$
|
|
5937
|
+
var fp$S = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5617
5938
|
? window.flatpickr
|
|
5618
5939
|
: {
|
|
5619
5940
|
l10ns: {},
|
|
@@ -5670,9 +5991,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5670
5991
|
return "";
|
|
5671
5992
|
},
|
|
5672
5993
|
};
|
|
5673
|
-
fp$
|
|
5994
|
+
fp$S.l10ns.th = Thai;
|
|
5674
5995
|
|
|
5675
|
-
var fp$
|
|
5996
|
+
var fp$T = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5676
5997
|
? window.flatpickr
|
|
5677
5998
|
: {
|
|
5678
5999
|
l10ns: {},
|
|
@@ -5731,9 +6052,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5731
6052
|
amPM: ["ÖÖ", "ÖS"],
|
|
5732
6053
|
time_24hr: true,
|
|
5733
6054
|
};
|
|
5734
|
-
fp$
|
|
6055
|
+
fp$T.l10ns.tr = Turkish;
|
|
5735
6056
|
|
|
5736
|
-
var fp$
|
|
6057
|
+
var fp$U = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5737
6058
|
? window.flatpickr
|
|
5738
6059
|
: {
|
|
5739
6060
|
l10ns: {},
|
|
@@ -5784,9 +6105,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5784
6105
|
},
|
|
5785
6106
|
time_24hr: true,
|
|
5786
6107
|
};
|
|
5787
|
-
fp$
|
|
6108
|
+
fp$U.l10ns.uk = Ukrainian;
|
|
5788
6109
|
|
|
5789
|
-
var fp$
|
|
6110
|
+
var fp$V = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5790
6111
|
? window.flatpickr
|
|
5791
6112
|
: {
|
|
5792
6113
|
l10ns: {},
|
|
@@ -5846,9 +6167,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5846
6167
|
yearAriaLabel: "Йил",
|
|
5847
6168
|
time_24hr: true,
|
|
5848
6169
|
};
|
|
5849
|
-
fp$
|
|
6170
|
+
fp$V.l10ns.uz = Uzbek;
|
|
5850
6171
|
|
|
5851
|
-
var fp$
|
|
6172
|
+
var fp$W = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5852
6173
|
? window.flatpickr
|
|
5853
6174
|
: {
|
|
5854
6175
|
l10ns: {},
|
|
@@ -5908,9 +6229,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5908
6229
|
yearAriaLabel: "Yil",
|
|
5909
6230
|
time_24hr: true,
|
|
5910
6231
|
};
|
|
5911
|
-
fp$
|
|
6232
|
+
fp$W.l10ns["uz_latn"] = UzbekLatin;
|
|
5912
6233
|
|
|
5913
|
-
var fp$
|
|
6234
|
+
var fp$X = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5914
6235
|
? window.flatpickr
|
|
5915
6236
|
: {
|
|
5916
6237
|
l10ns: {},
|
|
@@ -5961,9 +6282,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5961
6282
|
firstDayOfWeek: 1,
|
|
5962
6283
|
rangeSeparator: " đến ",
|
|
5963
6284
|
};
|
|
5964
|
-
fp$
|
|
6285
|
+
fp$X.l10ns.vn = Vietnamese;
|
|
5965
6286
|
|
|
5966
|
-
var fp$
|
|
6287
|
+
var fp$Y = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
5967
6288
|
? window.flatpickr
|
|
5968
6289
|
: {
|
|
5969
6290
|
l10ns: {},
|
|
@@ -6016,9 +6337,9 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
6016
6337
|
scrollTitle: "滚动切换",
|
|
6017
6338
|
toggleTitle: "点击切换 12/24 小时时制",
|
|
6018
6339
|
};
|
|
6019
|
-
fp$
|
|
6340
|
+
fp$Y.l10ns.zh = Mandarin;
|
|
6020
6341
|
|
|
6021
|
-
var fp$
|
|
6342
|
+
var fp$Z = typeof window !== "undefined" && window.flatpickr !== undefined
|
|
6022
6343
|
? window.flatpickr
|
|
6023
6344
|
: {
|
|
6024
6345
|
l10ns: {},
|
|
@@ -6071,7 +6392,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
6071
6392
|
scrollTitle: "滾動切換",
|
|
6072
6393
|
toggleTitle: "點擊切換 12/24 小時時制",
|
|
6073
6394
|
};
|
|
6074
|
-
fp$
|
|
6395
|
+
fp$Z.l10ns.zh_tw = MandarinTraditional;
|
|
6075
6396
|
|
|
6076
6397
|
var l10n = {
|
|
6077
6398
|
ar: Arabic,
|
|
@@ -6082,6 +6403,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
6082
6403
|
bn: Bangla,
|
|
6083
6404
|
bs: Bosnian,
|
|
6084
6405
|
ca: Catalan,
|
|
6406
|
+
ckb: Kurdish,
|
|
6085
6407
|
cat: Catalan,
|
|
6086
6408
|
cs: Czech,
|
|
6087
6409
|
cy: Welsh,
|
|
@@ -6101,6 +6423,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
6101
6423
|
hi: Hindi,
|
|
6102
6424
|
hr: Croatian,
|
|
6103
6425
|
hu: Hungarian,
|
|
6426
|
+
hy: Armenian,
|
|
6104
6427
|
id: Indonesian,
|
|
6105
6428
|
is: Icelandic,
|
|
6106
6429
|
it: Italian,
|
|
@@ -6116,6 +6439,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
6116
6439
|
ms: Malaysian,
|
|
6117
6440
|
my: Burmese,
|
|
6118
6441
|
nl: Dutch,
|
|
6442
|
+
nn: NorwegianNynorsk,
|
|
6119
6443
|
no: Norwegian,
|
|
6120
6444
|
pa: Punjabi,
|
|
6121
6445
|
pl: Polish,
|
|
@@ -7142,7 +7466,7 @@ class YearPicker extends Picker {
|
|
|
7142
7466
|
}
|
|
7143
7467
|
}
|
|
7144
7468
|
|
|
7145
|
-
const flatpickrAdapterCss = ".flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-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);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;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.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.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.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;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.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-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;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}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.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%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;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;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.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-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;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.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.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;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-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}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:\"\";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.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;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.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;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:root{--mdc-theme-primary:#26a69a;--mdc-theme-secondary:#575756;--mdc-theme-background:#fff;--mdc-theme-surface:#fff;--mdc-theme-error:#b00020;--mdc-theme-on-primary:#fff;--mdc-theme-on-secondary:#fff;--mdc-theme-on-surface:#000;--mdc-theme-on-error:#fff;--mdc-theme-text-primary-on-background:rgba(0, 0, 0, 0.87);--mdc-theme-text-secondary-on-background:rgba(0, 0, 0, 0.54);--mdc-theme-text-hint-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-disabled-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-icon-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-primary-on-light:rgba(0, 0, 0, 0.87);--mdc-theme-text-secondary-on-light:rgba(0, 0, 0, 0.54);--mdc-theme-text-hint-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-disabled-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-icon-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-primary-on-dark:white;--mdc-theme-text-secondary-on-dark:rgba(255, 255, 255, 0.7);--mdc-theme-text-hint-on-dark:rgba(255, 255, 255, 0.5);--mdc-theme-text-disabled-on-dark:rgba(255, 255, 255, 0.5);--mdc-theme-text-icon-on-dark:rgba(255, 255, 255, 0.5)}.mdc-theme--primary{color:#26a69a !important;color:var(--mdc-theme-primary, #26a69a) !important}.mdc-theme--secondary{color:#575756 !important;color:var(--mdc-theme-secondary, #575756) !important}.mdc-theme--background{background-color:#fff;background-color:var(--mdc-theme-background, #fff)}.mdc-theme--surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-theme--error{color:#b00020 !important;color:var(--mdc-theme-error, #b00020) !important}.mdc-theme--on-primary{color:#fff !important;color:var(--mdc-theme-on-primary, #fff) !important}.mdc-theme--on-secondary{color:#fff !important;color:var(--mdc-theme-on-secondary, #fff) !important}.mdc-theme--on-surface{color:#000 !important;color:var(--mdc-theme-on-surface, #000) !important}.mdc-theme--on-error{color:#fff !important;color:var(--mdc-theme-on-error, #fff) !important}.mdc-theme--text-primary-on-background{color:rgba(0, 0, 0, 0.87) !important;color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)) !important}.mdc-theme--text-secondary-on-background{color:rgba(0, 0, 0, 0.54) !important;color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)) !important}.mdc-theme--text-hint-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-disabled-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-disabled-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-icon-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-primary-on-light{color:rgba(0, 0, 0, 0.87) !important;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, 0.87)) !important}.mdc-theme--text-secondary-on-light{color:rgba(0, 0, 0, 0.54) !important;color:var(--mdc-theme-text-secondary-on-light, rgba(0, 0, 0, 0.54)) !important}.mdc-theme--text-hint-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-hint-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-disabled-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-icon-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-icon-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-primary-on-dark{color:white !important;color:var(--mdc-theme-text-primary-on-dark, white) !important}.mdc-theme--text-secondary-on-dark{color:rgba(255, 255, 255, 0.7) !important;color:var(--mdc-theme-text-secondary-on-dark, rgba(255, 255, 255, 0.7)) !important}.mdc-theme--text-hint-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-hint-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--text-disabled-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-disabled-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--text-icon-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-icon-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--primary-bg{background-color:#26a69a !important;background-color:var(--mdc-theme-primary, #26a69a) !important}.mdc-theme--secondary-bg{background-color:#575756 !important;background-color:var(--mdc-theme-secondary, #575756) !important}.container{display:inline-block;position:relative;width:100%}.flatpickr-calendar{left:0 !important;top:auto !important;margin-top:2px}.flatpickr-calendar .datepicker-months-container,.flatpickr-calendar .datepicker-quarters-container,.flatpickr-calendar .datepicker-weeks-container,.flatpickr-calendar .datepicker-years-container{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}.flatpickr-calendar .datepicker-months-container .selected,.flatpickr-calendar .datepicker-quarters-container .selected,.flatpickr-calendar .datepicker-weeks-container .selected,.flatpickr-calendar .datepicker-years-container .selected{z-index:1}.flatpickr-calendar .datepicker-months-container :hover,.flatpickr-calendar .datepicker-quarters-container :hover,.flatpickr-calendar .datepicker-weeks-container :hover,.flatpickr-calendar .datepicker-years-container :hover{z-index:1}.flatpickr-calendar .datepicker-month,.flatpickr-calendar .datepicker-quarter,.flatpickr-calendar .datepicker-week,.flatpickr-calendar .datepicker-year{cursor:pointer;display:inline-block;flex-grow:0;padding:0.625rem;position:relative;min-width:2.5rem}.flatpickr-calendar .datepicker-month:after,.flatpickr-calendar .datepicker-quarter:after,.flatpickr-calendar .datepicker-week:after,.flatpickr-calendar .datepicker-year:after{border-radius:0.9375rem;content:\" \";height:1.875rem;left:0.3125rem;position:absolute;right:0.3125rem;top:0.4375rem;bottom:0.4375rem;z-index:-1}.flatpickr-calendar .datepicker-month.selected,.flatpickr-calendar .datepicker-quarter.selected,.flatpickr-calendar .datepicker-week.selected,.flatpickr-calendar .datepicker-year.selected{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .datepicker-month.selected:after,.flatpickr-calendar .datepicker-quarter.selected:after,.flatpickr-calendar .datepicker-week.selected:after,.flatpickr-calendar .datepicker-year.selected:after{background:var(--mdc-theme-primary)}.flatpickr-calendar .datepicker-month:hover,.flatpickr-calendar .datepicker-quarter:hover,.flatpickr-calendar .datepicker-week:hover,.flatpickr-calendar .datepicker-year:hover{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .datepicker-month:hover:after,.flatpickr-calendar .datepicker-quarter:hover:after,.flatpickr-calendar .datepicker-week:hover:after,.flatpickr-calendar .datepicker-year:hover:after{background:var(--mdc-theme-primary);opacity:0.5}.flatpickr-calendar .datepicker-month .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-quarter .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-week .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-year .datepicker-month-in-quarter{color:var(--mdc-theme-text-disabled-on-background);display:block;font-size:0.75rem}.flatpickr-calendar .datepicker-month{min-width:4.375rem}.flatpickr-calendar .datepicker-month:after{left:0.625rem;right:0.625rem}.flatpickr-calendar .flatpickr-month{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-month .numInputWrapper span.arrowUp:after,.flatpickr-calendar .flatpickr-month .numInputWrapper span.arrowDown:after{border-top-color:var(--mdc-theme-on-primary);border-bottom-color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-months{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);height:2.625rem;padding-top:0.375rem}.flatpickr-calendar .flatpickr-prev-month,.flatpickr-calendar .flatpickr-next-month{fill:var(--mdc-theme-on-primary);top:0.375rem}.flatpickr-calendar .flatpickr-prev-month:hover,.flatpickr-calendar .flatpickr-next-month:hover{color:var(--mdc-theme-on-primary);fill:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month div.flatpickr-month{font-size:1rem;font-weight:400 !important;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month select{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month select option{color:initial}.flatpickr-calendar .flatpickr-current-month input{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month .numInputWrapper:hover{background:var(--mdc-theme-primary)}.flatpickr-calendar .flatpickr-weekday{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);font-weight:400}.flatpickr-calendar .flatpickr-weekdays{background:var(--mdc-theme-primary)}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{display:none}.flatpickr-calendar .flatpickr-day{border:none;background:transparent !important;border-radius:0 !important;box-shadow:none !important;max-width:none}.flatpickr-calendar .flatpickr-day.selected,.flatpickr-calendar .flatpickr-day.inRange,.flatpickr-calendar .flatpickr-day.selected:hover,.flatpickr-calendar .flatpickr-day.nextMonthDay:hover,.flatpickr-calendar .flatpickr-day:hover{background:transparent;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day.today{background:transparent}.flatpickr-calendar .flatpickr-day.today:after{opacity:0.25}.flatpickr-calendar .flatpickr-day.today:hover{background:transparent;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day:after{border-radius:0.9375rem;content:\" \";height:1.875rem;left:50%;margin-left:-0.9375rem;margin-top:-0.9375rem;position:absolute;top:50%;width:1.875rem;z-index:-1}.flatpickr-calendar .flatpickr-day.selected:after{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day.inRange:after,.flatpickr-calendar .flatpickr-day.nextMonthDay:hover:after,.flatpickr-calendar .flatpickr-day:hover:after{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);opacity:0.5}.flatpickr-calendar .flatpickr-weekwrapper{width:2.5rem}.flatpickr-calendar .flatpickr-time{height:2.5rem}";
|
|
7469
|
+
const flatpickrAdapterCss = ".flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-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);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;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.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.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.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;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.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-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;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}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.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%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;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;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.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-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;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.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.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;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-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}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:\"\";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.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;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.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;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}:root{--mdc-theme-primary:#26a69a;--mdc-theme-secondary:#575756;--mdc-theme-background:#fff;--mdc-theme-surface:#fff;--mdc-theme-error:#b00020;--mdc-theme-on-primary:#fff;--mdc-theme-on-secondary:#fff;--mdc-theme-on-surface:#000;--mdc-theme-on-error:#fff;--mdc-theme-text-primary-on-background:rgba(0, 0, 0, 0.87);--mdc-theme-text-secondary-on-background:rgba(0, 0, 0, 0.54);--mdc-theme-text-hint-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-disabled-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-icon-on-background:rgba(0, 0, 0, 0.38);--mdc-theme-text-primary-on-light:rgba(0, 0, 0, 0.87);--mdc-theme-text-secondary-on-light:rgba(0, 0, 0, 0.54);--mdc-theme-text-hint-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-disabled-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-icon-on-light:rgba(0, 0, 0, 0.38);--mdc-theme-text-primary-on-dark:white;--mdc-theme-text-secondary-on-dark:rgba(255, 255, 255, 0.7);--mdc-theme-text-hint-on-dark:rgba(255, 255, 255, 0.5);--mdc-theme-text-disabled-on-dark:rgba(255, 255, 255, 0.5);--mdc-theme-text-icon-on-dark:rgba(255, 255, 255, 0.5)}.mdc-theme--primary{color:#26a69a !important;color:var(--mdc-theme-primary, #26a69a) !important}.mdc-theme--secondary{color:#575756 !important;color:var(--mdc-theme-secondary, #575756) !important}.mdc-theme--background{background-color:#fff;background-color:var(--mdc-theme-background, #fff)}.mdc-theme--surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-theme--error{color:#b00020 !important;color:var(--mdc-theme-error, #b00020) !important}.mdc-theme--on-primary{color:#fff !important;color:var(--mdc-theme-on-primary, #fff) !important}.mdc-theme--on-secondary{color:#fff !important;color:var(--mdc-theme-on-secondary, #fff) !important}.mdc-theme--on-surface{color:#000 !important;color:var(--mdc-theme-on-surface, #000) !important}.mdc-theme--on-error{color:#fff !important;color:var(--mdc-theme-on-error, #fff) !important}.mdc-theme--text-primary-on-background{color:rgba(0, 0, 0, 0.87) !important;color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87)) !important}.mdc-theme--text-secondary-on-background{color:rgba(0, 0, 0, 0.54) !important;color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54)) !important}.mdc-theme--text-hint-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-disabled-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-disabled-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-icon-on-background{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-primary-on-light{color:rgba(0, 0, 0, 0.87) !important;color:var(--mdc-theme-text-primary-on-light, rgba(0, 0, 0, 0.87)) !important}.mdc-theme--text-secondary-on-light{color:rgba(0, 0, 0, 0.54) !important;color:var(--mdc-theme-text-secondary-on-light, rgba(0, 0, 0, 0.54)) !important}.mdc-theme--text-hint-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-hint-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-disabled-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-icon-on-light{color:rgba(0, 0, 0, 0.38) !important;color:var(--mdc-theme-text-icon-on-light, rgba(0, 0, 0, 0.38)) !important}.mdc-theme--text-primary-on-dark{color:white !important;color:var(--mdc-theme-text-primary-on-dark, white) !important}.mdc-theme--text-secondary-on-dark{color:rgba(255, 255, 255, 0.7) !important;color:var(--mdc-theme-text-secondary-on-dark, rgba(255, 255, 255, 0.7)) !important}.mdc-theme--text-hint-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-hint-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--text-disabled-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-disabled-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--text-icon-on-dark{color:rgba(255, 255, 255, 0.5) !important;color:var(--mdc-theme-text-icon-on-dark, rgba(255, 255, 255, 0.5)) !important}.mdc-theme--primary-bg{background-color:#26a69a !important;background-color:var(--mdc-theme-primary, #26a69a) !important}.mdc-theme--secondary-bg{background-color:#575756 !important;background-color:var(--mdc-theme-secondary, #575756) !important}.container{display:inline-block;position:relative;width:100%}.flatpickr-calendar{left:0 !important;top:auto !important;margin-top:2px}.flatpickr-calendar .datepicker-months-container,.flatpickr-calendar .datepicker-quarters-container,.flatpickr-calendar .datepicker-weeks-container,.flatpickr-calendar .datepicker-years-container{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}.flatpickr-calendar .datepicker-months-container .selected,.flatpickr-calendar .datepicker-quarters-container .selected,.flatpickr-calendar .datepicker-weeks-container .selected,.flatpickr-calendar .datepicker-years-container .selected{z-index:1}.flatpickr-calendar .datepicker-months-container :hover,.flatpickr-calendar .datepicker-quarters-container :hover,.flatpickr-calendar .datepicker-weeks-container :hover,.flatpickr-calendar .datepicker-years-container :hover{z-index:1}.flatpickr-calendar .datepicker-month,.flatpickr-calendar .datepicker-quarter,.flatpickr-calendar .datepicker-week,.flatpickr-calendar .datepicker-year{cursor:pointer;display:inline-block;flex-grow:0;padding:0.625rem;position:relative;min-width:2.5rem}.flatpickr-calendar .datepicker-month:after,.flatpickr-calendar .datepicker-quarter:after,.flatpickr-calendar .datepicker-week:after,.flatpickr-calendar .datepicker-year:after{border-radius:0.9375rem;content:\" \";height:1.875rem;left:0.3125rem;position:absolute;right:0.3125rem;top:0.4375rem;bottom:0.4375rem;z-index:-1}.flatpickr-calendar .datepicker-month.selected,.flatpickr-calendar .datepicker-quarter.selected,.flatpickr-calendar .datepicker-week.selected,.flatpickr-calendar .datepicker-year.selected{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .datepicker-month.selected:after,.flatpickr-calendar .datepicker-quarter.selected:after,.flatpickr-calendar .datepicker-week.selected:after,.flatpickr-calendar .datepicker-year.selected:after{background:var(--mdc-theme-primary)}.flatpickr-calendar .datepicker-month:hover,.flatpickr-calendar .datepicker-quarter:hover,.flatpickr-calendar .datepicker-week:hover,.flatpickr-calendar .datepicker-year:hover{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .datepicker-month:hover:after,.flatpickr-calendar .datepicker-quarter:hover:after,.flatpickr-calendar .datepicker-week:hover:after,.flatpickr-calendar .datepicker-year:hover:after{background:var(--mdc-theme-primary);opacity:0.5}.flatpickr-calendar .datepicker-month .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-quarter .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-week .datepicker-month-in-quarter,.flatpickr-calendar .datepicker-year .datepicker-month-in-quarter{color:var(--mdc-theme-text-disabled-on-background);display:block;font-size:0.75rem}.flatpickr-calendar .datepicker-month{min-width:4.375rem}.flatpickr-calendar .datepicker-month:after{left:0.625rem;right:0.625rem}.flatpickr-calendar .flatpickr-month{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-month .numInputWrapper span.arrowUp:after,.flatpickr-calendar .flatpickr-month .numInputWrapper span.arrowDown:after{border-top-color:var(--mdc-theme-on-primary);border-bottom-color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-months{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);height:2.625rem;padding-top:0.375rem}.flatpickr-calendar .flatpickr-prev-month,.flatpickr-calendar .flatpickr-next-month{fill:var(--mdc-theme-on-primary);top:0.375rem}.flatpickr-calendar .flatpickr-prev-month:hover,.flatpickr-calendar .flatpickr-next-month:hover{color:var(--mdc-theme-on-primary);fill:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month div.flatpickr-month{font-size:1rem;font-weight:400 !important;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month select{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month select option{color:initial}.flatpickr-calendar .flatpickr-current-month input{color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-current-month .numInputWrapper:hover{background:var(--mdc-theme-primary)}.flatpickr-calendar .flatpickr-weekday{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);font-weight:400}.flatpickr-calendar .flatpickr-weekdays{background:var(--mdc-theme-primary)}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{display:none}.flatpickr-calendar .flatpickr-day{border:none;background:transparent !important;border-radius:0 !important;box-shadow:none !important;max-width:none}.flatpickr-calendar .flatpickr-day.selected,.flatpickr-calendar .flatpickr-day.inRange,.flatpickr-calendar .flatpickr-day.selected:hover,.flatpickr-calendar .flatpickr-day.nextMonthDay:hover,.flatpickr-calendar .flatpickr-day:hover{background:transparent;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day.today{background:transparent}.flatpickr-calendar .flatpickr-day.today:after{opacity:0.25}.flatpickr-calendar .flatpickr-day.today:hover{background:transparent;color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day:after{border-radius:0.9375rem;content:\" \";height:1.875rem;left:50%;margin-left:-0.9375rem;margin-top:-0.9375rem;position:absolute;top:50%;width:1.875rem;z-index:-1}.flatpickr-calendar .flatpickr-day.selected:after{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary)}.flatpickr-calendar .flatpickr-day.inRange:after,.flatpickr-calendar .flatpickr-day.nextMonthDay:hover:after,.flatpickr-calendar .flatpickr-day:hover:after{background:var(--mdc-theme-primary);color:var(--mdc-theme-on-primary);opacity:0.5}.flatpickr-calendar .flatpickr-weekwrapper{width:2.5rem}.flatpickr-calendar .flatpickr-time{height:2.5rem}";
|
|
7146
7470
|
|
|
7147
7471
|
let DatePickerCalendar = class {
|
|
7148
7472
|
constructor(hostRef) {
|