@iyulab/components 2.36.0 → 2.38.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/assets/locales/ar.json.js +5 -1
  3. package/dist/assets/locales/de.json.js +5 -1
  4. package/dist/assets/locales/en.json.js +5 -1
  5. package/dist/assets/locales/es.json.js +5 -1
  6. package/dist/assets/locales/fr.json.js +5 -1
  7. package/dist/assets/locales/id.json.js +5 -1
  8. package/dist/assets/locales/ja.json.js +5 -1
  9. package/dist/assets/locales/ko.json.js +5 -1
  10. package/dist/assets/locales/pt-BR.json.js +5 -1
  11. package/dist/assets/locales/ru.json.js +5 -1
  12. package/dist/assets/locales/th.json.js +5 -1
  13. package/dist/assets/locales/vi.json.js +5 -1
  14. package/dist/assets/locales/zh-CN.json.js +5 -1
  15. package/dist/assets/locales/zh-TW.json.js +5 -1
  16. package/dist/components/UFormControlElement.d.ts +5 -0
  17. package/dist/components/UFormControlElement.js +4 -0
  18. package/dist/components/date-picker/UDatePicker.d.ts +1 -0
  19. package/dist/components/date-picker/UDatePicker.js +3 -0
  20. package/dist/components/date-range-picker/UDateRangePicker.d.ts +1 -0
  21. package/dist/components/date-range-picker/UDateRangePicker.js +3 -0
  22. package/dist/components/field/UField.d.ts +3 -0
  23. package/dist/components/field/UField.js +2 -0
  24. package/dist/components/file-input/UFileInput.d.ts +10 -0
  25. package/dist/components/file-input/UFileInput.js +26 -4
  26. package/dist/components/input/UInput.d.ts +1 -0
  27. package/dist/components/input/UInput.js +3 -0
  28. package/dist/components/select/USelect.d.ts +1 -0
  29. package/dist/components/select/USelect.js +3 -0
  30. package/dist/components/textarea/UTextarea.d.ts +1 -0
  31. package/dist/components/textarea/UTextarea.js +3 -0
  32. package/dist/utilities/Locale.d.ts +1 -1
  33. package/dist/utilities/numberFormat.d.ts +2 -1
  34. package/dist/utilities/numberFormat.js +6 -1
  35. package/package.json +2 -2
  36. package/skills/iyulab-components/references/components/file-input.md +9 -1
  37. package/skills/iyulab-components/references/usage.md +14 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.38.0] - 2026-10-31
4
+
5
+ ### Added
6
+
7
+ - **`u-file-input` `directory`** — picks a folder instead of files. Every file under the folder lands in `value`
8
+ (still `File[]`), each with its `webkitRelativePath`; the form submits them like `multiple`. The trigger reads
9
+ "Choose folder" and the status shows the folder name and the file count (new locale strings `chooseFolder` and
10
+ `folderSelected` in all fourteen built-in languages). Browsers do not apply `accept` to a folder pick.
11
+
12
+ ### Fixed
13
+
14
+ - **`applyNumberFormat` returns `null` for a format code with more digit placeholders than `Intl.NumberFormat` takes**
15
+ (more than 21 integer or 100 fraction) instead of throwing a `RangeError` — the answer it already gives for code syntax
16
+ it cannot write, so a caller that shows the plain value for `null` no longer has to guard the call. A `flex-table`
17
+ column whose `format` was a mistyped long run of `0` threw while rendering its cells.
18
+
19
+ ## [2.37.0] - 2026-10-31
20
+
21
+ ### Added
22
+
23
+ - **`:state(field)` on controls that draw an input box** — `u-input`, `u-select`, `u-textarea`, `u-date-picker`,
24
+ `u-date-range-picker`, `u-file-input` and the `u-field` wrapper. Toggles that sit beside their text (`u-checkbox`,
25
+ `u-switch`, `u-radio`) do not carry it. A layout that stands fields on their bottom edge and buttons, toggles and text
26
+ on one text line can select `:state(field)` instead of listing tags (write it as an override of a rule for every
27
+ item — Chromium does not recompute a negated `:not(:state(field))` when the state arrives). A `UFormControlElement` subclass from
28
+ another package opts in with `protected static override fieldBox = true`.
29
+
3
30
  ## [2.36.0] - 2026-10-30
4
31
 
5
32
  ### 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 };
@@ -88,6 +88,11 @@ export declare abstract class UFormControlElement<T> extends UElement {
88
88
  /** form-associated 표준 콜백 — 조상 fieldset 의 비활성 상태가 바뀔 때 UA 가 부른다. */
89
89
  formDisabledCallback(disabled: boolean): void;
90
90
  constructor();
91
+ /**
92
+ * 입력 상자를 그리는 컨트롤인가(`u-input` · `u-select` · 날짜 피커 …) — 참이면 `:state(field)` 를 싣는다.
93
+ * 체크박스 · 스위치처럼 글자 옆에 서는 토글은 거짓이다. 하위 클래스가 `static override fieldBox = true` 로 켠다.
94
+ */
95
+ protected static fieldBox: boolean;
91
96
  connectedCallback(): void;
92
97
  /** 자기 `validate()` 가 `internals.checkValidity()` 를 부르는 동안 — 그때 오는 `invalid` 는 보고가 아니다. */
93
98
  private quietCheck;
@@ -101,9 +101,13 @@ var UFormControlElement = class extends UElement {
101
101
  };
102
102
  this.addEventListener("invalid", this.handleInvalid);
103
103
  }
104
+ static {
105
+ this.fieldBox = false;
106
+ }
104
107
  connectedCallback() {
105
108
  super.connectedCallback();
106
109
  if (!this.internals && "attachInternals" in this) this.internals = this.attachInternals();
110
+ if (this.constructor.fieldBox) this.internals?.states.add("field");
107
111
  }
108
112
  /**
109
113
  * 검증 메시지는 `setValidity()` 가 `internals` 에 적어 둔 문장이다 — 다시 그리기만 하면 옛 언어가 그대로 나온다.
@@ -62,6 +62,7 @@ export type { DateDisabledFn } from '../calendar/dates.js';
62
62
  */
63
63
  export declare class UDatePicker extends UFormControlElement<string> {
64
64
  static styles: import('lit').CSSResultGroup[];
65
+ protected static fieldBox: boolean;
65
66
  /** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
66
67
  size: FieldSize;
67
68
  /**
@@ -148,6 +148,9 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
148
148
  styles$1
149
149
  ];
150
150
  }
151
+ static {
152
+ this.fieldBox = true;
153
+ }
151
154
  shouldValidate(changed) {
152
155
  return super.shouldValidate(changed) || changed.has("min") || changed.has("max") || changed.has("isDateDisabled");
153
156
  }
@@ -76,6 +76,7 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
76
76
  */
77
77
  export declare class UDateRangePicker extends UFormControlElement<string> {
78
78
  static styles: import('lit').CSSResultGroup[];
79
+ protected static fieldBox: boolean;
79
80
  /** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
80
81
  size: FieldSize;
81
82
  /**
@@ -146,6 +146,9 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
146
146
  styles$1
147
147
  ];
148
148
  }
149
+ static {
150
+ this.fieldBox = true;
151
+ }
149
152
  textPattern() {
150
153
  return this.mode === "datetime" ? `${dateTextPattern(this.format)} ${this.seconds ? "HH:mm:ss" : "HH:mm"}` : dateTextPattern(this.format);
151
154
  }
@@ -21,9 +21,12 @@ export type FieldDescriptionDisplay = 'inline' | 'hint';
21
21
  * @csspart footer - 컨트롤 아래 줄(설명, 또는 `invalid` 일 때 검증 문구 — `u-field[invalid]::part(footer)` 로 가른다)
22
22
  * @csspart hint - `description-display="hint"` 의 정보 아이콘 감싸개
23
23
  * @csspart hint-tooltip - 그 툴팁
24
+ *
25
+ * 감싼 칸처럼 `:state(field)` 를 싣는다 — 줄 배치에서 아래 끝으로 서는 «입력 상자를 가진 컨트롤» 이다(`UFormControlElement.fieldBox`).
24
26
  */
25
27
  export declare class UField extends UElement {
26
28
  static styles: import('lit').CSSResultGroup[];
29
+ private readonly fieldInternals?;
27
30
  /** 비활성화 여부 */
28
31
  disabled: boolean;
29
32
  /** 필수 입력 여부 */
@@ -86,6 +86,7 @@ var UField = class UField extends UElement {
86
86
  }
87
87
  constructor(..._args) {
88
88
  super(..._args);
89
+ this.fieldInternals = typeof this.attachInternals === "function" ? this.attachInternals() : void 0;
89
90
  this.disabled = false;
90
91
  this.required = false;
91
92
  this.invalid = false;
@@ -197,6 +198,7 @@ var UField = class UField extends UElement {
197
198
  connectedCallback() {
198
199
  super.connectedCallback();
199
200
  tabNavigation.install();
201
+ this.fieldInternals?.states.add("field");
200
202
  this.addEventListener("pointerdown", this.handleHostPointerDown, true);
201
203
  this.addEventListener("focusin", this.handleFocusIn);
202
204
  this.addEventListener("focusout", this.handleFocusOut);
@@ -23,12 +23,19 @@ import { UFormControlElement } from '../UFormControlElement.js';
23
23
  */
24
24
  export declare class UFileInput extends UFormControlElement<File[] | null> {
25
25
  static styles: import('lit').CSSResultGroup[];
26
+ protected static fieldBox: boolean;
26
27
  /** 값은 attribute로 표현될 수 없다 — 항상 프로그램적으로만 설정된다. */
27
28
  value: File[] | null;
28
29
  /** 선택 가능한 파일 형식을 제한한다(네이티브 `accept` 속성 그대로 통과). */
29
30
  accept?: string;
30
31
  /** 여러 파일을 한 번에 선택할 수 있는지 여부. */
31
32
  multiple: boolean;
33
+ /**
34
+ * 파일 대신 폴더를 고른다 — 안쪽 입력에 `webkitdirectory` 를 건다(모든 주요 브라우저가 지원). 고른 폴더 아래 파일 전부가
35
+ * `value` 에 담기고 각 `File` 의 `webkitRelativePath` 가 폴더 기준 상대 경로다. 폴더 하나가 여러 파일이므로 `multiple` 을
36
+ * 함의한다. 브라우저는 폴더 모드에서 `accept` 를 쓰지 않는다 — 걸러야 하면 `change` 에서 `value` 를 거른다.
37
+ */
38
+ directory: boolean;
32
39
  triggerEl?: HTMLButtonElement;
33
40
  inputEl?: HTMLInputElement;
34
41
  /** `value`가 바뀌는 모든 경로(선택·지우기)에서 폼 제출값을 동기화한다 —
@@ -48,6 +55,9 @@ export declare class UFileInput extends UFormControlElement<File[] | null> {
48
55
  * 라벨이 없으면 아무것도 얹지 않는다 — 버튼의 보이는 글자가 곧 이름이다.
49
56
  */
50
57
  private get triggerAriaLabel();
58
+ private get triggerText();
59
+ /** 폴더 모드의 상태 글자 — 고른 폴더 이름(상대 경로의 첫 마디)과 파일 수. 경로가 없으면(코드가 넣은 값) 파일 모드의 글자로. */
60
+ private statusText;
51
61
  render(): import('lit-html').TemplateResult<1>;
52
62
  protected setValidity(): void;
53
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;
@@ -47,6 +48,9 @@ var UFileInput = class UFileInput extends UFormControlElement {
47
48
  static {
48
49
  this.styles = [super.styles, styles];
49
50
  }
51
+ static {
52
+ this.fieldBox = true;
53
+ }
50
54
  /** `value`가 바뀌는 모든 경로(선택·지우기)에서 폼 제출값을 동기화한다 —
51
55
  * `UInput`/`UCheckbox`와 같은 경계. 파일은 문자열로 표현할 수
52
56
  * 없으므로 1개면 `File`을, 여러 개면 같은 키로 반복 append한 `FormData`를
@@ -80,12 +84,25 @@ var UFileInput = class UFileInput extends UFormControlElement {
80
84
  */
81
85
  get triggerAriaLabel() {
82
86
  const label = this.resolvedAriaLabel;
83
- 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 });
84
101
  }
85
102
  render() {
86
103
  const files = this.value ?? [];
87
104
  const hasFiles = files.length > 0;
88
- const status = !hasFiles ? Locale.getValue("noFileChosen") : files.length === 1 ? files[0].name : Locale.getValue("filesSelected", { count: files.length });
105
+ const status = this.statusText(files);
89
106
  return html`
90
107
  <u-field part="field"
91
108
  ?required=${this.required}
@@ -102,7 +119,7 @@ var UFileInput = class UFileInput extends UFormControlElement {
102
119
  aria-label=${ifDefined(this.triggerAriaLabel)}
103
120
  ?disabled=${this.effectivelyDisabled || this.readonly}
104
121
  @click=${this.handleTriggerClick}
105
- >${Locale.getValue("chooseFile")}</button>
122
+ >${this.triggerText}</button>
106
123
 
107
124
  <span class="status" part="status" ?data-empty=${!hasFiles}>${status}</span>
108
125
 
@@ -122,7 +139,8 @@ var UFileInput = class UFileInput extends UFormControlElement {
122
139
  hidden
123
140
  name=${ifDefined(this.name)}
124
141
  accept=${ifDefined(this.accept)}
125
- ?multiple=${this.multiple}
142
+ ?multiple=${this.multiple || this.directory}
143
+ ?webkitdirectory=${this.directory}
126
144
  ?disabled=${this.effectivelyDisabled || this.readonly}
127
145
  @change=${this.handleInputChange}
128
146
  />
@@ -152,6 +170,10 @@ __decorate([property({
152
170
  type: Boolean,
153
171
  reflect: true
154
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);
155
177
  __decorate([query(".trigger", true), __decorateMetadata("design:type", typeof HTMLButtonElement === "undefined" ? Object : HTMLButtonElement)], UFileInput.prototype, "triggerEl", void 0);
156
178
  __decorate([query("input[type=\"file\"]", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], UFileInput.prototype, "inputEl", void 0);
157
179
  UFileInput = __decorate([customElement("u-file-input")], UFileInput);
@@ -52,6 +52,7 @@ export type FieldSize = 'sm' | 'md' | 'lg';
52
52
  */
53
53
  export declare class UInput extends UFormControlElement<string> {
54
54
  static styles: import('lit').CSSResultGroup[];
55
+ protected static fieldBox: boolean;
55
56
  /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
56
57
  private readonly affixes;
57
58
  /** 외형 정도 */
@@ -171,6 +171,9 @@ var UInput = class UInput extends UFormControlElement {
171
171
  static {
172
172
  this.styles = [super.styles, styles];
173
173
  }
174
+ static {
175
+ this.fieldBox = true;
176
+ }
174
177
  /** The value as a number — `NaN` when empty or not a number (same as the native input). */
175
178
  get valueAsNumber() {
176
179
  if (this.type !== "number" || !this.value) return NaN;
@@ -41,6 +41,7 @@ import { UPopover } from '../popover/UPopover.js';
41
41
  */
42
42
  export declare class USelect extends UFormControlElement<string | string[]> {
43
43
  static styles: import('lit').CSSResultGroup[];
44
+ protected static fieldBox: boolean;
44
45
  /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
45
46
  private readonly affixes;
46
47
  /** 트리거 영역의 스타일 변형 */
@@ -203,6 +203,9 @@ var USelect = class USelect extends UFormControlElement {
203
203
  static {
204
204
  this.styles = [super.styles, styles];
205
205
  }
206
+ static {
207
+ this.fieldBox = true;
208
+ }
206
209
  shouldValidate(changed) {
207
210
  return super.shouldValidate(changed) || [
208
211
  "minCount",
@@ -20,6 +20,7 @@ type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both' | 'auto';
20
20
  */
21
21
  export declare class UTextarea extends UFormControlElement<string> {
22
22
  static styles: import('lit').CSSResultGroup[];
23
+ protected static fieldBox: boolean;
23
24
  /** 스타일 변형 */
24
25
  /** 외형 정도 */
25
26
  appearance: FieldAppearance;
@@ -33,6 +33,9 @@ var UTextarea = class UTextarea extends UFormControlElement {
33
33
  static {
34
34
  this.styles = [super.styles, styles];
35
35
  }
36
+ static {
37
+ this.fieldBox = true;
38
+ }
36
39
  async updated(changedProperties) {
37
40
  super.updated(changedProperties);
38
41
  if (changedProperties.has("value")) this.internals?.setFormValue(this.value ?? "");
@@ -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.36.0",
4
+ "version": "2.38.0",
5
5
  "keywords": [
6
6
  "iyulab",
7
7
  "components",
@@ -92,7 +92,7 @@
92
92
  "@vitest/browser-playwright": "^5.0.0",
93
93
  "eslint": "^10.1.0",
94
94
  "eslint-plugin-lit": "^2.3.1",
95
- "glob": "^13.0.6",
95
+ "glob": "^14.0.3",
96
96
  "globals": "^17.7.0",
97
97
  "happy-dom": "^21.0.1",
98
98
  "react": "^19.2.7",
@@ -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
 
@@ -274,6 +274,20 @@ input.reset(); // empties this control and clears its validation state
274
274
 
275
275
  A native `form.reset()` (or `u-button type="reset"`) returns each control to its default — the `value` attribute, `checked` for checkbox/switch — not to empty. A disabled `<fieldset>` disables every control inside it (and `u-button`), exactly like the control's own `disabled` attribute. Style disabled controls with `:disabled`, not `[disabled]`.
276
276
 
277
+ ### Lining up fields with buttons — `:state(field)`
278
+
279
+ Controls that draw an input box — `u-input`, `u-select`, `u-textarea`, `u-date-picker`, `u-date-range-picker`, `u-file-input` (and the `u-field` wrapper) — carry the custom state `:state(field)`. Toggles that sit beside their text (`u-checkbox`, `u-switch`, `u-radio`) do not. A row that mixes fields and buttons can stand the fields on their bottom edge and everything else on one text line, without listing tags:
280
+
281
+ ```css
282
+ .filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
283
+ .filters > * { align-self: last baseline; }
284
+ .filters > :state(field) { align-self: auto; }
285
+ ```
286
+
287
+ Write the rule in the positive form, as above. Chromium does not recompute a `:not(:state(field))` rule when the state arrives as the control connects, so a negated selector keeps matching a field.
288
+
289
+ A control from another package that draws a box sets the state the same way (`protected static override fieldBox = true` on a `UFormControlElement` subclass).
290
+
277
291
  ### Using `u-form` for model binding
278
292
 
279
293
  ```ts