@iyulab/components 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/assets/locales/ar.json.js +3 -1
- package/dist/assets/locales/de.json.js +3 -1
- package/dist/assets/locales/en.json.js +3 -1
- package/dist/assets/locales/es.json.js +3 -1
- package/dist/assets/locales/fr.json.js +3 -1
- package/dist/assets/locales/id.json.js +3 -1
- package/dist/assets/locales/ja.json.js +3 -1
- package/dist/assets/locales/ko.json.js +3 -1
- package/dist/assets/locales/pt-BR.json.js +3 -1
- package/dist/assets/locales/ru.json.js +3 -1
- package/dist/assets/locales/th.json.js +3 -1
- package/dist/assets/locales/vi.json.js +3 -1
- package/dist/assets/locales/zh-CN.json.js +3 -1
- package/dist/assets/locales/zh-TW.json.js +3 -1
- package/dist/components/alert/UAlert.js +1 -1
- package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
- package/dist/components/carousel/UCarousel.js +1 -1
- package/dist/components/checkbox/UCheckbox.js +1 -1
- package/dist/components/chip/UChip.js +1 -1
- package/dist/components/copy-button/UCopyButton.js +1 -1
- package/dist/components/date-picker/UDatePicker.js +1 -1
- package/dist/components/date-range-picker/UDateRangePicker.js +1 -1
- package/dist/components/dialog/UDialog.js +1 -1
- package/dist/components/drawer/UDrawer.js +1 -1
- package/dist/components/file-input/UFileInput.js +1 -1
- package/dist/components/icon-button/UIconButton.d.ts +3 -0
- package/dist/components/icon-button/UIconButton.js +9 -3
- package/dist/components/input/UInput.js +1 -1
- package/dist/components/progress-bar/UProgressBar.d.ts +3 -0
- package/dist/components/progress-bar/UProgressBar.js +11 -0
- package/dist/components/progress-ring/UProgressRing.d.ts +3 -0
- package/dist/components/progress-ring/UProgressRing.js +11 -0
- package/dist/components/rating/URating.js +2 -1
- package/dist/components/select/USelect.js +1 -1
- package/dist/components/spinner/USpinner.d.ts +7 -0
- package/dist/components/spinner/USpinner.js +12 -1
- package/dist/components/split-panel/USplitPanel.js +1 -1
- package/dist/components/tab/UTab.js +1 -1
- package/dist/components/tree-item/UTreeItem.d.ts +5 -0
- package/dist/components/tree-item/UTreeItem.js +27 -2
- package/dist/index.js +1 -1
- package/dist/utilities/Dialog.js +1 -1
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/progressAria.d.ts +14 -0
- package/dist/utilities/progressAria.js +22 -0
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/icon-button.md +2 -1
- package/skills/iyulab-components/references/components/progress-bar.md +4 -0
- package/skills/iyulab-components/references/components/progress-ring.md +4 -0
- package/skills/iyulab-components/references/components/rating.md +4 -0
- package/skills/iyulab-components/references/components/spinner.md +4 -0
- package/skills/iyulab-components/references/components/tree.md +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.5.0] - 2026-10-06
|
|
4
|
+
|
|
5
|
+
An accessibility-tree audit of the interactive widgets — what a screen reader receives, not what the DOM says.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **`u-progress-bar` and `u-progress-ring` are exposed as a `progressbar`** with `aria-valuenow`/`min`/`max`
|
|
10
|
+
(no value when `indeterminate`). They had no role, so nothing was in progress as far as assistive technology knew.
|
|
11
|
+
Name them with `aria-label`.
|
|
12
|
+
- **`u-spinner` is an indeterminate `progressbar` with a name** — its text (read once, as the name), or the locale's
|
|
13
|
+
new `loading` word when it has none. It was invisible to assistive technology.
|
|
14
|
+
- **`u-rating` stars are named radios** (`1`…`max`; a screen reader adds "3 of 5"). They were five unnamed radios.
|
|
15
|
+
- **`u-tree-item` carries its structure and state:** `aria-level` (nested items all reported level 1 — they render
|
|
16
|
+
through a shadow slot, so DOM nesting gave the browser nothing to count), `aria-expanded` on items with children,
|
|
17
|
+
`aria-selected` in a `selectable` tree, `aria-checked` (`mixed` for a partly checked parent) in a `checkable` tree.
|
|
18
|
+
An item is named by its own label; it was named with every descendant's text ("Root Child 1 Child 2").
|
|
19
|
+
- **`u-icon-button` is named by its tooltip text** when it has no `aria-label`. The slot only filled the tooltip,
|
|
20
|
+
so a button written as the docs show had no name.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Locale key `loading` (all 14 built-in languages).
|
|
25
|
+
|
|
3
26
|
## [2.4.0] - 2026-10-06
|
|
4
27
|
|
|
5
28
|
### Fixed
|
|
@@ -41,6 +41,7 @@ var chooseFile = "اختر ملفًا";
|
|
|
41
41
|
var noFileChosen = "لم يتم اختيار أي ملف";
|
|
42
42
|
var filesSelected = "تم اختيار {count} ملفات";
|
|
43
43
|
var resizePanels = "تغيير حجم اللوحات";
|
|
44
|
+
var loading = "جارٍ التحميل";
|
|
44
45
|
var search = "بحث";
|
|
45
46
|
var alertError = "خطأ";
|
|
46
47
|
var alertWarning = "تحذير";
|
|
@@ -102,6 +103,7 @@ var ar_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var ar_default = {
|
|
|
124
126
|
timePm: "م"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ar_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Datei auswählen";
|
|
|
41
41
|
var noFileChosen = "Keine Datei ausgewählt";
|
|
42
42
|
var filesSelected = "{count} Dateien ausgewählt";
|
|
43
43
|
var resizePanels = "Bereichsgröße ändern";
|
|
44
|
+
var loading = "Wird geladen";
|
|
44
45
|
var search = "Suchen";
|
|
45
46
|
var alertError = "Fehler";
|
|
46
47
|
var alertWarning = "Warnung";
|
|
@@ -102,6 +103,7 @@ var de_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var de_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, de_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Choose file";
|
|
|
41
41
|
var noFileChosen = "No file chosen";
|
|
42
42
|
var filesSelected = "{count} files selected";
|
|
43
43
|
var resizePanels = "Resize panels";
|
|
44
|
+
var loading = "Loading";
|
|
44
45
|
var search = "Search";
|
|
45
46
|
var alertError = "Error";
|
|
46
47
|
var alertWarning = "Warning";
|
|
@@ -102,6 +103,7 @@ var en_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var en_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, en_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -40,6 +40,7 @@ var chooseFile = "Elegir archivo";
|
|
|
40
40
|
var noFileChosen = "Ningún archivo elegido";
|
|
41
41
|
var filesSelected = "{count} archivos seleccionados";
|
|
42
42
|
var resizePanels = "Cambiar el tamaño de los paneles";
|
|
43
|
+
var loading = "Cargando";
|
|
43
44
|
var search = "Buscar";
|
|
44
45
|
var alertError = "Error";
|
|
45
46
|
var alertWarning = "Advertencia";
|
|
@@ -103,6 +104,7 @@ var es_default = {
|
|
|
103
104
|
noFileChosen,
|
|
104
105
|
filesSelected,
|
|
105
106
|
resizePanels,
|
|
107
|
+
loading,
|
|
106
108
|
search,
|
|
107
109
|
alertError,
|
|
108
110
|
alertWarning,
|
|
@@ -125,4 +127,4 @@ var es_default = {
|
|
|
125
127
|
timePm
|
|
126
128
|
};
|
|
127
129
|
//#endregion
|
|
128
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
130
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, es_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Choisir un fichier";
|
|
|
41
41
|
var noFileChosen = "Aucun fichier choisi";
|
|
42
42
|
var filesSelected = "{count} fichiers sélectionnés";
|
|
43
43
|
var resizePanels = "Redimensionner les panneaux";
|
|
44
|
+
var loading = "Chargement";
|
|
44
45
|
var search = "Rechercher";
|
|
45
46
|
var alertError = "Erreur";
|
|
46
47
|
var alertWarning = "Avertissement";
|
|
@@ -102,6 +103,7 @@ var fr_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var fr_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, fr_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Pilih berkas";
|
|
|
41
41
|
var noFileChosen = "Tidak ada berkas dipilih";
|
|
42
42
|
var filesSelected = "{count} berkas dipilih";
|
|
43
43
|
var resizePanels = "Ubah ukuran panel";
|
|
44
|
+
var loading = "Memuat";
|
|
44
45
|
var search = "Cari";
|
|
45
46
|
var alertError = "Kesalahan";
|
|
46
47
|
var alertWarning = "Peringatan";
|
|
@@ -102,6 +103,7 @@ var id_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var id_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, id_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "ファイルを選択";
|
|
|
41
41
|
var noFileChosen = "ファイルが選択されていません";
|
|
42
42
|
var filesSelected = "{count}個のファイルを選択しました";
|
|
43
43
|
var resizePanels = "パネルのサイズ変更";
|
|
44
|
+
var loading = "読み込み中";
|
|
44
45
|
var search = "検索";
|
|
45
46
|
var alertError = "エラー";
|
|
46
47
|
var alertWarning = "警告";
|
|
@@ -103,6 +104,7 @@ var ja_default = {
|
|
|
103
104
|
noFileChosen,
|
|
104
105
|
filesSelected,
|
|
105
106
|
resizePanels,
|
|
107
|
+
loading,
|
|
106
108
|
search,
|
|
107
109
|
alertError,
|
|
108
110
|
alertWarning,
|
|
@@ -125,4 +127,4 @@ var ja_default = {
|
|
|
125
127
|
timePm
|
|
126
128
|
};
|
|
127
129
|
//#endregion
|
|
128
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
130
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, copied, copy, dateUnavailable, decrement, ja_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "파일 선택";
|
|
|
41
41
|
var noFileChosen = "선택된 파일 없음";
|
|
42
42
|
var filesSelected = "{count}개 파일 선택됨";
|
|
43
43
|
var resizePanels = "패널 크기 조절";
|
|
44
|
+
var loading = "로딩 중";
|
|
44
45
|
var search = "검색";
|
|
45
46
|
var alertError = "오류";
|
|
46
47
|
var alertWarning = "경고";
|
|
@@ -104,6 +105,7 @@ var ko_default = {
|
|
|
104
105
|
noFileChosen,
|
|
105
106
|
filesSelected,
|
|
106
107
|
resizePanels,
|
|
108
|
+
loading,
|
|
107
109
|
search,
|
|
108
110
|
alertError,
|
|
109
111
|
alertWarning,
|
|
@@ -126,4 +128,4 @@ var ko_default = {
|
|
|
126
128
|
timePm
|
|
127
129
|
};
|
|
128
130
|
//#endregion
|
|
129
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
131
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ko_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Escolher arquivo";
|
|
|
41
41
|
var noFileChosen = "Nenhum arquivo escolhido";
|
|
42
42
|
var filesSelected = "{count} arquivos selecionados";
|
|
43
43
|
var resizePanels = "Redimensionar painéis";
|
|
44
|
+
var loading = "Carregando";
|
|
44
45
|
var search = "Pesquisar";
|
|
45
46
|
var alertError = "Erro";
|
|
46
47
|
var alertWarning = "Aviso";
|
|
@@ -102,6 +103,7 @@ var pt_BR_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var pt_BR_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, pt_BR_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Выбрать файл";
|
|
|
41
41
|
var noFileChosen = "Файл не выбран";
|
|
42
42
|
var filesSelected = "Выбрано файлов: {count}";
|
|
43
43
|
var resizePanels = "Изменить размер панелей";
|
|
44
|
+
var loading = "Загрузка";
|
|
44
45
|
var search = "Поиск";
|
|
45
46
|
var alertError = "Ошибка";
|
|
46
47
|
var alertWarning = "Предупреждение";
|
|
@@ -102,6 +103,7 @@ var ru_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var ru_default = {
|
|
|
124
126
|
timePm: "PM"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, ru_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "เลือกไฟล์";
|
|
|
41
41
|
var noFileChosen = "ยังไม่ได้เลือกไฟล์";
|
|
42
42
|
var filesSelected = "เลือกแล้ว {count} ไฟล์";
|
|
43
43
|
var resizePanels = "ปรับขนาดแผง";
|
|
44
|
+
var loading = "กำลังโหลด";
|
|
44
45
|
var search = "ค้นหา";
|
|
45
46
|
var alertError = "ข้อผิดพลาด";
|
|
46
47
|
var alertWarning = "คำเตือน";
|
|
@@ -104,6 +105,7 @@ var th_default = {
|
|
|
104
105
|
noFileChosen,
|
|
105
106
|
filesSelected,
|
|
106
107
|
resizePanels,
|
|
108
|
+
loading,
|
|
107
109
|
search,
|
|
108
110
|
alertError,
|
|
109
111
|
alertWarning,
|
|
@@ -126,4 +128,4 @@ var th_default = {
|
|
|
126
128
|
timePm
|
|
127
129
|
};
|
|
128
130
|
//#endregion
|
|
129
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
131
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, th_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "Chọn tệp";
|
|
|
41
41
|
var noFileChosen = "Chưa chọn tệp nào";
|
|
42
42
|
var filesSelected = "Đã chọn {count} tệp";
|
|
43
43
|
var resizePanels = "Thay đổi kích thước bảng";
|
|
44
|
+
var loading = "Đang tải";
|
|
44
45
|
var search = "Tìm kiếm";
|
|
45
46
|
var alertError = "Lỗi";
|
|
46
47
|
var alertWarning = "Cảnh báo";
|
|
@@ -102,6 +103,7 @@ var vi_default = {
|
|
|
102
103
|
noFileChosen,
|
|
103
104
|
filesSelected,
|
|
104
105
|
resizePanels,
|
|
106
|
+
loading,
|
|
105
107
|
search,
|
|
106
108
|
alertError,
|
|
107
109
|
alertWarning,
|
|
@@ -124,4 +126,4 @@ var vi_default = {
|
|
|
124
126
|
timePm: "CH"
|
|
125
127
|
};
|
|
126
128
|
//#endregion
|
|
127
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
129
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, vi_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "选择文件";
|
|
|
41
41
|
var noFileChosen = "未选择文件";
|
|
42
42
|
var filesSelected = "已选择{count}个文件";
|
|
43
43
|
var resizePanels = "调整面板大小";
|
|
44
|
+
var loading = "加载中";
|
|
44
45
|
var search = "搜索";
|
|
45
46
|
var alertError = "错误";
|
|
46
47
|
var alertWarning = "警告";
|
|
@@ -104,6 +105,7 @@ var zh_CN_default = {
|
|
|
104
105
|
noFileChosen,
|
|
105
106
|
filesSelected,
|
|
106
107
|
resizePanels,
|
|
108
|
+
loading,
|
|
107
109
|
search,
|
|
108
110
|
alertError,
|
|
109
111
|
alertWarning,
|
|
@@ -126,4 +128,4 @@ var zh_CN_default = {
|
|
|
126
128
|
timePm
|
|
127
129
|
};
|
|
128
130
|
//#endregion
|
|
129
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
131
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_CN_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -41,6 +41,7 @@ var chooseFile = "選擇檔案";
|
|
|
41
41
|
var noFileChosen = "未選擇檔案";
|
|
42
42
|
var filesSelected = "已選擇{count}個檔案";
|
|
43
43
|
var resizePanels = "調整面板大小";
|
|
44
|
+
var loading = "載入中";
|
|
44
45
|
var search = "搜尋";
|
|
45
46
|
var alertError = "錯誤";
|
|
46
47
|
var alertWarning = "警告";
|
|
@@ -104,6 +105,7 @@ var zh_TW_default = {
|
|
|
104
105
|
noFileChosen,
|
|
105
106
|
filesSelected,
|
|
106
107
|
resizePanels,
|
|
108
|
+
loading,
|
|
107
109
|
search,
|
|
108
110
|
alertError,
|
|
109
111
|
alertWarning,
|
|
@@ -126,4 +128,4 @@ var zh_TW_default = {
|
|
|
126
128
|
timePm
|
|
127
129
|
};
|
|
128
130
|
//#endregion
|
|
129
|
-
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
131
|
+
export { alertError, alertInfo, alertMessage, alertNotice, alertSuccess, alertWarning, apply, badInput, breadcrumb, cancel, chooseDate, chooseDateRange, chooseFile, clear, close, closeTab, confirm, copied, copy, dateUnavailable, decrement, zh_TW_default as default, endTime, filesSelected, goToSlide, hidePassword, increment, last30Days, last7Days, lastMonth, lastWeek, loading, nextMonth, nextSlide, noFileChosen, patternMismatch, previousMonth, previousSlide, quickRanges, rangeOverflow, rangeStartChosen, rangeUnderflow, remove, resizePanels, search, showPassword, startSlideRotation, startTime, stepComplete, stepMismatch, stepOnHold, stopSlideRotation, thisMonth, thisWeek, thisYear, time, timeAm, timePm, today, tooLong, tooShort, typeMismatch, valueMissing, yesterday };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
7
|
import "../icon/UIcon.js";
|
|
7
8
|
import { styles } from "./UAlert.styles.js";
|
|
8
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
//#region src/components/alert/UAlert.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
|
-
import "../icon/UIcon.js";
|
|
4
3
|
import { Locale } from "../../utilities/Locale.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
5
5
|
import { styles } from "./UBreadcrumb.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UCarousel.styles.js";
|
|
8
8
|
import { html, nothing } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
-
import "../icon/UIcon.js";
|
|
5
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import "../icon/UIcon.js";
|
|
6
6
|
import { styles } from "./UCheckbox.styles.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property, query } from "lit/decorators.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import "../tooltip/UTooltip.js";
|
|
8
8
|
import "../tag/UTag.js";
|
|
9
9
|
import { styles } from "./UChip.styles.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import "../icon-button/UIconButton.js";
|
|
8
8
|
import { styles } from "./UCopyButton.styles.js";
|
|
9
9
|
import { html } from "lit";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { dateTextPattern, formatDateText, formatDateTimeText, parseDate, parseDateTime } from "../../utilities/format.js";
|
|
8
8
|
import { isDayUnavailable, parseISODate, toISODate } from "../calendar/dates.js";
|
|
9
9
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
7
|
import "../icon/UIcon.js";
|
|
7
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
8
8
|
import { dateTextPattern, formatDateRangeText, formatDateTimeRangeText, parseDateRange, parseDateTimeRange } from "../../utilities/format.js";
|
|
9
9
|
import { parseISODate } from "../calendar/dates.js";
|
|
10
10
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UDialog.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UDrawer.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
-
import "../icon/UIcon.js";
|
|
5
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import "../icon/UIcon.js";
|
|
6
6
|
import "../field/UField.js";
|
|
7
7
|
import { styles } from "./UFileInput.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
@@ -49,6 +49,9 @@ export declare class UIconButton extends UElement {
|
|
|
49
49
|
*/
|
|
50
50
|
static get observedAttributes(): string[];
|
|
51
51
|
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
52
|
+
/** 기본 슬롯(툴팁)의 글자 — `aria-label` 이 없을 때 버튼의 이름. */
|
|
53
|
+
private slotText;
|
|
54
|
+
private handleSlotChange;
|
|
52
55
|
render(): import('lit-html').TemplateResult<1>;
|
|
53
56
|
}
|
|
54
57
|
declare global {
|
|
@@ -7,7 +7,7 @@ import "../icon/UIcon.js";
|
|
|
7
7
|
import "../tooltip/UTooltip.js";
|
|
8
8
|
import { styles } from "./UIconButton.styles.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
|
-
import { customElement, property } from "lit/decorators.js";
|
|
10
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
12
|
//#region src/components/icon-button/UIconButton.ts
|
|
13
13
|
var UIconButton = class UIconButton extends UElement {
|
|
@@ -19,6 +19,11 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
19
19
|
this.loading = false;
|
|
20
20
|
this.tooltipPlacement = "top";
|
|
21
21
|
this.tooltipOffset = 4;
|
|
22
|
+
this.slotText = "";
|
|
23
|
+
this.handleSlotChange = (e) => {
|
|
24
|
+
const nodes = e.target.assignedNodes({ flatten: true });
|
|
25
|
+
this.slotText = nodes.map((n) => n.textContent ?? "").join(" ").replace(/\s+/g, " ").trim();
|
|
26
|
+
};
|
|
22
27
|
}
|
|
23
28
|
static {
|
|
24
29
|
this.styles = [super.styles, styles];
|
|
@@ -44,7 +49,7 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
44
49
|
if (FORWARDED_ARIA.includes(name)) this.requestUpdate();
|
|
45
50
|
}
|
|
46
51
|
render() {
|
|
47
|
-
const ariaLabel = this.getAttribute("aria-label") ?? void 0;
|
|
52
|
+
const ariaLabel = this.getAttribute("aria-label") ?? (this.slotText || void 0);
|
|
48
53
|
const pressed = this.getAttribute("aria-pressed") ?? void 0;
|
|
49
54
|
const expanded = this.getAttribute("aria-expanded") ?? void 0;
|
|
50
55
|
const haspopup = this.getAttribute("aria-haspopup") ?? void 0;
|
|
@@ -75,7 +80,7 @@ var UIconButton = class UIconButton extends UElement {
|
|
|
75
80
|
.placement=${this.tooltipPlacement}
|
|
76
81
|
.offset=${this.tooltipOffset}
|
|
77
82
|
>
|
|
78
|
-
<slot></slot>
|
|
83
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
79
84
|
</u-tooltip>
|
|
80
85
|
`;
|
|
81
86
|
}
|
|
@@ -110,6 +115,7 @@ __decorate([property({
|
|
|
110
115
|
type: Number,
|
|
111
116
|
attribute: "tooltip-offset"
|
|
112
117
|
}), __decorateMetadata("design:type", Object)], UIconButton.prototype, "tooltipOffset", void 0);
|
|
118
|
+
__decorate([state(), __decorateMetadata("design:type", Object)], UIconButton.prototype, "slotText", void 0);
|
|
113
119
|
UIconButton = __decorate([customElement("u-icon-button")], UIconButton);
|
|
114
120
|
//#endregion
|
|
115
121
|
export { UIconButton };
|
|
@@ -2,9 +2,9 @@ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/hel
|
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
6
|
import "../spinner/USpinner.js";
|
|
6
7
|
import "../icon/UIcon.js";
|
|
7
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
8
8
|
import { parseNumber } from "../../utilities/format.js";
|
|
9
9
|
import "../field/UField.js";
|
|
10
10
|
import { UPopover } from "../popover/UPopover.js";
|
|
@@ -38,9 +38,12 @@ export declare class UProgressBar extends UElement {
|
|
|
38
38
|
buffer?: number;
|
|
39
39
|
/** 현재값 */
|
|
40
40
|
value: number;
|
|
41
|
+
/** 보조기기에 내놓는 역할·값(`progressbar`) — 호스트 속성이 이긴다. */
|
|
42
|
+
private readonly internals;
|
|
41
43
|
private progress;
|
|
42
44
|
private bufferProgress;
|
|
43
45
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
46
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
44
47
|
render(): import('lit-html').TemplateResult<1>;
|
|
45
48
|
private calcProgress;
|
|
46
49
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { attachProgressbar, syncProgressValue } from "../../utilities/progressAria.js";
|
|
4
5
|
import { styles } from "./UProgressBar.styles.js";
|
|
5
6
|
import { html } from "lit";
|
|
6
7
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -17,6 +18,7 @@ var UProgressBar = class UProgressBar extends UElement {
|
|
|
17
18
|
this.min = 0;
|
|
18
19
|
this.max = 100;
|
|
19
20
|
this.value = 0;
|
|
21
|
+
this.internals = attachProgressbar(this);
|
|
20
22
|
this.progress = 0;
|
|
21
23
|
this.bufferProgress = 0;
|
|
22
24
|
}
|
|
@@ -35,6 +37,15 @@ var UProgressBar = class UProgressBar extends UElement {
|
|
|
35
37
|
this.bufferProgress = this.buffer !== void 0 ? this.calcProgress(this.buffer) : 0;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
40
|
+
updated(changedProperties) {
|
|
41
|
+
super.updated(changedProperties);
|
|
42
|
+
if ([
|
|
43
|
+
"min",
|
|
44
|
+
"max",
|
|
45
|
+
"value",
|
|
46
|
+
"indeterminate"
|
|
47
|
+
].some((k) => changedProperties.has(k))) syncProgressValue(this.internals, this);
|
|
48
|
+
}
|
|
38
49
|
render() {
|
|
39
50
|
const hasBuffer = this.buffer !== void 0 && !this.indeterminate;
|
|
40
51
|
const hasSegments = this.segments > 1;
|
|
@@ -35,11 +35,14 @@ export declare class UProgressRing extends UElement {
|
|
|
35
35
|
buffer?: number;
|
|
36
36
|
/** 현재값 */
|
|
37
37
|
value: number;
|
|
38
|
+
/** 보조기기에 내놓는 역할·값(`progressbar`) — 호스트 속성이 이긴다. */
|
|
39
|
+
private readonly internals;
|
|
38
40
|
private progress;
|
|
39
41
|
private bufferProgress;
|
|
40
42
|
private dasharray;
|
|
41
43
|
private uuid;
|
|
42
44
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
45
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
43
46
|
render(): import('lit-html').TemplateResult<1>;
|
|
44
47
|
private calcProgress;
|
|
45
48
|
private calcDasharray;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { attachProgressbar, syncProgressValue } from "../../utilities/progressAria.js";
|
|
4
5
|
import { styles } from "./UProgressRing.styles.js";
|
|
5
6
|
import { html } from "lit";
|
|
6
7
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -18,6 +19,7 @@ var UProgressRing = class UProgressRing extends UElement {
|
|
|
18
19
|
this.min = 0;
|
|
19
20
|
this.max = 100;
|
|
20
21
|
this.value = 0;
|
|
22
|
+
this.internals = attachProgressbar(this);
|
|
21
23
|
this.progress = 0;
|
|
22
24
|
this.bufferProgress = 0;
|
|
23
25
|
this.dasharray = PATH_LENGTH.toString();
|
|
@@ -39,6 +41,15 @@ var UProgressRing = class UProgressRing extends UElement {
|
|
|
39
41
|
}
|
|
40
42
|
if (["segments", "segmentGap"].some((k) => changedProperties.has(k))) this.dasharray = this.calcDasharray(this.segments, this.segmentGap);
|
|
41
43
|
}
|
|
44
|
+
updated(changedProperties) {
|
|
45
|
+
super.updated(changedProperties);
|
|
46
|
+
if ([
|
|
47
|
+
"min",
|
|
48
|
+
"max",
|
|
49
|
+
"value",
|
|
50
|
+
"indeterminate"
|
|
51
|
+
].some((k) => changedProperties.has(k))) syncProgressValue(this.internals, this);
|
|
52
|
+
}
|
|
42
53
|
render() {
|
|
43
54
|
const hasBuffer = this.buffer !== void 0 && !this.indeterminate;
|
|
44
55
|
const linecap = this.rounded ? "round" : "butt";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
-
import "../icon/UIcon.js";
|
|
5
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import "../icon/UIcon.js";
|
|
6
6
|
import "../field/UField.js";
|
|
7
7
|
import { styles } from "./URating.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
@@ -121,6 +121,7 @@ var URating = class URating extends UFormControlElement {
|
|
|
121
121
|
return html`
|
|
122
122
|
<span class="symbol" part="symbol"
|
|
123
123
|
role="radio"
|
|
124
|
+
aria-label=${String(score)}
|
|
124
125
|
aria-checked=${score === Math.round(this.value || 0) ? "true" : "false"}
|
|
125
126
|
aria-disabled=${this.interactive ? "false" : "true"}
|
|
126
127
|
tabindex=${this.interactive ? "0" : "-1"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../spinner/USpinner.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import "../field/UField.js";
|
|
8
8
|
import { UPopover } from "../popover/UPopover.js";
|
|
9
9
|
import { UOption } from "../option/UOption.js";
|
|
@@ -19,6 +19,13 @@ export declare class USpinner extends UElement {
|
|
|
19
19
|
/** 인디케이터 색상 */
|
|
20
20
|
color?: SpinnerColor;
|
|
21
21
|
private hasLabel;
|
|
22
|
+
/**
|
|
23
|
+
* 보조기기에는 «양을 모르는 진행»(`progressbar`, 값 없음). 이름은 슬롯 글자, 없으면 로케일의 `loading` — 회전하는
|
|
24
|
+
* 그림만으로는 무엇이 진행 중인지 들리지 않는다. 호스트의 `aria-label` 이 이긴다.
|
|
25
|
+
*/
|
|
26
|
+
private readonly internals;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
private nameFrom;
|
|
22
29
|
render(): import('lit-html').TemplateResult<1>;
|
|
23
30
|
private handleSlotChange;
|
|
24
31
|
}
|
|
@@ -2,6 +2,8 @@ import { UElement } from "../UElement.js";
|
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./USpinner.styles.js";
|
|
5
|
+
import { attachProgressbar } from "../../utilities/progressAria.js";
|
|
6
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
7
|
import { html } from "lit";
|
|
6
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
7
9
|
//#region src/components/spinner/USpinner.ts
|
|
@@ -9,10 +11,18 @@ var USpinner = class USpinner extends UElement {
|
|
|
9
11
|
constructor(..._args) {
|
|
10
12
|
super(..._args);
|
|
11
13
|
this.hasLabel = false;
|
|
14
|
+
this.internals = attachProgressbar(this);
|
|
12
15
|
}
|
|
13
16
|
static {
|
|
14
17
|
this.styles = [super.styles, styles];
|
|
15
18
|
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
super.connectedCallback();
|
|
21
|
+
this.nameFrom("");
|
|
22
|
+
}
|
|
23
|
+
nameFrom(text) {
|
|
24
|
+
if (this.internals) this.internals.ariaLabel = text || Locale.getValue("loading");
|
|
25
|
+
}
|
|
16
26
|
render() {
|
|
17
27
|
return html`
|
|
18
28
|
<svg class="spinner" part="svg">
|
|
@@ -20,7 +30,7 @@ var USpinner = class USpinner extends UElement {
|
|
|
20
30
|
<circle class="indicator"></circle>
|
|
21
31
|
</svg>
|
|
22
32
|
|
|
23
|
-
<span class="label" part="label" ?hidden=${!this.hasLabel}>
|
|
33
|
+
<span class="label" part="label" ?hidden=${!this.hasLabel} aria-hidden="true">
|
|
24
34
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
25
35
|
</span>
|
|
26
36
|
`;
|
|
@@ -28,6 +38,7 @@ var USpinner = class USpinner extends UElement {
|
|
|
28
38
|
handleSlotChange(e) {
|
|
29
39
|
const nodes = e.target.assignedNodes({ flatten: true });
|
|
30
40
|
this.hasLabel = nodes.some((node) => node.nodeType === Node.ELEMENT_NODE || node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== "");
|
|
41
|
+
this.nameFrom(nodes.map((n) => n.textContent ?? "").join(" ").replace(/\s+/g, " ").trim());
|
|
31
42
|
}
|
|
32
43
|
};
|
|
33
44
|
__decorate([property({
|
|
@@ -2,8 +2,8 @@ import { UElement } from "../UElement.js";
|
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { arrayAttrConverter } from "../../utilities/converters.js";
|
|
5
|
-
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
5
|
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
7
|
import { styles } from "./USplitPanel.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, query } from "lit/decorators.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorateMetadata.js";
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
4
5
|
import "../button/UButton.js";
|
|
5
6
|
import "../icon/UIcon.js";
|
|
6
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UTab.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -51,6 +51,11 @@ export declare class UTreeItem extends UElement {
|
|
|
51
51
|
get parentItem(): UTreeItem | null;
|
|
52
52
|
private _childItems;
|
|
53
53
|
get childItems(): readonly UTreeItem[];
|
|
54
|
+
/**
|
|
55
|
+
* 이름 = 자기 라벨(기본 슬롯)의 글자. 역할이 호스트에 있으므로 내용에서 이름을 계산하면 **자식 항목의 글자까지**
|
|
56
|
+
* 들어갔다(실측: 부모 이름 «Root Child»). 호스트의 `aria-label` 이 이긴다.
|
|
57
|
+
*/
|
|
58
|
+
private readonly internals;
|
|
54
59
|
connectedCallback(): void;
|
|
55
60
|
protected updated(changedProperties: PropertyValues): void;
|
|
56
61
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -30,9 +30,15 @@ var UTreeItem = class UTreeItem extends UElement {
|
|
|
30
30
|
this.indeterminate = false;
|
|
31
31
|
this._parentItem = null;
|
|
32
32
|
this._childItems = [];
|
|
33
|
+
this.internals = "attachInternals" in this ? this.attachInternals() : void 0;
|
|
33
34
|
this.handleSlotChange = (e) => {
|
|
34
|
-
const
|
|
35
|
+
const slot = e.target;
|
|
36
|
+
const elements = slot.assignedElements({ flatten: true });
|
|
35
37
|
for (const el of elements) if (el instanceof _UTreeItem && !el.hasAttribute("slot")) el.setAttribute("slot", "children");
|
|
38
|
+
if (this.internals) {
|
|
39
|
+
const text = slot.assignedNodes({ flatten: true }).filter((n) => !(n instanceof _UTreeItem)).map((n) => n.textContent ?? "").join(" ").replace(/\s+/g, " ").trim();
|
|
40
|
+
this.internals.ariaLabel = text || null;
|
|
41
|
+
}
|
|
36
42
|
};
|
|
37
43
|
this.handleChildrenSlotChange = (e) => {
|
|
38
44
|
const slot = e.target;
|
|
@@ -90,7 +96,26 @@ var UTreeItem = class UTreeItem extends UElement {
|
|
|
90
96
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
91
97
|
else this.removeAttribute("aria-disabled");
|
|
92
98
|
}
|
|
93
|
-
if (changedProperties.has("depth"))
|
|
99
|
+
if (changedProperties.has("depth")) {
|
|
100
|
+
this.style.setProperty("--tree-item-depth", String(this.depth));
|
|
101
|
+
this.setAttribute("aria-level", String(this.depth + 1));
|
|
102
|
+
}
|
|
103
|
+
if (changedProperties.has("expanded") || changedProperties.has("leaf")) {
|
|
104
|
+
if (this.leaf) this.removeAttribute("aria-expanded");
|
|
105
|
+
else this.setAttribute("aria-expanded", this.expanded ? "true" : "false");
|
|
106
|
+
}
|
|
107
|
+
if (changedProperties.has("selected") || changedProperties.has("selectable")) {
|
|
108
|
+
if (this.selectable) this.setAttribute("aria-selected", this.selected ? "true" : "false");
|
|
109
|
+
else this.removeAttribute("aria-selected");
|
|
110
|
+
}
|
|
111
|
+
if ([
|
|
112
|
+
"checked",
|
|
113
|
+
"indeterminate",
|
|
114
|
+
"checkable"
|
|
115
|
+
].some((k) => changedProperties.has(k))) {
|
|
116
|
+
if (this.checkable) this.setAttribute("aria-checked", this.indeterminate ? "mixed" : this.checked ? "true" : "false");
|
|
117
|
+
else this.removeAttribute("aria-checked");
|
|
118
|
+
}
|
|
94
119
|
}
|
|
95
120
|
render() {
|
|
96
121
|
return html`
|
package/dist/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import { isImeComposing } from "./utilities/keyboard.js";
|
|
|
6
6
|
import { OverlayManager } from "./utilities/OverlayManager.js";
|
|
7
7
|
import { arrayAttrConverter, booleanAttrConverter, dateAttrConverter, jsonAttrConverter, urlAttrConverter } from "./utilities/converters.js";
|
|
8
8
|
import { UOverlayElement } from "./components/UOverlayElement.js";
|
|
9
|
+
import { Locale } from "./utilities/Locale.js";
|
|
9
10
|
import { USpinner } from "./components/spinner/USpinner.js";
|
|
10
11
|
import { UButton } from "./components/button/UButton.js";
|
|
11
12
|
import { IconCache, IconRegistry, getDefaultBaseUrl, setDefaultBaseUrl } from "./utilities/icons.js";
|
|
12
13
|
import { createDevWarner, devWarnOnce, resetDevWarnings } from "./utilities/devWarning.js";
|
|
13
14
|
import { UIcon } from "./components/icon/UIcon.js";
|
|
14
|
-
import { Locale } from "./utilities/Locale.js";
|
|
15
15
|
import { ALERT_STATUSES, UAlert } from "./components/alert/UAlert.js";
|
|
16
16
|
import { UAvatar } from "./components/avatar/UAvatar.js";
|
|
17
17
|
import { UBadge } from "./components/badge/UBadge.js";
|
package/dist/utilities/Dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isImeComposing } from "./keyboard.js";
|
|
2
|
-
import "../components/button/UButton.js";
|
|
3
2
|
import { Locale } from "./Locale.js";
|
|
3
|
+
import "../components/button/UButton.js";
|
|
4
4
|
import { UDialog } from "../components/dialog/UDialog.js";
|
|
5
5
|
import "../components/input/UInput.js";
|
|
6
6
|
import { html, nothing, render } from "lit";
|
|
@@ -12,7 +12,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
|
|
|
12
12
|
/** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
|
|
13
13
|
export type LocaleTag = SupportedLocale | (string & {});
|
|
14
14
|
/** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
|
|
15
|
-
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm';
|
|
15
|
+
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm';
|
|
16
16
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
17
17
|
/**
|
|
18
18
|
* 한 패키지(또는 앱 영역)의 문자열 묶음.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 진행 표시(`u-progress-bar`·`u-progress-ring`·`u-spinner`)를 보조기기에 `progressbar` 로 내놓는다.
|
|
3
|
+
*
|
|
4
|
+
* 그리는 막대·고리만 있고 역할이 없으면 보조기기에는 아무것도 없다 — 진행 중이라는 사실도, 몇 % 인지도.
|
|
5
|
+
* 역할과 값은 `ElementInternals` 기본값이라 호스트에 단 `role`·`aria-*` 속성이 이긴다. 값이 정해지지 않은
|
|
6
|
+
* 진행(`indeterminate`·스피너)은 `aria-valuenow` 를 두지 않는다 — WAI-ARIA 의 «진행 중, 양은 모름» 표기.
|
|
7
|
+
*/
|
|
8
|
+
export declare function attachProgressbar(host: HTMLElement): ElementInternals | undefined;
|
|
9
|
+
export declare function syncProgressValue(internals: ElementInternals | undefined, state: {
|
|
10
|
+
indeterminate: boolean;
|
|
11
|
+
value: number;
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
}): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/utilities/progressAria.ts
|
|
2
|
+
/**
|
|
3
|
+
* 진행 표시(`u-progress-bar`·`u-progress-ring`·`u-spinner`)를 보조기기에 `progressbar` 로 내놓는다.
|
|
4
|
+
*
|
|
5
|
+
* 그리는 막대·고리만 있고 역할이 없으면 보조기기에는 아무것도 없다 — 진행 중이라는 사실도, 몇 % 인지도.
|
|
6
|
+
* 역할과 값은 `ElementInternals` 기본값이라 호스트에 단 `role`·`aria-*` 속성이 이긴다. 값이 정해지지 않은
|
|
7
|
+
* 진행(`indeterminate`·스피너)은 `aria-valuenow` 를 두지 않는다 — WAI-ARIA 의 «진행 중, 양은 모름» 표기.
|
|
8
|
+
*/
|
|
9
|
+
function attachProgressbar(host) {
|
|
10
|
+
if (!("attachInternals" in host)) return void 0;
|
|
11
|
+
const internals = host.attachInternals();
|
|
12
|
+
internals.role = "progressbar";
|
|
13
|
+
return internals;
|
|
14
|
+
}
|
|
15
|
+
function syncProgressValue(internals, state) {
|
|
16
|
+
if (!internals) return;
|
|
17
|
+
internals.ariaValueMin = String(state.min);
|
|
18
|
+
internals.ariaValueMax = String(state.max);
|
|
19
|
+
internals.ariaValueNow = state.indeterminate ? null : String(Math.max(state.min, Math.min(state.max, state.value)));
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { attachProgressbar, syncProgressValue };
|
package/package.json
CHANGED
|
@@ -49,7 +49,8 @@ Square icon-only button with a built-in tooltip (shown from the default slot). R
|
|
|
49
49
|
|
|
50
50
|
## Accessibility
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
The icon has no text, so the button is named by its tooltip text (the default slot) — or by an `aria-label`
|
|
53
|
+
on the host, which wins. One of the two is required. `aria-label` and the button states
|
|
53
54
|
(`aria-pressed`, `aria-expanded`, `aria-controls`, `aria-haspopup`) set on the host reach the
|
|
54
55
|
inner button, as on `u-button`.
|
|
55
56
|
|
|
@@ -21,6 +21,10 @@ Linear progress indicator. Supports buffer, segments, striped effect, and indete
|
|
|
21
21
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
|
+
## Accessibility
|
|
25
|
+
|
|
26
|
+
Exposed as a **`progressbar`** with `aria-valuenow`/`min`/`max`; `indeterminate` leaves the value out (in progress, amount unknown). Name it with `aria-label` ("Upload") — the bar has no text of its own.
|
|
27
|
+
|
|
24
28
|
## Slots
|
|
25
29
|
|
|
26
30
|
| Name | Description |
|
|
@@ -20,6 +20,10 @@ Circular progress indicator. Supports buffer, segments, and indeterminate state.
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
## Accessibility
|
|
24
|
+
|
|
25
|
+
Exposed as a **`progressbar`** with `aria-valuenow`/`min`/`max`; `indeterminate` leaves the value out. Name it with `aria-label` — slotted content ("50%") is shown, not used as the name.
|
|
26
|
+
|
|
23
27
|
## Slots
|
|
24
28
|
|
|
25
29
|
| Name | Description |
|
|
@@ -23,6 +23,10 @@ Star/custom-symbol rating input. Supports fractional precision and custom symbol
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
+
## Accessibility
|
|
27
|
+
|
|
28
|
+
A `radiogroup` (named by `label`) of radios named `1`…`max` — a screen reader adds the position ("3 of 5").
|
|
29
|
+
|
|
26
30
|
## Slots
|
|
27
31
|
|
|
28
32
|
| Name | Description |
|
|
@@ -18,6 +18,10 @@ Animated circular spinner for loading states. Optional label below the spinner v
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
+
## Accessibility
|
|
22
|
+
|
|
23
|
+
Exposed as a **`progressbar`** with no value (in progress, amount unknown). Its name is the slotted text — read once, as the name — or the locale's `loading` word ("Loading", "로딩 중") when it has none. `aria-label` on the host wins.
|
|
24
|
+
|
|
21
25
|
## Slots
|
|
22
26
|
|
|
23
27
|
| Name | Description |
|
|
@@ -24,6 +24,12 @@ Hierarchical tree with support for selection, checkboxes, cascade check, and dra
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
## Accessibility
|
|
28
|
+
|
|
29
|
+
Items are `treeitem`s with `aria-level` (depth), `aria-expanded` (items with children), `aria-selected` (in a
|
|
30
|
+
`selectable` tree) and `aria-checked` (`mixed` for a partly checked parent, in a `checkable` tree). An item is
|
|
31
|
+
named by its own label — not by the text of the items under it.
|
|
32
|
+
|
|
27
33
|
## u-tree
|
|
28
34
|
|
|
29
35
|
### Slots
|