@iyulab/components 2.11.1 → 2.12.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 +20 -0
- package/dist/assets/locales/ar.json.js +3 -1
- package/dist/assets/locales/de.json.js +3 -1
- package/dist/assets/locales/en.json.js +3 -1
- package/dist/assets/locales/es.json.js +3 -1
- package/dist/assets/locales/fr.json.js +3 -1
- package/dist/assets/locales/id.json.js +3 -1
- package/dist/assets/locales/ja.json.js +3 -1
- package/dist/assets/locales/ko.json.js +3 -1
- package/dist/assets/locales/pt-BR.json.js +3 -1
- package/dist/assets/locales/ru.json.js +3 -1
- package/dist/assets/locales/th.json.js +3 -1
- package/dist/assets/locales/vi.json.js +3 -1
- package/dist/assets/locales/zh-CN.json.js +3 -1
- package/dist/assets/locales/zh-TW.json.js +3 -1
- package/dist/components/card/UCard.styles.js +5 -1
- package/dist/components/option/UOption.d.ts +6 -0
- package/dist/components/option/UOption.js +12 -2
- package/dist/components/select/USelect.d.ts +17 -0
- package/dist/components/select/USelect.js +32 -8
- package/dist/components/select/USelect.styles.js +9 -0
- package/dist/utilities/Locale.d.ts +1 -1
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/select.md +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.12.0] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`u-select` `filter="none"`** — a searchable select that leaves filtering to you. The `search` event could already
|
|
8
|
+
drive a server query, but the built-in filter kept running and could not be turned off: options the server found
|
|
9
|
+
by several words or by another field stayed hidden (a reused `u-option` kept the `hidden` of the earlier text), so
|
|
10
|
+
the results looked empty. With `filter="none"` nothing is hidden. `local` stays the default.
|
|
11
|
+
- **No matches** — when the search text matches no option (and the select is not `loading`), the dropdown says so
|
|
12
|
+
in a status line (`part="no-matches"`, new locale key `noMatches` in all fourteen languages).
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- With local filtering, options added while a search text is in place are filtered by it too; they appeared
|
|
17
|
+
unfiltered. And an option added a moment ago is matched by its label — before its first render it was matched
|
|
18
|
+
by its `value` (`UOption.getText()` read the label from its own slot, which did not exist yet).
|
|
19
|
+
- **A stretched `u-card` keeps its border on the whole card.** The border is drawn by the inner `.base` (so app
|
|
20
|
+
resets do not remove it), which did not grow with the host: a vertical card stretched to its row's height, or
|
|
21
|
+
given a height, closed its border at the content and painted a second, borderless panel below.
|
|
22
|
+
|
|
3
23
|
## [2.11.1] - 2026-10-07
|
|
4
24
|
|
|
5
25
|
### Fixed
|
|
@@ -46,6 +46,7 @@ var filesSelected = "تم اختيار {count} ملفات";
|
|
|
46
46
|
var resizePanels = "تغيير حجم اللوحات";
|
|
47
47
|
var loading = "جارٍ التحميل";
|
|
48
48
|
var search = "بحث";
|
|
49
|
+
var noMatches = "لا توجد نتائج مطابقة";
|
|
49
50
|
var alertError = "خطأ";
|
|
50
51
|
var alertWarning = "تحذير";
|
|
51
52
|
var alertSuccess = "نجاح";
|
|
@@ -112,6 +113,7 @@ var ar_default = {
|
|
|
112
113
|
resizePanels,
|
|
113
114
|
loading,
|
|
114
115
|
search,
|
|
116
|
+
noMatches,
|
|
115
117
|
alertError,
|
|
116
118
|
alertWarning,
|
|
117
119
|
alertSuccess,
|
|
@@ -134,4 +136,4 @@ var ar_default = {
|
|
|
134
136
|
timePm: "م"
|
|
135
137
|
};
|
|
136
138
|
//#endregion
|
|
137
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count} Dateien ausgewählt";
|
|
|
46
46
|
var resizePanels = "Bereichsgröße ändern";
|
|
47
47
|
var loading = "Wird geladen";
|
|
48
48
|
var search = "Suchen";
|
|
49
|
+
var noMatches = "Keine Treffer";
|
|
49
50
|
var alertError = "Fehler";
|
|
50
51
|
var alertWarning = "Warnung";
|
|
51
52
|
var alertSuccess = "Erfolg";
|
|
@@ -111,6 +112,7 @@ var de_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var de_default = {
|
|
|
133
135
|
timePm: "PM"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count} files selected";
|
|
|
46
46
|
var resizePanels = "Resize panels";
|
|
47
47
|
var loading = "Loading";
|
|
48
48
|
var search = "Search";
|
|
49
|
+
var noMatches = "No matches";
|
|
49
50
|
var alertError = "Error";
|
|
50
51
|
var alertWarning = "Warning";
|
|
51
52
|
var alertSuccess = "Success";
|
|
@@ -111,6 +112,7 @@ var en_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var en_default = {
|
|
|
133
135
|
timePm: "PM"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -45,6 +45,7 @@ var filesSelected = "{count} archivos seleccionados";
|
|
|
45
45
|
var resizePanels = "Cambiar el tamaño de los paneles";
|
|
46
46
|
var loading = "Cargando";
|
|
47
47
|
var search = "Buscar";
|
|
48
|
+
var noMatches = "Sin coincidencias";
|
|
48
49
|
var alertError = "Error";
|
|
49
50
|
var alertWarning = "Advertencia";
|
|
50
51
|
var alertSuccess = "Éxito";
|
|
@@ -113,6 +114,7 @@ var es_default = {
|
|
|
113
114
|
resizePanels,
|
|
114
115
|
loading,
|
|
115
116
|
search,
|
|
117
|
+
noMatches,
|
|
116
118
|
alertError,
|
|
117
119
|
alertWarning,
|
|
118
120
|
alertSuccess,
|
|
@@ -135,4 +137,4 @@ var es_default = {
|
|
|
135
137
|
timePm
|
|
136
138
|
};
|
|
137
139
|
//#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, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count} fichiers sélectionnés";
|
|
|
46
46
|
var resizePanels = "Redimensionner les panneaux";
|
|
47
47
|
var loading = "Chargement";
|
|
48
48
|
var search = "Rechercher";
|
|
49
|
+
var noMatches = "Aucun résultat";
|
|
49
50
|
var alertError = "Erreur";
|
|
50
51
|
var alertWarning = "Avertissement";
|
|
51
52
|
var alertSuccess = "Succès";
|
|
@@ -111,6 +112,7 @@ var fr_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var fr_default = {
|
|
|
133
135
|
timePm: "PM"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count} berkas dipilih";
|
|
|
46
46
|
var resizePanels = "Ubah ukuran panel";
|
|
47
47
|
var loading = "Memuat";
|
|
48
48
|
var search = "Cari";
|
|
49
|
+
var noMatches = "Tidak ada yang cocok";
|
|
49
50
|
var alertError = "Kesalahan";
|
|
50
51
|
var alertWarning = "Peringatan";
|
|
51
52
|
var alertSuccess = "Berhasil";
|
|
@@ -111,6 +112,7 @@ var id_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var id_default = {
|
|
|
133
135
|
timePm: "PM"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count}個のファイルを選択しました";
|
|
|
46
46
|
var resizePanels = "パネルのサイズ変更";
|
|
47
47
|
var loading = "読み込み中";
|
|
48
48
|
var search = "検索";
|
|
49
|
+
var noMatches = "一致する項目はありません";
|
|
49
50
|
var alertError = "エラー";
|
|
50
51
|
var alertWarning = "警告";
|
|
51
52
|
var alertSuccess = "完了";
|
|
@@ -112,6 +113,7 @@ var ja_default = {
|
|
|
112
113
|
resizePanels,
|
|
113
114
|
loading,
|
|
114
115
|
search,
|
|
116
|
+
noMatches,
|
|
115
117
|
alertError,
|
|
116
118
|
alertWarning,
|
|
117
119
|
alertSuccess,
|
|
@@ -134,4 +136,4 @@ var ja_default = {
|
|
|
134
136
|
timePm
|
|
135
137
|
};
|
|
136
138
|
//#endregion
|
|
137
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count}개 파일 선택됨";
|
|
|
46
46
|
var resizePanels = "패널 크기 조절";
|
|
47
47
|
var loading = "로딩 중";
|
|
48
48
|
var search = "검색";
|
|
49
|
+
var noMatches = "일치하는 항목 없음";
|
|
49
50
|
var alertError = "오류";
|
|
50
51
|
var alertWarning = "경고";
|
|
51
52
|
var alertSuccess = "완료";
|
|
@@ -114,6 +115,7 @@ var ko_default = {
|
|
|
114
115
|
resizePanels,
|
|
115
116
|
loading,
|
|
116
117
|
search,
|
|
118
|
+
noMatches,
|
|
117
119
|
alertError,
|
|
118
120
|
alertWarning,
|
|
119
121
|
alertSuccess,
|
|
@@ -136,4 +138,4 @@ var ko_default = {
|
|
|
136
138
|
timePm
|
|
137
139
|
};
|
|
138
140
|
//#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, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "{count} arquivos selecionados";
|
|
|
46
46
|
var resizePanels = "Redimensionar painéis";
|
|
47
47
|
var loading = "Carregando";
|
|
48
48
|
var search = "Pesquisar";
|
|
49
|
+
var noMatches = "Nenhum resultado";
|
|
49
50
|
var alertError = "Erro";
|
|
50
51
|
var alertWarning = "Aviso";
|
|
51
52
|
var alertSuccess = "Sucesso";
|
|
@@ -111,6 +112,7 @@ var pt_BR_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var pt_BR_default = {
|
|
|
133
135
|
timePm: "PM"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "Выбрано файлов: {count}";
|
|
|
46
46
|
var resizePanels = "Изменить размер панелей";
|
|
47
47
|
var loading = "Загрузка";
|
|
48
48
|
var search = "Поиск";
|
|
49
|
+
var noMatches = "Нет совпадений";
|
|
49
50
|
var alertError = "Ошибка";
|
|
50
51
|
var alertWarning = "Предупреждение";
|
|
51
52
|
var alertSuccess = "Успешно";
|
|
@@ -112,6 +113,7 @@ var ru_default = {
|
|
|
112
113
|
resizePanels,
|
|
113
114
|
loading,
|
|
114
115
|
search,
|
|
116
|
+
noMatches,
|
|
115
117
|
alertError,
|
|
116
118
|
alertWarning,
|
|
117
119
|
alertSuccess,
|
|
@@ -134,4 +136,4 @@ var ru_default = {
|
|
|
134
136
|
timePm: "PM"
|
|
135
137
|
};
|
|
136
138
|
//#endregion
|
|
137
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "เลือกแล้ว {count} ไฟล์";
|
|
|
46
46
|
var resizePanels = "ปรับขนาดแผง";
|
|
47
47
|
var loading = "กำลังโหลด";
|
|
48
48
|
var search = "ค้นหา";
|
|
49
|
+
var noMatches = "ไม่พบรายการที่ตรงกัน";
|
|
49
50
|
var alertError = "ข้อผิดพลาด";
|
|
50
51
|
var alertWarning = "คำเตือน";
|
|
51
52
|
var alertSuccess = "สำเร็จ";
|
|
@@ -114,6 +115,7 @@ var th_default = {
|
|
|
114
115
|
resizePanels,
|
|
115
116
|
loading,
|
|
116
117
|
search,
|
|
118
|
+
noMatches,
|
|
117
119
|
alertError,
|
|
118
120
|
alertWarning,
|
|
119
121
|
alertSuccess,
|
|
@@ -136,4 +138,4 @@ var th_default = {
|
|
|
136
138
|
timePm
|
|
137
139
|
};
|
|
138
140
|
//#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, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "Đã chọn {count} tệp";
|
|
|
46
46
|
var resizePanels = "Thay đổi kích thước bảng";
|
|
47
47
|
var loading = "Đang tải";
|
|
48
48
|
var search = "Tìm kiếm";
|
|
49
|
+
var noMatches = "Không có kết quả phù hợp";
|
|
49
50
|
var alertError = "Lỗi";
|
|
50
51
|
var alertWarning = "Cảnh báo";
|
|
51
52
|
var alertSuccess = "Thành công";
|
|
@@ -111,6 +112,7 @@ var vi_default = {
|
|
|
111
112
|
resizePanels,
|
|
112
113
|
loading,
|
|
113
114
|
search,
|
|
115
|
+
noMatches,
|
|
114
116
|
alertError,
|
|
115
117
|
alertWarning,
|
|
116
118
|
alertSuccess,
|
|
@@ -133,4 +135,4 @@ var vi_default = {
|
|
|
133
135
|
timePm: "CH"
|
|
134
136
|
};
|
|
135
137
|
//#endregion
|
|
136
|
-
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, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "已选择{count}个文件";
|
|
|
46
46
|
var resizePanels = "调整面板大小";
|
|
47
47
|
var loading = "加载中";
|
|
48
48
|
var search = "搜索";
|
|
49
|
+
var noMatches = "没有匹配项";
|
|
49
50
|
var alertError = "错误";
|
|
50
51
|
var alertWarning = "警告";
|
|
51
52
|
var alertSuccess = "成功";
|
|
@@ -114,6 +115,7 @@ var zh_CN_default = {
|
|
|
114
115
|
resizePanels,
|
|
115
116
|
loading,
|
|
116
117
|
search,
|
|
118
|
+
noMatches,
|
|
117
119
|
alertError,
|
|
118
120
|
alertWarning,
|
|
119
121
|
alertSuccess,
|
|
@@ -136,4 +138,4 @@ var zh_CN_default = {
|
|
|
136
138
|
timePm
|
|
137
139
|
};
|
|
138
140
|
//#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, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, 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 };
|
|
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 };
|
|
@@ -46,6 +46,7 @@ var filesSelected = "已選擇{count}個檔案";
|
|
|
46
46
|
var resizePanels = "調整面板大小";
|
|
47
47
|
var loading = "載入中";
|
|
48
48
|
var search = "搜尋";
|
|
49
|
+
var noMatches = "沒有符合的項目";
|
|
49
50
|
var alertError = "錯誤";
|
|
50
51
|
var alertWarning = "警告";
|
|
51
52
|
var alertSuccess = "成功";
|
|
@@ -114,6 +115,7 @@ var zh_TW_default = {
|
|
|
114
115
|
resizePanels,
|
|
115
116
|
loading,
|
|
116
117
|
search,
|
|
118
|
+
noMatches,
|
|
117
119
|
alertError,
|
|
118
120
|
alertWarning,
|
|
119
121
|
alertSuccess,
|
|
@@ -136,4 +138,4 @@ var zh_TW_default = {
|
|
|
136
138
|
timePm
|
|
137
139
|
};
|
|
138
140
|
//#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, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, 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 };
|
|
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 };
|
|
@@ -12,9 +12,13 @@ var styles = css`
|
|
|
12
12
|
--card-border-color: var(--u-border-color, #E0E0E0);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/* 테두리는 내부 요소가 진다 — :host 에 두면 소비 앱 CSS 리셋에 지워진다.
|
|
15
|
+
/* 테두리는 내부 요소가 진다 — :host 에 두면 소비 앱 CSS 리셋에 지워진다.
|
|
16
|
+
그래서 면(호스트)과 테두리(.base)가 한 상자여야 한다: 카드가 늘어나면(같은 행 높이 맞춤 · 높이 지정 · grid 행)
|
|
17
|
+
.base 도 호스트의 주축으로 늘어난다. 종전에는 세로 카드에서 내용 높이에 머물러 그 아래에 면만 한 번 더 그려졌다. */
|
|
16
18
|
.base {
|
|
17
19
|
box-sizing: border-box;
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
min-height: 0;
|
|
18
22
|
width: 100%;
|
|
19
23
|
display: flex;
|
|
20
24
|
flex-direction: inherit;
|
|
@@ -43,6 +43,12 @@ export declare class UOption extends UElement {
|
|
|
43
43
|
protected updated(changed: PropertyValues): void;
|
|
44
44
|
render(): import('lit-html').TemplateResult<1>;
|
|
45
45
|
private renderMarker;
|
|
46
|
+
/**
|
|
47
|
+
* 라벨(기본 slot)에 들어가는 노드. 아직 그려지지 않은 옵션(방금 붙어 첫 렌더 전)은 슬롯이 없으므로 라이트 DOM 에서
|
|
48
|
+
* 기본 slot 에 들어갈 자식(`slot` 속성 없는 것)을 읽는다 — 종전에는 그때 `value` 로 대신해, 막 추가된 옵션이 검색어에
|
|
49
|
+
* 라벨이 아니라 값으로 걸러졌다.
|
|
50
|
+
*/
|
|
51
|
+
private labelNodes;
|
|
46
52
|
/** 라벨(기본 slot)의 텍스트 노드만 추출한다 — 엘리먼트 자식(예: 설명용 `<p>`)은 제외. */
|
|
47
53
|
getText(): string;
|
|
48
54
|
/** 라벨(기본 slot) 노드를 clone해서 반환한다 — 원본은 옵션 목록에 계속 slot돼 있어야 하므로. */
|
|
@@ -56,13 +56,23 @@ var UOption = class UOption extends UElement {
|
|
|
56
56
|
`;
|
|
57
57
|
return nothing;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* 라벨(기본 slot)에 들어가는 노드. 아직 그려지지 않은 옵션(방금 붙어 첫 렌더 전)은 슬롯이 없으므로 라이트 DOM 에서
|
|
61
|
+
* 기본 slot 에 들어갈 자식(`slot` 속성 없는 것)을 읽는다 — 종전에는 그때 `value` 로 대신해, 막 추가된 옵션이 검색어에
|
|
62
|
+
* 라벨이 아니라 값으로 걸러졌다.
|
|
63
|
+
*/
|
|
64
|
+
labelNodes() {
|
|
65
|
+
const slot = this.renderRoot?.querySelector("slot:not([name])");
|
|
66
|
+
if (slot) return slot.assignedNodes({ flatten: true });
|
|
67
|
+
return [...this.childNodes].filter((n) => !(n instanceof Element && n.hasAttribute("slot")));
|
|
68
|
+
}
|
|
59
69
|
/** 라벨(기본 slot)의 텍스트 노드만 추출한다 — 엘리먼트 자식(예: 설명용 `<p>`)은 제외. */
|
|
60
70
|
getText() {
|
|
61
|
-
return this.
|
|
71
|
+
return this.labelNodes().filter((n) => n.nodeType === Node.TEXT_NODE).map((n) => n.textContent ?? "").join("").replace(/\s+/g, " ").trim() || this.value;
|
|
62
72
|
}
|
|
63
73
|
/** 라벨(기본 slot) 노드를 clone해서 반환한다 — 원본은 옵션 목록에 계속 slot돼 있어야 하므로. */
|
|
64
74
|
getContent() {
|
|
65
|
-
const nodes = this.
|
|
75
|
+
const nodes = this.labelNodes().map((n) => n.cloneNode(true));
|
|
66
76
|
return nodes.length > 0 ? nodes : [document.createTextNode(this.value)];
|
|
67
77
|
}
|
|
68
78
|
};
|
|
@@ -20,6 +20,7 @@ import { UPopover } from '../popover/UPopover.js';
|
|
|
20
20
|
* @csspart container - 트리거 영역을 감싸는 요소
|
|
21
21
|
* @csspart popover - 옵션 목록이 표시되는 팝오버 요소
|
|
22
22
|
* @csspart search-input - 검색 입력 영역
|
|
23
|
+
* @csspart no-matches - 검색어에 맞는 옵션이 없을 때의 «일치하는 항목 없음» 상태 줄
|
|
23
24
|
*
|
|
24
25
|
* @cssprop --u-select-display - 호스트의 display (기본값: inline-block). 폼/그리드 셀에서
|
|
25
26
|
* 컨테이너 폭을 채우려면 `block`으로 지정한다.
|
|
@@ -61,6 +62,12 @@ export declare class USelect extends UFormControlElement<string | string[]> {
|
|
|
61
62
|
multiple: boolean;
|
|
62
63
|
/** 검색 가능 여부 */
|
|
63
64
|
searchable: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 검색어로 옵션을 거르는 주체. `local`(기본) — 옵션 글자·값에 검색어가 들어 있는 것만 보인다. `none` — 거르지 않는다:
|
|
67
|
+
* 옵션 집합의 주인이 소비자일 때(`search` 이벤트로 서버를 검색해 옵션을 바꾸는 원격 검색) 쓴다. 서버가 낱말 AND · 다른 칸으로
|
|
68
|
+
* 찾은 옵션을 라이브러리가 다시 걸러 숨기던 충돌이 사라진다.
|
|
69
|
+
*/
|
|
70
|
+
filter: 'local' | 'none';
|
|
64
71
|
/** 지우기 버튼 표시 여부 */
|
|
65
72
|
clearable: boolean;
|
|
66
73
|
/** 로딩 상태 표시 여부 */
|
|
@@ -76,6 +83,10 @@ export declare class USelect extends UFormControlElement<string | string[]> {
|
|
|
76
83
|
containerEl?: HTMLElement;
|
|
77
84
|
popoverEl?: UPopover;
|
|
78
85
|
private options;
|
|
86
|
+
/** 검색칸의 지금 검색어(소문자 · 앞뒤 공백 없음). */
|
|
87
|
+
private query;
|
|
88
|
+
/** 검색어가 있는데 보이는 옵션이 없다 — 팝업에 «일치하는 항목 없음» 을 알린다. */
|
|
89
|
+
private noMatches;
|
|
79
90
|
/** aria-expanded 배선용 팝오버 열림 상태 */
|
|
80
91
|
private open;
|
|
81
92
|
/** combobox → 팝업 연결용 고유 id (aria-controls). 검색 가능이면 팝업은 dialog 이고 그 안에 listbox 가 있다. */
|
|
@@ -87,6 +98,7 @@ export declare class USelect extends UFormControlElement<string | string[]> {
|
|
|
87
98
|
private get valueAsArray();
|
|
88
99
|
private get hasValue();
|
|
89
100
|
disconnectedCallback(): void;
|
|
101
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
|
90
102
|
protected updated(changedProperties: PropertyValues): void;
|
|
91
103
|
render(): import('lit-html').TemplateResult<1>;
|
|
92
104
|
private renderContent;
|
|
@@ -117,6 +129,11 @@ export declare class USelect extends UFormControlElement<string | string[]> {
|
|
|
117
129
|
private handleOptionClick;
|
|
118
130
|
private handleOptionKeydown;
|
|
119
131
|
private handleSearchInput;
|
|
132
|
+
/**
|
|
133
|
+
* 지금 검색어를 지금 옵션에 적용한다 — 입력 때뿐 아니라 옵션이 바뀔 때도(재사용된 `u-option` 이 앞 검색의 `hidden` 을
|
|
134
|
+
* 들고 남지 않게). `filter="none"` 이면 아무것도 숨기지 않는다.
|
|
135
|
+
*/
|
|
136
|
+
private applyFilter;
|
|
120
137
|
private handleSearchKeydown;
|
|
121
138
|
private handleClearClick;
|
|
122
139
|
/** suffix `u-icon`은 순수 표시 요소(버튼 아님)라 네이티브 키보드 활성화가 없다 —
|
|
@@ -26,9 +26,12 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
26
26
|
});
|
|
27
27
|
this.multiple = false;
|
|
28
28
|
this.searchable = false;
|
|
29
|
+
this.filter = "local";
|
|
29
30
|
this.clearable = false;
|
|
30
31
|
this.loading = false;
|
|
31
32
|
this.options = [];
|
|
33
|
+
this.query = "";
|
|
34
|
+
this.noMatches = false;
|
|
32
35
|
this.open = false;
|
|
33
36
|
this.idBase = `u-select-${Math.random().toString(36).slice(2, 8)}`;
|
|
34
37
|
this.listboxId = `${this.idBase}-listbox`;
|
|
@@ -38,6 +41,7 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
38
41
|
const slot = e.target;
|
|
39
42
|
this.options = slot.assignedElements({ flatten: true }).filter((el) => el instanceof UOption);
|
|
40
43
|
this.setup(this.options);
|
|
44
|
+
this.applyFilter();
|
|
41
45
|
};
|
|
42
46
|
this.handlePopoverHide = () => {
|
|
43
47
|
this.open = false;
|
|
@@ -94,15 +98,11 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
94
98
|
}
|
|
95
99
|
};
|
|
96
100
|
this.handleSearchInput = (e) => {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const label = option.getText().toLowerCase();
|
|
101
|
-
const value = option.value.toLowerCase();
|
|
102
|
-
option.hidden = !label.includes(query) && !value.includes(query);
|
|
103
|
-
}
|
|
101
|
+
const input = e.target;
|
|
102
|
+
this.query = input.value.toLowerCase().trim();
|
|
103
|
+
this.applyFilter();
|
|
104
104
|
this.fire("search", {
|
|
105
|
-
detail: { query },
|
|
105
|
+
detail: { query: this.query },
|
|
106
106
|
cancelable: false
|
|
107
107
|
});
|
|
108
108
|
};
|
|
@@ -165,6 +165,10 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
165
165
|
this.cleanup(this.options);
|
|
166
166
|
super.disconnectedCallback();
|
|
167
167
|
}
|
|
168
|
+
willUpdate(changedProperties) {
|
|
169
|
+
super.willUpdate(changedProperties);
|
|
170
|
+
if (changedProperties.has("filter") || changedProperties.has("loading")) this.applyFilter();
|
|
171
|
+
}
|
|
168
172
|
updated(changedProperties) {
|
|
169
173
|
super.updated(changedProperties);
|
|
170
174
|
if (["value", "options"].some((k) => changedProperties.has(k))) this.onChangeValue();
|
|
@@ -247,6 +251,7 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
247
251
|
@keydown=${this.handleSearchKeydown}
|
|
248
252
|
/>
|
|
249
253
|
</div>
|
|
254
|
+
<div class="no-matches" part="no-matches" role="status">${this.noMatches ? Locale.getValue("noMatches") : ""}</div>
|
|
250
255
|
<div class="listbox" role="listbox" id=${this.listboxId}
|
|
251
256
|
aria-multiselectable=${ifDefined(this.multiple ? "true" : void 0)}>
|
|
252
257
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
@@ -341,6 +346,20 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
341
346
|
composed: true
|
|
342
347
|
}));
|
|
343
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* 지금 검색어를 지금 옵션에 적용한다 — 입력 때뿐 아니라 옵션이 바뀔 때도(재사용된 `u-option` 이 앞 검색의 `hidden` 을
|
|
351
|
+
* 들고 남지 않게). `filter="none"` 이면 아무것도 숨기지 않는다.
|
|
352
|
+
*/
|
|
353
|
+
applyFilter() {
|
|
354
|
+
const query = this.filter === "none" ? "" : this.query;
|
|
355
|
+
for (const option of this.options) if (!query) option.hidden = false;
|
|
356
|
+
else {
|
|
357
|
+
const label = option.getText().toLowerCase();
|
|
358
|
+
const value = option.value.toLowerCase();
|
|
359
|
+
option.hidden = !label.includes(query) && !value.includes(query);
|
|
360
|
+
}
|
|
361
|
+
this.noMatches = !!this.query && !this.loading && !this.options.some((o) => !o.hidden);
|
|
362
|
+
}
|
|
344
363
|
};
|
|
345
364
|
__decorate([property({
|
|
346
365
|
type: String,
|
|
@@ -362,6 +381,10 @@ __decorate([property({
|
|
|
362
381
|
type: Boolean,
|
|
363
382
|
reflect: true
|
|
364
383
|
}), __decorateMetadata("design:type", Boolean)], USelect.prototype, "searchable", void 0);
|
|
384
|
+
__decorate([property({
|
|
385
|
+
type: String,
|
|
386
|
+
reflect: true
|
|
387
|
+
}), __decorateMetadata("design:type", String)], USelect.prototype, "filter", void 0);
|
|
365
388
|
__decorate([property({
|
|
366
389
|
type: Boolean,
|
|
367
390
|
reflect: true
|
|
@@ -391,6 +414,7 @@ __decorate([property({ converter: { fromAttribute: (value) => {
|
|
|
391
414
|
__decorate([query(".container", true), __decorateMetadata("design:type", typeof HTMLElement === "undefined" ? Object : HTMLElement)], USelect.prototype, "containerEl", void 0);
|
|
392
415
|
__decorate([query("u-popover", true), __decorateMetadata("design:type", Object)], USelect.prototype, "popoverEl", void 0);
|
|
393
416
|
__decorate([state(), __decorateMetadata("design:type", Array)], USelect.prototype, "options", void 0);
|
|
417
|
+
__decorate([state(), __decorateMetadata("design:type", Object)], USelect.prototype, "noMatches", void 0);
|
|
394
418
|
__decorate([state(), __decorateMetadata("design:type", Boolean)], USelect.prototype, "open", void 0);
|
|
395
419
|
USelect = __decorate([customElement("u-select")], USelect);
|
|
396
420
|
//#endregion
|
|
@@ -228,6 +228,15 @@ var styles = css`
|
|
|
228
228
|
overflow-y: auto;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
/* 결과 0건 — 비어 있을 때는 자리를 차지하지 않는다(상태 영역은 늘 있어야 바뀐 문구가 읽힌다). */
|
|
232
|
+
.no-matches:empty {
|
|
233
|
+
display: none;
|
|
234
|
+
}
|
|
235
|
+
.no-matches {
|
|
236
|
+
padding: var(--u-field-padding-block, 0.3em) var(--u-field-padding-inline, 0.6em);
|
|
237
|
+
color: var(--u-txt-color-weak, #616161);
|
|
238
|
+
}
|
|
239
|
+
|
|
231
240
|
.search-input {
|
|
232
241
|
display: flex;
|
|
233
242
|
align-items: center;
|
|
@@ -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' | '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';
|
|
16
16
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
17
17
|
/**
|
|
18
18
|
* 한 패키지(또는 앱 영역)의 문자열 묶음.
|
package/package.json
CHANGED
|
@@ -42,6 +42,7 @@ Dropdown select with single or multiple selection, search, and clear support. Fo
|
|
|
42
42
|
| `chars` | `number` | — | ✓ | Characters the field holds. An unsized field draws at N characters + its clear button and arrow + padding, so it no longer widens and narrows with the chosen option (a longer one ends in an ellipsis); a sized one (`--u-select-width`, `block`) uses it as the text floor, so a narrower box overflows. Same axis as `u-input`'s `chars`. N characters are measured as drawn — tabular figures and letter spacing count, which CSS `ch` leaves out |
|
|
43
43
|
| `multiple` | `boolean` | `false` | ✓ | Allow multiple selections |
|
|
44
44
|
| `searchable` | `boolean` | `false` | ✓ | Filter options by text |
|
|
45
|
+
| `filter` | `'local'\|'none'` | `'local'` | ✓ | Who filters by the search text. `local` shows options whose text or value contains it; `none` hides nothing — for remote search, where the `search` event drives a server query and you replace the options with its results. When the text matches nothing (and not `loading`), the popup says *No matches* |
|
|
45
46
|
| `clearable` | `boolean` | `false` | ✓ | Show clear button |
|
|
46
47
|
| `loading` | `boolean` | `false` | ✓ | Loading state |
|
|
47
48
|
| `placeholder` | `string` | — | — | Placeholder text |
|
|
@@ -61,7 +62,7 @@ Dropdown select with single or multiple selection, search, and clear support. Fo
|
|
|
61
62
|
| Event | Description |
|
|
62
63
|
|-------|-------------|
|
|
63
64
|
| `change` | Fires when selection changes |
|
|
64
|
-
| `search` | Fires on every search input change when `searchable` (`detail: { query: string }`).
|
|
65
|
+
| `search` | Fires on every search input change when `searchable` (`detail: { query: string }`). With `filter="none"` the select hides nothing, so the options you set from the server are shown as they are — otherwise the built-in local filter runs too |
|
|
65
66
|
|
|
66
67
|
## Methods
|
|
67
68
|
|
|
@@ -89,6 +90,7 @@ the first/last visible option; on an option, arrows, `Home`/`End`, `Enter`/`Spac
|
|
|
89
90
|
| `container` | Trigger area |
|
|
90
91
|
| `popover` | Dropdown list container |
|
|
91
92
|
| `search-input` | Search input inside dropdown |
|
|
93
|
+
| `no-matches` | *No matches* status line in the dropdown (empty and hidden otherwise) |
|
|
92
94
|
|
|
93
95
|
## CSS Custom Properties
|
|
94
96
|
|