@iyulab/components 2.30.2 → 2.31.1
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/CHANGELOG.md +22 -0
- package/dist/assets/locales/ar.json.js +5 -1
- package/dist/assets/locales/de.json.js +5 -1
- package/dist/assets/locales/en.json.js +5 -1
- package/dist/assets/locales/es.json.js +5 -1
- package/dist/assets/locales/fr.json.js +5 -1
- package/dist/assets/locales/id.json.js +5 -1
- package/dist/assets/locales/ja.json.js +5 -1
- package/dist/assets/locales/ko.json.js +5 -1
- package/dist/assets/locales/pt-BR.json.js +5 -1
- package/dist/assets/locales/ru.json.js +5 -1
- package/dist/assets/locales/th.json.js +5 -1
- package/dist/assets/locales/vi.json.js +5 -1
- package/dist/assets/locales/zh-CN.json.js +5 -1
- package/dist/assets/locales/zh-TW.json.js +5 -1
- package/dist/components/avatar/UAvatar.styles.js +1 -1
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +1 -1
- package/dist/components/date-range-picker/presets.d.ts +1 -1
- package/dist/components/date-range-picker/presets.js +16 -0
- package/dist/components/field/UField.js +22 -0
- package/dist/utilities/Locale.d.ts +1 -1
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/date-range-picker.md +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.31.1] - 2026-10-23
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- `u-avatar` initials now meet WCAG AA contrast. The default background moves from `--u-neutral-500` to `--u-neutral-700`
|
|
8
|
+
(fallback `#9E9E9E` → `#616161`): white initials measured 2.68 (light) and 2.69 (dark) on the old step and 6.19 · 6.08
|
|
9
|
+
on the new one. Avatars without a `background` of their own render a step darker.
|
|
10
|
+
|
|
11
|
+
## [2.31.0] - 2026-10-23
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `u-date-range-picker`: built-in presets `last3Months` and `last6Months` — the months ending today, the quick periods a
|
|
16
|
+
business list offers beside «last 7 days». A day the earlier month lacks clamps to its end (the 3 months ending May 31
|
|
17
|
+
start on March 1). Labels in all 14 locale tables.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- `u-radio` with a `label` no longer logs «u-field label="…" has no form control» in development. The group was named
|
|
22
|
+
correctly; the check did not follow the radio's slotted options. An element with an ARIA widget role
|
|
23
|
+
(`radiogroup`, `listbox`, `combobox`, `slider` and the like) now counts as the control a field label names.
|
|
24
|
+
|
|
3
25
|
## [2.30.2] - 2026-10-22
|
|
4
26
|
|
|
5
27
|
### Fixed
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "اختيار نطاق التاريخ";
|
|
|
28
28
|
var yesterday = "أمس";
|
|
29
29
|
var last7Days = "آخر 7 أيام";
|
|
30
30
|
var last30Days = "آخر 30 يومًا";
|
|
31
|
+
var last3Months = "آخر 3 أشهر";
|
|
32
|
+
var last6Months = "آخر 6 أشهر";
|
|
31
33
|
var thisWeek = "هذا الأسبوع";
|
|
32
34
|
var lastWeek = "الأسبوع الماضي";
|
|
33
35
|
var thisMonth = "هذا الشهر";
|
|
@@ -101,6 +103,8 @@ var ar_default = {
|
|
|
101
103
|
yesterday,
|
|
102
104
|
last7Days,
|
|
103
105
|
last30Days,
|
|
106
|
+
last3Months,
|
|
107
|
+
last6Months,
|
|
104
108
|
thisWeek,
|
|
105
109
|
lastWeek,
|
|
106
110
|
thisMonth,
|
|
@@ -147,4 +151,4 @@ var ar_default = {
|
|
|
147
151
|
rowsPerPage,
|
|
148
152
|
rangeOfTotal
|
|
149
153
|
};
|
|
150
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
154
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Zeitraum auswählen";
|
|
|
28
28
|
var yesterday = "Gestern";
|
|
29
29
|
var last7Days = "Letzte 7 Tage";
|
|
30
30
|
var last30Days = "Letzte 30 Tage";
|
|
31
|
+
var last3Months = "Letzte 3 Monate";
|
|
32
|
+
var last6Months = "Letzte 6 Monate";
|
|
31
33
|
var thisWeek = "Diese Woche";
|
|
32
34
|
var lastWeek = "Letzte Woche";
|
|
33
35
|
var thisMonth = "Dieser Monat";
|
|
@@ -100,6 +102,8 @@ var de_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var de_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Choose date range";
|
|
|
28
28
|
var yesterday = "Yesterday";
|
|
29
29
|
var last7Days = "Last 7 days";
|
|
30
30
|
var last30Days = "Last 30 days";
|
|
31
|
+
var last3Months = "Last 3 months";
|
|
32
|
+
var last6Months = "Last 6 months";
|
|
31
33
|
var thisWeek = "This week";
|
|
32
34
|
var lastWeek = "Last week";
|
|
33
35
|
var thisMonth = "This month";
|
|
@@ -100,6 +102,8 @@ var en_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var en_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -27,6 +27,8 @@ var chooseDateRange = "Elegir intervalo de fechas";
|
|
|
27
27
|
var yesterday = "Ayer";
|
|
28
28
|
var last7Days = "Últimos 7 días";
|
|
29
29
|
var last30Days = "Últimos 30 días";
|
|
30
|
+
var last3Months = "Últimos 3 meses";
|
|
31
|
+
var last6Months = "Últimos 6 meses";
|
|
30
32
|
var thisWeek = "Esta semana";
|
|
31
33
|
var lastWeek = "Semana pasada";
|
|
32
34
|
var thisMonth = "Este mes";
|
|
@@ -102,6 +104,8 @@ var es_default = {
|
|
|
102
104
|
yesterday,
|
|
103
105
|
last7Days,
|
|
104
106
|
last30Days,
|
|
107
|
+
last3Months,
|
|
108
|
+
last6Months,
|
|
105
109
|
thisWeek,
|
|
106
110
|
lastWeek,
|
|
107
111
|
thisMonth,
|
|
@@ -148,4 +152,4 @@ var es_default = {
|
|
|
148
152
|
rowsPerPage,
|
|
149
153
|
rangeOfTotal
|
|
150
154
|
};
|
|
151
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
155
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Choisir une période";
|
|
|
28
28
|
var yesterday = "Hier";
|
|
29
29
|
var last7Days = "7 derniers jours";
|
|
30
30
|
var last30Days = "30 derniers jours";
|
|
31
|
+
var last3Months = "3 derniers mois";
|
|
32
|
+
var last6Months = "6 derniers mois";
|
|
31
33
|
var thisWeek = "Cette semaine";
|
|
32
34
|
var lastWeek = "Semaine dernière";
|
|
33
35
|
var thisMonth = "Ce mois-ci";
|
|
@@ -100,6 +102,8 @@ var fr_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var fr_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Pilih rentang tanggal";
|
|
|
28
28
|
var yesterday = "Kemarin";
|
|
29
29
|
var last7Days = "7 hari terakhir";
|
|
30
30
|
var last30Days = "30 hari terakhir";
|
|
31
|
+
var last3Months = "3 bulan terakhir";
|
|
32
|
+
var last6Months = "6 bulan terakhir";
|
|
31
33
|
var thisWeek = "Minggu ini";
|
|
32
34
|
var lastWeek = "Minggu lalu";
|
|
33
35
|
var thisMonth = "Bulan ini";
|
|
@@ -100,6 +102,8 @@ var id_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var id_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "期間を選択";
|
|
|
28
28
|
var yesterday = "昨日";
|
|
29
29
|
var last7Days = "過去7日間";
|
|
30
30
|
var last30Days = "過去30日間";
|
|
31
|
+
var last3Months = "過去3か月";
|
|
32
|
+
var last6Months = "過去6か月";
|
|
31
33
|
var thisWeek = "今週";
|
|
32
34
|
var lastWeek = "先週";
|
|
33
35
|
var thisMonth = "今月";
|
|
@@ -101,6 +103,8 @@ var ja_default = {
|
|
|
101
103
|
yesterday,
|
|
102
104
|
last7Days,
|
|
103
105
|
last30Days,
|
|
106
|
+
last3Months,
|
|
107
|
+
last6Months,
|
|
104
108
|
thisWeek,
|
|
105
109
|
lastWeek,
|
|
106
110
|
thisMonth,
|
|
@@ -147,4 +151,4 @@ var ja_default = {
|
|
|
147
151
|
rowsPerPage,
|
|
148
152
|
rangeOfTotal
|
|
149
153
|
};
|
|
150
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
154
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "기간 선택";
|
|
|
28
28
|
var yesterday = "어제";
|
|
29
29
|
var last7Days = "최근 7일";
|
|
30
30
|
var last30Days = "최근 30일";
|
|
31
|
+
var last3Months = "최근 3개월";
|
|
32
|
+
var last6Months = "최근 6개월";
|
|
31
33
|
var thisWeek = "이번 주";
|
|
32
34
|
var lastWeek = "지난주";
|
|
33
35
|
var thisMonth = "이번 달";
|
|
@@ -103,6 +105,8 @@ var ko_default = {
|
|
|
103
105
|
yesterday,
|
|
104
106
|
last7Days,
|
|
105
107
|
last30Days,
|
|
108
|
+
last3Months,
|
|
109
|
+
last6Months,
|
|
106
110
|
thisWeek,
|
|
107
111
|
lastWeek,
|
|
108
112
|
thisMonth,
|
|
@@ -149,4 +153,4 @@ var ko_default = {
|
|
|
149
153
|
rowsPerPage,
|
|
150
154
|
rangeOfTotal
|
|
151
155
|
};
|
|
152
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
156
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Escolher intervalo de datas";
|
|
|
28
28
|
var yesterday = "Ontem";
|
|
29
29
|
var last7Days = "Últimos 7 dias";
|
|
30
30
|
var last30Days = "Últimos 30 dias";
|
|
31
|
+
var last3Months = "Últimos 3 meses";
|
|
32
|
+
var last6Months = "Últimos 6 meses";
|
|
31
33
|
var thisWeek = "Esta semana";
|
|
32
34
|
var lastWeek = "Semana passada";
|
|
33
35
|
var thisMonth = "Este mês";
|
|
@@ -100,6 +102,8 @@ var pt_BR_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var pt_BR_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Выбрать период";
|
|
|
28
28
|
var yesterday = "Вчера";
|
|
29
29
|
var last7Days = "Последние 7 дней";
|
|
30
30
|
var last30Days = "Последние 30 дней";
|
|
31
|
+
var last3Months = "Последние 3 месяца";
|
|
32
|
+
var last6Months = "Последние 6 месяцев";
|
|
31
33
|
var thisWeek = "Эта неделя";
|
|
32
34
|
var lastWeek = "Прошлая неделя";
|
|
33
35
|
var thisMonth = "Этот месяц";
|
|
@@ -101,6 +103,8 @@ var ru_default = {
|
|
|
101
103
|
yesterday,
|
|
102
104
|
last7Days,
|
|
103
105
|
last30Days,
|
|
106
|
+
last3Months,
|
|
107
|
+
last6Months,
|
|
104
108
|
thisWeek,
|
|
105
109
|
lastWeek,
|
|
106
110
|
thisMonth,
|
|
@@ -147,4 +151,4 @@ var ru_default = {
|
|
|
147
151
|
rowsPerPage,
|
|
148
152
|
rangeOfTotal
|
|
149
153
|
};
|
|
150
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
154
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "เลือกช่วงวันที่";
|
|
|
28
28
|
var yesterday = "เมื่อวาน";
|
|
29
29
|
var last7Days = "7 วันที่ผ่านมา";
|
|
30
30
|
var last30Days = "30 วันที่ผ่านมา";
|
|
31
|
+
var last3Months = "3 เดือนที่ผ่านมา";
|
|
32
|
+
var last6Months = "6 เดือนที่ผ่านมา";
|
|
31
33
|
var thisWeek = "สัปดาห์นี้";
|
|
32
34
|
var lastWeek = "สัปดาห์ที่แล้ว";
|
|
33
35
|
var thisMonth = "เดือนนี้";
|
|
@@ -103,6 +105,8 @@ var th_default = {
|
|
|
103
105
|
yesterday,
|
|
104
106
|
last7Days,
|
|
105
107
|
last30Days,
|
|
108
|
+
last3Months,
|
|
109
|
+
last6Months,
|
|
106
110
|
thisWeek,
|
|
107
111
|
lastWeek,
|
|
108
112
|
thisMonth,
|
|
@@ -149,4 +153,4 @@ var th_default = {
|
|
|
149
153
|
rowsPerPage,
|
|
150
154
|
rangeOfTotal
|
|
151
155
|
};
|
|
152
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
156
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "Chọn khoảng ngày";
|
|
|
28
28
|
var yesterday = "Hôm qua";
|
|
29
29
|
var last7Days = "7 ngày qua";
|
|
30
30
|
var last30Days = "30 ngày qua";
|
|
31
|
+
var last3Months = "3 tháng qua";
|
|
32
|
+
var last6Months = "6 tháng qua";
|
|
31
33
|
var thisWeek = "Tuần này";
|
|
32
34
|
var lastWeek = "Tuần trước";
|
|
33
35
|
var thisMonth = "Tháng này";
|
|
@@ -100,6 +102,8 @@ var vi_default = {
|
|
|
100
102
|
yesterday,
|
|
101
103
|
last7Days,
|
|
102
104
|
last30Days,
|
|
105
|
+
last3Months,
|
|
106
|
+
last6Months,
|
|
103
107
|
thisWeek,
|
|
104
108
|
lastWeek,
|
|
105
109
|
thisMonth,
|
|
@@ -146,4 +150,4 @@ var vi_default = {
|
|
|
146
150
|
rowsPerPage,
|
|
147
151
|
rangeOfTotal
|
|
148
152
|
};
|
|
149
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
153
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "选择日期范围";
|
|
|
28
28
|
var yesterday = "昨天";
|
|
29
29
|
var last7Days = "最近7天";
|
|
30
30
|
var last30Days = "最近30天";
|
|
31
|
+
var last3Months = "最近3个月";
|
|
32
|
+
var last6Months = "最近6个月";
|
|
31
33
|
var thisWeek = "本周";
|
|
32
34
|
var lastWeek = "上周";
|
|
33
35
|
var thisMonth = "本月";
|
|
@@ -103,6 +105,8 @@ var zh_CN_default = {
|
|
|
103
105
|
yesterday,
|
|
104
106
|
last7Days,
|
|
105
107
|
last30Days,
|
|
108
|
+
last3Months,
|
|
109
|
+
last6Months,
|
|
106
110
|
thisWeek,
|
|
107
111
|
lastWeek,
|
|
108
112
|
thisMonth,
|
|
@@ -149,4 +153,4 @@ var zh_CN_default = {
|
|
|
149
153
|
rowsPerPage,
|
|
150
154
|
rangeOfTotal
|
|
151
155
|
};
|
|
152
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
156
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -28,6 +28,8 @@ var chooseDateRange = "選擇日期範圍";
|
|
|
28
28
|
var yesterday = "昨天";
|
|
29
29
|
var last7Days = "最近7天";
|
|
30
30
|
var last30Days = "最近30天";
|
|
31
|
+
var last3Months = "最近3個月";
|
|
32
|
+
var last6Months = "最近6個月";
|
|
31
33
|
var thisWeek = "本週";
|
|
32
34
|
var lastWeek = "上週";
|
|
33
35
|
var thisMonth = "本月";
|
|
@@ -103,6 +105,8 @@ var zh_TW_default = {
|
|
|
103
105
|
yesterday,
|
|
104
106
|
last7Days,
|
|
105
107
|
last30Days,
|
|
108
|
+
last3Months,
|
|
109
|
+
last6Months,
|
|
106
110
|
thisWeek,
|
|
107
111
|
lastWeek,
|
|
108
112
|
thisMonth,
|
|
@@ -149,4 +153,4 @@ var zh_TW_default = {
|
|
|
149
153
|
rowsPerPage,
|
|
150
154
|
rangeOfTotal
|
|
151
155
|
};
|
|
152
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
156
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -10,7 +10,7 @@ var styles = css`
|
|
|
10
10
|
font-family: var(--u-font-base);
|
|
11
11
|
font-weight: 600;
|
|
12
12
|
color: var(--u-neutral-0, #FFFFFF);
|
|
13
|
-
background-color: var(--u-neutral-
|
|
13
|
+
background-color: var(--u-neutral-700, #616161);
|
|
14
14
|
vertical-align: middle;
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
user-select: none;
|
|
@@ -34,7 +34,7 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
|
|
|
34
34
|
* `change` and closes the calendar. Escape while an anchor is set drops it; Escape again closes.
|
|
35
35
|
*
|
|
36
36
|
* `presets` adds a list of quick ranges beside the calendar — built-in names (`today`, `yesterday`,
|
|
37
|
-
* `last7Days`, `last30Days`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `thisYear`, which
|
|
37
|
+
* `last7Days`, `last30Days`, `last3Months`, `last6Months`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `thisYear`, which
|
|
38
38
|
* can be written as a space-separated attribute) and app-defined `{ label, range }` objects, in the
|
|
39
39
|
* order given. Picking one sets the range at once, fires `change` and closes the calendar. A preset
|
|
40
40
|
* whose range reaches outside `min`/`max` is disabled; the one equal to the current range is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocaleMessageKey } from '../../utilities/Locale.js';
|
|
2
2
|
/** A built-in quick range, named so it can be listed in the `presets` attribute. */
|
|
3
|
-
export type DateRangePresetName = 'today' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear';
|
|
3
|
+
export type DateRangePresetName = 'today' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear';
|
|
4
4
|
/**
|
|
5
5
|
* A quick range the app defines — a fiscal quarter, "since the last release". `range` runs when
|
|
6
6
|
* the preset is drawn and when it is picked, so a relative range stays current. It returns the
|
|
@@ -3,6 +3,14 @@ import { addDays, addMonths, daysInMonth, parseISODate, toISODate } from "../cal
|
|
|
3
3
|
// src/components/date-range-picker/presets.ts
|
|
4
4
|
var startOfWeek = (d) => addDays(d, -d.getDay());
|
|
5
5
|
var endOfMonth = (d) => new Date(d.getFullYear(), d.getMonth(), daysInMonth(d));
|
|
6
|
+
/**
|
|
7
|
+
* The first day of the `n` months ending `d`: the same day `n` months back, plus one. A day the earlier month lacks
|
|
8
|
+
* clamps to its last day — the 3 months ending May 31 start on March 1, not on a "February 31".
|
|
9
|
+
*/
|
|
10
|
+
var monthsEnding = (d, n) => {
|
|
11
|
+
const back = addMonths(d, -n);
|
|
12
|
+
return addDays(new Date(back.getFullYear(), back.getMonth(), Math.min(d.getDate(), daysInMonth(back))), 1);
|
|
13
|
+
};
|
|
6
14
|
/** Built-in ranges as pure functions of "today" (a local calendar day). Both ends are inclusive. */
|
|
7
15
|
var BUILTIN_PRESETS = {
|
|
8
16
|
today: {
|
|
@@ -21,6 +29,14 @@ var BUILTIN_PRESETS = {
|
|
|
21
29
|
key: "last30Days",
|
|
22
30
|
range: (t) => [addDays(t, -29), t]
|
|
23
31
|
},
|
|
32
|
+
last3Months: {
|
|
33
|
+
key: "last3Months",
|
|
34
|
+
range: (t) => [monthsEnding(t, 3), t]
|
|
35
|
+
},
|
|
36
|
+
last6Months: {
|
|
37
|
+
key: "last6Months",
|
|
38
|
+
range: (t) => [monthsEnding(t, 6), t]
|
|
39
|
+
},
|
|
24
40
|
thisWeek: {
|
|
25
41
|
key: "thisWeek",
|
|
26
42
|
range: (t) => [startOfWeek(t), addDays(startOfWeek(t), 6)]
|
|
@@ -19,6 +19,26 @@ var NATIVE_CONTROL_TAGS = /* @__PURE__ */ new Set([
|
|
|
19
19
|
"BUTTON"
|
|
20
20
|
]);
|
|
21
21
|
/**
|
|
22
|
+
* 그 자체로 조작 대상인 ARIA 위젯 역할. 묶음형 컨트롤은 자기 섀도에서 이 역할의 상자를 이 필드에 슬롯하고,
|
|
23
|
+
* 항목은 그 상자 안 슬롯으로 들어온다(`u-radio` 의 `role="radiogroup"` 컨테이너) — 하위 탐색은 슬롯 배정을 따라가지
|
|
24
|
+
* 않으므로, 역할로 세지 않으면 라벨이 실제로 이름 붙인 묶음이 «컨트롤 없음» 이 된다.
|
|
25
|
+
*/
|
|
26
|
+
var WIDGET_ROLES = /* @__PURE__ */ new Set([
|
|
27
|
+
"radiogroup",
|
|
28
|
+
"listbox",
|
|
29
|
+
"combobox",
|
|
30
|
+
"textbox",
|
|
31
|
+
"searchbox",
|
|
32
|
+
"spinbutton",
|
|
33
|
+
"slider",
|
|
34
|
+
"grid",
|
|
35
|
+
"tree",
|
|
36
|
+
"treegrid",
|
|
37
|
+
"tablist",
|
|
38
|
+
"menu",
|
|
39
|
+
"menubar"
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
22
42
|
* **구조상** 폼 컨트롤인가 — `UField.hasControlInSubtree` 가 쓰는 술어.
|
|
23
43
|
* `isFocusable()`(tabbable)과 달리 **렌더 여부도 `disabled` 도 보지 않는다**: 숨겨진 폼도,
|
|
24
44
|
* 비활성 입력도 «라벨이 가리킬 대상» 이라는 사실은 같다. 근거는 `hasControlInSubtree` 주석.
|
|
@@ -29,6 +49,8 @@ function isFormControlByStructure(node) {
|
|
|
29
49
|
if (node.tagName === "A" && node.hasAttribute("href")) return true;
|
|
30
50
|
if (node.hasAttribute("tabindex")) return true;
|
|
31
51
|
if (node.hasAttribute("contenteditable")) return true;
|
|
52
|
+
const role = node.getAttribute("role");
|
|
53
|
+
if (role && WIDGET_ROLES.has(role)) return true;
|
|
32
54
|
return false;
|
|
33
55
|
}
|
|
34
56
|
/** 자기 글자로 접근성 이름을 갖는 컨트롤 — 필드 라벨로 덮으면 보이는 글자와 이름이 어긋난다. */
|
|
@@ -4,7 +4,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
|
|
|
4
4
|
/** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
|
|
5
5
|
export type LocaleTag = SupportedLocale | (string & {});
|
|
6
6
|
/** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
|
|
7
|
-
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
|
|
7
|
+
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
|
|
8
8
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
9
9
|
/**
|
|
10
10
|
* 글자가 검색어를 담는가 — 사람이 «찾았다» 고 여기는 일치. 글자마다 거르는 칸(`u-select` 의 검색 등)이 쓴다.
|
package/package.json
CHANGED
|
@@ -99,6 +99,8 @@ so "Last 7 days" is always the last seven days.
|
|
|
99
99
|
| `yesterday` | yesterday |
|
|
100
100
|
| `last7Days` | the 7 days ending today |
|
|
101
101
|
| `last30Days` | the 30 days ending today |
|
|
102
|
+
| `last3Months` | the 3 months ending today (from the day after the same date 3 months back; a day the earlier month lacks clamps to its end) |
|
|
103
|
+
| `last6Months` | the 6 months ending today, counted the same way |
|
|
102
104
|
| `thisWeek` | Sunday–Saturday of this week |
|
|
103
105
|
| `lastWeek` | Sunday–Saturday of last week |
|
|
104
106
|
| `thisMonth` | the whole of this month |
|