@iyulab/components 1.28.0 → 1.32.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 +57 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.144.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.144.0 → _@oxc-project_runtime@0.146.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/assets/locales/ar.json.js +12 -2
- package/dist/assets/locales/de.json.js +12 -2
- package/dist/assets/locales/en.json.js +12 -2
- package/dist/assets/locales/es.json.js +12 -2
- package/dist/assets/locales/fr.json.js +12 -2
- package/dist/assets/locales/id.json.js +12 -2
- package/dist/assets/locales/ja.json.js +12 -2
- package/dist/assets/locales/ko.json.js +12 -2
- package/dist/assets/locales/pt-BR.json.js +12 -2
- package/dist/assets/locales/ru.json.js +12 -2
- package/dist/assets/locales/th.json.js +12 -2
- package/dist/assets/locales/vi.json.js +12 -2
- package/dist/assets/locales/zh-CN.json.js +12 -2
- package/dist/assets/locales/zh-TW.json.js +12 -2
- package/dist/components/UFloatingElement.js +2 -2
- package/dist/components/UFormControlElement.js +2 -2
- package/dist/components/UOverlayElement.js +2 -2
- package/dist/components/alert/UAlert.js +2 -2
- package/dist/components/avatar/UAvatar.js +2 -2
- package/dist/components/badge/UBadge.js +2 -2
- package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
- package/dist/components/button/UButton.js +2 -2
- package/dist/components/button-group/UButtonGroup.js +2 -2
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.js +2 -2
- package/dist/components/checkbox/UCheckbox.d.ts +2 -0
- package/dist/components/checkbox/UCheckbox.js +8 -2
- package/dist/components/chip/UChip.js +2 -3
- package/dist/components/copy-button/UCopyButton.js +2 -2
- package/dist/components/date-picker/UDatePicker.d.ts +9 -0
- package/dist/components/date-picker/UDatePicker.js +21 -2
- package/dist/components/dialog/UDialog.js +2 -2
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/drawer/UDrawer.js +2 -2
- package/dist/components/expander/UExpander.js +2 -2
- package/dist/components/field/UField.d.ts +4 -0
- package/dist/components/field/UField.js +13 -7
- package/dist/components/form/UForm.js +2 -2
- package/dist/components/icon/UIcon.js +2 -2
- package/dist/components/icon-button/UIconButton.js +2 -2
- package/dist/components/input/UInput.d.ts +14 -0
- package/dist/components/input/UInput.js +66 -2
- package/dist/components/input/UInput.styles.js +7 -0
- package/dist/components/menu/UMenu.js +2 -2
- package/dist/components/menu-item/UMenuItem.js +2 -2
- package/dist/components/option/UOption.js +2 -2
- package/dist/components/panel/UPanel.js +2 -2
- package/dist/components/popover/UPopover.js +2 -2
- package/dist/components/progress-bar/UProgressBar.js +2 -2
- package/dist/components/progress-ring/UProgressRing.js +2 -2
- package/dist/components/radio/URadio.js +2 -2
- package/dist/components/rating/URating.js +2 -2
- package/dist/components/select/USelect.d.ts +9 -0
- package/dist/components/select/USelect.js +21 -2
- package/dist/components/skeleton/USkeleton.js +2 -2
- package/dist/components/slider/USlider.d.ts +8 -0
- package/dist/components/slider/USlider.js +13 -2
- package/dist/components/spinner/USpinner.js +2 -2
- package/dist/components/split-panel/USplitPanel.js +2 -2
- package/dist/components/switch/USwitch.d.ts +2 -0
- package/dist/components/switch/USwitch.js +8 -2
- package/dist/components/tab/UTab.js +2 -3
- package/dist/components/tab-panel/UTabPanel.js +2 -2
- package/dist/components/tag/UTag.js +2 -2
- package/dist/components/text/UText.js +2 -2
- package/dist/components/textarea/UTextarea.d.ts +2 -0
- package/dist/components/textarea/UTextarea.js +8 -2
- package/dist/components/tooltip/UTooltip.js +2 -2
- package/dist/components/tree/UTree.js +2 -2
- package/dist/components/tree-item/UTreeItem.js +2 -2
- package/dist/utilities/Locale.d.ts +1 -1
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/checkbox.md +2 -0
- package/skills/iyulab-components/references/components/date-picker.md +2 -0
- package/skills/iyulab-components/references/components/field.md +6 -0
- package/skills/iyulab-components/references/components/input.md +9 -1
- package/skills/iyulab-components/references/components/select.md +2 -0
- package/skills/iyulab-components/references/components/slider.md +2 -0
- package/skills/iyulab-components/references/components/switch.md +2 -0
- package/skills/iyulab-components/references/components/textarea.md +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
5
|
import { styles } from "./USwitch.styles.js";
|
|
@@ -78,6 +78,12 @@ var USwitch = class USwitch extends UFormControlElement {
|
|
|
78
78
|
this.checked = false;
|
|
79
79
|
this.invalid = false;
|
|
80
80
|
}
|
|
81
|
+
focus(options) {
|
|
82
|
+
this.inputEl?.focus(options);
|
|
83
|
+
}
|
|
84
|
+
blur() {
|
|
85
|
+
this.inputEl?.blur();
|
|
86
|
+
}
|
|
81
87
|
};
|
|
82
88
|
__decorate([property({
|
|
83
89
|
type: Boolean,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../button/UButton.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import { styles } from "./UTab.styles.js";
|
|
@@ -42,7 +42,6 @@ var UTab = class UTab extends UElement {
|
|
|
42
42
|
<u-button class="remove-btn" part="remove-btn"
|
|
43
43
|
?hidden=${!this.removable}
|
|
44
44
|
variant="ghost"
|
|
45
|
-
tabindex="-1"
|
|
46
45
|
aria-label="Close tab"
|
|
47
46
|
@click=${this.handleRemoveClick}
|
|
48
47
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UPanel } from "../panel/UPanel.js";
|
|
5
5
|
import { UTab } from "../tab/UTab.js";
|
|
6
6
|
import { styles } from "./UTabPanel.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
6
6
|
import { styles } from "./UTag.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UText.styles.js";
|
|
5
5
|
import { customElement, property } from "lit/decorators.js";
|
|
6
6
|
import { html, literal } from "lit/static-html.js";
|
|
@@ -53,6 +53,8 @@ export declare class UTextarea extends UFormControlElement<string> {
|
|
|
53
53
|
render(): import('lit-html').TemplateResult<1>;
|
|
54
54
|
protected setValidity(): void;
|
|
55
55
|
reset(): void;
|
|
56
|
+
focus(options?: FocusOptions): void;
|
|
57
|
+
blur(): void;
|
|
56
58
|
private resizeTextarea;
|
|
57
59
|
private handleTextareaInput;
|
|
58
60
|
private handleTextareaChange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
5
|
import "../field/UField.js";
|
|
@@ -106,6 +106,12 @@ var UTextarea = class UTextarea extends UFormControlElement {
|
|
|
106
106
|
this.value = void 0;
|
|
107
107
|
this.invalid = false;
|
|
108
108
|
}
|
|
109
|
+
focus(options) {
|
|
110
|
+
this.textareaEl?.focus(options);
|
|
111
|
+
}
|
|
112
|
+
blur() {
|
|
113
|
+
this.textareaEl?.blur();
|
|
114
|
+
}
|
|
109
115
|
resizeTextarea() {
|
|
110
116
|
const textarea = this.textareaEl;
|
|
111
117
|
if (!textarea) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFloatingElement } from "../UFloatingElement.js";
|
|
4
4
|
import { styles } from "./UTooltip.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UTreeItem } from "../tree-item/UTreeItem.js";
|
|
5
5
|
import { styles } from "./UTree.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../spinner/USpinner.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import { styles } from "./UTreeItem.styles.js";
|
|
@@ -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';
|
|
15
|
+
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'showPassword' | 'hidePassword';
|
|
16
16
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
17
17
|
/**
|
|
18
18
|
* 한 패키지(또는 앱 영역)의 문자열 묶음.
|
package/package.json
CHANGED
|
@@ -50,6 +50,8 @@ Checkbox with `indeterminate` state support. Form-associated (`formAssociated =
|
|
|
50
50
|
|--------|---------|-------------|
|
|
51
51
|
| `validate()` | `boolean` | Run validation; sets `invalid` |
|
|
52
52
|
| `reset()` | `void` | Clear value and validation state |
|
|
53
|
+
| `focus(options?)` | `void` | Focus the checkbox input |
|
|
54
|
+
| `blur()` | `void` | Blur the checkbox input |
|
|
53
55
|
|
|
54
56
|
## CSS Parts
|
|
55
57
|
|
|
@@ -49,6 +49,8 @@ Single-date selection with a popover calendar. The value follows the same conven
|
|
|
49
49
|
|--------|--------------|
|
|
50
50
|
| `validate()` | Validate; sets `invalid` |
|
|
51
51
|
| `reset()` | Reset value |
|
|
52
|
+
| `focus(options?)` | Focus the trigger |
|
|
53
|
+
| `blur()` | Blur the trigger |
|
|
52
54
|
|
|
53
55
|
## CSS Parts
|
|
54
56
|
|
|
@@ -40,3 +40,9 @@ Layout wrapper for form controls. Renders label, required marker, description te
|
|
|
40
40
|
| `required` | `boolean` | `false` | ✓ | Show required marker |
|
|
41
41
|
| `invalid` | `boolean` | `false` | ✓ | Show validation error state |
|
|
42
42
|
| `disabled` | `boolean` | `false` | ✓ | Disable state forwarding |
|
|
43
|
+
|
|
44
|
+
## Methods
|
|
45
|
+
|
|
46
|
+
| Method | Description |
|
|
47
|
+
|--------|-------------|
|
|
48
|
+
| `focus(options?)` | Focus the first focusable slotted child |
|
|
@@ -21,8 +21,16 @@ Text input field with prefix/suffix slots and label. Add `u-option` children for
|
|
|
21
21
|
<u-option value="us">United States</u-option>
|
|
22
22
|
<u-option value="kr">South Korea</u-option>
|
|
23
23
|
</u-input>
|
|
24
|
+
|
|
25
|
+
<!-- Number with a stepper — click +/- to adjust by `step` -->
|
|
26
|
+
<u-input type="number" value="5000" step="1000" min="0"></u-input>
|
|
24
27
|
```
|
|
25
28
|
|
|
29
|
+
`type="number"` replaces the browser's native spin buttons with `−`/`+` icons in the suffix
|
|
30
|
+
area — clicking delegates to the native `stepUp()`/`stepDown()`, so `min`/`max`/`step` are
|
|
31
|
+
respected exactly as they are for keyboard arrows. A field-specific step (e.g. `step="1000"`
|
|
32
|
+
for a KRW amount) is the consumer's call — the library does not infer one from field meaning.
|
|
33
|
+
|
|
26
34
|
---
|
|
27
35
|
|
|
28
36
|
## Slots
|
|
@@ -45,7 +53,7 @@ Text input field with prefix/suffix slots and label. Add `u-option` children for
|
|
|
45
53
|
| `maxlength` | `number` | — | — | Maximum character count |
|
|
46
54
|
| `min` | `string` | — | — | Minimum value (number/date) |
|
|
47
55
|
| `max` | `string` | — | — | Maximum value |
|
|
48
|
-
| `step` | `number` | — | — | Step increment |
|
|
56
|
+
| `step` | `number` | — | — | Step increment used by both keyboard arrows and the stepper buttons below. Unset behaves like the native default of `1` |
|
|
49
57
|
| `pattern` | `string` | — | — | Regex validation pattern |
|
|
50
58
|
| `autofocus` | `boolean` | `false` | — | Auto-focus on render |
|
|
51
59
|
| `autocomplete` | `AutoFill` | — | — | Browser autocomplete |
|
|
@@ -66,6 +66,8 @@ Dropdown select with single or multiple selection, search, and clear support. Fo
|
|
|
66
66
|
|--------|-------------|
|
|
67
67
|
| `validate()` | Validate; sets `invalid` |
|
|
68
68
|
| `reset()` | Reset value |
|
|
69
|
+
| `focus(options?)` | Focus the trigger |
|
|
70
|
+
| `blur()` | Blur the trigger |
|
|
69
71
|
|
|
70
72
|
## CSS Parts
|
|
71
73
|
|
|
@@ -60,6 +60,8 @@ Range slider. Single-thumb or dual-thumb (range) mode. Supports marks, value dis
|
|
|
60
60
|
|--------|-------------|
|
|
61
61
|
| `validate()` | Validate; sets `invalid` |
|
|
62
62
|
| `reset()` | Reset value |
|
|
63
|
+
| `focus(options?)` | Focus the first (min) thumb |
|
|
64
|
+
| `blur()` | Blur the first (min) thumb |
|
|
63
65
|
|
|
64
66
|
## CSS Parts
|
|
65
67
|
|
|
@@ -55,6 +55,8 @@ Toggle switch (on/off). Supports custom track and thumb content via slots. Form-
|
|
|
55
55
|
|--------|-------------|
|
|
56
56
|
| `validate()` | Validate; sets `invalid` |
|
|
57
57
|
| `reset()` | Reset state |
|
|
58
|
+
| `focus(options?)` | Focus the switch input |
|
|
59
|
+
| `blur()` | Blur the switch input |
|
|
58
60
|
|
|
59
61
|
## CSS Parts
|
|
60
62
|
|
|
@@ -61,6 +61,8 @@ Multi-line text input with auto-resize and optional character counter. Form-asso
|
|
|
61
61
|
|--------|-------------|
|
|
62
62
|
| `validate()` | Validate; sets `invalid` |
|
|
63
63
|
| `reset()` | Reset value |
|
|
64
|
+
| `focus(options?)` | Focus the textarea |
|
|
65
|
+
| `blur()` | Blur the textarea |
|
|
64
66
|
|
|
65
67
|
## CSS Parts
|
|
66
68
|
|