@iyulab/components 2.13.1 → 2.14.0
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 +12 -0
- package/README.md +1 -1
- package/dist/assets/locales/ar.json.js +14 -2
- package/dist/assets/locales/de.json.js +14 -2
- package/dist/assets/locales/en.json.js +14 -2
- package/dist/assets/locales/es.json.js +14 -2
- package/dist/assets/locales/fr.json.js +14 -2
- package/dist/assets/locales/id.json.js +14 -2
- package/dist/assets/locales/ja.json.js +14 -2
- package/dist/assets/locales/ko.json.js +14 -2
- package/dist/assets/locales/pt-BR.json.js +14 -2
- package/dist/assets/locales/ru.json.js +14 -2
- package/dist/assets/locales/th.json.js +14 -2
- package/dist/assets/locales/vi.json.js +14 -2
- package/dist/assets/locales/zh-CN.json.js +14 -2
- package/dist/assets/locales/zh-TW.json.js +14 -2
- package/dist/components/button/UButton.js +3 -0
- package/dist/components/button/forwarded-aria.d.ts +1 -1
- package/dist/components/button/forwarded-aria.js +2 -1
- package/dist/components/pagination/UPagination.d.ts +72 -0
- package/dist/components/pagination/UPagination.js +135 -0
- package/dist/components/pagination/UPagination.styles.d.ts +1 -0
- package/dist/components/pagination/UPagination.styles.js +47 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/react/UPagination.d.ts +15 -0
- package/dist/react/UPagination.js +12 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/utilities/Locale.d.ts +1 -1
- package/package.json +1 -1
- package/skills/iyulab-components/SKILL.md +1 -0
- package/skills/iyulab-components/references/components/button.md +2 -2
- package/skills/iyulab-components/references/components/pagination.md +69 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.14.0] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`u-pagination`** — page navigation for a paged list: the range and total ("101–120 of 345"), previous / next, page
|
|
8
|
+
numbers with gaps, and optionally rows per page (`page-sizes`). `page` is zero-based, the same axis as the data
|
|
9
|
+
sources and both tables; `page-change` carries `{ page, pageSize }` (a size change goes back to page 0) and is
|
|
10
|
+
cancelable — uncancelled, the element updates itself. A `<nav>` named by the locale, "Page n" buttons, the current
|
|
11
|
+
one with `aria-current="page"`. 14 locales.
|
|
12
|
+
- `u-button` forwards `aria-current` to the element that takes focus, like its other state attributes — a current
|
|
13
|
+
page, step or item set on the host was not read.
|
|
14
|
+
|
|
3
15
|
## [2.13.1] - 2026-10-07
|
|
4
16
|
|
|
5
17
|
### Fixed
|
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ npx skills add ./node_modules/@iyulab/components
|
|
|
123
123
|
|
|
124
124
|
**Overlay & Floating** — `u-dialog`, `u-drawer`, `u-popover`, `u-tooltip`
|
|
125
125
|
|
|
126
|
-
**Navigation** — `u-menu`, `u-menu-item`, `u-tab-panel`, `u-breadcrumb`, `u-breadcrumb-item`, `u-tree`, `u-tree-item`
|
|
126
|
+
**Navigation** — `u-menu`, `u-menu-item`, `u-tab-panel`, `u-breadcrumb`, `u-breadcrumb-item`, `u-pagination`, `u-tree`, `u-tree-item`
|
|
127
127
|
|
|
128
128
|
**Layout & Display** — `u-avatar`, `u-card`, `u-carousel`, `u-divider`, `u-expander`, `u-icon`, `u-panel`, `u-split-panel`, `u-tag`, `u-text`
|
|
129
129
|
|
|
@@ -65,6 +65,12 @@ var apply = "تطبيق";
|
|
|
65
65
|
var dateUnavailable = "هذا التاريخ غير متاح";
|
|
66
66
|
var startTime = "وقت البدء";
|
|
67
67
|
var endTime = "وقت الانتهاء";
|
|
68
|
+
var pagination = "ترقيم الصفحات";
|
|
69
|
+
var previousPage = "الصفحة السابقة";
|
|
70
|
+
var nextPage = "الصفحة التالية";
|
|
71
|
+
var pageN = "الصفحة {n}";
|
|
72
|
+
var rowsPerPage = "عدد الصفوف في الصفحة";
|
|
73
|
+
var rangeOfTotal = "{start}–{end} من {total}";
|
|
68
74
|
var ar_default = {
|
|
69
75
|
valueMissing,
|
|
70
76
|
badInput,
|
|
@@ -133,7 +139,13 @@ var ar_default = {
|
|
|
133
139
|
startTime,
|
|
134
140
|
endTime,
|
|
135
141
|
timeAm: "ص",
|
|
136
|
-
timePm: "م"
|
|
142
|
+
timePm: "م",
|
|
143
|
+
pagination,
|
|
144
|
+
previousPage,
|
|
145
|
+
nextPage,
|
|
146
|
+
pageN,
|
|
147
|
+
rowsPerPage,
|
|
148
|
+
rangeOfTotal
|
|
137
149
|
};
|
|
138
150
|
//#endregion
|
|
139
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
151
|
+
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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Übernehmen";
|
|
|
64
64
|
var dateUnavailable = "Dieses Datum ist nicht verfügbar";
|
|
65
65
|
var startTime = "Startzeit";
|
|
66
66
|
var endTime = "Endzeit";
|
|
67
|
+
var pagination = "Seitennavigation";
|
|
68
|
+
var previousPage = "Vorherige Seite";
|
|
69
|
+
var nextPage = "Nächste Seite";
|
|
70
|
+
var pageN = "Seite {n}";
|
|
71
|
+
var rowsPerPage = "Zeilen pro Seite";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} von {total}";
|
|
67
73
|
var de_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var de_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "AM",
|
|
135
|
-
timePm: "PM"
|
|
141
|
+
timePm: "PM",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Apply";
|
|
|
64
64
|
var dateUnavailable = "This date is not available";
|
|
65
65
|
var startTime = "Start time";
|
|
66
66
|
var endTime = "End time";
|
|
67
|
+
var pagination = "Pagination";
|
|
68
|
+
var previousPage = "Previous page";
|
|
69
|
+
var nextPage = "Next page";
|
|
70
|
+
var pageN = "Page {n}";
|
|
71
|
+
var rowsPerPage = "Rows per page";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} of {total}";
|
|
67
73
|
var en_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var en_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "AM",
|
|
135
|
-
timePm: "PM"
|
|
141
|
+
timePm: "PM",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -66,6 +66,12 @@ var startTime = "Hora de inicio";
|
|
|
66
66
|
var endTime = "Hora de fin";
|
|
67
67
|
var timeAm = "a.m.";
|
|
68
68
|
var timePm = "p.m.";
|
|
69
|
+
var pagination = "Paginación";
|
|
70
|
+
var previousPage = "Página anterior";
|
|
71
|
+
var nextPage = "Página siguiente";
|
|
72
|
+
var pageN = "Página {n}";
|
|
73
|
+
var rowsPerPage = "Filas por página";
|
|
74
|
+
var rangeOfTotal = "{start}–{end} de {total}";
|
|
69
75
|
var es_default = {
|
|
70
76
|
valueMissing,
|
|
71
77
|
badInput,
|
|
@@ -134,7 +140,13 @@ var es_default = {
|
|
|
134
140
|
startTime,
|
|
135
141
|
endTime,
|
|
136
142
|
timeAm,
|
|
137
|
-
timePm
|
|
143
|
+
timePm,
|
|
144
|
+
pagination,
|
|
145
|
+
previousPage,
|
|
146
|
+
nextPage,
|
|
147
|
+
pageN,
|
|
148
|
+
rowsPerPage,
|
|
149
|
+
rangeOfTotal
|
|
138
150
|
};
|
|
139
151
|
//#endregion
|
|
140
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
152
|
+
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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Appliquer";
|
|
|
64
64
|
var dateUnavailable = "Cette date n'est pas disponible";
|
|
65
65
|
var startTime = "Heure de début";
|
|
66
66
|
var endTime = "Heure de fin";
|
|
67
|
+
var pagination = "Pagination";
|
|
68
|
+
var previousPage = "Page précédente";
|
|
69
|
+
var nextPage = "Page suivante";
|
|
70
|
+
var pageN = "Page {n}";
|
|
71
|
+
var rowsPerPage = "Lignes par page";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} sur {total}";
|
|
67
73
|
var fr_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var fr_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "AM",
|
|
135
|
-
timePm: "PM"
|
|
141
|
+
timePm: "PM",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Terapkan";
|
|
|
64
64
|
var dateUnavailable = "Tanggal ini tidak tersedia";
|
|
65
65
|
var startTime = "Waktu mulai";
|
|
66
66
|
var endTime = "Waktu selesai";
|
|
67
|
+
var pagination = "Paginasi";
|
|
68
|
+
var previousPage = "Halaman sebelumnya";
|
|
69
|
+
var nextPage = "Halaman berikutnya";
|
|
70
|
+
var pageN = "Halaman {n}";
|
|
71
|
+
var rowsPerPage = "Baris per halaman";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} dari {total}";
|
|
67
73
|
var id_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var id_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "AM",
|
|
135
|
-
timePm: "PM"
|
|
141
|
+
timePm: "PM",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -65,6 +65,12 @@ var startTime = "開始時刻";
|
|
|
65
65
|
var endTime = "終了時刻";
|
|
66
66
|
var timeAm = "午前";
|
|
67
67
|
var timePm = "午後";
|
|
68
|
+
var pagination = "ページ送り";
|
|
69
|
+
var previousPage = "前のページ";
|
|
70
|
+
var nextPage = "次のページ";
|
|
71
|
+
var pageN = "{n} ページ";
|
|
72
|
+
var rowsPerPage = "1 ページの行数";
|
|
73
|
+
var rangeOfTotal = "{total} 件中 {start}–{end}";
|
|
68
74
|
var ja_default = {
|
|
69
75
|
valueMissing,
|
|
70
76
|
badInput,
|
|
@@ -133,7 +139,13 @@ var ja_default = {
|
|
|
133
139
|
startTime,
|
|
134
140
|
endTime,
|
|
135
141
|
timeAm,
|
|
136
|
-
timePm
|
|
142
|
+
timePm,
|
|
143
|
+
pagination,
|
|
144
|
+
previousPage,
|
|
145
|
+
nextPage,
|
|
146
|
+
pageN,
|
|
147
|
+
rowsPerPage,
|
|
148
|
+
rangeOfTotal
|
|
137
149
|
};
|
|
138
150
|
//#endregion
|
|
139
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
151
|
+
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 };
|
|
@@ -67,6 +67,12 @@ var startTime = "시작 시간";
|
|
|
67
67
|
var endTime = "종료 시간";
|
|
68
68
|
var timeAm = "오전";
|
|
69
69
|
var timePm = "오후";
|
|
70
|
+
var pagination = "페이지 이동";
|
|
71
|
+
var previousPage = "이전 페이지";
|
|
72
|
+
var nextPage = "다음 페이지";
|
|
73
|
+
var pageN = "{n}페이지";
|
|
74
|
+
var rowsPerPage = "페이지당 행 수";
|
|
75
|
+
var rangeOfTotal = "{total}건 중 {start}–{end}";
|
|
70
76
|
var ko_default = {
|
|
71
77
|
valueMissing,
|
|
72
78
|
badInput,
|
|
@@ -135,7 +141,13 @@ var ko_default = {
|
|
|
135
141
|
startTime,
|
|
136
142
|
endTime,
|
|
137
143
|
timeAm,
|
|
138
|
-
timePm
|
|
144
|
+
timePm,
|
|
145
|
+
pagination,
|
|
146
|
+
previousPage,
|
|
147
|
+
nextPage,
|
|
148
|
+
pageN,
|
|
149
|
+
rowsPerPage,
|
|
150
|
+
rangeOfTotal
|
|
139
151
|
};
|
|
140
152
|
//#endregion
|
|
141
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, 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, 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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Aplicar";
|
|
|
64
64
|
var dateUnavailable = "Esta data não está disponível";
|
|
65
65
|
var startTime = "Hora de início";
|
|
66
66
|
var endTime = "Hora de término";
|
|
67
|
+
var pagination = "Paginação";
|
|
68
|
+
var previousPage = "Página anterior";
|
|
69
|
+
var nextPage = "Próxima página";
|
|
70
|
+
var pageN = "Página {n}";
|
|
71
|
+
var rowsPerPage = "Linhas por página";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} de {total}";
|
|
67
73
|
var pt_BR_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var pt_BR_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "AM",
|
|
135
|
-
timePm: "PM"
|
|
141
|
+
timePm: "PM",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -65,6 +65,12 @@ var apply = "Применить";
|
|
|
65
65
|
var dateUnavailable = "Эта дата недоступна";
|
|
66
66
|
var startTime = "Время начала";
|
|
67
67
|
var endTime = "Время окончания";
|
|
68
|
+
var pagination = "Разбиение на страницы";
|
|
69
|
+
var previousPage = "Предыдущая страница";
|
|
70
|
+
var nextPage = "Следующая страница";
|
|
71
|
+
var pageN = "Страница {n}";
|
|
72
|
+
var rowsPerPage = "Строк на странице";
|
|
73
|
+
var rangeOfTotal = "{start}–{end} из {total}";
|
|
68
74
|
var ru_default = {
|
|
69
75
|
valueMissing,
|
|
70
76
|
badInput,
|
|
@@ -133,7 +139,13 @@ var ru_default = {
|
|
|
133
139
|
startTime,
|
|
134
140
|
endTime,
|
|
135
141
|
timeAm: "AM",
|
|
136
|
-
timePm: "PM"
|
|
142
|
+
timePm: "PM",
|
|
143
|
+
pagination,
|
|
144
|
+
previousPage,
|
|
145
|
+
nextPage,
|
|
146
|
+
pageN,
|
|
147
|
+
rowsPerPage,
|
|
148
|
+
rangeOfTotal
|
|
137
149
|
};
|
|
138
150
|
//#endregion
|
|
139
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
151
|
+
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 };
|
|
@@ -67,6 +67,12 @@ var startTime = "เวลาเริ่มต้น";
|
|
|
67
67
|
var endTime = "เวลาสิ้นสุด";
|
|
68
68
|
var timeAm = "ก่อนเที่ยง";
|
|
69
69
|
var timePm = "หลังเที่ยง";
|
|
70
|
+
var pagination = "การแบ่งหน้า";
|
|
71
|
+
var previousPage = "หน้าก่อนหน้า";
|
|
72
|
+
var nextPage = "หน้าถัดไป";
|
|
73
|
+
var pageN = "หน้า {n}";
|
|
74
|
+
var rowsPerPage = "จำนวนแถวต่อหน้า";
|
|
75
|
+
var rangeOfTotal = "{start}–{end} จาก {total}";
|
|
70
76
|
var th_default = {
|
|
71
77
|
valueMissing,
|
|
72
78
|
badInput,
|
|
@@ -135,7 +141,13 @@ var th_default = {
|
|
|
135
141
|
startTime,
|
|
136
142
|
endTime,
|
|
137
143
|
timeAm,
|
|
138
|
-
timePm
|
|
144
|
+
timePm,
|
|
145
|
+
pagination,
|
|
146
|
+
previousPage,
|
|
147
|
+
nextPage,
|
|
148
|
+
pageN,
|
|
149
|
+
rowsPerPage,
|
|
150
|
+
rangeOfTotal
|
|
139
151
|
};
|
|
140
152
|
//#endregion
|
|
141
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, 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, 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 };
|
|
@@ -64,6 +64,12 @@ var apply = "Áp dụng";
|
|
|
64
64
|
var dateUnavailable = "Ngày này không khả dụng";
|
|
65
65
|
var startTime = "Giờ bắt đầu";
|
|
66
66
|
var endTime = "Giờ kết thúc";
|
|
67
|
+
var pagination = "Phân trang";
|
|
68
|
+
var previousPage = "Trang trước";
|
|
69
|
+
var nextPage = "Trang sau";
|
|
70
|
+
var pageN = "Trang {n}";
|
|
71
|
+
var rowsPerPage = "Số hàng mỗi trang";
|
|
72
|
+
var rangeOfTotal = "{start}–{end} trên {total}";
|
|
67
73
|
var vi_default = {
|
|
68
74
|
valueMissing,
|
|
69
75
|
badInput,
|
|
@@ -132,7 +138,13 @@ var vi_default = {
|
|
|
132
138
|
startTime,
|
|
133
139
|
endTime,
|
|
134
140
|
timeAm: "SA",
|
|
135
|
-
timePm: "CH"
|
|
141
|
+
timePm: "CH",
|
|
142
|
+
pagination,
|
|
143
|
+
previousPage,
|
|
144
|
+
nextPage,
|
|
145
|
+
pageN,
|
|
146
|
+
rowsPerPage,
|
|
147
|
+
rangeOfTotal
|
|
136
148
|
};
|
|
137
149
|
//#endregion
|
|
138
|
-
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, nextSlide, noFileChosen, noMatches, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
150
|
+
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 };
|
|
@@ -67,6 +67,12 @@ var startTime = "开始时间";
|
|
|
67
67
|
var endTime = "结束时间";
|
|
68
68
|
var timeAm = "上午";
|
|
69
69
|
var timePm = "下午";
|
|
70
|
+
var pagination = "分页";
|
|
71
|
+
var previousPage = "上一页";
|
|
72
|
+
var nextPage = "下一页";
|
|
73
|
+
var pageN = "第 {n} 页";
|
|
74
|
+
var rowsPerPage = "每页行数";
|
|
75
|
+
var rangeOfTotal = "第 {start}–{end} 条,共 {total} 条";
|
|
70
76
|
var zh_CN_default = {
|
|
71
77
|
valueMissing,
|
|
72
78
|
badInput,
|
|
@@ -135,7 +141,13 @@ var zh_CN_default = {
|
|
|
135
141
|
startTime,
|
|
136
142
|
endTime,
|
|
137
143
|
timeAm,
|
|
138
|
-
timePm
|
|
144
|
+
timePm,
|
|
145
|
+
pagination,
|
|
146
|
+
previousPage,
|
|
147
|
+
nextPage,
|
|
148
|
+
pageN,
|
|
149
|
+
rowsPerPage,
|
|
150
|
+
rangeOfTotal
|
|
139
151
|
};
|
|
140
152
|
//#endregion
|
|
141
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, 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, 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 };
|
|
@@ -67,6 +67,12 @@ var startTime = "開始時間";
|
|
|
67
67
|
var endTime = "結束時間";
|
|
68
68
|
var timeAm = "上午";
|
|
69
69
|
var timePm = "下午";
|
|
70
|
+
var pagination = "分頁";
|
|
71
|
+
var previousPage = "上一頁";
|
|
72
|
+
var nextPage = "下一頁";
|
|
73
|
+
var pageN = "第 {n} 頁";
|
|
74
|
+
var rowsPerPage = "每頁列數";
|
|
75
|
+
var rangeOfTotal = "第 {start}–{end} 筆,共 {total} 筆";
|
|
70
76
|
var zh_TW_default = {
|
|
71
77
|
valueMissing,
|
|
72
78
|
badInput,
|
|
@@ -135,7 +141,13 @@ var zh_TW_default = {
|
|
|
135
141
|
startTime,
|
|
136
142
|
endTime,
|
|
137
143
|
timeAm,
|
|
138
|
-
timePm
|
|
144
|
+
timePm,
|
|
145
|
+
pagination,
|
|
146
|
+
previousPage,
|
|
147
|
+
nextPage,
|
|
148
|
+
pageN,
|
|
149
|
+
rowsPerPage,
|
|
150
|
+
rangeOfTotal
|
|
139
151
|
};
|
|
140
152
|
//#endregion
|
|
141
|
-
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, nextSlide, noFileChosen, noMatches, ok, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, 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, 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 };
|
|
@@ -118,11 +118,13 @@ var UButton = class UButton extends UElement {
|
|
|
118
118
|
const pressed = this.getAttribute("aria-pressed") ?? void 0;
|
|
119
119
|
const expanded = this.getAttribute("aria-expanded") ?? void 0;
|
|
120
120
|
const haspopup = this.getAttribute("aria-haspopup") ?? void 0;
|
|
121
|
+
const current = this.getAttribute("aria-current") ?? void 0;
|
|
121
122
|
if (this.href) return html`
|
|
122
123
|
<a part="link"
|
|
123
124
|
aria-label=${ifDefined(ariaLabel)}
|
|
124
125
|
aria-expanded=${ifDefined(expanded)}
|
|
125
126
|
aria-haspopup=${ifDefined(haspopup)}
|
|
127
|
+
aria-current=${ifDefined(current)}
|
|
126
128
|
?disabled=${this.effectivelyDisabled || this.loading}
|
|
127
129
|
tabindex=${this.effectivelyDisabled || this.loading ? -1 : 0}
|
|
128
130
|
href=${ifDefined(this.effectivelyDisabled || this.loading ? void 0 : this.href)}
|
|
@@ -140,6 +142,7 @@ var UButton = class UButton extends UElement {
|
|
|
140
142
|
aria-pressed=${ifDefined(pressed)}
|
|
141
143
|
aria-expanded=${ifDefined(expanded)}
|
|
142
144
|
aria-haspopup=${ifDefined(haspopup)}
|
|
145
|
+
aria-current=${ifDefined(current)}
|
|
143
146
|
type=${this.type}
|
|
144
147
|
?disabled=${this.effectivelyDisabled || this.loading}
|
|
145
148
|
>
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* 상태 속성은 포커스된 요소에 있어야 보조기기가 읽는다(WCAG 4.1.2). `aria-pressed` 는 링크에
|
|
4
4
|
* 허용되지 않아 `<button>` 에만 싣는다. `aria-controls` 는 id 참조라 `forwardControls()` 가 따로 옮긴다.
|
|
5
5
|
*/
|
|
6
|
-
export declare const FORWARDED_ARIA: readonly ["aria-label", "aria-pressed", "aria-expanded", "aria-haspopup", "aria-controls"];
|
|
6
|
+
export declare const FORWARDED_ARIA: readonly ["aria-label", "aria-pressed", "aria-expanded", "aria-haspopup", "aria-controls", "aria-current"];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { UElement } from '../UElement.js';
|
|
2
|
+
export type PaginationSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/** `page-change` 의 detail — 0 기준 페이지와 그때의 페이지 크기. */
|
|
4
|
+
export interface PageChangeDetail {
|
|
5
|
+
page: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 페이지 이동 — 범위와 총 건수, 이전·다음, 쪽 번호, 선택적으로 «페이지당 행 수».
|
|
10
|
+
*
|
|
11
|
+
* 페이지는 **0 기준**이다(`page-change` 의 `page` 도) — 데이터 소스(`createODataSource`)와 두 표(`flex-table` ·
|
|
12
|
+
* `u-rich-table`)가 같은 축을 쓴다. 화면에는 1부터 보인다.
|
|
13
|
+
*
|
|
14
|
+
* 혼자서도 동작한다: 누르면 `page-change`(취소 가능)를 내고, 취소되지 않으면 스스로 `page`·`page-size` 를 바꾼다.
|
|
15
|
+
* 소스에 묶으면(`page`·`page-size`·`total-count` 를 소스 상태로) 소스가 정답이다.
|
|
16
|
+
*
|
|
17
|
+
* @event page-change - `{ page, pageSize }` — 쪽을 옮기거나 페이지 크기를 바꿨다(크기를 바꾸면 첫 장). 취소하면 그대로다.
|
|
18
|
+
*
|
|
19
|
+
* @csspart nav - 내비게이션 요소
|
|
20
|
+
* @csspart range - «1–20 / 345» 글자
|
|
21
|
+
* @csspart page - 쪽 번호 버튼(현재 쪽은 `aria-current="page"`)
|
|
22
|
+
* @csspart prev - 이전 버튼
|
|
23
|
+
* @csspart next - 다음 버튼
|
|
24
|
+
* @csspart page-size - «페이지당 행 수» 선택
|
|
25
|
+
*/
|
|
26
|
+
export declare class UPagination extends UElement {
|
|
27
|
+
static styles: import('lit').CSSResultGroup[];
|
|
28
|
+
/** 현재 페이지 — 0 기준. 범위를 넘으면 마지막(또는 첫) 페이지로 보인다. */
|
|
29
|
+
page: number;
|
|
30
|
+
/** 한 페이지의 행 수. */
|
|
31
|
+
pageSize: number;
|
|
32
|
+
/** 전체 행 수(페이지 나누기 전). */
|
|
33
|
+
totalCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* 고를 수 있는 페이지 크기. 비어 있으면 «페이지당 행 수» 선택을 그리지 않는다. 속성으로는 쉼표 목록(`page-sizes="20,50,100"`).
|
|
36
|
+
*/
|
|
37
|
+
pageSizes: number[];
|
|
38
|
+
/** 버튼·선택의 크기 단 — 다른 컨트롤과 같은 세 단. */
|
|
39
|
+
size: PaginationSize;
|
|
40
|
+
/** 현재 쪽 양옆에 보일 쪽 번호 수. */
|
|
41
|
+
siblings: number;
|
|
42
|
+
/** 페이지 수 — 행이 없어도 1. */
|
|
43
|
+
get pageCount(): number;
|
|
44
|
+
private get current();
|
|
45
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
46
|
+
/** 처음 · 끝 · 현재와 그 양옆 — 사이가 한 쪽뿐이면 생략 대신 그 쪽을 그린다. */
|
|
47
|
+
private cells;
|
|
48
|
+
private go;
|
|
49
|
+
private onPageSizeChange;
|
|
50
|
+
}
|
|
51
|
+
/** Custom events `<u-pagination>` dispatches. */
|
|
52
|
+
export interface UPaginationEventMap {
|
|
53
|
+
/** A page was chosen, or the page size changed (then `page` is 0). Cancelable — cancel it to keep the current page. */
|
|
54
|
+
'page-change': CustomEvent<{
|
|
55
|
+
page: number;
|
|
56
|
+
pageSize: number;
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
/** Typed listeners for {@link UPaginationEventMap} — element-scoped, the DOM's own pattern (`HTMLMediaElementEventMap`). */
|
|
60
|
+
export interface UPagination {
|
|
61
|
+
addEventListener<K extends keyof UPaginationEventMap>(type: K, listener: (this: UPagination, ev: UPaginationEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
62
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UPagination, ev: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
63
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
64
|
+
removeEventListener<K extends keyof UPaginationEventMap>(type: K, listener: (this: UPagination, ev: UPaginationEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
65
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UPagination, ev: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
66
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'u-pagination': UPagination;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
5
|
+
import "../button/UButton.js";
|
|
6
|
+
import "../icon/UIcon.js";
|
|
7
|
+
import "../option/UOption.js";
|
|
8
|
+
import "../select/USelect.js";
|
|
9
|
+
import { styles } from "./UPagination.styles.js";
|
|
10
|
+
import { html, nothing } from "lit";
|
|
11
|
+
import { customElement, property } from "lit/decorators.js";
|
|
12
|
+
//#region src/components/pagination/UPagination.ts
|
|
13
|
+
var UPagination = class UPagination extends UElement {
|
|
14
|
+
constructor(..._args) {
|
|
15
|
+
super(..._args);
|
|
16
|
+
this.page = 0;
|
|
17
|
+
this.pageSize = 20;
|
|
18
|
+
this.totalCount = 0;
|
|
19
|
+
this.pageSizes = [];
|
|
20
|
+
this.size = "md";
|
|
21
|
+
this.siblings = 1;
|
|
22
|
+
this.onPageSizeChange = (e) => {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
const size = Number(e.target.value);
|
|
25
|
+
if (!Number.isFinite(size) || size <= 0 || size === this.pageSize) return;
|
|
26
|
+
if (this.fire("page-change", { detail: {
|
|
27
|
+
page: 0,
|
|
28
|
+
pageSize: size
|
|
29
|
+
} })) {
|
|
30
|
+
this.pageSize = size;
|
|
31
|
+
this.page = 0;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
static {
|
|
36
|
+
this.styles = [super.styles, styles];
|
|
37
|
+
}
|
|
38
|
+
/** 페이지 수 — 행이 없어도 1. */
|
|
39
|
+
get pageCount() {
|
|
40
|
+
return Math.max(1, Math.ceil(this.totalCount / Math.max(1, this.pageSize)));
|
|
41
|
+
}
|
|
42
|
+
get current() {
|
|
43
|
+
return Math.min(Math.max(0, Math.floor(this.page)), this.pageCount - 1);
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const current = this.current;
|
|
47
|
+
const last = this.pageCount - 1;
|
|
48
|
+
const start = this.totalCount === 0 ? 0 : current * this.pageSize + 1;
|
|
49
|
+
const end = Math.min(this.totalCount, (current + 1) * this.pageSize);
|
|
50
|
+
return html`
|
|
51
|
+
<nav part="nav" aria-label=${Locale.getValue("pagination")}>
|
|
52
|
+
<span class="range" part="range">${Locale.getValue("rangeOfTotal", {
|
|
53
|
+
start,
|
|
54
|
+
end,
|
|
55
|
+
total: this.totalCount
|
|
56
|
+
})}</span>
|
|
57
|
+
<div class="pages">
|
|
58
|
+
<u-button part="prev" class="step" appearance="plain" size=${this.size}
|
|
59
|
+
aria-label=${Locale.getValue("previousPage")}
|
|
60
|
+
?disabled=${current <= 0}
|
|
61
|
+
@click=${() => this.go(current - 1)}>
|
|
62
|
+
<u-icon lib="internal" name="chevron-left"></u-icon>
|
|
63
|
+
</u-button>
|
|
64
|
+
${this.cells(current, last).map((cell) => cell === "gap" ? html`<span class="gap" aria-hidden="true">…</span>` : html`<u-button part="page" class="page" size=${this.size}
|
|
65
|
+
appearance=${cell === current ? "soft" : "plain"}
|
|
66
|
+
aria-label=${Locale.getValue("pageN", { n: cell + 1 })}
|
|
67
|
+
aria-current=${cell === current ? "page" : nothing}
|
|
68
|
+
@click=${() => this.go(cell)}>${cell + 1}</u-button>`)}
|
|
69
|
+
<u-button part="next" class="step" appearance="plain" size=${this.size}
|
|
70
|
+
aria-label=${Locale.getValue("nextPage")}
|
|
71
|
+
?disabled=${current >= last}
|
|
72
|
+
@click=${() => this.go(current + 1)}>
|
|
73
|
+
<u-icon lib="internal" name="chevron-right"></u-icon>
|
|
74
|
+
</u-button>
|
|
75
|
+
</div>
|
|
76
|
+
${this.pageSizes.length ? html`
|
|
77
|
+
<u-select part="page-size" class="page-size" size=${this.size}
|
|
78
|
+
aria-label=${Locale.getValue("rowsPerPage")}
|
|
79
|
+
.value=${String(this.pageSize)}
|
|
80
|
+
@change=${this.onPageSizeChange}>
|
|
81
|
+
${this.pageSizes.map((n) => html`<u-option value=${String(n)}>${n}</u-option>`)}
|
|
82
|
+
</u-select>` : nothing}
|
|
83
|
+
</nav>
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
/** 처음 · 끝 · 현재와 그 양옆 — 사이가 한 쪽뿐이면 생략 대신 그 쪽을 그린다. */
|
|
87
|
+
cells(current, last) {
|
|
88
|
+
const keep = /* @__PURE__ */ new Set([0, last]);
|
|
89
|
+
for (let i = current - this.siblings; i <= current + this.siblings; i++) if (i >= 0 && i <= last) keep.add(i);
|
|
90
|
+
const sorted = [...keep].sort((a, b) => a - b);
|
|
91
|
+
const out = [];
|
|
92
|
+
sorted.forEach((p, i) => {
|
|
93
|
+
const prev = sorted[i - 1];
|
|
94
|
+
if (prev !== void 0 && p - prev === 2) out.push(prev + 1);
|
|
95
|
+
else if (prev !== void 0 && p - prev > 2) out.push("gap");
|
|
96
|
+
out.push(p);
|
|
97
|
+
});
|
|
98
|
+
return out;
|
|
99
|
+
}
|
|
100
|
+
go(page) {
|
|
101
|
+
const next = Math.min(Math.max(0, page), this.pageCount - 1);
|
|
102
|
+
if (next === this.current) return;
|
|
103
|
+
if (this.fire("page-change", { detail: {
|
|
104
|
+
page: next,
|
|
105
|
+
pageSize: this.pageSize
|
|
106
|
+
} })) this.page = next;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
__decorate([property({
|
|
110
|
+
type: Number,
|
|
111
|
+
reflect: true
|
|
112
|
+
}), __decorateMetadata("design:type", Object)], UPagination.prototype, "page", void 0);
|
|
113
|
+
__decorate([property({
|
|
114
|
+
type: Number,
|
|
115
|
+
attribute: "page-size"
|
|
116
|
+
}), __decorateMetadata("design:type", Object)], UPagination.prototype, "pageSize", void 0);
|
|
117
|
+
__decorate([property({
|
|
118
|
+
type: Number,
|
|
119
|
+
attribute: "total-count"
|
|
120
|
+
}), __decorateMetadata("design:type", Object)], UPagination.prototype, "totalCount", void 0);
|
|
121
|
+
__decorate([property({
|
|
122
|
+
attribute: "page-sizes",
|
|
123
|
+
converter: {
|
|
124
|
+
fromAttribute: (v) => (v ?? "").split(",").map((s) => Number(s.trim())).filter((n) => Number.isFinite(n) && n > 0),
|
|
125
|
+
toAttribute: (v) => v.join(",")
|
|
126
|
+
}
|
|
127
|
+
}), __decorateMetadata("design:type", Array)], UPagination.prototype, "pageSizes", void 0);
|
|
128
|
+
__decorate([property({
|
|
129
|
+
type: String,
|
|
130
|
+
reflect: true
|
|
131
|
+
}), __decorateMetadata("design:type", Object)], UPagination.prototype, "size", void 0);
|
|
132
|
+
__decorate([property({ type: Number }), __decorateMetadata("design:type", Object)], UPagination.prototype, "siblings", void 0);
|
|
133
|
+
UPagination = __decorate([customElement("u-pagination")], UPagination);
|
|
134
|
+
//#endregion
|
|
135
|
+
export { UPagination };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
//#region src/components/pagination/UPagination.styles.ts
|
|
3
|
+
var styles = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
font-family: var(--u-font-base);
|
|
7
|
+
color: var(--u-txt-color, #212121);
|
|
8
|
+
}
|
|
9
|
+
:host([hidden]) {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
nav {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--pagination-gap, var(--u-space-sm, 8px)) var(--u-space-md, 12px);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* 범위 글자 — 쪽 번호와 같은 줄의 보조 정보. 숫자가 바뀌어도 폭이 흔들리지 않게 고정폭 숫자. */
|
|
21
|
+
.range {
|
|
22
|
+
font-size: calc(var(--u-density, 14px) * 6 / 7);
|
|
23
|
+
color: var(--u-txt-color-weak, #616161);
|
|
24
|
+
font-variant-numeric: tabular-nums;
|
|
25
|
+
margin-inline-end: auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pages {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 2px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.page {
|
|
35
|
+
font-variant-numeric: tabular-nums;
|
|
36
|
+
min-width: 2.25em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.gap {
|
|
40
|
+
min-width: 1.5em;
|
|
41
|
+
text-align: center;
|
|
42
|
+
color: var(--u-txt-color-weak, #616161);
|
|
43
|
+
user-select: none;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { styles };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './components/input/UInput.js';
|
|
|
29
29
|
export * from './components/menu/UMenu.js';
|
|
30
30
|
export * from './components/menu-item/UMenuItem.js';
|
|
31
31
|
export * from './components/option/UOption.js';
|
|
32
|
+
export * from './components/pagination/UPagination.js';
|
|
32
33
|
export * from './components/panel/UPanel.js';
|
|
33
34
|
export * from './components/popover/UPopover.js';
|
|
34
35
|
export * from './components/progress-bar/UProgressBar.js';
|
package/dist/index.js
CHANGED
|
@@ -41,12 +41,13 @@ import { UOption } from "./components/option/UOption.js";
|
|
|
41
41
|
import { UInput } from "./components/input/UInput.js";
|
|
42
42
|
import { UMenuItem } from "./components/menu-item/UMenuItem.js";
|
|
43
43
|
import { UMenu } from "./components/menu/UMenu.js";
|
|
44
|
+
import { USelect } from "./components/select/USelect.js";
|
|
45
|
+
import { UPagination } from "./components/pagination/UPagination.js";
|
|
44
46
|
import { UPanel } from "./components/panel/UPanel.js";
|
|
45
47
|
import { UProgressBar } from "./components/progress-bar/UProgressBar.js";
|
|
46
48
|
import { UProgressRing } from "./components/progress-ring/UProgressRing.js";
|
|
47
49
|
import { URadio } from "./components/radio/URadio.js";
|
|
48
50
|
import { URating } from "./components/rating/URating.js";
|
|
49
|
-
import { USelect } from "./components/select/USelect.js";
|
|
50
51
|
import { USkeleton } from "./components/skeleton/USkeleton.js";
|
|
51
52
|
import { USlider } from "./components/slider/USlider.js";
|
|
52
53
|
import { USplitPanel } from "./components/split-panel/USplitPanel.js";
|
|
@@ -64,4 +65,4 @@ import { Dialog } from "./utilities/Dialog.js";
|
|
|
64
65
|
import { Theme } from "./utilities/Theme.js";
|
|
65
66
|
import { Toast } from "./utilities/Toast.js";
|
|
66
67
|
import { decodeTsv, encodeTsv } from "./utilities/tsv.js";
|
|
67
|
-
export { ALERT_STATUSES, BrowserStorage, Dialog, IconCache, IconRegistry, Locale, OverlayManager, Theme, Toast, UAlert, UAvatar, UBadge, UBreadcrumb, UBreadcrumbItem, UButton, UButtonGroup, UCard, UCarousel, UCheckbox, UChip, UCopyButton, UDatePicker, UDateRangePicker, UDialog, UDivider, UDrawer, UElement, UExpander, UField, UFileInput, UFloatingElement, UForm, UFormControlElement, UIcon, UIconButton, UInput, UMenu, UMenuItem, UOption, UOverlayElement, UPanel, UPopover, UProgressBar, UProgressRing, URadio, URating, USelect, USkeleton, USlider, USpinner, USplitPanel, USteps, USwitch, UTab, UTabPanel, UTag, UText, UTextarea, UTooltip, UTree, UTreeItem, arrayAttrConverter, booleanAttrConverter, copyFromKey, createDevWarner, dateAttrConverter, dateTextPattern, decodeTsv, devWarnOnce, encodeTsv, formatCurrency, formatDate, formatDateRange, formatDateRangeText, formatDateText, formatDateTimeRangeText, formatDateTimeText, formatNumber, getDefaultBaseUrl, getParentElement, isCoarsePointer, isFocusCandidate, isImeComposing, isTextEntry, jsonAttrConverter, parseDate, parseDateRange, parseDateTime, parseDateTimeRange, parseNumber, pasteFromKey, querySelectorAllWithin, querySelectorDeep, querySelectorWithin, resetDevWarnings, setDefaultBaseUrl, urlAttrConverter };
|
|
68
|
+
export { ALERT_STATUSES, BrowserStorage, Dialog, IconCache, IconRegistry, Locale, OverlayManager, Theme, Toast, UAlert, UAvatar, UBadge, UBreadcrumb, UBreadcrumbItem, UButton, UButtonGroup, UCard, UCarousel, UCheckbox, UChip, UCopyButton, UDatePicker, UDateRangePicker, UDialog, UDivider, UDrawer, UElement, UExpander, UField, UFileInput, UFloatingElement, UForm, UFormControlElement, UIcon, UIconButton, UInput, UMenu, UMenuItem, UOption, UOverlayElement, UPagination, UPanel, UPopover, UProgressBar, UProgressRing, URadio, URating, USelect, USkeleton, USlider, USpinner, USplitPanel, USteps, USwitch, UTab, UTabPanel, UTag, UText, UTextarea, UTooltip, UTree, UTreeItem, arrayAttrConverter, booleanAttrConverter, copyFromKey, createDevWarner, dateAttrConverter, dateTextPattern, decodeTsv, devWarnOnce, encodeTsv, formatCurrency, formatDate, formatDateRange, formatDateRangeText, formatDateText, formatDateTimeRangeText, formatDateTimeText, formatNumber, getDefaultBaseUrl, getParentElement, isCoarsePointer, isFocusCandidate, isImeComposing, isTextEntry, jsonAttrConverter, parseDate, parseDateRange, parseDateTime, parseDateTimeRange, parseNumber, pasteFromKey, querySelectorAllWithin, querySelectorDeep, querySelectorWithin, resetDevWarnings, setDefaultBaseUrl, urlAttrConverter };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UPagination as UPaginationElement } from '@iyulab/components/dist/components/pagination/UPagination.js';
|
|
3
|
+
|
|
4
|
+
type UPaginationOwnProps = Omit<UPaginationElement, keyof HTMLElement>;
|
|
5
|
+
|
|
6
|
+
export declare const UPagination: React.ForwardRefExoticComponent<
|
|
7
|
+
Partial<Omit<UPaginationElement, Exclude<keyof React.HTMLAttributes<UPaginationElement>, keyof UPaginationOwnProps>>>
|
|
8
|
+
& Omit<React.HTMLAttributes<UPaginationElement>, keyof UPaginationOwnProps | 'onPageChange'>
|
|
9
|
+
& React.RefAttributes<UPaginationElement>
|
|
10
|
+
& {
|
|
11
|
+
onPageChange?: (event: CustomEvent<PageChangeDetail>) => void;
|
|
12
|
+
}
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
export type UPaginationProps = React.ComponentProps<typeof UPagination>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { UPagination as UPaginationElement } from '@iyulab/components/dist/components/pagination/UPagination.js';
|
|
4
|
+
|
|
5
|
+
export const UPagination = createComponent({
|
|
6
|
+
react: React,
|
|
7
|
+
tagName: 'u-pagination',
|
|
8
|
+
elementClass: UPaginationElement,
|
|
9
|
+
events: {
|
|
10
|
+
onPageChange: 'page-change',
|
|
11
|
+
},
|
|
12
|
+
});
|
package/dist/react/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { UProgressRing, UProgressRingProps } from './UProgressRing';
|
|
|
19
19
|
export { UProgressBar, UProgressBarProps } from './UProgressBar';
|
|
20
20
|
export { UPopover, UPopoverProps } from './UPopover';
|
|
21
21
|
export { UPanel, UPanelProps } from './UPanel';
|
|
22
|
+
export { UPagination, UPaginationProps } from './UPagination';
|
|
22
23
|
export { UOption, UOptionProps } from './UOption';
|
|
23
24
|
export { UMenuItem, UMenuItemProps } from './UMenuItem';
|
|
24
25
|
export { UMenu, UMenuProps } from './UMenu';
|
package/dist/react/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export { UProgressRing } from './UProgressRing.js';
|
|
|
19
19
|
export { UProgressBar } from './UProgressBar.js';
|
|
20
20
|
export { UPopover } from './UPopover.js';
|
|
21
21
|
export { UPanel } from './UPanel.js';
|
|
22
|
+
export { UPagination } from './UPagination.js';
|
|
22
23
|
export { UOption } from './UOption.js';
|
|
23
24
|
export { UMenuItem } from './UMenuItem.js';
|
|
24
25
|
export { UMenu } from './UMenu.js';
|
|
@@ -12,7 +12,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
|
|
|
12
12
|
/** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
|
|
13
13
|
export type LocaleTag = SupportedLocale | (string & {});
|
|
14
14
|
/** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
|
|
15
|
-
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';
|
|
15
|
+
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';
|
|
16
16
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
17
17
|
/**
|
|
18
18
|
* 한 패키지(또는 앱 영역)의 문자열 묶음.
|
package/package.json
CHANGED
|
@@ -104,6 +104,7 @@ set on the host yourself always wins and is never overwritten.
|
|
|
104
104
|
|
|
105
105
|
- [`u-breadcrumb`](./references/components/breadcrumb.md) — Hierarchical location indicator
|
|
106
106
|
- [`u-breadcrumb-item`](./references/components/breadcrumb.md) — Individual breadcrumb link/label
|
|
107
|
+
- [`u-pagination`](./references/components/pagination.md) — Page navigation: range and total, page numbers, rows per page (zero-based `page`)
|
|
107
108
|
- [`u-menu`](./references/components/menu.md) — Menu container with keyboard navigation and selection modes
|
|
108
109
|
- [`u-menu-item`](./references/components/menu.md) — Menu entry with optional sub-menu
|
|
109
110
|
- [`u-tab-panel`](./references/components/tab-panel.md) — Tab-based content switcher
|
|
@@ -69,8 +69,8 @@ Versatile button with multiple appearances. Renders as an `<a>` element when `hr
|
|
|
69
69
|
|
|
70
70
|
Set ARIA on the `u-button` host as you would on a native button — the component moves it to the
|
|
71
71
|
inner `<button>`/`<a>` that actually takes focus: `aria-label`, and the button states
|
|
72
|
-
`aria-pressed` (toggle), `aria-expanded` + `aria-controls` (disclosure)
|
|
73
|
-
(menu button). `aria-pressed` is dropped on a link (`href`), where it is not allowed.
|
|
72
|
+
`aria-pressed` (toggle), `aria-expanded` + `aria-controls` (disclosure), `aria-haspopup`
|
|
73
|
+
(menu button) and `aria-current` (the current page, step or item). `aria-pressed` is dropped on a link (`href`), where it is not allowed.
|
|
74
74
|
`aria-controls` is an id reference, which cannot cross the shadow boundary, so it is carried as an
|
|
75
75
|
element reference (`ariaControlsElements`) resolved when the button renders.
|
|
76
76
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# u-pagination
|
|
2
|
+
|
|
3
|
+
```ts
|
|
4
|
+
import '@iyulab/components/dist/components/pagination/UPagination.js';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Tag:** `u-pagination`
|
|
8
|
+
|
|
9
|
+
Page navigation for a paged list: the range and total ("101–120 of 345"), previous / next, page numbers with gaps,
|
|
10
|
+
and optionally a rows-per-page select. `page` is **zero-based** — the same axis as the data sources
|
|
11
|
+
(`createODataSource`, `createArraySource` in `@iyulab/flex-table`) and both tables (`flex-table`, `u-rich-table`).
|
|
12
|
+
The numbers on screen start at 1.
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<u-pagination page="0" page-size="20" total-count="345" page-sizes="20,50,100"></u-pagination>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
It works on its own: choosing a page fires `page-change` and, unless the event is cancelled, the element updates its
|
|
19
|
+
own `page` / `page-size`. Bound to a source, the source is the truth — pass its state in and call the source from the
|
|
20
|
+
event:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
pager.addEventListener('page-change', (e) => {
|
|
24
|
+
const { page, pageSize } = e.detail;
|
|
25
|
+
if (pageSize !== source.getState().pageSize) source.setPageSize(pageSize); // goes back to page 0
|
|
26
|
+
else source.setPage(page);
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Properties
|
|
31
|
+
|
|
32
|
+
| Property | Type | Default | Reflect | Description |
|
|
33
|
+
|----------|------|---------|---------|-------------|
|
|
34
|
+
| `page` | `number` | `0` | ✓ | Current page, zero-based. Out of range shows the first or last page |
|
|
35
|
+
| `pageSize` | `number` | `20` | | Rows per page (attribute `page-size`) |
|
|
36
|
+
| `totalCount` | `number` | `0` | | All rows, before paging (attribute `total-count`) |
|
|
37
|
+
| `pageSizes` | `number[]` | `[]` | | Choices for rows per page (attribute `page-sizes`, a comma list). Empty — no select |
|
|
38
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | ✓ | Size step of the buttons and the select, as the other controls |
|
|
39
|
+
| `siblings` | `number` | `1` | | Page numbers shown on each side of the current one |
|
|
40
|
+
|
|
41
|
+
`pageCount` (read-only) is the number of pages — 1 when there are no rows.
|
|
42
|
+
|
|
43
|
+
## Events
|
|
44
|
+
|
|
45
|
+
| Event | Detail | Description |
|
|
46
|
+
|-------|--------|-------------|
|
|
47
|
+
| `page-change` | `{ page, pageSize }` | A page was chosen, or the page size changed (then `page` is `0`). Cancelable — cancel it to keep the current page |
|
|
48
|
+
|
|
49
|
+
## CSS Parts
|
|
50
|
+
|
|
51
|
+
| Part | Description |
|
|
52
|
+
|------|-------------|
|
|
53
|
+
| `nav` | `<nav>` wrapper (named "Pagination", localized) |
|
|
54
|
+
| `range` | The range-and-total text |
|
|
55
|
+
| `page` | A page-number button; the current one has `aria-current="page"` |
|
|
56
|
+
| `prev` / `next` | Previous / next buttons |
|
|
57
|
+
| `page-size` | The rows-per-page `u-select` |
|
|
58
|
+
|
|
59
|
+
## CSS Custom Properties
|
|
60
|
+
|
|
61
|
+
| Property | Default | Description |
|
|
62
|
+
|----------|---------|-------------|
|
|
63
|
+
| `--pagination-gap` | `var(--u-space-sm)` | Row gap when the bar wraps |
|
|
64
|
+
|
|
65
|
+
## Accessibility
|
|
66
|
+
|
|
67
|
+
A `<nav>` landmark named by the locale's "Pagination". Each page button is named "Page n" and the current one carries
|
|
68
|
+
`aria-current="page"` on the element that takes focus; previous / next are disabled at the ends. The texts follow
|
|
69
|
+
`Locale` (`pagination`, `previousPage`, `nextPage`, `pageN`, `rowsPerPage`, `rangeOfTotal`).
|