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.
- checksums.yaml +4 -4
- data/lib/flatpickr/version.rb +1 -1
- data/vendor/assets/javascripts/flatpickr.js +2400 -2075
- data/vendor/assets/javascripts/flatpickr/l10n/ar.js +42 -20
- data/vendor/assets/javascripts/flatpickr/l10n/at.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/az.js +73 -0
- data/vendor/assets/javascripts/flatpickr/l10n/be.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/bg.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/bn.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/cat.js +71 -40
- data/vendor/assets/javascripts/flatpickr/l10n/cs.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/cy.js +81 -29
- data/vendor/assets/javascripts/flatpickr/l10n/da.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/de.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/default.js +62 -32
- data/vendor/assets/javascripts/flatpickr/l10n/eo.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/es.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/et.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/fa.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/fi.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/fo.js +73 -0
- data/vendor/assets/javascripts/flatpickr/l10n/fr.js +59 -23
- data/vendor/assets/javascripts/flatpickr/l10n/gr.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/he.js +49 -21
- data/vendor/assets/javascripts/flatpickr/l10n/hi.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/hr.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/hu.js +59 -23
- data/vendor/assets/javascripts/flatpickr/l10n/id.js +49 -22
- data/vendor/assets/javascripts/flatpickr/l10n/index.js +3147 -1036
- data/vendor/assets/javascripts/flatpickr/l10n/is.js +71 -0
- data/vendor/assets/javascripts/flatpickr/l10n/it.js +56 -23
- data/vendor/assets/javascripts/flatpickr/l10n/ja.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/km.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/ko.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/kz.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/lt.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/lv.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/mk.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/mn.js +47 -20
- data/vendor/assets/javascripts/flatpickr/l10n/ms.js +56 -21
- data/vendor/assets/javascripts/flatpickr/l10n/my.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/nl.js +59 -23
- data/vendor/assets/javascripts/flatpickr/l10n/no.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/pa.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/pl.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/pt.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/ro.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/ru.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/si.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/sk.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/sl.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/sq.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/sr-cyr.js +67 -0
- data/vendor/assets/javascripts/flatpickr/l10n/sr.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/sv.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/th.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/tr.js +57 -22
- data/vendor/assets/javascripts/flatpickr/l10n/uk.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/vn.js +55 -20
- data/vendor/assets/javascripts/flatpickr/l10n/zh-tw.js +68 -0
- data/vendor/assets/javascripts/flatpickr/l10n/zh.js +55 -20
- data/vendor/assets/javascripts/flatpickr/plugins/confirmDate/confirmDate.js +63 -35
- data/vendor/assets/javascripts/flatpickr/plugins/labelPlugin/labelPlugin.js +24 -26
- data/vendor/assets/javascripts/flatpickr/plugins/minMaxTimePlugin.js +229 -200
- data/vendor/assets/javascripts/flatpickr/plugins/monthSelect/monthSelect.js +68 -51
- data/vendor/assets/javascripts/flatpickr/plugins/rangePlugin.js +136 -141
- data/vendor/assets/javascripts/flatpickr/plugins/scrollPlugin.js +43 -49
- data/vendor/assets/javascripts/flatpickr/plugins/weekSelect/weekSelect.js +70 -67
- data/vendor/assets/stylesheets/flatpickr.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/airbnb.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/confetti.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/dark.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/light.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/material_blue.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/material_green.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/material_orange.css +12 -1
- data/vendor/assets/stylesheets/flatpickr/themes/material_red.css +12 -1
- metadata +7 -2
@@ -1,30 +1,65 @@
|
|
1
|
-
/* flatpickr v4.5.2, @license MIT */
|
2
1
|
(function (global, factory) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}(this,
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
15
|
-
|
15
|
+
shorthand: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
|
16
|
+
longhand: [
|
17
|
+
"Неділя",
|
18
|
+
"Понеділок",
|
19
|
+
"Вівторок",
|
20
|
+
"Середа",
|
21
|
+
"Четвер",
|
22
|
+
"П'ятниця",
|
23
|
+
"Субота",
|
24
|
+
]
|
16
25
|
},
|
17
26
|
months: {
|
18
|
-
|
19
|
-
|
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
|
-
|
23
|
-
|
56
|
+
};
|
57
|
+
fp.l10ns.uk = Ukrainian;
|
58
|
+
var uk = fp.l10ns;
|
24
59
|
|
25
|
-
|
26
|
-
|
60
|
+
exports.Ukrainian = Ukrainian;
|
61
|
+
exports.default = uk;
|
27
62
|
|
28
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}(this,
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
|
8
|
+
? window.flatpickr
|
9
|
+
: {
|
10
|
+
l10ns: {}
|
11
|
+
};
|
12
|
+
var Vietnamese = {
|
12
13
|
weekdays: {
|
13
|
-
|
14
|
-
|
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
|
-
|
18
|
-
|
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
|
-
|
23
|
-
|
56
|
+
};
|
57
|
+
fp.l10ns.vn = Vietnamese;
|
58
|
+
var vn = fp.l10ns;
|
24
59
|
|
25
|
-
|
26
|
-
|
60
|
+
exports.Vietnamese = Vietnamese;
|
61
|
+
exports.default = vn;
|
27
62
|
|
28
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}(this,
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
|
8
|
+
? window.flatpickr
|
9
|
+
: {
|
10
|
+
l10ns: {}
|
11
|
+
};
|
12
|
+
var Mandarin = {
|
12
13
|
weekdays: {
|
13
|
-
|
14
|
-
|
14
|
+
shorthand: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
15
|
+
longhand: [
|
16
|
+
"星期日",
|
17
|
+
"星期一",
|
18
|
+
"星期二",
|
19
|
+
"星期三",
|
20
|
+
"星期四",
|
21
|
+
"星期五",
|
22
|
+
"星期六",
|
23
|
+
]
|
15
24
|
},
|
16
25
|
months: {
|
17
|
-
|
18
|
-
|
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
|
-
|
26
|
-
|
59
|
+
};
|
60
|
+
fp.l10ns.zh = Mandarin;
|
61
|
+
var zh = fp.l10ns;
|
27
62
|
|
28
|
-
|
29
|
-
|
63
|
+
exports.Mandarin = Mandarin;
|
64
|
+
exports.default = zh;
|
30
65
|
|
31
|
-
|
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,
|
4
|
+
(global = global || self, global.confirmDatePlugin = factory());
|
5
|
+
}(this, function () { 'use strict';
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}(this,
|
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
|
-
|
7
|
+
function labelPlugin() {
|
9
8
|
return function (fp) {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
28
|
+
return labelPlugin;
|
31
29
|
|
32
|
-
}))
|
30
|
+
}));
|