@semcore/date-picker 4.58.0-prerelease.4 → 4.58.0-prerelease.5
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/lib/cjs/DatePicker.js +27 -36
- package/lib/cjs/DatePicker.js.map +1 -1
- package/lib/cjs/DateRangeComparator.js +38 -43
- package/lib/cjs/DateRangeComparator.js.map +1 -1
- package/lib/cjs/DateRangePicker.js +17 -22
- package/lib/cjs/DateRangePicker.js.map +1 -1
- package/lib/cjs/MonthDateRangeComparator.js +42 -47
- package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
- package/lib/cjs/MonthPicker.js +16 -21
- package/lib/cjs/MonthPicker.js.map +1 -1
- package/lib/cjs/MonthRangePicker.js +18 -23
- package/lib/cjs/MonthRangePicker.js.map +1 -1
- package/lib/cjs/components/ButtonTrigger.js +8 -10
- package/lib/cjs/components/ButtonTrigger.js.map +1 -1
- package/lib/cjs/components/Calendar.js +109 -125
- package/lib/cjs/components/Calendar.js.map +1 -1
- package/lib/cjs/components/DateRangeComparatorAbstract.js +121 -104
- package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/cjs/components/InputTrigger.js +179 -189
- package/lib/cjs/components/InputTrigger.js.map +1 -1
- package/lib/cjs/components/PickerAbstract.js +58 -57
- package/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/lib/cjs/components/RangePickerAbstract.js +97 -76
- package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/lib/cjs/components/index.js +41 -46
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/calendar.shadow.css +12 -14
- package/lib/cjs/style/date-picker.shadow.css +6 -7
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +6 -2
- package/lib/cjs/translations/es.json +6 -2
- package/lib/cjs/translations/fr.json +6 -2
- package/lib/cjs/translations/it.json +6 -2
- package/lib/cjs/translations/ja.json +6 -2
- package/lib/cjs/translations/ko.json +6 -2
- package/lib/cjs/translations/nl.json +6 -2
- package/lib/cjs/translations/pl.json +6 -2
- package/lib/cjs/translations/pt.json +6 -2
- package/lib/cjs/translations/sv.json +6 -2
- package/lib/cjs/translations/tr.json +6 -2
- package/lib/cjs/translations/vi.json +6 -2
- package/lib/cjs/translations/zh.json +6 -2
- package/lib/cjs/utils/cronTabScheduler.js +8 -5
- package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
- package/lib/cjs/utils/datesIntersects.js +3 -4
- package/lib/cjs/utils/datesIntersects.js.map +1 -1
- package/lib/cjs/utils/formatDate.js +3 -5
- package/lib/cjs/utils/formatDate.js.map +1 -1
- package/lib/cjs/utils/includesDate.js +2 -3
- package/lib/cjs/utils/includesDate.js.map +1 -1
- package/lib/cjs/utils/isBetweenPlugin.js +21 -0
- package/lib/cjs/utils/isBetweenPlugin.js.map +1 -0
- package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
- package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/es6/DatePicker.js +22 -28
- package/lib/es6/DatePicker.js.map +1 -1
- package/lib/es6/DateRangeComparator.js +23 -27
- package/lib/es6/DateRangeComparator.js.map +1 -1
- package/lib/es6/DateRangePicker.js +13 -17
- package/lib/es6/DateRangePicker.js.map +1 -1
- package/lib/es6/MonthDateRangeComparator.js +28 -32
- package/lib/es6/MonthDateRangeComparator.js.map +1 -1
- package/lib/es6/MonthPicker.js +13 -17
- package/lib/es6/MonthPicker.js.map +1 -1
- package/lib/es6/MonthRangePicker.js +14 -18
- package/lib/es6/MonthRangePicker.js.map +1 -1
- package/lib/es6/components/ButtonTrigger.js +5 -5
- package/lib/es6/components/ButtonTrigger.js.map +1 -1
- package/lib/es6/components/Calendar.js +100 -112
- package/lib/es6/components/Calendar.js.map +1 -1
- package/lib/es6/components/DateRangeComparatorAbstract.js +120 -101
- package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/es6/components/InputTrigger.js +173 -180
- package/lib/es6/components/InputTrigger.js.map +1 -1
- package/lib/es6/components/PickerAbstract.js +58 -55
- package/lib/es6/components/PickerAbstract.js.map +1 -1
- package/lib/es6/components/RangePickerAbstract.js +94 -71
- package/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/lib/es6/components/index.js +35 -38
- package/lib/es6/components/index.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/calendar.shadow.css +12 -14
- package/lib/es6/style/date-picker.shadow.css +6 -7
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +6 -2
- package/lib/es6/translations/es.json +6 -2
- package/lib/es6/translations/fr.json +6 -2
- package/lib/es6/translations/it.json +6 -2
- package/lib/es6/translations/ja.json +6 -2
- package/lib/es6/translations/ko.json +6 -2
- package/lib/es6/translations/nl.json +6 -2
- package/lib/es6/translations/pl.json +6 -2
- package/lib/es6/translations/pt.json +6 -2
- package/lib/es6/translations/sv.json +6 -2
- package/lib/es6/translations/tr.json +6 -2
- package/lib/es6/translations/vi.json +6 -2
- package/lib/es6/translations/zh.json +6 -2
- package/lib/es6/utils/cronTabScheduler.js +7 -4
- package/lib/es6/utils/cronTabScheduler.js.map +1 -1
- package/lib/es6/utils/datesIntersects.js +1 -1
- package/lib/es6/utils/datesIntersects.js.map +1 -1
- package/lib/es6/utils/formatDate.js.map +1 -1
- package/lib/es6/utils/includesDate.js.map +1 -1
- package/lib/es6/utils/isBetweenPlugin.js +16 -0
- package/lib/es6/utils/isBetweenPlugin.js.map +1 -0
- package/lib/es6/utils/shortDateRangeFormat.js +1 -1
- package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/esm/DatePicker.mjs +27 -33
- package/lib/esm/DateRangeComparator.mjs +26 -30
- package/lib/esm/DateRangePicker.mjs +17 -21
- package/lib/esm/MonthDateRangeComparator.mjs +31 -35
- package/lib/esm/MonthPicker.mjs +16 -20
- package/lib/esm/MonthRangePicker.mjs +18 -22
- package/lib/esm/components/ButtonTrigger.mjs +5 -5
- package/lib/esm/components/Calendar.mjs +103 -115
- package/lib/esm/components/DateRangeComparatorAbstract.mjs +105 -89
- package/lib/esm/components/InputTrigger.mjs +143 -181
- package/lib/esm/components/PickerAbstract.mjs +61 -62
- package/lib/esm/components/RangePickerAbstract.mjs +94 -73
- package/lib/esm/components/index.mjs +29 -33
- package/lib/esm/style/calendar.shadow.css +12 -14
- package/lib/esm/style/date-picker.shadow.css +6 -7
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/de.json.mjs +18 -6
- package/lib/esm/translations/es.json.mjs +18 -6
- package/lib/esm/translations/fr.json.mjs +18 -6
- package/lib/esm/translations/it.json.mjs +18 -6
- package/lib/esm/translations/ja.json.mjs +18 -6
- package/lib/esm/translations/ko.json.mjs +18 -6
- package/lib/esm/translations/nl.json.mjs +18 -6
- package/lib/esm/translations/pl.json.mjs +18 -6
- package/lib/esm/translations/pt.json.mjs +18 -6
- package/lib/esm/translations/sv.json.mjs +18 -6
- package/lib/esm/translations/tr.json.mjs +18 -6
- package/lib/esm/translations/vi.json.mjs +18 -6
- package/lib/esm/translations/zh.json.mjs +18 -6
- package/lib/esm/utils/cronTabScheduler.mjs +4 -4
- package/lib/esm/utils/datesIntersects.mjs +1 -1
- package/lib/esm/utils/isBetweenPlugin.mjs +13 -0
- package/lib/esm/utils/shortDateRangeFormat.mjs +1 -2
- package/lib/types/index.d.ts +140 -171
- package/package.json +16 -16
|
@@ -9,13 +9,17 @@ const last2Months = "Afgelopen 2 maanden";
|
|
|
9
9
|
const last3Months = "Afgelopen 3 maanden";
|
|
10
10
|
const last6Months = "Afgelopen 6 maanden";
|
|
11
11
|
const last12Months = "Afgelopen 12 maanden";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Vorig jaar";
|
|
13
|
+
const nextYear = "Volgend jaar";
|
|
14
|
+
const prevMonth = "Vorige maand";
|
|
15
|
+
const nextMonth = "Volgende maand";
|
|
14
16
|
const input = "Datumveld";
|
|
15
17
|
const compare = "Vergelijken met";
|
|
16
18
|
const fromDate = "Van {date}";
|
|
17
19
|
const toDate = "Tot {date}";
|
|
20
|
+
const fromDatePlaceholder = "Vanaf-datum";
|
|
18
21
|
const periods = "Voorgedefinieerd";
|
|
22
|
+
const toDatePlaceholder = "Tot-datum";
|
|
19
23
|
const dateRange = "Datumbereik";
|
|
20
24
|
const dateRange1 = "Eerste datumbereik";
|
|
21
25
|
const dateRange2 = "Tweede datumbereik";
|
|
@@ -37,13 +41,17 @@ const nl = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
nl as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "Ostatnie 2 miesiące";
|
|
|
9
9
|
const last3Months = "Ostatnie 3 miesiące";
|
|
10
10
|
const last6Months = "Ostatnie 6 miesięcy";
|
|
11
11
|
const last12Months = "Ostatnie 12 miesięcy";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Poprzedni rok";
|
|
13
|
+
const nextYear = "Następny rok";
|
|
14
|
+
const prevMonth = "Poprzedni miesiąc";
|
|
15
|
+
const nextMonth = "Następny miesiąc";
|
|
14
16
|
const input = "Pole daty";
|
|
15
17
|
const compare = "Porównaj z";
|
|
16
18
|
const fromDate = "Od {date}";
|
|
17
19
|
const toDate = "Do {date}";
|
|
20
|
+
const fromDatePlaceholder = "Od daty";
|
|
18
21
|
const periods = "Ustawienia gotowe";
|
|
22
|
+
const toDatePlaceholder = "Do daty";
|
|
19
23
|
const dateRange = "Zakres dat";
|
|
20
24
|
const dateRange1 = "Pierwszy zakres dat";
|
|
21
25
|
const dateRange2 = "Drugi zakres dat";
|
|
@@ -37,13 +41,17 @@ const pl = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
pl as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "Últimos 2 meses";
|
|
|
9
9
|
const last3Months = "Últimos 3 meses";
|
|
10
10
|
const last6Months = "Últimos 6 meses";
|
|
11
11
|
const last12Months = "Últimos 12 meses";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Ano anterior";
|
|
13
|
+
const nextYear = "Próximo ano";
|
|
14
|
+
const prevMonth = "Mês anterior";
|
|
15
|
+
const nextMonth = "Próximo mês";
|
|
14
16
|
const input = "Campo de data";
|
|
15
17
|
const compare = "Comparar com";
|
|
16
18
|
const fromDate = "De {date}";
|
|
17
19
|
const toDate = "Até {date}";
|
|
20
|
+
const fromDatePlaceholder = "Data inicial";
|
|
18
21
|
const periods = "Predefinições";
|
|
22
|
+
const toDatePlaceholder = "Data final";
|
|
19
23
|
const dateRange = "Intervalo de datas";
|
|
20
24
|
const dateRange1 = "Primeiro intervalo de datas";
|
|
21
25
|
const dateRange2 = "Segundo intervalo de datas";
|
|
@@ -37,13 +41,17 @@ const pt = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
pt as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "Senaste 2 månaderna";
|
|
|
9
9
|
const last3Months = "Senaste 3 månaderna";
|
|
10
10
|
const last6Months = "Senaste 6 månaderna";
|
|
11
11
|
const last12Months = "Senaste 12 månaderna";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Föregående år";
|
|
13
|
+
const nextYear = "Nästa år";
|
|
14
|
+
const prevMonth = "Föregående månad";
|
|
15
|
+
const nextMonth = "Nästa månad";
|
|
14
16
|
const input = "Datumfält";
|
|
15
17
|
const compare = "Jämför med";
|
|
16
18
|
const fromDate = "Från {date}";
|
|
17
19
|
const toDate = "Till {date}";
|
|
20
|
+
const fromDatePlaceholder = "Från datum";
|
|
18
21
|
const periods = "Förinställningar";
|
|
22
|
+
const toDatePlaceholder = "Till datum";
|
|
19
23
|
const dateRange = "Datumintervall";
|
|
20
24
|
const dateRange1 = "Första datumintervall";
|
|
21
25
|
const dateRange2 = "Andra datumintervall";
|
|
@@ -37,13 +41,17 @@ const sv = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
sv as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "Son 2 ay";
|
|
|
9
9
|
const last3Months = "Son 3 ay";
|
|
10
10
|
const last6Months = "Son 6 ay";
|
|
11
11
|
const last12Months = "Son 12 ay";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Önceki yıl";
|
|
13
|
+
const nextYear = "Gelecek yıl";
|
|
14
|
+
const prevMonth = "Önceki ay";
|
|
15
|
+
const nextMonth = "Gelecek ay";
|
|
14
16
|
const input = "Tarih alanı";
|
|
15
17
|
const compare = "Şuna göre karşılaştır";
|
|
16
18
|
const fromDate = "{date} adresinden";
|
|
17
19
|
const toDate = "{date} tarihine kadar";
|
|
20
|
+
const fromDatePlaceholder = "{date} tarihinden itibaren";
|
|
18
21
|
const periods = "Ön Ayarlar";
|
|
22
|
+
const toDatePlaceholder = "{date} tarihine kadar";
|
|
19
23
|
const dateRange = "Tarih aralığı";
|
|
20
24
|
const dateRange1 = "İlk tarih aralığı";
|
|
21
25
|
const dateRange2 = "İkinci tarih aralığı";
|
|
@@ -37,13 +41,17 @@ const tr = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
tr as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "2 tháng qua";
|
|
|
9
9
|
const last3Months = "3 tháng qua";
|
|
10
10
|
const last6Months = "6 tháng qua";
|
|
11
11
|
const last12Months = "12 tháng qua";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "Năm trước";
|
|
13
|
+
const nextYear = "Năm tiếp theo";
|
|
14
|
+
const prevMonth = "Tháng trước";
|
|
15
|
+
const nextMonth = "Tháng tiếp theo";
|
|
14
16
|
const input = "Trường ngày tháng";
|
|
15
17
|
const compare = "So với";
|
|
16
18
|
const fromDate = "Từ {date}";
|
|
17
19
|
const toDate = "Đến {date}";
|
|
20
|
+
const fromDatePlaceholder = "Từ ngày";
|
|
18
21
|
const periods = "Tùy chọn đặt sẵn";
|
|
22
|
+
const toDatePlaceholder = "Đến ngày";
|
|
19
23
|
const dateRange = "Phạm vi ngày";
|
|
20
24
|
const dateRange1 = "Khoảng thời gian đầu tiên";
|
|
21
25
|
const dateRange2 = "Khoảng thời gian thứ hai";
|
|
@@ -37,13 +41,17 @@ const vi = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
vi as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -9,13 +9,17 @@ const last2Months = "过去 2 个月";
|
|
|
9
9
|
const last3Months = "过去 3 个月";
|
|
10
10
|
const last6Months = "过去 6 个月";
|
|
11
11
|
const last12Months = "过去 12 个月";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const prevYear = "上一年";
|
|
13
|
+
const nextYear = "下一年";
|
|
14
|
+
const prevMonth = "上月";
|
|
15
|
+
const nextMonth = "下月";
|
|
14
16
|
const input = "日期字段";
|
|
15
17
|
const compare = "比较";
|
|
16
18
|
const fromDate = "从 {date}";
|
|
17
19
|
const toDate = "至 {date}";
|
|
20
|
+
const fromDatePlaceholder = "开始日期";
|
|
18
21
|
const periods = "预设";
|
|
22
|
+
const toDatePlaceholder = "结束日期";
|
|
19
23
|
const dateRange = "日期范围";
|
|
20
24
|
const dateRange1 = "第一个日期范围";
|
|
21
25
|
const dateRange2 = "第二个日期范围";
|
|
@@ -37,13 +41,17 @@ const zh = {
|
|
|
37
41
|
last3Months,
|
|
38
42
|
last6Months,
|
|
39
43
|
last12Months,
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
prevYear,
|
|
45
|
+
nextYear,
|
|
46
|
+
prevMonth,
|
|
47
|
+
nextMonth,
|
|
42
48
|
input,
|
|
43
49
|
compare,
|
|
44
50
|
fromDate,
|
|
45
51
|
toDate,
|
|
52
|
+
fromDatePlaceholder,
|
|
46
53
|
periods,
|
|
54
|
+
toDatePlaceholder,
|
|
47
55
|
dateRange,
|
|
48
56
|
dateRange1,
|
|
49
57
|
dateRange2,
|
|
@@ -65,6 +73,7 @@ export {
|
|
|
65
73
|
dateRange2,
|
|
66
74
|
zh as default,
|
|
67
75
|
fromDate,
|
|
76
|
+
fromDatePlaceholder,
|
|
68
77
|
input,
|
|
69
78
|
last12Months,
|
|
70
79
|
last2Days,
|
|
@@ -74,13 +83,16 @@ export {
|
|
|
74
83
|
last6Months,
|
|
75
84
|
lastMonth,
|
|
76
85
|
lastWeek,
|
|
77
|
-
|
|
86
|
+
nextMonth,
|
|
87
|
+
nextYear,
|
|
78
88
|
periods,
|
|
79
|
-
|
|
89
|
+
prevMonth,
|
|
90
|
+
prevYear,
|
|
80
91
|
reset,
|
|
81
92
|
selectingFinished,
|
|
82
93
|
selectingStarted,
|
|
83
94
|
toDate,
|
|
95
|
+
toDatePlaceholder,
|
|
84
96
|
today,
|
|
85
97
|
unavailableDate,
|
|
86
98
|
unavailableEndDate,
|
|
@@ -3,9 +3,9 @@ function cronUnitToArray(unit) {
|
|
|
3
3
|
if (unit.includes("-")) {
|
|
4
4
|
var _unit$split = unit.split("-"), _unit$split2 = _slicedToArray(_unit$split, 2), start = _unit$split2[0], end = _unit$split2[1];
|
|
5
5
|
return Array.from({
|
|
6
|
-
length: parseInt(end, 10) - parseInt(start, 10) + 1
|
|
6
|
+
length: Number.parseInt(end, 10) - Number.parseInt(start, 10) + 1
|
|
7
7
|
}, function(_, idx) {
|
|
8
|
-
return parseInt(start, 10) + idx;
|
|
8
|
+
return Number.parseInt(start, 10) + idx;
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
return unit.split(/[,\/]/);
|
|
@@ -16,7 +16,7 @@ function isValidSchedule(pattern) {
|
|
|
16
16
|
var unitValues = cronUnitToArray(unit);
|
|
17
17
|
var CRON_REG = /^\d+$|^\*$|^\*\/\d+$/;
|
|
18
18
|
return unitValues.every(function(item) {
|
|
19
|
-
var intItem = parseInt(item, 10);
|
|
19
|
+
var intItem = Number.parseInt(item, 10);
|
|
20
20
|
return !(intItem < min || intItem > max || !CRON_REG.test(item));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -53,7 +53,7 @@ function isInPeriod(pattern, date) {
|
|
|
53
53
|
var patternArr = pattern.split(" ");
|
|
54
54
|
function isInPeriod2(date2, period, dateMethod) {
|
|
55
55
|
if (period === "*") return true;
|
|
56
|
-
return date2[dateMethod]() === parseInt(period, 10);
|
|
56
|
+
return date2[dateMethod]() === Number.parseInt(period, 10);
|
|
57
57
|
}
|
|
58
58
|
function monthInPeriod(date2, period) {
|
|
59
59
|
return isInPeriod2(date2, period, "getMonth");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import { isValidSchedule, isInPeriod } from "./cronTabScheduler.mjs";
|
|
3
2
|
import dayjs from "dayjs";
|
|
3
|
+
import { isValidSchedule, isInPeriod } from "./cronTabScheduler.mjs";
|
|
4
4
|
var MAX_DATE_TIMESTAMP = 864e13;
|
|
5
5
|
var datesIntersects = function datesIntersects2(_ref, unit) {
|
|
6
6
|
var _ref2 = _slicedToArray(_ref, 2), dateFrom = _ref2[0], dateTo = _ref2[1];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const isBetween = (function(_o, c, d) {
|
|
2
|
+
c.prototype.isBetween = function(a, b, u, i) {
|
|
3
|
+
var dA = d(a);
|
|
4
|
+
var dB = d(b);
|
|
5
|
+
i = i || "()";
|
|
6
|
+
var dAi = i[0] === "(";
|
|
7
|
+
var dBi = i[1] === ")";
|
|
8
|
+
return (dAi ? this.isAfter(dA, u) : !this.isBefore(dA, u)) && (dBi ? this.isBefore(dB, u) : !this.isAfter(dB, u)) || (dAi ? this.isBefore(dA, u) : !this.isAfter(dA, u)) && (dBi ? this.isAfter(dB, u) : !this.isBefore(dB, u));
|
|
9
|
+
};
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
isBetween as default
|
|
13
|
+
};
|
|
@@ -44,8 +44,7 @@ function shortDateRangeFormat(dates, _ref) {
|
|
|
44
44
|
}).format(normalizeDates[0]), " ").concat(normalizeDates[0].getFullYear());
|
|
45
45
|
}
|
|
46
46
|
if (isSimilarYear) {
|
|
47
|
-
options.year;
|
|
48
|
-
var newOptions = _objectWithoutProperties(options, _excluded2);
|
|
47
|
+
var _year = options.year, newOptions = _objectWithoutProperties(options, _excluded2);
|
|
49
48
|
if (getDayJSLocale(locale) === "en") {
|
|
50
49
|
return "".concat(new Intl.DateTimeFormat(locale, newOptions).format(normalizeDates[0]), "-").concat(new Intl.DateTimeFormat(locale, newOptions).format(normalizeDates[1]), ", ").concat(normalizeDates[0].getFullYear());
|
|
51
50
|
}
|