@iyulab/components 2.3.1 → 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 +43 -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/UOverlayElement.d.ts +11 -0
- package/dist/components/UOverlayElement.js +30 -9
- 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 +2 -1
- package/dist/components/drawer/UDrawer.js +2 -1
- package/dist/components/file-input/UFileInput.js +5 -2
- package/dist/components/icon-button/UIconButton.d.ts +3 -0
- package/dist/components/icon-button/UIconButton.js +9 -3
- package/dist/components/input/UInput.d.ts +2 -0
- package/dist/components/input/UInput.js +3 -2
- package/dist/components/input/UInput.styles.js +11 -0
- 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/switch/USwitch.js +1 -0
- 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.d.ts +2 -0
- package/dist/utilities/Dialog.js +36 -13
- 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/dialog.md +7 -0
- package/skills/iyulab-components/references/components/drawer.md +5 -0
- package/skills/iyulab-components/references/components/file-input.md +1 -1
- package/skills/iyulab-components/references/components/icon-button.md +2 -1
- package/skills/iyulab-components/references/components/input.md +1 -0
- 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/switch.md +5 -0
- package/skills/iyulab-components/references/components/tree.md +6 -0
- package/skills/iyulab-components/references/utilities/dialog.md +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
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
|
+
|
|
26
|
+
## [2.4.0] - 2026-10-06
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- **`u-dialog` and `u-drawer` are exposed as dialogs.** They trapped focus but carried no role, so a screen reader user
|
|
31
|
+
landed among unfamiliar buttons without hearing that anything had opened, and `getByRole('dialog')` found nothing.
|
|
32
|
+
The host is now a `dialog` (via `ElementInternals`), with `aria-modal` when `mode="modal"`, named by the `header` slot
|
|
33
|
+
(tracking its content). `aria-label`, `aria-labelledby` and `role` on the host still override.
|
|
34
|
+
- **`Dialog.alert` and `Dialog.confirm` open as an `alertdialog`**, like a native `confirm()` — moving from `confirm()`
|
|
35
|
+
to `Dialog.confirm` no longer loses that. With a `title` the title names the dialog and the message describes it;
|
|
36
|
+
without one the message is the name. `Dialog.prompt` and `Dialog.show` are named the same way, as a `dialog`.
|
|
37
|
+
- **`u-switch` is exposed as a `switch`**, not a checkbox — announced as on/off, and found by `getByRole('switch')`.
|
|
38
|
+
- **`u-file-input`: setting `value` to `null` (or `[]`) clears the native input**, as `reset()` did. It only synced the
|
|
39
|
+
form value, so after an app reset the state the native input still held the last file — picking that same file again
|
|
40
|
+
fired no `change`, and nothing happened.
|
|
41
|
+
- **`u-input` keeps a minimum text area.** The suffix icons (number stepper, clear, password toggle) have a fixed box —
|
|
42
|
+
at least 24px, or `--u-target-size` — and in a narrow field they took the whole width: a 90px number input drew a 0px
|
|
43
|
+
text area, with no value or caret visible. The field now has a floor (`--input-min-text`, default `4ch`, plus the
|
|
44
|
+
icons it shows); given less, it overflows its host visibly. Fields at their default or a wider width are unchanged.
|
|
45
|
+
|
|
3
46
|
## [2.3.1] - 2026-10-06
|
|
4
47
|
|
|
5
48
|
### 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 };
|
|
@@ -41,11 +41,22 @@ export declare abstract class UOverlayElement extends UElement {
|
|
|
41
41
|
* ['escape', 'backdrop', 'button']
|
|
42
42
|
*/
|
|
43
43
|
closeOn: CloseOnPolicy[];
|
|
44
|
+
/**
|
|
45
|
+
* 보조기기에 내놓는 역할 — 오버레이는 대화상자다(WAI-ARIA APG Dialog). 호스트 속성(`role`·`aria-label`·
|
|
46
|
+
* `aria-labelledby`)이 있으면 그것이 이긴다 — 기본값만 여기서 정한다.
|
|
47
|
+
*/
|
|
48
|
+
private internals?;
|
|
44
49
|
/** focus trap 인스턴스 (modal일 때만 사용) */
|
|
45
50
|
private focusTrap?;
|
|
46
51
|
/** modal이고 contained가 아닌 경우에만 body scroll lock */
|
|
47
52
|
private get shouldLockBody();
|
|
53
|
+
constructor();
|
|
48
54
|
connectedCallback(): void;
|
|
55
|
+
/**
|
|
56
|
+
* 머리 슬롯에 놓인 것을 대화상자의 이름으로 삼는다 — 이름 없는 대화상자는 낭독기에 «대화상자» 라는 말만 남긴다.
|
|
57
|
+
* 요소면 참조로 잇고(내용이 바뀌어도 따라간다), 글자 노드뿐이면 그 글자를 이름으로 둔다.
|
|
58
|
+
*/
|
|
59
|
+
protected nameFromSlot(slot: HTMLSlotElement): void;
|
|
49
60
|
disconnectedCallback(): void;
|
|
50
61
|
protected updated(changedProperties: PropertyValues): void;
|
|
51
62
|
/**
|
|
@@ -15,8 +15,15 @@ import { createFocusTrap } from "focus-trap";
|
|
|
15
15
|
* @event hide - 오버레이가 숨겨지기 직전 발생합니다. 핸들러에서 취소하면 닫히지 않습니다.
|
|
16
16
|
*/
|
|
17
17
|
var UOverlayElement = class extends UElement {
|
|
18
|
-
|
|
19
|
-
super
|
|
18
|
+
static {
|
|
19
|
+
this.styles = [super.styles, styles];
|
|
20
|
+
}
|
|
21
|
+
/** modal이고 contained가 아닌 경우에만 body scroll lock */
|
|
22
|
+
get shouldLockBody() {
|
|
23
|
+
return this.mode === "modal" && !this.contained;
|
|
24
|
+
}
|
|
25
|
+
constructor() {
|
|
26
|
+
super();
|
|
20
27
|
this.open = false;
|
|
21
28
|
this.contained = false;
|
|
22
29
|
this.mode = "modal";
|
|
@@ -28,24 +35,38 @@ var UOverlayElement = class extends UElement {
|
|
|
28
35
|
this.handlePointerdown = (e) => {
|
|
29
36
|
if (e.composedPath()[0] === this) this.requestClose("backdrop");
|
|
30
37
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/** modal이고 contained가 아닌 경우에만 body scroll lock */
|
|
36
|
-
get shouldLockBody() {
|
|
37
|
-
return this.mode === "modal" && !this.contained;
|
|
38
|
+
if ("attachInternals" in this) {
|
|
39
|
+
this.internals = this.attachInternals();
|
|
40
|
+
this.internals.role = "dialog";
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
connectedCallback() {
|
|
40
44
|
super.connectedCallback();
|
|
41
45
|
this.setAttribute("tabindex", "-1");
|
|
42
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* 머리 슬롯에 놓인 것을 대화상자의 이름으로 삼는다 — 이름 없는 대화상자는 낭독기에 «대화상자» 라는 말만 남긴다.
|
|
49
|
+
* 요소면 참조로 잇고(내용이 바뀌어도 따라간다), 글자 노드뿐이면 그 글자를 이름으로 둔다.
|
|
50
|
+
*/
|
|
51
|
+
nameFromSlot(slot) {
|
|
52
|
+
const internals = this.internals;
|
|
53
|
+
if (!internals) return;
|
|
54
|
+
const elements = slot.assignedElements({ flatten: true });
|
|
55
|
+
if (elements.length > 0 && "ariaLabelledByElements" in internals) {
|
|
56
|
+
internals.ariaLabelledByElements = elements;
|
|
57
|
+
internals.ariaLabel = null;
|
|
58
|
+
} else {
|
|
59
|
+
if ("ariaLabelledByElements" in internals) internals.ariaLabelledByElements = null;
|
|
60
|
+
internals.ariaLabel = slot.assignedNodes({ flatten: true }).map((n) => n.textContent ?? "").join(" ").replace(/\s+/g, " ").trim() || null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
43
63
|
disconnectedCallback() {
|
|
44
64
|
this.cleanup();
|
|
45
65
|
super.disconnectedCallback();
|
|
46
66
|
}
|
|
47
67
|
updated(changedProperties) {
|
|
48
68
|
super.updated(changedProperties);
|
|
69
|
+
if (changedProperties.has("mode") && this.internals) this.internals.ariaModal = this.mode === "modal" ? "true" : null;
|
|
49
70
|
if (changedProperties.has("open")) {
|
|
50
71
|
if (this.open) this.setup();
|
|
51
72
|
else this.cleanup();
|
|
@@ -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";
|
|
@@ -50,6 +50,7 @@ var UDialog = class UDialog extends UOverlayElement {
|
|
|
50
50
|
handleHeaderSlotChange(e) {
|
|
51
51
|
const slot = e.target;
|
|
52
52
|
this.hasHeader = slot.assignedNodes({ flatten: true }).length > 0;
|
|
53
|
+
this.nameFromSlot(slot);
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
__decorate([property({
|
|
@@ -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";
|
|
@@ -42,6 +42,7 @@ var UDrawer = class UDrawer extends UOverlayElement {
|
|
|
42
42
|
handleHeaderSlotChange(e) {
|
|
43
43
|
const slot = e.target;
|
|
44
44
|
this.hasHeader = slot.assignedNodes({ flatten: true }).length > 0;
|
|
45
|
+
this.nameFromSlot(slot);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
__decorate([property({
|
|
@@ -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";
|
|
@@ -53,7 +53,10 @@ var UFileInput = class UFileInput extends UFormControlElement {
|
|
|
53
53
|
* 넘긴다 — 네이티브 `<input type="file" multiple>`의 제출 형태와 동일하다. */
|
|
54
54
|
updated(changedProperties) {
|
|
55
55
|
super.updated(changedProperties);
|
|
56
|
-
if (changedProperties.has("value"))
|
|
56
|
+
if (changedProperties.has("value")) {
|
|
57
|
+
this.syncFormValue();
|
|
58
|
+
if ((!this.value || this.value.length === 0) && this.inputEl?.value) this.inputEl.value = "";
|
|
59
|
+
}
|
|
57
60
|
}
|
|
58
61
|
syncFormValue() {
|
|
59
62
|
const files = this.value ?? [];
|