@semcore/date-picker 4.58.0-prerelease.0 → 4.58.0-prerelease.4
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 +36 -27
- package/lib/cjs/DatePicker.js.map +1 -1
- package/lib/cjs/DateRangeComparator.js +43 -38
- package/lib/cjs/DateRangeComparator.js.map +1 -1
- package/lib/cjs/DateRangePicker.js +22 -17
- package/lib/cjs/DateRangePicker.js.map +1 -1
- package/lib/cjs/MonthDateRangeComparator.js +47 -42
- package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
- package/lib/cjs/MonthPicker.js +21 -16
- package/lib/cjs/MonthPicker.js.map +1 -1
- package/lib/cjs/MonthRangePicker.js +23 -18
- package/lib/cjs/MonthRangePicker.js.map +1 -1
- package/lib/cjs/components/ButtonTrigger.js +10 -8
- package/lib/cjs/components/ButtonTrigger.js.map +1 -1
- package/lib/cjs/components/Calendar.js +125 -109
- package/lib/cjs/components/Calendar.js.map +1 -1
- package/lib/cjs/components/DateRangeComparatorAbstract.js +104 -121
- package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/cjs/components/InputTrigger.js +189 -179
- package/lib/cjs/components/InputTrigger.js.map +1 -1
- package/lib/cjs/components/PickerAbstract.js +57 -58
- package/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/lib/cjs/components/RangePickerAbstract.js +76 -97
- package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/lib/cjs/components/index.js +46 -41
- 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 +21 -19
- package/lib/cjs/style/date-picker.shadow.css +8 -7
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +2 -6
- package/lib/cjs/translations/es.json +2 -6
- package/lib/cjs/translations/fr.json +2 -6
- package/lib/cjs/translations/it.json +2 -6
- package/lib/cjs/translations/ja.json +2 -6
- package/lib/cjs/translations/ko.json +2 -6
- package/lib/cjs/translations/nl.json +2 -6
- package/lib/cjs/translations/pl.json +2 -6
- package/lib/cjs/translations/pt.json +2 -6
- package/lib/cjs/translations/sv.json +2 -6
- package/lib/cjs/translations/tr.json +2 -6
- package/lib/cjs/translations/vi.json +2 -6
- package/lib/cjs/translations/zh.json +2 -6
- package/lib/cjs/utils/cronTabScheduler.js +5 -8
- package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
- package/lib/cjs/utils/datesIntersects.js +4 -3
- package/lib/cjs/utils/datesIntersects.js.map +1 -1
- package/lib/cjs/utils/formatDate.js +5 -3
- package/lib/cjs/utils/formatDate.js.map +1 -1
- package/lib/cjs/utils/includesDate.js +3 -2
- package/lib/cjs/utils/includesDate.js.map +1 -1
- package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
- package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/es6/DatePicker.js +28 -22
- package/lib/es6/DatePicker.js.map +1 -1
- package/lib/es6/DateRangeComparator.js +27 -23
- package/lib/es6/DateRangeComparator.js.map +1 -1
- package/lib/es6/DateRangePicker.js +17 -13
- package/lib/es6/DateRangePicker.js.map +1 -1
- package/lib/es6/MonthDateRangeComparator.js +32 -28
- package/lib/es6/MonthDateRangeComparator.js.map +1 -1
- package/lib/es6/MonthPicker.js +17 -13
- package/lib/es6/MonthPicker.js.map +1 -1
- package/lib/es6/MonthRangePicker.js +18 -14
- 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 +112 -100
- package/lib/es6/components/Calendar.js.map +1 -1
- package/lib/es6/components/DateRangeComparatorAbstract.js +101 -120
- package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/es6/components/InputTrigger.js +180 -173
- package/lib/es6/components/InputTrigger.js.map +1 -1
- package/lib/es6/components/PickerAbstract.js +55 -58
- package/lib/es6/components/PickerAbstract.js.map +1 -1
- package/lib/es6/components/RangePickerAbstract.js +71 -94
- package/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/lib/es6/components/index.js +38 -35
- 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 +21 -19
- package/lib/es6/style/date-picker.shadow.css +8 -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 +2 -6
- package/lib/es6/translations/es.json +2 -6
- package/lib/es6/translations/fr.json +2 -6
- package/lib/es6/translations/it.json +2 -6
- package/lib/es6/translations/ja.json +2 -6
- package/lib/es6/translations/ko.json +2 -6
- package/lib/es6/translations/nl.json +2 -6
- package/lib/es6/translations/pl.json +2 -6
- package/lib/es6/translations/pt.json +2 -6
- package/lib/es6/translations/sv.json +2 -6
- package/lib/es6/translations/tr.json +2 -6
- package/lib/es6/translations/vi.json +2 -6
- package/lib/es6/translations/zh.json +2 -6
- package/lib/es6/utils/cronTabScheduler.js +4 -7
- 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/shortDateRangeFormat.js +1 -1
- package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/esm/DatePicker.mjs +33 -27
- package/lib/esm/DateRangeComparator.mjs +30 -26
- package/lib/esm/DateRangePicker.mjs +21 -17
- package/lib/esm/MonthDateRangeComparator.mjs +35 -31
- package/lib/esm/MonthPicker.mjs +20 -16
- package/lib/esm/MonthRangePicker.mjs +22 -18
- package/lib/esm/components/ButtonTrigger.mjs +5 -5
- package/lib/esm/components/Calendar.mjs +115 -103
- package/lib/esm/components/DateRangeComparatorAbstract.mjs +89 -105
- package/lib/esm/components/InputTrigger.mjs +181 -143
- package/lib/esm/components/PickerAbstract.mjs +62 -61
- package/lib/esm/components/RangePickerAbstract.mjs +73 -94
- package/lib/esm/components/index.mjs +33 -29
- package/lib/esm/style/calendar.shadow.css +21 -19
- package/lib/esm/style/date-picker.shadow.css +8 -7
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/de.json.mjs +6 -18
- package/lib/esm/translations/es.json.mjs +6 -18
- package/lib/esm/translations/fr.json.mjs +6 -18
- package/lib/esm/translations/it.json.mjs +6 -18
- package/lib/esm/translations/ja.json.mjs +6 -18
- package/lib/esm/translations/ko.json.mjs +6 -18
- package/lib/esm/translations/nl.json.mjs +6 -18
- package/lib/esm/translations/pl.json.mjs +6 -18
- package/lib/esm/translations/pt.json.mjs +6 -18
- package/lib/esm/translations/sv.json.mjs +6 -18
- package/lib/esm/translations/tr.json.mjs +6 -18
- package/lib/esm/translations/vi.json.mjs +6 -18
- package/lib/esm/translations/zh.json.mjs +6 -18
- package/lib/esm/utils/cronTabScheduler.mjs +4 -4
- package/lib/esm/utils/datesIntersects.mjs +1 -1
- package/lib/esm/utils/shortDateRangeFormat.mjs +2 -1
- package/lib/types/index.d.ts +171 -140
- package/package.json +16 -16
- package/lib/cjs/utils/isBetweenPlugin.js +0 -21
- package/lib/cjs/utils/isBetweenPlugin.js.map +0 -1
- package/lib/es6/utils/isBetweenPlugin.js +0 -16
- package/lib/es6/utils/isBetweenPlugin.js.map +0 -1
- package/lib/esm/utils/isBetweenPlugin.mjs +0 -13
|
@@ -9,17 +9,13 @@ const last2Months = "최근 2개월";
|
|
|
9
9
|
const last3Months = "최근 3개월";
|
|
10
10
|
const last6Months = "최근 6개월";
|
|
11
11
|
const last12Months = "최근 12개월";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const prevMonth = "이전 달";
|
|
15
|
-
const nextMonth = "다음 달";
|
|
12
|
+
const prev = "지난 기간";
|
|
13
|
+
const next = "다음 기간";
|
|
16
14
|
const input = "날짜 필드";
|
|
17
15
|
const compare = "비교 기간";
|
|
18
16
|
const fromDate = "{date}부터";
|
|
19
17
|
const toDate = "{date}까지";
|
|
20
|
-
const fromDatePlaceholder = "시작 날짜";
|
|
21
18
|
const periods = "사전 설정";
|
|
22
|
-
const toDatePlaceholder = "종료 날짜";
|
|
23
19
|
const dateRange = "날짜 범위";
|
|
24
20
|
const dateRange1 = "첫 번째 날짜 범위";
|
|
25
21
|
const dateRange2 = "두 번째 날짜 범위";
|
|
@@ -41,17 +37,13 @@ const ko = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
ko as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Vorige maand";
|
|
15
|
-
const nextMonth = "Volgende maand";
|
|
12
|
+
const prev = "Vorige periode";
|
|
13
|
+
const next = "Volgende periode";
|
|
16
14
|
const input = "Datumveld";
|
|
17
15
|
const compare = "Vergelijken met";
|
|
18
16
|
const fromDate = "Van {date}";
|
|
19
17
|
const toDate = "Tot {date}";
|
|
20
|
-
const fromDatePlaceholder = "Vanaf-datum";
|
|
21
18
|
const periods = "Voorgedefinieerd";
|
|
22
|
-
const toDatePlaceholder = "Tot-datum";
|
|
23
19
|
const dateRange = "Datumbereik";
|
|
24
20
|
const dateRange1 = "Eerste datumbereik";
|
|
25
21
|
const dateRange2 = "Tweede datumbereik";
|
|
@@ -41,17 +37,13 @@ const nl = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
nl as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Poprzedni miesiąc";
|
|
15
|
-
const nextMonth = "Następny miesiąc";
|
|
12
|
+
const prev = "Poprzedni okres";
|
|
13
|
+
const next = "Następny okres";
|
|
16
14
|
const input = "Pole daty";
|
|
17
15
|
const compare = "Porównaj z";
|
|
18
16
|
const fromDate = "Od {date}";
|
|
19
17
|
const toDate = "Do {date}";
|
|
20
|
-
const fromDatePlaceholder = "Od daty";
|
|
21
18
|
const periods = "Ustawienia gotowe";
|
|
22
|
-
const toDatePlaceholder = "Do daty";
|
|
23
19
|
const dateRange = "Zakres dat";
|
|
24
20
|
const dateRange1 = "Pierwszy zakres dat";
|
|
25
21
|
const dateRange2 = "Drugi zakres dat";
|
|
@@ -41,17 +37,13 @@ const pl = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
pl as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Mês anterior";
|
|
15
|
-
const nextMonth = "Próximo mês";
|
|
12
|
+
const prev = "Período anterior";
|
|
13
|
+
const next = "Próximo período";
|
|
16
14
|
const input = "Campo de data";
|
|
17
15
|
const compare = "Comparar com";
|
|
18
16
|
const fromDate = "De {date}";
|
|
19
17
|
const toDate = "Até {date}";
|
|
20
|
-
const fromDatePlaceholder = "Data inicial";
|
|
21
18
|
const periods = "Predefinições";
|
|
22
|
-
const toDatePlaceholder = "Data final";
|
|
23
19
|
const dateRange = "Intervalo de datas";
|
|
24
20
|
const dateRange1 = "Primeiro intervalo de datas";
|
|
25
21
|
const dateRange2 = "Segundo intervalo de datas";
|
|
@@ -41,17 +37,13 @@ const pt = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
pt as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Föregående månad";
|
|
15
|
-
const nextMonth = "Nästa månad";
|
|
12
|
+
const prev = "Föregående period";
|
|
13
|
+
const next = "Nästa period";
|
|
16
14
|
const input = "Datumfält";
|
|
17
15
|
const compare = "Jämför med";
|
|
18
16
|
const fromDate = "Från {date}";
|
|
19
17
|
const toDate = "Till {date}";
|
|
20
|
-
const fromDatePlaceholder = "Från datum";
|
|
21
18
|
const periods = "Förinställningar";
|
|
22
|
-
const toDatePlaceholder = "Till datum";
|
|
23
19
|
const dateRange = "Datumintervall";
|
|
24
20
|
const dateRange1 = "Första datumintervall";
|
|
25
21
|
const dateRange2 = "Andra datumintervall";
|
|
@@ -41,17 +37,13 @@ const sv = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
sv as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Önceki ay";
|
|
15
|
-
const nextMonth = "Gelecek ay";
|
|
12
|
+
const prev = "Önceki dönem";
|
|
13
|
+
const next = "Sonraki dönem";
|
|
16
14
|
const input = "Tarih alanı";
|
|
17
15
|
const compare = "Şuna göre karşılaştır";
|
|
18
16
|
const fromDate = "{date} adresinden";
|
|
19
17
|
const toDate = "{date} tarihine kadar";
|
|
20
|
-
const fromDatePlaceholder = "{date} tarihinden itibaren";
|
|
21
18
|
const periods = "Ön Ayarlar";
|
|
22
|
-
const toDatePlaceholder = "{date} tarihine kadar";
|
|
23
19
|
const dateRange = "Tarih aralığı";
|
|
24
20
|
const dateRange1 = "İlk tarih aralığı";
|
|
25
21
|
const dateRange2 = "İkinci tarih aralığı";
|
|
@@ -41,17 +37,13 @@ const tr = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
tr as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ 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
|
|
14
|
-
const prevMonth = "Tháng trước";
|
|
15
|
-
const nextMonth = "Tháng tiếp theo";
|
|
12
|
+
const prev = "Giai đoạn trước";
|
|
13
|
+
const next = "Giai đoạn tới";
|
|
16
14
|
const input = "Trường ngày tháng";
|
|
17
15
|
const compare = "So với";
|
|
18
16
|
const fromDate = "Từ {date}";
|
|
19
17
|
const toDate = "Đến {date}";
|
|
20
|
-
const fromDatePlaceholder = "Từ ngày";
|
|
21
18
|
const periods = "Tùy chọn đặt sẵn";
|
|
22
|
-
const toDatePlaceholder = "Đến ngày";
|
|
23
19
|
const dateRange = "Phạm vi ngày";
|
|
24
20
|
const dateRange1 = "Khoảng thời gian đầu tiên";
|
|
25
21
|
const dateRange2 = "Khoảng thời gian thứ hai";
|
|
@@ -41,17 +37,13 @@ const vi = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
vi as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
unavailableEndDate,
|
|
@@ -9,17 +9,13 @@ const last2Months = "过去 2 个月";
|
|
|
9
9
|
const last3Months = "过去 3 个月";
|
|
10
10
|
const last6Months = "过去 6 个月";
|
|
11
11
|
const last12Months = "过去 12 个月";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const prevMonth = "上月";
|
|
15
|
-
const nextMonth = "下月";
|
|
12
|
+
const prev = "上一个时段";
|
|
13
|
+
const next = "下一时段";
|
|
16
14
|
const input = "日期字段";
|
|
17
15
|
const compare = "比较";
|
|
18
16
|
const fromDate = "从 {date}";
|
|
19
17
|
const toDate = "至 {date}";
|
|
20
|
-
const fromDatePlaceholder = "开始日期";
|
|
21
18
|
const periods = "预设";
|
|
22
|
-
const toDatePlaceholder = "结束日期";
|
|
23
19
|
const dateRange = "日期范围";
|
|
24
20
|
const dateRange1 = "第一个日期范围";
|
|
25
21
|
const dateRange2 = "第二个日期范围";
|
|
@@ -41,17 +37,13 @@ const zh = {
|
|
|
41
37
|
last3Months,
|
|
42
38
|
last6Months,
|
|
43
39
|
last12Months,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
prevMonth,
|
|
47
|
-
nextMonth,
|
|
40
|
+
prev,
|
|
41
|
+
next,
|
|
48
42
|
input,
|
|
49
43
|
compare,
|
|
50
44
|
fromDate,
|
|
51
45
|
toDate,
|
|
52
|
-
fromDatePlaceholder,
|
|
53
46
|
periods,
|
|
54
|
-
toDatePlaceholder,
|
|
55
47
|
dateRange,
|
|
56
48
|
dateRange1,
|
|
57
49
|
dateRange2,
|
|
@@ -73,7 +65,6 @@ export {
|
|
|
73
65
|
dateRange2,
|
|
74
66
|
zh as default,
|
|
75
67
|
fromDate,
|
|
76
|
-
fromDatePlaceholder,
|
|
77
68
|
input,
|
|
78
69
|
last12Months,
|
|
79
70
|
last2Days,
|
|
@@ -83,16 +74,13 @@ export {
|
|
|
83
74
|
last6Months,
|
|
84
75
|
lastMonth,
|
|
85
76
|
lastWeek,
|
|
86
|
-
|
|
87
|
-
nextYear,
|
|
77
|
+
next,
|
|
88
78
|
periods,
|
|
89
|
-
|
|
90
|
-
prevYear,
|
|
79
|
+
prev,
|
|
91
80
|
reset,
|
|
92
81
|
selectingFinished,
|
|
93
82
|
selectingStarted,
|
|
94
83
|
toDate,
|
|
95
|
-
toDatePlaceholder,
|
|
96
84
|
today,
|
|
97
85
|
unavailableDate,
|
|
98
86
|
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:
|
|
6
|
+
length: parseInt(end, 10) - parseInt(start, 10) + 1
|
|
7
7
|
}, function(_, idx) {
|
|
8
|
-
return
|
|
8
|
+
return 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 =
|
|
19
|
+
var intItem = 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]() ===
|
|
56
|
+
return date2[dateMethod]() === 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 dayjs from "dayjs";
|
|
3
2
|
import { isValidSchedule, isInPeriod } from "./cronTabScheduler.mjs";
|
|
3
|
+
import dayjs from "dayjs";
|
|
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];
|
|
@@ -44,7 +44,8 @@ function shortDateRangeFormat(dates, _ref) {
|
|
|
44
44
|
}).format(normalizeDates[0]), " ").concat(normalizeDates[0].getFullYear());
|
|
45
45
|
}
|
|
46
46
|
if (isSimilarYear) {
|
|
47
|
-
|
|
47
|
+
options.year;
|
|
48
|
+
var newOptions = _objectWithoutProperties(options, _excluded2);
|
|
48
49
|
if (getDayJSLocale(locale) === "en") {
|
|
49
50
|
return "".concat(new Intl.DateTimeFormat(locale, newOptions).format(normalizeDates[0]), "-").concat(new Intl.DateTimeFormat(locale, newOptions).format(normalizeDates[1]), ", ").concat(normalizeDates[0].getFullYear());
|
|
50
51
|
}
|