@iyulab/components 2.37.0 → 2.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.38.1] - 2026-10-31
4
+
5
+ ### Fixed
6
+
7
+ - **`u-checkbox` and `u-switch` take a press on the whole row they stand in.** The press goes to the inner label, which
8
+ was one line high — with a touch target (`--u-target-size: 44px`) the host stood 44px tall but its top and bottom
9
+ bands did nothing. The label now fills the target height (the checkbox pads its single line, the switch has a minimum
10
+ height); at the default 24px the row looks as before.
11
+
12
+ ## [2.38.0] - 2026-10-31
13
+
14
+ ### Added
15
+
16
+ - **`u-file-input` `directory`** — picks a folder instead of files. Every file under the folder lands in `value`
17
+ (still `File[]`), each with its `webkitRelativePath`; the form submits them like `multiple`. The trigger reads
18
+ "Choose folder" and the status shows the folder name and the file count (new locale strings `chooseFolder` and
19
+ `folderSelected` in all fourteen built-in languages). Browsers do not apply `accept` to a folder pick.
20
+
21
+ ### Fixed
22
+
23
+ - **`applyNumberFormat` returns `null` for a format code with more digit placeholders than `Intl.NumberFormat` takes**
24
+ (more than 21 integer or 100 fraction) instead of throwing a `RangeError` — the answer it already gives for code syntax
25
+ it cannot write, so a caller that shows the plain value for `null` no longer has to guard the call. A `flex-table`
26
+ column whose `format` was a mistyped long run of `0` threw while rendering its cells.
27
+
3
28
  ## [2.37.0] - 2026-10-31
4
29
 
5
30
  ### Added
@@ -45,6 +45,8 @@ var copied = "تم النسخ";
45
45
  var chooseFile = "اختر ملفًا";
46
46
  var noFileChosen = "لم يتم اختيار أي ملف";
47
47
  var filesSelected = "تم اختيار {count} ملفات";
48
+ var chooseFolder = "اختر مجلدًا";
49
+ var folderSelected = "{name} ({count} ملفات)";
48
50
  var resizePanels = "تغيير حجم اللوحات";
49
51
  var loading = "جارٍ التحميل";
50
52
  var search = "بحث";
@@ -122,6 +124,8 @@ var ar_default = {
122
124
  chooseFile,
123
125
  noFileChosen,
124
126
  filesSelected,
127
+ chooseFolder,
128
+ folderSelected,
125
129
  resizePanels,
126
130
  loading,
127
131
  search,
@@ -155,4 +159,4 @@ var ar_default = {
155
159
  rowsPerPage,
156
160
  rangeOfTotal
157
161
  };
158
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
162
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Kopiert";
45
45
  var chooseFile = "Datei auswählen";
46
46
  var noFileChosen = "Keine Datei ausgewählt";
47
47
  var filesSelected = "{count} Dateien ausgewählt";
48
+ var chooseFolder = "Ordner auswählen";
49
+ var folderSelected = "{name} ({count} Dateien)";
48
50
  var resizePanels = "Bereichsgröße ändern";
49
51
  var loading = "Wird geladen";
50
52
  var search = "Suchen";
@@ -121,6 +123,8 @@ var de_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var de_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Copied";
45
45
  var chooseFile = "Choose file";
46
46
  var noFileChosen = "No file chosen";
47
47
  var filesSelected = "{count} files selected";
48
+ var chooseFolder = "Choose folder";
49
+ var folderSelected = "{name} ({count} files)";
48
50
  var resizePanels = "Resize panels";
49
51
  var loading = "Loading";
50
52
  var search = "Search";
@@ -121,6 +123,8 @@ var en_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var en_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -44,6 +44,8 @@ var copied = "Copiado";
44
44
  var chooseFile = "Elegir archivo";
45
45
  var noFileChosen = "Ningún archivo elegido";
46
46
  var filesSelected = "{count} archivos seleccionados";
47
+ var chooseFolder = "Elegir carpeta";
48
+ var folderSelected = "{name} ({count} archivos)";
47
49
  var resizePanels = "Cambiar el tamaño de los paneles";
48
50
  var loading = "Cargando";
49
51
  var search = "Buscar";
@@ -123,6 +125,8 @@ var es_default = {
123
125
  chooseFile,
124
126
  noFileChosen,
125
127
  filesSelected,
128
+ chooseFolder,
129
+ folderSelected,
126
130
  resizePanels,
127
131
  loading,
128
132
  search,
@@ -156,4 +160,4 @@ var es_default = {
156
160
  rowsPerPage,
157
161
  rangeOfTotal
158
162
  };
159
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
163
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Copié";
45
45
  var chooseFile = "Choisir un fichier";
46
46
  var noFileChosen = "Aucun fichier choisi";
47
47
  var filesSelected = "{count} fichiers sélectionnés";
48
+ var chooseFolder = "Choisir un dossier";
49
+ var folderSelected = "{name} ({count} fichiers)";
48
50
  var resizePanels = "Redimensionner les panneaux";
49
51
  var loading = "Chargement";
50
52
  var search = "Rechercher";
@@ -121,6 +123,8 @@ var fr_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var fr_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Disalin";
45
45
  var chooseFile = "Pilih berkas";
46
46
  var noFileChosen = "Tidak ada berkas dipilih";
47
47
  var filesSelected = "{count} berkas dipilih";
48
+ var chooseFolder = "Pilih folder";
49
+ var folderSelected = "{name} ({count} berkas)";
48
50
  var resizePanels = "Ubah ukuran panel";
49
51
  var loading = "Memuat";
50
52
  var search = "Cari";
@@ -121,6 +123,8 @@ var id_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var id_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "コピーしました";
45
45
  var chooseFile = "ファイルを選択";
46
46
  var noFileChosen = "ファイルが選択されていません";
47
47
  var filesSelected = "{count}個のファイルを選択しました";
48
+ var chooseFolder = "フォルダーを選択";
49
+ var folderSelected = "{name}({count}個のファイル)";
48
50
  var resizePanels = "パネルのサイズ変更";
49
51
  var loading = "読み込み中";
50
52
  var search = "検索";
@@ -122,6 +124,8 @@ var ja_default = {
122
124
  chooseFile,
123
125
  noFileChosen,
124
126
  filesSelected,
127
+ chooseFolder,
128
+ folderSelected,
125
129
  resizePanels,
126
130
  loading,
127
131
  search,
@@ -155,4 +159,4 @@ var ja_default = {
155
159
  rowsPerPage,
156
160
  rangeOfTotal
157
161
  };
158
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
162
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "복사됨";
45
45
  var chooseFile = "파일 선택";
46
46
  var noFileChosen = "선택된 파일 없음";
47
47
  var filesSelected = "{count}개 파일 선택됨";
48
+ var chooseFolder = "폴더 선택";
49
+ var folderSelected = "{name} (파일 {count}개)";
48
50
  var resizePanels = "패널 크기 조절";
49
51
  var loading = "로딩 중";
50
52
  var search = "검색";
@@ -124,6 +126,8 @@ var ko_default = {
124
126
  chooseFile,
125
127
  noFileChosen,
126
128
  filesSelected,
129
+ chooseFolder,
130
+ folderSelected,
127
131
  resizePanels,
128
132
  loading,
129
133
  search,
@@ -157,4 +161,4 @@ var ko_default = {
157
161
  rowsPerPage,
158
162
  rangeOfTotal
159
163
  };
160
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
164
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Copiado";
45
45
  var chooseFile = "Escolher arquivo";
46
46
  var noFileChosen = "Nenhum arquivo escolhido";
47
47
  var filesSelected = "{count} arquivos selecionados";
48
+ var chooseFolder = "Escolher pasta";
49
+ var folderSelected = "{name} ({count} arquivos)";
48
50
  var resizePanels = "Redimensionar painéis";
49
51
  var loading = "Carregando";
50
52
  var search = "Pesquisar";
@@ -121,6 +123,8 @@ var pt_BR_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var pt_BR_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Скопировано";
45
45
  var chooseFile = "Выбрать файл";
46
46
  var noFileChosen = "Файл не выбран";
47
47
  var filesSelected = "Выбрано файлов: {count}";
48
+ var chooseFolder = "Выбрать папку";
49
+ var folderSelected = "{name} (файлов: {count})";
48
50
  var resizePanels = "Изменить размер панелей";
49
51
  var loading = "Загрузка";
50
52
  var search = "Поиск";
@@ -122,6 +124,8 @@ var ru_default = {
122
124
  chooseFile,
123
125
  noFileChosen,
124
126
  filesSelected,
127
+ chooseFolder,
128
+ folderSelected,
125
129
  resizePanels,
126
130
  loading,
127
131
  search,
@@ -155,4 +159,4 @@ var ru_default = {
155
159
  rowsPerPage,
156
160
  rangeOfTotal
157
161
  };
158
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
162
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "คัดลอกแล้ว";
45
45
  var chooseFile = "เลือกไฟล์";
46
46
  var noFileChosen = "ยังไม่ได้เลือกไฟล์";
47
47
  var filesSelected = "เลือกแล้ว {count} ไฟล์";
48
+ var chooseFolder = "เลือกโฟลเดอร์";
49
+ var folderSelected = "{name} ({count} ไฟล์)";
48
50
  var resizePanels = "ปรับขนาดแผง";
49
51
  var loading = "กำลังโหลด";
50
52
  var search = "ค้นหา";
@@ -124,6 +126,8 @@ var th_default = {
124
126
  chooseFile,
125
127
  noFileChosen,
126
128
  filesSelected,
129
+ chooseFolder,
130
+ folderSelected,
127
131
  resizePanels,
128
132
  loading,
129
133
  search,
@@ -157,4 +161,4 @@ var th_default = {
157
161
  rowsPerPage,
158
162
  rangeOfTotal
159
163
  };
160
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
164
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "Đã sao chép";
45
45
  var chooseFile = "Chọn tệp";
46
46
  var noFileChosen = "Chưa chọn tệp nào";
47
47
  var filesSelected = "Đã chọn {count} tệp";
48
+ var chooseFolder = "Chọn thư mục";
49
+ var folderSelected = "{name} ({count} tệp)";
48
50
  var resizePanels = "Thay đổi kích thước bảng";
49
51
  var loading = "Đang tải";
50
52
  var search = "Tìm kiếm";
@@ -121,6 +123,8 @@ var vi_default = {
121
123
  chooseFile,
122
124
  noFileChosen,
123
125
  filesSelected,
126
+ chooseFolder,
127
+ folderSelected,
124
128
  resizePanels,
125
129
  loading,
126
130
  search,
@@ -154,4 +158,4 @@ var vi_default = {
154
158
  rowsPerPage,
155
159
  rangeOfTotal
156
160
  };
157
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
161
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "已复制";
45
45
  var chooseFile = "选择文件";
46
46
  var noFileChosen = "未选择文件";
47
47
  var filesSelected = "已选择{count}个文件";
48
+ var chooseFolder = "选择文件夹";
49
+ var folderSelected = "{name}({count}个文件)";
48
50
  var resizePanels = "调整面板大小";
49
51
  var loading = "加载中";
50
52
  var search = "搜索";
@@ -124,6 +126,8 @@ var zh_CN_default = {
124
126
  chooseFile,
125
127
  noFileChosen,
126
128
  filesSelected,
129
+ chooseFolder,
130
+ folderSelected,
127
131
  resizePanels,
128
132
  loading,
129
133
  search,
@@ -157,4 +161,4 @@ var zh_CN_default = {
157
161
  rowsPerPage,
158
162
  rangeOfTotal
159
163
  };
160
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
164
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -45,6 +45,8 @@ var copied = "已複製";
45
45
  var chooseFile = "選擇檔案";
46
46
  var noFileChosen = "未選擇檔案";
47
47
  var filesSelected = "已選擇{count}個檔案";
48
+ var chooseFolder = "選擇資料夾";
49
+ var folderSelected = "{name}({count}個檔案)";
48
50
  var resizePanels = "調整面板大小";
49
51
  var loading = "載入中";
50
52
  var search = "搜尋";
@@ -124,6 +126,8 @@ var zh_TW_default = {
124
126
  chooseFile,
125
127
  noFileChosen,
126
128
  filesSelected,
129
+ chooseFolder,
130
+ folderSelected,
127
131
  resizePanels,
128
132
  loading,
129
133
  search,
@@ -157,4 +161,4 @@ var zh_TW_default = {
157
161
  rowsPerPage,
158
162
  rangeOfTotal
159
163
  };
160
- export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
164
+ export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, carousel, chooseDate, chooseDateRange, chooseFile, chooseFolder, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, folderSelected, goToSlide, hidePassword, increment, last30Days, last3Months, last6Months, last7Days, lastMonth, lastWeek, loading, nextMonth, nextPage, nextSlide, noFileChosen, noMatches, ok, pageN, pagination, patternMismatch, previousMonth, previousPage, previousSlide, quickRanges, rangeOfTotal, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, rowsPerPage, search, searchFailed, showPassword, slide, slideOf, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stepSkipped, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
@@ -144,6 +144,10 @@ var styles = css`
144
144
  align-items: flex-start;
145
145
  gap: 0.5em;
146
146
  cursor: inherit;
147
+
148
+
149
+
150
+ padding-block: max(0px, calc((max(24px, var(--u-target-size, 0px)) - 1.2em) / 2));
147
151
  }
148
152
 
149
153
 
@@ -30,6 +30,12 @@ export declare class UFileInput extends UFormControlElement<File[] | null> {
30
30
  accept?: string;
31
31
  /** 여러 파일을 한 번에 선택할 수 있는지 여부. */
32
32
  multiple: boolean;
33
+ /**
34
+ * 파일 대신 폴더를 고른다 — 안쪽 입력에 `webkitdirectory` 를 건다(모든 주요 브라우저가 지원). 고른 폴더 아래 파일 전부가
35
+ * `value` 에 담기고 각 `File` 의 `webkitRelativePath` 가 폴더 기준 상대 경로다. 폴더 하나가 여러 파일이므로 `multiple` 을
36
+ * 함의한다. 브라우저는 폴더 모드에서 `accept` 를 쓰지 않는다 — 걸러야 하면 `change` 에서 `value` 를 거른다.
37
+ */
38
+ directory: boolean;
33
39
  triggerEl?: HTMLButtonElement;
34
40
  inputEl?: HTMLInputElement;
35
41
  /** `value`가 바뀌는 모든 경로(선택·지우기)에서 폼 제출값을 동기화한다 —
@@ -49,6 +55,9 @@ export declare class UFileInput extends UFormControlElement<File[] | null> {
49
55
  * 라벨이 없으면 아무것도 얹지 않는다 — 버튼의 보이는 글자가 곧 이름이다.
50
56
  */
51
57
  private get triggerAriaLabel();
58
+ private get triggerText();
59
+ /** 폴더 모드의 상태 글자 — 고른 폴더 이름(상대 경로의 첫 마디)과 파일 수. 경로가 없으면(코드가 넣은 값) 파일 모드의 글자로. */
60
+ private statusText;
52
61
  render(): import('lit-html').TemplateResult<1>;
53
62
  protected setValidity(): void;
54
63
  reset(): void;
@@ -14,6 +14,7 @@ var UFileInput = class UFileInput extends UFormControlElement {
14
14
  super(..._args);
15
15
  this.value = null;
16
16
  this.multiple = false;
17
+ this.directory = false;
17
18
  this.handleTriggerClick = (e) => {
18
19
  e.stopImmediatePropagation();
19
20
  if (this.effectivelyDisabled || this.readonly) return;
@@ -83,12 +84,25 @@ var UFileInput = class UFileInput extends UFormControlElement {
83
84
  */
84
85
  get triggerAriaLabel() {
85
86
  const label = this.resolvedAriaLabel;
86
- return label ? `${Locale.getValue("chooseFile")}, ${label}` : void 0;
87
+ return label ? `${this.triggerText}, ${label}` : void 0;
88
+ }
89
+ get triggerText() {
90
+ return Locale.getValue(this.directory ? "chooseFolder" : "chooseFile");
91
+ }
92
+ /** 폴더 모드의 상태 글자 — 고른 폴더 이름(상대 경로의 첫 마디)과 파일 수. 경로가 없으면(코드가 넣은 값) 파일 모드의 글자로. */
93
+ statusText(files) {
94
+ if (files.length === 0) return Locale.getValue("noFileChosen");
95
+ const folder = this.directory ? files[0].webkitRelativePath?.split("/")[0] : "";
96
+ if (folder) return Locale.getValue("folderSelected", {
97
+ name: folder,
98
+ count: files.length
99
+ });
100
+ return files.length === 1 ? files[0].name : Locale.getValue("filesSelected", { count: files.length });
87
101
  }
88
102
  render() {
89
103
  const files = this.value ?? [];
90
104
  const hasFiles = files.length > 0;
91
- const status = !hasFiles ? Locale.getValue("noFileChosen") : files.length === 1 ? files[0].name : Locale.getValue("filesSelected", { count: files.length });
105
+ const status = this.statusText(files);
92
106
  return html`
93
107
  <u-field part="field"
94
108
  ?required=${this.required}
@@ -105,7 +119,7 @@ var UFileInput = class UFileInput extends UFormControlElement {
105
119
  aria-label=${ifDefined(this.triggerAriaLabel)}
106
120
  ?disabled=${this.effectivelyDisabled || this.readonly}
107
121
  @click=${this.handleTriggerClick}
108
- >${Locale.getValue("chooseFile")}</button>
122
+ >${this.triggerText}</button>
109
123
 
110
124
  <span class="status" part="status" ?data-empty=${!hasFiles}>${status}</span>
111
125
 
@@ -125,7 +139,8 @@ var UFileInput = class UFileInput extends UFormControlElement {
125
139
  hidden
126
140
  name=${ifDefined(this.name)}
127
141
  accept=${ifDefined(this.accept)}
128
- ?multiple=${this.multiple}
142
+ ?multiple=${this.multiple || this.directory}
143
+ ?webkitdirectory=${this.directory}
129
144
  ?disabled=${this.effectivelyDisabled || this.readonly}
130
145
  @change=${this.handleInputChange}
131
146
  />
@@ -155,6 +170,10 @@ __decorate([property({
155
170
  type: Boolean,
156
171
  reflect: true
157
172
  }), __decorateMetadata("design:type", Boolean)], UFileInput.prototype, "multiple", void 0);
173
+ __decorate([property({
174
+ type: Boolean,
175
+ reflect: true
176
+ }), __decorateMetadata("design:type", Boolean)], UFileInput.prototype, "directory", void 0);
158
177
  __decorate([query(".trigger", true), __decorateMetadata("design:type", typeof HTMLButtonElement === "undefined" ? Object : HTMLButtonElement)], UFileInput.prototype, "triggerEl", void 0);
159
178
  __decorate([query("input[type=\"file\"]", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], UFileInput.prototype, "inputEl", void 0);
160
179
  UFileInput = __decorate([customElement("u-file-input")], UFileInput);
@@ -56,6 +56,8 @@ var styles = css`
56
56
  align-items: center;
57
57
  gap: 0.6em;
58
58
  cursor: inherit;
59
+
60
+ min-block-size: max(24px, var(--u-target-size, 0px));
59
61
  }
60
62
 
61
63
 
@@ -4,7 +4,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
4
4
  /** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
5
5
  export type LocaleTag = SupportedLocale | (string & {});
6
6
  /** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
7
- export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'searchFailed' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'stepSkipped' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
7
+ export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'chooseFolder' | 'folderSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'searchFailed' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'stepSkipped' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
8
8
  type LocaleTable = Record<LocaleMessageKey, string>;
9
9
  /**
10
10
  * 글자가 검색어를 담는가 — 사람이 «찾았다» 고 여기는 일치. 글자마다 거르는 칸(`u-select` 의 검색 등)이 쓴다.
@@ -16,7 +16,8 @@ export type NumberFormat = string | Intl.NumberFormatOptions;
16
16
  * - Neither path writes a signed zero: a negative that rounds to zero reads `0`, as in Excel. For options,
17
17
  * that is `signDisplay: 'negative'` unless the options set `signDisplay` themselves.
18
18
  * - Returns `null` when a format code uses syntax this engine does not support (conditions `[>100]`,
19
- * `[Color N]`, scientific `E+`, fractions) — the caller decides how to show the value then.
19
+ * `[Color N]`, scientific `E+`, fractions) or more digit placeholders than `Intl.NumberFormat` takes (21 integer,
20
+ * 100 fraction) — the caller decides how to show the value then.
20
21
  *
21
22
  * Separators follow `locale`, or the app locale (`Locale.get()`) when omitted.
22
23
  */
@@ -22,6 +22,9 @@ var COLOR_TONES = {
22
22
  yellow: "warning",
23
23
  black: null
24
24
  };
25
+ /** `Intl.NumberFormat` 의 `minimumIntegerDigits` 상한 · `maximumFractionDigits` 상한. */
26
+ var MAX_INTEGER_DIGITS = 21;
27
+ var MAX_FRACTION_DIGITS = 100;
25
28
  var cache = /* @__PURE__ */ new Map();
26
29
  /** Split on `;` outside quotes, brackets and escapes. */
27
30
  function splitSections(code) {
@@ -154,6 +157,7 @@ function parseSection(src) {
154
157
  }
155
158
  closeNumber();
156
159
  flushLiteral();
160
+ if (intZeros > MAX_INTEGER_DIGITS || maxFraction > MAX_FRACTION_DIGITS) return null;
157
161
  return {
158
162
  tokens,
159
163
  tone,
@@ -242,7 +246,8 @@ function toNumber(value) {
242
246
  * - Neither path writes a signed zero: a negative that rounds to zero reads `0`, as in Excel. For options,
243
247
  * that is `signDisplay: 'negative'` unless the options set `signDisplay` themselves.
244
248
  * - Returns `null` when a format code uses syntax this engine does not support (conditions `[>100]`,
245
- * `[Color N]`, scientific `E+`, fractions) — the caller decides how to show the value then.
249
+ * `[Color N]`, scientific `E+`, fractions) or more digit placeholders than `Intl.NumberFormat` takes (21 integer,
250
+ * 100 fraction) — the caller decides how to show the value then.
246
251
  *
247
252
  * Separators follow `locale`, or the app locale (`Locale.get()`) when omitted.
248
253
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iyulab/components",
3
3
  "description": "web-components library based on lit-element made by iyulab",
4
- "version": "2.37.0",
4
+ "version": "2.38.1",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -18,6 +18,8 @@ matching what a native `<input type="file" multiple>` submits.
18
18
  <u-file-input name="attachment" required accept="image/*"></u-file-input>
19
19
 
20
20
  <u-file-input name="attachments" multiple accept=".csv,.xlsx"></u-file-input>
21
+
22
+ <u-file-input name="drawings" directory label="Drawing folder"></u-file-input>
21
23
  ```
22
24
 
23
25
  ```ts
@@ -27,6 +29,11 @@ picker.addEventListener('change', () => {
27
29
  });
28
30
  ```
29
31
 
32
+ `directory` picks a folder instead of files: every file under it lands in `value`, and each `File`'s
33
+ `webkitRelativePath` is its path from the picked folder (`plans/sub/b.txt`). The trigger reads "Choose folder"
34
+ and the status shows the folder name and file count. A folder implies `multiple`; browsers ignore `accept` in
35
+ folder mode, so filter `value` in `change` if you need to.
36
+
30
37
  No drag-and-drop in this version — it is a minimal wrapper (trigger + status + clear), by design.
31
38
 
32
39
  ---
@@ -38,6 +45,7 @@ No drag-and-drop in this version — it is a minimal wrapper (trigger + status +
38
45
  | `value` | `File[] \| null` | `null` | — | Selected files (always an array, even for single-file selection). Setting it to `null` (or `[]`) clears the native input as `reset()` does, so the same file can be picked again |
39
46
  | `accept` | `string` | — | — | Passed through to the native `accept` attribute |
40
47
  | `multiple` | `boolean` | `false` | ✓ | Allow selecting more than one file |
48
+ | `directory` | `boolean` | `false` | ✓ | Pick a folder — all files under it, each with `webkitRelativePath`; implies `multiple`, `accept` is not applied |
41
49
  | `disabled` | `boolean` | `false` | ✓ | Disable the control |
42
50
  | `readonly` | `boolean` | `false` | ✓ | Read-only (trigger and clear button inert) |
43
51
  | `required` | `boolean` | `false` | ✓ | Required field |
@@ -64,7 +72,7 @@ No drag-and-drop in this version — it is a minimal wrapper (trigger + status +
64
72
  | `field` | Inner `u-field` element (label/description/validation layout) |
65
73
  | `container` | Wrapper around the trigger, status text, and clear button |
66
74
  | `trigger` | The file-picker trigger button |
67
- | `status` | Status text — "No file chosen", the filename, or "N files selected" |
75
+ | `status` | Status text — "No file chosen", the filename, "N files selected", or (folder mode) "folder (N files)" |
68
76
  | `clear-button` | Clear-selection button (a `u-icon`) |
69
77
  | `input` | The hidden native `<input type="file">` |
70
78