flatpickr 4.5.2.1 → 4.5.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flatpickr/version.rb +1 -1
  3. data/vendor/assets/javascripts/flatpickr.js +2400 -2075
  4. data/vendor/assets/javascripts/flatpickr/l10n/ar.js +42 -20
  5. data/vendor/assets/javascripts/flatpickr/l10n/at.js +55 -20
  6. data/vendor/assets/javascripts/flatpickr/l10n/az.js +73 -0
  7. data/vendor/assets/javascripts/flatpickr/l10n/be.js +57 -22
  8. data/vendor/assets/javascripts/flatpickr/l10n/bg.js +55 -20
  9. data/vendor/assets/javascripts/flatpickr/l10n/bn.js +55 -20
  10. data/vendor/assets/javascripts/flatpickr/l10n/cat.js +71 -40
  11. data/vendor/assets/javascripts/flatpickr/l10n/cs.js +57 -22
  12. data/vendor/assets/javascripts/flatpickr/l10n/cy.js +81 -29
  13. data/vendor/assets/javascripts/flatpickr/l10n/da.js +57 -22
  14. data/vendor/assets/javascripts/flatpickr/l10n/de.js +55 -20
  15. data/vendor/assets/javascripts/flatpickr/l10n/default.js +62 -32
  16. data/vendor/assets/javascripts/flatpickr/l10n/eo.js +57 -22
  17. data/vendor/assets/javascripts/flatpickr/l10n/es.js +57 -22
  18. data/vendor/assets/javascripts/flatpickr/l10n/et.js +57 -22
  19. data/vendor/assets/javascripts/flatpickr/l10n/fa.js +57 -22
  20. data/vendor/assets/javascripts/flatpickr/l10n/fi.js +57 -22
  21. data/vendor/assets/javascripts/flatpickr/l10n/fo.js +73 -0
  22. data/vendor/assets/javascripts/flatpickr/l10n/fr.js +59 -23
  23. data/vendor/assets/javascripts/flatpickr/l10n/gr.js +57 -22
  24. data/vendor/assets/javascripts/flatpickr/l10n/he.js +49 -21
  25. data/vendor/assets/javascripts/flatpickr/l10n/hi.js +55 -20
  26. data/vendor/assets/javascripts/flatpickr/l10n/hr.js +55 -20
  27. data/vendor/assets/javascripts/flatpickr/l10n/hu.js +59 -23
  28. data/vendor/assets/javascripts/flatpickr/l10n/id.js +49 -22
  29. data/vendor/assets/javascripts/flatpickr/l10n/index.js +3147 -1036
  30. data/vendor/assets/javascripts/flatpickr/l10n/is.js +71 -0
  31. data/vendor/assets/javascripts/flatpickr/l10n/it.js +56 -23
  32. data/vendor/assets/javascripts/flatpickr/l10n/ja.js +55 -20
  33. data/vendor/assets/javascripts/flatpickr/l10n/km.js +57 -22
  34. data/vendor/assets/javascripts/flatpickr/l10n/ko.js +57 -22
  35. data/vendor/assets/javascripts/flatpickr/l10n/kz.js +57 -22
  36. data/vendor/assets/javascripts/flatpickr/l10n/lt.js +57 -22
  37. data/vendor/assets/javascripts/flatpickr/l10n/lv.js +55 -20
  38. data/vendor/assets/javascripts/flatpickr/l10n/mk.js +55 -20
  39. data/vendor/assets/javascripts/flatpickr/l10n/mn.js +47 -20
  40. data/vendor/assets/javascripts/flatpickr/l10n/ms.js +56 -21
  41. data/vendor/assets/javascripts/flatpickr/l10n/my.js +57 -22
  42. data/vendor/assets/javascripts/flatpickr/l10n/nl.js +59 -23
  43. data/vendor/assets/javascripts/flatpickr/l10n/no.js +57 -22
  44. data/vendor/assets/javascripts/flatpickr/l10n/pa.js +55 -20
  45. data/vendor/assets/javascripts/flatpickr/l10n/pl.js +57 -22
  46. data/vendor/assets/javascripts/flatpickr/l10n/pt.js +55 -20
  47. data/vendor/assets/javascripts/flatpickr/l10n/ro.js +57 -22
  48. data/vendor/assets/javascripts/flatpickr/l10n/ru.js +57 -22
  49. data/vendor/assets/javascripts/flatpickr/l10n/si.js +55 -20
  50. data/vendor/assets/javascripts/flatpickr/l10n/sk.js +57 -22
  51. data/vendor/assets/javascripts/flatpickr/l10n/sl.js +57 -22
  52. data/vendor/assets/javascripts/flatpickr/l10n/sq.js +55 -20
  53. data/vendor/assets/javascripts/flatpickr/l10n/sr-cyr.js +67 -0
  54. data/vendor/assets/javascripts/flatpickr/l10n/sr.js +55 -20
  55. data/vendor/assets/javascripts/flatpickr/l10n/sv.js +57 -22
  56. data/vendor/assets/javascripts/flatpickr/l10n/th.js +57 -22
  57. data/vendor/assets/javascripts/flatpickr/l10n/tr.js +57 -22
  58. data/vendor/assets/javascripts/flatpickr/l10n/uk.js +55 -20
  59. data/vendor/assets/javascripts/flatpickr/l10n/vn.js +55 -20
  60. data/vendor/assets/javascripts/flatpickr/l10n/zh-tw.js +68 -0
  61. data/vendor/assets/javascripts/flatpickr/l10n/zh.js +55 -20
  62. data/vendor/assets/javascripts/flatpickr/plugins/confirmDate/confirmDate.js +63 -35
  63. data/vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js +24 -26
  64. data/vendor/assets/javascripts/flatpickr/plugins/minMaxTimePlugin.js +229 -200
  65. data/vendor/assets/javascripts/flatpickr/plugins/monthSelect/monthSelect.js +68 -51
  66. data/vendor/assets/javascripts/flatpickr/plugins/rangePlugin.js +136 -141
  67. data/vendor/assets/javascripts/flatpickr/plugins/scrollPlugin.js +43 -49
  68. data/vendor/assets/javascripts/flatpickr/plugins/weekSelect/weekSelect.js +70 -67
  69. data/vendor/assets/stylesheets/flatpickr.css +12 -1
  70. data/vendor/assets/stylesheets/flatpickr/themes/airbnb.css +12 -1
  71. data/vendor/assets/stylesheets/flatpickr/themes/confetti.css +12 -1
  72. data/vendor/assets/stylesheets/flatpickr/themes/dark.css +12 -1
  73. data/vendor/assets/stylesheets/flatpickr/themes/light.css +12 -1
  74. data/vendor/assets/stylesheets/flatpickr/themes/material_blue.css +12 -1
  75. data/vendor/assets/stylesheets/flatpickr/themes/material_green.css +12 -1
  76. data/vendor/assets/stylesheets/flatpickr/themes/material_orange.css +12 -1
  77. data/vendor/assets/stylesheets/flatpickr/themes/material_red.css +12 -1
  78. metadata +7 -2
@@ -1,30 +1,65 @@
1
- /* flatpickr v4.5.2, @license MIT */
2
1
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
- (factory((global.uk = {})));
6
- }(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global.uk = {}));
5
+ }(this, function (exports) { 'use strict';
7
6
 
8
- var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
- l10ns: {}
10
- };
11
- var Ukrainian = {
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {}
11
+ };
12
+ var Ukrainian = {
12
13
  firstDayOfWeek: 1,
13
14
  weekdays: {
14
- shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
15
- longhand: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"]
15
+ shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
16
+ longhand: [
17
+ "Неділя",
18
+ "Понеділок",
19
+ "Вівторок",
20
+ "Середа",
21
+ "Четвер",
22
+ "П'ятниця",
23
+ "Субота",
24
+ ]
16
25
  },
17
26
  months: {
18
- shorthand: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
19
- longhand: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"]
27
+ shorthand: [
28
+ "Січ",
29
+ "Лют",
30
+ "Бер",
31
+ "Кві",
32
+ "Тра",
33
+ "Чер",
34
+ "Лип",
35
+ "Сер",
36
+ "Вер",
37
+ "Жов",
38
+ "Лис",
39
+ "Гру",
40
+ ],
41
+ longhand: [
42
+ "Січень",
43
+ "Лютий",
44
+ "Березень",
45
+ "Квітень",
46
+ "Травень",
47
+ "Червень",
48
+ "Липень",
49
+ "Серпень",
50
+ "Вересень",
51
+ "Жовтень",
52
+ "Листопад",
53
+ "Грудень",
54
+ ]
20
55
  }
21
- };
22
- fp.l10ns.uk = Ukrainian;
23
- var uk = fp.l10ns;
56
+ };
57
+ fp.l10ns.uk = Ukrainian;
58
+ var uk = fp.l10ns;
24
59
 
25
- exports.Ukrainian = Ukrainian;
26
- exports.default = uk;
60
+ exports.Ukrainian = Ukrainian;
61
+ exports.default = uk;
27
62
 
28
- Object.defineProperty(exports, '__esModule', { value: true });
63
+ Object.defineProperty(exports, '__esModule', { value: true });
29
64
 
30
- })));
65
+ }));
@@ -1,30 +1,65 @@
1
- /* flatpickr v4.5.2, @license MIT */
2
1
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
- (factory((global.vn = {})));
6
- }(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global.vn = {}));
5
+ }(this, function (exports) { 'use strict';
7
6
 
8
- var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
- l10ns: {}
10
- };
11
- var Vietnamese = {
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {}
11
+ };
12
+ var Vietnamese = {
12
13
  weekdays: {
13
- shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
14
- longhand: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
14
+ shorthand: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
15
+ longhand: [
16
+ "Chủ nhật",
17
+ "Thứ hai",
18
+ "Thứ ba",
19
+ "Thứ tư",
20
+ "Thứ năm",
21
+ "Thứ sáu",
22
+ "Thứ bảy",
23
+ ]
15
24
  },
16
25
  months: {
17
- shorthand: ["Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12"],
18
- longhand: ["Tháng một", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng năm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chín", "Tháng mười", "Tháng 11", "Tháng 12"]
26
+ shorthand: [
27
+ "Th1",
28
+ "Th2",
29
+ "Th3",
30
+ "Th4",
31
+ "Th5",
32
+ "Th6",
33
+ "Th7",
34
+ "Th8",
35
+ "Th9",
36
+ "Th10",
37
+ "Th11",
38
+ "Th12",
39
+ ],
40
+ longhand: [
41
+ "Tháng một",
42
+ "Tháng hai",
43
+ "Tháng ba",
44
+ "Tháng tư",
45
+ "Tháng năm",
46
+ "Tháng sáu",
47
+ "Tháng bảy",
48
+ "Tháng tám",
49
+ "Tháng chín",
50
+ "Tháng mười",
51
+ "Tháng 11",
52
+ "Tháng 12",
53
+ ]
19
54
  },
20
55
  firstDayOfWeek: 1
21
- };
22
- fp.l10ns.vn = Vietnamese;
23
- var vn = fp.l10ns;
56
+ };
57
+ fp.l10ns.vn = Vietnamese;
58
+ var vn = fp.l10ns;
24
59
 
25
- exports.Vietnamese = Vietnamese;
26
- exports.default = vn;
60
+ exports.Vietnamese = Vietnamese;
61
+ exports.default = vn;
27
62
 
28
- Object.defineProperty(exports, '__esModule', { value: true });
63
+ Object.defineProperty(exports, '__esModule', { value: true });
29
64
 
30
- })));
65
+ }));
@@ -0,0 +1,68 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global['zh-tw'] = {}));
5
+ }(this, function (exports) { 'use strict';
6
+
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {}
11
+ };
12
+ var MandarinTraditional = {
13
+ weekdays: {
14
+ shorthand: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"],
15
+ longhand: [
16
+ "星期日",
17
+ "星期一",
18
+ "星期二",
19
+ "星期三",
20
+ "星期四",
21
+ "星期五",
22
+ "星期六",
23
+ ]
24
+ },
25
+ months: {
26
+ shorthand: [
27
+ "一月",
28
+ "二月",
29
+ "三月",
30
+ "四月",
31
+ "五月",
32
+ "六月",
33
+ "七月",
34
+ "八月",
35
+ "九月",
36
+ "十月",
37
+ "十一月",
38
+ "十二月",
39
+ ],
40
+ longhand: [
41
+ "一月",
42
+ "二月",
43
+ "三月",
44
+ "四月",
45
+ "五月",
46
+ "六月",
47
+ "七月",
48
+ "八月",
49
+ "九月",
50
+ "十月",
51
+ "十一月",
52
+ "十二月",
53
+ ]
54
+ },
55
+ rangeSeparator: " 至 ",
56
+ weekAbbreviation: "週",
57
+ scrollTitle: "滾動切換",
58
+ toggleTitle: "點擊切換 12/24 小時時制"
59
+ };
60
+ fp.l10ns.zh_tw = MandarinTraditional;
61
+ var zhTw = fp.l10ns;
62
+
63
+ exports.MandarinTraditional = MandarinTraditional;
64
+ exports.default = zhTw;
65
+
66
+ Object.defineProperty(exports, '__esModule', { value: true });
67
+
68
+ }));
@@ -1,33 +1,68 @@
1
- /* flatpickr v4.5.2, @license MIT */
2
1
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
- (factory((global.zh = {})));
6
- }(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global.zh = {}));
5
+ }(this, function (exports) { 'use strict';
7
6
 
8
- var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : {
9
- l10ns: {}
10
- };
11
- var Mandarin = {
7
+ var fp = typeof window !== "undefined" && window.flatpickr !== undefined
8
+ ? window.flatpickr
9
+ : {
10
+ l10ns: {}
11
+ };
12
+ var Mandarin = {
12
13
  weekdays: {
13
- shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
14
- longhand: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
14
+ shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
15
+ longhand: [
16
+ "星期日",
17
+ "星期一",
18
+ "星期二",
19
+ "星期三",
20
+ "星期四",
21
+ "星期五",
22
+ "星期六",
23
+ ]
15
24
  },
16
25
  months: {
17
- shorthand: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
18
- longhand: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
26
+ shorthand: [
27
+ "一月",
28
+ "二月",
29
+ "三月",
30
+ "四月",
31
+ "五月",
32
+ "六月",
33
+ "七月",
34
+ "八月",
35
+ "九月",
36
+ "十月",
37
+ "十一月",
38
+ "十二月",
39
+ ],
40
+ longhand: [
41
+ "一月",
42
+ "二月",
43
+ "三月",
44
+ "四月",
45
+ "五月",
46
+ "六月",
47
+ "七月",
48
+ "八月",
49
+ "九月",
50
+ "十月",
51
+ "十一月",
52
+ "十二月",
53
+ ]
19
54
  },
20
55
  rangeSeparator: " 至 ",
21
56
  weekAbbreviation: "周",
22
57
  scrollTitle: "滚动切换",
23
58
  toggleTitle: "点击切换 12/24 小时时制"
24
- };
25
- fp.l10ns.zh = Mandarin;
26
- var zh = fp.l10ns;
59
+ };
60
+ fp.l10ns.zh = Mandarin;
61
+ var zh = fp.l10ns;
27
62
 
28
- exports.Mandarin = Mandarin;
29
- exports.default = zh;
63
+ exports.Mandarin = Mandarin;
64
+ exports.default = zh;
30
65
 
31
- Object.defineProperty(exports, '__esModule', { value: true });
66
+ Object.defineProperty(exports, '__esModule', { value: true });
32
67
 
33
- })));
68
+ }));
@@ -1,46 +1,74 @@
1
- /* flatpickr v4.5.2, @license MIT */
2
1
  (function (global, factory) {
3
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
3
  typeof define === 'function' && define.amd ? define(factory) :
5
- (global.confirmDatePlugin = factory());
6
- }(this, (function () { 'use strict';
4
+ (global = global || self, global.confirmDatePlugin = factory());
5
+ }(this, function () { 'use strict';
7
6
 
8
- var defaultConfig = {
9
- confirmIcon: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'> <g> </g> <path d='M15.418 1.774l-8.833 13.485-4.918-4.386 0.666-0.746 4.051 3.614 8.198-12.515 0.836 0.548z' fill='#000000' /> </svg>",
10
- confirmText: "OK ",
11
- showAlways: false,
12
- theme: "light"
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation. All rights reserved.
9
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
+ this file except in compliance with the License. You may obtain a copy of the
11
+ License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
+ MERCHANTABLITY OR NON-INFRINGEMENT.
17
+
18
+ See the Apache Version 2.0 License for specific language governing permissions
19
+ and limitations under the License.
20
+ ***************************************************************************** */
21
+
22
+ var __assign = function() {
23
+ __assign = Object.assign || function __assign(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
13
31
  };
14
32
 
33
+ var defaultConfig = {
34
+ confirmIcon: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='17' height='17' viewBox='0 0 17 17'> <g> </g> <path d='M15.418 1.774l-8.833 13.485-4.918-4.386 0.666-0.746 4.051 3.614 8.198-12.515 0.836 0.548z' fill='#000000' /> </svg>",
35
+ confirmText: "OK ",
36
+ showAlways: false,
37
+ theme: "light"
38
+ };
15
39
  function confirmDatePlugin(pluginConfig) {
16
- var config = Object.assign({}, defaultConfig, pluginConfig);
17
- var confirmContainer;
18
- return function (fp) {
19
- if (fp.config.noCalendar || fp.isMobile) return {};
20
- return Object.assign({
21
- onKeyDown: function onKeyDown(_, __, ___, e) {
22
- if (fp.config.enableTime && e.key === "Tab" && e.target === fp.amPM) {
23
- e.preventDefault();
24
- confirmContainer.focus();
25
- } else if (e.key === "Enter" && e.target === confirmContainer) fp.close();
26
- },
27
- onReady: function onReady() {
28
- confirmContainer = fp._createElement("div", "flatpickr-confirm " + (config.showAlways ? "visible" : "") + " " + config.theme + "Theme", config.confirmText);
29
- confirmContainer.tabIndex = -1;
30
- confirmContainer.innerHTML += config.confirmIcon;
31
- confirmContainer.addEventListener("click", fp.close);
32
- fp.calendarContainer.appendChild(confirmContainer);
33
- }
34
- }, !config.showAlways ? {
35
- onChange: function onChange(_, dateStr) {
36
- var showCondition = fp.config.enableTime || fp.config.mode === "multiple";
37
- if (dateStr && !fp.config.inline && showCondition) return confirmContainer.classList.add("visible");
38
- confirmContainer.classList.remove("visible");
39
- }
40
- } : {});
41
- };
40
+ var config = __assign({}, defaultConfig, pluginConfig);
41
+ var confirmContainer;
42
+ return function (fp) {
43
+ if (fp.config.noCalendar || fp.isMobile)
44
+ return {};
45
+ return __assign({ onKeyDown: function (_, __, ___, e) {
46
+ if (fp.config.enableTime && e.key === "Tab" && e.target === fp.amPM) {
47
+ e.preventDefault();
48
+ confirmContainer.focus();
49
+ }
50
+ else if (e.key === "Enter" && e.target === confirmContainer)
51
+ fp.close();
52
+ },
53
+ onReady: function () {
54
+ confirmContainer = fp._createElement("div", "flatpickr-confirm " + (config.showAlways ? "visible" : "") + " " + config.theme + "Theme", config.confirmText);
55
+ confirmContainer.tabIndex = -1;
56
+ confirmContainer.innerHTML += config.confirmIcon;
57
+ confirmContainer.addEventListener("click", fp.close);
58
+ fp.calendarContainer.appendChild(confirmContainer);
59
+ } }, (!config.showAlways
60
+ ? {
61
+ onChange: function (_, dateStr) {
62
+ var showCondition = fp.config.enableTime || fp.config.mode === "multiple";
63
+ if (dateStr && !fp.config.inline && showCondition)
64
+ return confirmContainer.classList.add("visible");
65
+ confirmContainer.classList.remove("visible");
66
+ }
67
+ }
68
+ : {}));
69
+ };
42
70
  }
43
71
 
44
72
  return confirmDatePlugin;
45
73
 
46
- })));
74
+ }));
@@ -1,32 +1,30 @@
1
- /* flatpickr v4.5.2, @license MIT */
2
1
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
- typeof define === 'function' && define.amd ? define(factory) :
5
- (global.labelPlugin = factory());
6
- }(this, (function () { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, global.labelPlugin = factory());
5
+ }(this, function () { 'use strict';
7
6
 
8
- function labelPlugin() {
7
+ function labelPlugin() {
9
8
  return function (fp) {
10
- return {
11
- onReady: function onReady() {
12
- var id = fp.input.id;
13
-
14
- if (!id) {
15
- return;
16
- }
17
-
18
- if (fp.mobileInput) {
19
- fp.input.removeAttribute("id");
20
- fp.mobileInput.id = id;
21
- } else if (fp.altInput) {
22
- fp.input.removeAttribute("id");
23
- fp.altInput.id = id;
24
- }
25
- }
26
- };
9
+ return {
10
+ onReady: function () {
11
+ var id = fp.input.id;
12
+ if (!id) {
13
+ return;
14
+ }
15
+ if (fp.mobileInput) {
16
+ fp.input.removeAttribute("id");
17
+ fp.mobileInput.id = id;
18
+ }
19
+ else if (fp.altInput) {
20
+ fp.input.removeAttribute("id");
21
+ fp.altInput.id = id;
22
+ }
23
+ }
24
+ };
27
25
  };
28
- }
26
+ }
29
27
 
30
- return labelPlugin;
28
+ return labelPlugin;
31
29
 
32
- })));
30
+ }));