@iyulab/components 3.0.0 → 3.2.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 +144 -0
- package/README.md +12 -0
- package/dist/components/UElement.d.ts +11 -0
- package/dist/components/UElement.js +14 -0
- package/dist/components/UElement.styles.js +9 -0
- package/dist/components/UFloatingElement.d.ts +4 -0
- package/dist/components/UFloatingElement.js +7 -0
- package/dist/components/UFormControlElement.d.ts +20 -3
- package/dist/components/UFormControlElement.js +46 -4
- package/dist/components/UOverlayElement.d.ts +4 -0
- package/dist/components/UOverlayElement.js +7 -0
- package/dist/components/alert/UAlert.d.ts +4 -0
- package/dist/components/alert/UAlert.js +7 -0
- package/dist/components/auto-scroll/UAutoScroll.d.ts +6 -2
- package/dist/components/auto-scroll/UAutoScroll.js +7 -0
- package/dist/components/avatar/UAvatar.d.ts +4 -0
- package/dist/components/avatar/UAvatar.js +11 -0
- package/dist/components/badge/UBadge.d.ts +6 -0
- package/dist/components/badge/UBadge.js +36 -1
- package/dist/components/badge/UBadge.styles.js +8 -0
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
- package/dist/components/button/UButton.d.ts +7 -0
- package/dist/components/button/UButton.js +41 -1
- package/dist/components/button/UButton.styles.js +8 -0
- package/dist/components/button-group/UButtonGroup.d.ts +4 -0
- package/dist/components/button-group/UButtonGroup.js +13 -0
- package/dist/components/calendar/UCalendar.d.ts +8 -0
- package/dist/components/calendar/UCalendar.js +30 -14
- package/dist/components/calendar/UCalendar.styles.js +3 -0
- package/dist/components/calendar/dates.d.ts +12 -0
- package/dist/components/calendar/dates.js +25 -1
- package/dist/components/card/UCard.d.ts +6 -0
- package/dist/components/card/UCard.js +15 -0
- package/dist/components/carousel/UCarousel.d.ts +4 -0
- package/dist/components/carousel/UCarousel.js +7 -0
- package/dist/components/checkbox/UCheckbox.d.ts +6 -0
- package/dist/components/checkbox/UCheckbox.js +25 -1
- package/dist/components/chip/UChip.d.ts +5 -0
- package/dist/components/chip/UChip.js +30 -0
- package/dist/components/command-palette/UCommandPalette.js +3 -0
- package/dist/components/copy-button/UCopyButton.d.ts +4 -0
- package/dist/components/copy-button/UCopyButton.js +13 -0
- package/dist/components/date-picker/UDatePicker.d.ts +11 -5
- package/dist/components/date-picker/UDatePicker.js +13 -0
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +9 -2
- package/dist/components/date-range-picker/UDateRangePicker.js +13 -0
- package/dist/components/date-range-picker/presets.d.ts +2 -1
- package/dist/components/date-range-picker/presets.js +5 -5
- package/dist/components/dialog/UDialog.d.ts +5 -0
- package/dist/components/dialog/UDialog.js +17 -0
- package/dist/components/divider/UDivider.d.ts +5 -0
- package/dist/components/divider/UDivider.js +17 -1
- package/dist/components/divider/UDivider.styles.js +5 -0
- package/dist/components/drawer/UDrawer.d.ts +5 -0
- package/dist/components/drawer/UDrawer.js +12 -0
- package/dist/components/field/UField.d.ts +4 -0
- package/dist/components/field/UField.js +7 -0
- package/dist/components/icon-button/UIconButton.d.ts +4 -0
- package/dist/components/icon-button/UIconButton.js +13 -0
- package/dist/components/input/UInput.d.ts +7 -0
- package/dist/components/input/UInput.js +31 -0
- package/dist/components/input/UInput.styles.js +9 -0
- package/dist/components/menu/UMenu.d.ts +7 -0
- package/dist/components/menu/UMenu.js +18 -0
- package/dist/components/menu-item/UMenuItem.d.ts +5 -0
- package/dist/components/menu-item/UMenuItem.js +13 -1
- package/dist/components/option/UOption.d.ts +4 -0
- package/dist/components/option/UOption.js +8 -1
- package/dist/components/pagination/UPagination.d.ts +4 -0
- package/dist/components/pagination/UPagination.js +11 -0
- package/dist/components/popover/UPopover.d.ts +5 -0
- package/dist/components/popover/UPopover.js +13 -0
- package/dist/components/progress-bar/UProgressBar.d.ts +4 -0
- package/dist/components/progress-bar/UProgressBar.js +14 -1
- package/dist/components/progress-bar/UProgressBar.styles.js +5 -0
- package/dist/components/progress-ring/UProgressRing.d.ts +4 -0
- package/dist/components/progress-ring/UProgressRing.js +13 -0
- package/dist/components/radio/URadio.d.ts +7 -0
- package/dist/components/radio/URadio.js +15 -2
- package/dist/components/rating/URating.d.ts +5 -1
- package/dist/components/rating/URating.js +6 -2
- package/dist/components/select/USelect.d.ts +7 -0
- package/dist/components/select/USelect.js +19 -1
- package/dist/components/skeleton/USkeleton.d.ts +5 -0
- package/dist/components/skeleton/USkeleton.js +16 -0
- package/dist/components/spinner/USpinner.d.ts +4 -0
- package/dist/components/spinner/USpinner.js +24 -0
- package/dist/components/split-panel/USplitPanel.d.ts +4 -0
- package/dist/components/split-panel/USplitPanel.js +7 -0
- package/dist/components/steps/USteps.d.ts +4 -0
- package/dist/components/steps/USteps.js +12 -1
- package/dist/components/switch/USwitch.js +1 -1
- package/dist/components/tab/UTab.d.ts +4 -0
- package/dist/components/tab/UTab.js +12 -1
- package/dist/components/tab/UTab.styles.js +7 -0
- package/dist/components/tab-nav/UTabNav.d.ts +6 -2
- package/dist/components/tab-nav/UTabNav.js +7 -0
- package/dist/components/tab-panel/UTabPanel.d.ts +5 -0
- package/dist/components/tab-panel/UTabPanel.js +18 -0
- package/dist/components/tag/UTag.d.ts +6 -0
- package/dist/components/tag/UTag.js +32 -1
- package/dist/components/text/UText.d.ts +5 -0
- package/dist/components/text/UText.js +21 -0
- package/dist/components/textarea/UTextarea.d.ts +7 -0
- package/dist/components/textarea/UTextarea.js +24 -0
- package/dist/components/tree/UTree.d.ts +4 -0
- package/dist/components/tree/UTree.js +7 -0
- package/dist/components/tree-item/UTreeItem.d.ts +4 -0
- package/dist/components/tree-item/UTreeItem.js +8 -1
- package/dist/custom-elements.json +46557 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/plugins/cem-check.d.ts +29 -0
- package/dist/plugins/cem-check.js +90 -0
- package/dist/plugins/cem-config.d.ts +17 -0
- package/dist/plugins/cem-config.js +22 -0
- package/dist/plugins/cem-enumerated-plugin.d.ts +20 -0
- package/dist/plugins/cem-enumerated-plugin.js +105 -0
- package/dist/plugins/cem-events-plugin.d.ts +18 -0
- package/dist/plugins/cem-events-plugin.js +96 -0
- package/dist/utilities/collation.d.ts +11 -0
- package/dist/utilities/collation.js +52 -0
- package/dist/utilities/enumerated.d.ts +20 -0
- package/dist/utilities/enumerated.js +24 -0
- package/dist/utilities/format.js +49 -15
- package/package.json +18 -15
- package/skills/iyulab-components/SKILL.md +8 -2
- package/skills/iyulab-components/references/components/checkbox.md +1 -1
- package/skills/iyulab-components/references/components/date-picker.md +2 -2
- package/skills/iyulab-components/references/components/date-range-picker.md +4 -4
- package/skills/iyulab-components/references/components/field.md +5 -0
- package/skills/iyulab-components/references/components/file-input.md +1 -1
- package/skills/iyulab-components/references/components/input.md +1 -1
- package/skills/iyulab-components/references/components/select.md +1 -1
- package/skills/iyulab-components/references/components/textarea.md +1 -1
- package/skills/iyulab-components/references/utilities/locale.md +14 -0
|
@@ -6,6 +6,7 @@ import { UElement } from "../UElement.js";
|
|
|
6
6
|
import { Locale } from "../../utilities/Locale.js";
|
|
7
7
|
import { styles } from "./UPagination.styles.js";
|
|
8
8
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
9
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
9
10
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
10
11
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
11
12
|
import { html, nothing } from "lit";
|
|
@@ -34,6 +35,16 @@ var UPagination = class UPagination extends UElement {
|
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
}
|
|
38
|
+
static {
|
|
39
|
+
this.enumerated = {
|
|
40
|
+
...super.enumerated,
|
|
41
|
+
size: enumeratedValues()([
|
|
42
|
+
"sm",
|
|
43
|
+
"md",
|
|
44
|
+
"lg"
|
|
45
|
+
])
|
|
46
|
+
};
|
|
47
|
+
}
|
|
37
48
|
static {
|
|
38
49
|
this.styles = [super.styles, styles];
|
|
39
50
|
}
|
|
@@ -12,6 +12,11 @@ export type PopoverDismiss = 'click' | 'escape' | 'scroll' | 'resize';
|
|
|
12
12
|
* @event hide - 팝오버가 닫히기 직전 발생 (취소 가능)
|
|
13
13
|
*/
|
|
14
14
|
export declare class UPopover extends UFloatingElement {
|
|
15
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
16
|
+
static enumerated: {
|
|
17
|
+
trigger: readonly PopoverTrigger[];
|
|
18
|
+
strategy: readonly import('../UFloatingElement.js').FloatingStrategy[];
|
|
19
|
+
};
|
|
15
20
|
static styles: import('lit').CSSResultGroup[];
|
|
16
21
|
private static readonly SAFE_TIMER_DELAY;
|
|
17
22
|
/** 열릴 때 내부의 첫 번째 포커스 가능한 요소에 자동 포커스 */
|
|
@@ -3,6 +3,7 @@ import { isCoarsePointer } from "../../utilities/elements.js";
|
|
|
3
3
|
import { UFloatingElement } from "../UFloatingElement.js";
|
|
4
4
|
import { OverlayManager } from "../../utilities/OverlayManager.js";
|
|
5
5
|
import { styles } from "./UPopover.styles.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
7
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
8
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
9
|
import { html } from "lit";
|
|
@@ -151,6 +152,18 @@ var UPopover = class UPopover extends UFloatingElement {
|
|
|
151
152
|
this.hide();
|
|
152
153
|
};
|
|
153
154
|
}
|
|
155
|
+
static {
|
|
156
|
+
this.enumerated = {
|
|
157
|
+
...super.enumerated,
|
|
158
|
+
trigger: enumeratedValues()([
|
|
159
|
+
"click",
|
|
160
|
+
"contextmenu",
|
|
161
|
+
"hover",
|
|
162
|
+
"focus",
|
|
163
|
+
"manual"
|
|
164
|
+
])
|
|
165
|
+
};
|
|
166
|
+
}
|
|
154
167
|
static {
|
|
155
168
|
this.styles = [super.styles, styles];
|
|
156
169
|
}
|
|
@@ -17,6 +17,10 @@ export type ProgressBarStatus = 'default' | 'success' | 'warning' | 'error' | 'i
|
|
|
17
17
|
* @cssprop --progress-bar-buffer-color - 버퍼 바 색상
|
|
18
18
|
*/
|
|
19
19
|
export declare class UProgressBar extends UElement {
|
|
20
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
21
|
+
static enumerated: {
|
|
22
|
+
status: readonly ProgressBarStatus[];
|
|
23
|
+
};
|
|
20
24
|
static styles: import('lit').CSSResultGroup[];
|
|
21
25
|
/** 불확정 상태 (로딩 애니메이션 표시) */
|
|
22
26
|
indeterminate: boolean;
|
|
@@ -2,6 +2,7 @@ import { UElement } from "../UElement.js";
|
|
|
2
2
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
3
3
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
4
4
|
import { styles } from "./UProgressBar.styles.js";
|
|
5
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
5
6
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
7
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
8
|
import { html } from "lit";
|
|
@@ -23,6 +24,18 @@ var UProgressBar = class UProgressBar extends UElement {
|
|
|
23
24
|
this.progress = 0;
|
|
24
25
|
this.bufferProgress = 0;
|
|
25
26
|
}
|
|
27
|
+
static {
|
|
28
|
+
this.enumerated = {
|
|
29
|
+
...super.enumerated,
|
|
30
|
+
status: enumeratedValues()([
|
|
31
|
+
"default",
|
|
32
|
+
"success",
|
|
33
|
+
"warning",
|
|
34
|
+
"error",
|
|
35
|
+
"info"
|
|
36
|
+
])
|
|
37
|
+
};
|
|
38
|
+
}
|
|
26
39
|
static {
|
|
27
40
|
this.styles = [super.styles, styles];
|
|
28
41
|
}
|
|
@@ -67,7 +80,7 @@ var UProgressBar = class UProgressBar extends UElement {
|
|
|
67
80
|
</div>
|
|
68
81
|
|
|
69
82
|
<div class="content" part="content">
|
|
70
|
-
<slot></slot>
|
|
83
|
+
<bdi><slot></slot></bdi>
|
|
71
84
|
</div>
|
|
72
85
|
`;
|
|
73
86
|
}
|
|
@@ -16,6 +16,10 @@ export type ProgressRingStatus = 'default' | 'success' | 'warning' | 'error' | '
|
|
|
16
16
|
* @cssprop --progress-ring-buffer-color - 버퍼 링 색상
|
|
17
17
|
*/
|
|
18
18
|
export declare class UProgressRing extends UElement {
|
|
19
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
20
|
+
static enumerated: {
|
|
21
|
+
status: readonly ProgressRingStatus[];
|
|
22
|
+
};
|
|
19
23
|
static styles: import('lit').CSSResultGroup[];
|
|
20
24
|
/** 불확정 상태 (로딩 애니메이션 표시) */
|
|
21
25
|
indeterminate: boolean;
|
|
@@ -2,6 +2,7 @@ import { UElement } from "../UElement.js";
|
|
|
2
2
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
3
3
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
4
4
|
import { styles } from "./UProgressRing.styles.js";
|
|
5
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
5
6
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
7
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
8
|
import { html } from "lit";
|
|
@@ -26,6 +27,18 @@ var UProgressRing = class UProgressRing extends UElement {
|
|
|
26
27
|
this.dasharray = PATH_LENGTH.toString();
|
|
27
28
|
this.uuid = `pr-${Math.random().toString(36).slice(2, 8)}`;
|
|
28
29
|
}
|
|
30
|
+
static {
|
|
31
|
+
this.enumerated = {
|
|
32
|
+
...super.enumerated,
|
|
33
|
+
status: enumeratedValues()([
|
|
34
|
+
"default",
|
|
35
|
+
"success",
|
|
36
|
+
"warning",
|
|
37
|
+
"error",
|
|
38
|
+
"info"
|
|
39
|
+
])
|
|
40
|
+
};
|
|
41
|
+
}
|
|
29
42
|
static {
|
|
30
43
|
this.styles = [super.styles, styles];
|
|
31
44
|
}
|
|
@@ -19,6 +19,13 @@ export type RadioOrientation = "vertical" | "horizontal";
|
|
|
19
19
|
* 네이티브 라디오와 동일하게 프로그램적 value 세팅·옵션 등록으로는 발화하지 않는다.
|
|
20
20
|
*/
|
|
21
21
|
export declare class URadio extends UFormControlElement<string> {
|
|
22
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
23
|
+
static enumerated: {
|
|
24
|
+
type: readonly RadioType[];
|
|
25
|
+
appearance: readonly RadioAppearance[];
|
|
26
|
+
orientation: readonly RadioOrientation[];
|
|
27
|
+
descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[];
|
|
28
|
+
};
|
|
22
29
|
static styles: import('lit').CSSResultGroup[];
|
|
23
30
|
/** 라디오 유형 */
|
|
24
31
|
type: RadioType;
|
|
@@ -3,6 +3,7 @@ import { UFormControlElement } from "../UFormControlElement.js";
|
|
|
3
3
|
import { Locale } from "../../utilities/Locale.js";
|
|
4
4
|
import { UOption } from "../option/UOption.js";
|
|
5
5
|
import { styles } from "./URadio.styles.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
7
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
8
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
9
|
import { html } from "lit";
|
|
@@ -63,6 +64,18 @@ var URadio = class URadio extends UFormControlElement {
|
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
66
|
}
|
|
67
|
+
static {
|
|
68
|
+
this.enumerated = {
|
|
69
|
+
...super.enumerated,
|
|
70
|
+
type: enumeratedValues()(["default", "button"]),
|
|
71
|
+
appearance: enumeratedValues()([
|
|
72
|
+
"solid",
|
|
73
|
+
"outlined",
|
|
74
|
+
"soft"
|
|
75
|
+
]),
|
|
76
|
+
orientation: enumeratedValues()(["vertical", "horizontal"])
|
|
77
|
+
};
|
|
78
|
+
}
|
|
66
79
|
static {
|
|
67
80
|
this.styles = [super.styles, styles];
|
|
68
81
|
}
|
|
@@ -111,14 +124,14 @@ var URadio = class URadio extends UFormControlElement {
|
|
|
111
124
|
aria-disabled=${ifDefined(this.effectivelyDisabled ? "true" : void 0)}
|
|
112
125
|
aria-label=${ifDefined(this.resolvedAriaLabel)}
|
|
113
126
|
aria-description=${ifDefined(this.resolvedAriaDescription)}>
|
|
114
|
-
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
127
|
+
<bdi><slot @slotchange=${this.handleSlotChange}></slot></bdi>
|
|
115
128
|
</div>
|
|
116
129
|
</u-field>
|
|
117
130
|
`;
|
|
118
131
|
}
|
|
119
132
|
setValidity() {
|
|
120
133
|
const missing = this.required && !this.value;
|
|
121
|
-
this.commit(missing ? { valueMissing: true } : {}, missing ? Locale.getValue("valueMissing") : "", this);
|
|
134
|
+
this.commit(missing ? { valueMissing: true } : {}, missing ? Locale.getValue("valueMissing") : "", this.renderRoot.querySelector(".container") ?? void 0);
|
|
122
135
|
}
|
|
123
136
|
reset() {
|
|
124
137
|
this.value = void 0;
|
|
@@ -32,7 +32,11 @@ export declare class URating extends UFormControlElement<number> {
|
|
|
32
32
|
private symbolOff;
|
|
33
33
|
protected shouldValidate(changed: PropertyValues): boolean;
|
|
34
34
|
private get interactive();
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* 값이 바뀌면 호버 미리보기를 되돌리고 폼 값을 내보낸다 — 값에서만 정해지는 상태라 그리기 **전에** 맞춘다. `updated()` 에서 하면
|
|
37
|
+
* 호버한 뒤 클릭할 때마다 갱신이 한 번 더 예약된다(Lit 개발 모드 «갱신 뒤 갱신» 경고).
|
|
38
|
+
*/
|
|
39
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
|
36
40
|
render(): import('lit-html').TemplateResult<1>;
|
|
37
41
|
protected setValidity(): void;
|
|
38
42
|
private isStepMismatch;
|
|
@@ -106,8 +106,12 @@ var URating = class URating extends UFormControlElement {
|
|
|
106
106
|
get interactive() {
|
|
107
107
|
return !this.effectivelyDisabled && !this.readonly;
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
/**
|
|
110
|
+
* 값이 바뀌면 호버 미리보기를 되돌리고 폼 값을 내보낸다 — 값에서만 정해지는 상태라 그리기 **전에** 맞춘다. `updated()` 에서 하면
|
|
111
|
+
* 호버한 뒤 클릭할 때마다 갱신이 한 번 더 예약된다(Lit 개발 모드 «갱신 뒤 갱신» 경고).
|
|
112
|
+
*/
|
|
113
|
+
willUpdate(changedProperties) {
|
|
114
|
+
super.willUpdate(changedProperties);
|
|
111
115
|
if (changedProperties.has("value")) this.onChangeValue();
|
|
112
116
|
}
|
|
113
117
|
render() {
|
|
@@ -42,6 +42,13 @@ import { UPopover } from '../popover/UPopover.js';
|
|
|
42
42
|
* `search` 가 아니다 — `search` 는 «검색을 확정했다» 한 뜻만 가진다(`u-input type="search"`).
|
|
43
43
|
*/
|
|
44
44
|
export declare class USelect extends UFormControlElement<string | string[]> {
|
|
45
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
46
|
+
static enumerated: {
|
|
47
|
+
appearance: readonly FieldAppearance[];
|
|
48
|
+
size: readonly FieldSize[];
|
|
49
|
+
filter: readonly ("none" | "local")[];
|
|
50
|
+
descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[];
|
|
51
|
+
};
|
|
45
52
|
static styles: import('lit').CSSResultGroup[];
|
|
46
53
|
protected static fieldBox: boolean;
|
|
47
54
|
/** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
|
|
@@ -12,6 +12,7 @@ import "../popover/UPopover.js";
|
|
|
12
12
|
import { styles } from "./USelect.styles.js";
|
|
13
13
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
14
14
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
15
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
15
16
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
16
17
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
17
18
|
import { html, nothing } from "lit";
|
|
@@ -201,6 +202,23 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
201
202
|
this.emitChange();
|
|
202
203
|
};
|
|
203
204
|
}
|
|
205
|
+
static {
|
|
206
|
+
this.enumerated = {
|
|
207
|
+
...super.enumerated,
|
|
208
|
+
appearance: enumeratedValues()([
|
|
209
|
+
"outlined",
|
|
210
|
+
"soft",
|
|
211
|
+
"underlined",
|
|
212
|
+
"plain"
|
|
213
|
+
]),
|
|
214
|
+
size: enumeratedValues()([
|
|
215
|
+
"sm",
|
|
216
|
+
"md",
|
|
217
|
+
"lg"
|
|
218
|
+
]),
|
|
219
|
+
filter: enumeratedValues()(["local", "none"])
|
|
220
|
+
};
|
|
221
|
+
}
|
|
204
222
|
static {
|
|
205
223
|
this.styles = [super.styles, styles];
|
|
206
224
|
}
|
|
@@ -371,7 +389,7 @@ var USelect = class USelect extends UFormControlElement {
|
|
|
371
389
|
const option = this.options.find((o) => o.value === this.value);
|
|
372
390
|
if (!option) return html`
|
|
373
391
|
<span class="text-content placeholder">${this.placeholder ?? ""}</span>`;
|
|
374
|
-
return html`<span class="text-content">${option.getContent()}</span>`;
|
|
392
|
+
return html`<span class="text-content"><bdi>${option.getContent()}</bdi></span>`;
|
|
375
393
|
}
|
|
376
394
|
}
|
|
377
395
|
setValidity() {
|
|
@@ -13,6 +13,11 @@ export type SkeletonEffect = 'none' | 'pulse' | 'shimmer';
|
|
|
13
13
|
* @cssprop --skeleton-shimmer-color - shimmer 효과의 색상 (기본값: var(--u-neutral-100, #F5F5F5))
|
|
14
14
|
*/
|
|
15
15
|
export declare class USkeleton extends UElement {
|
|
16
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
17
|
+
static enumerated: {
|
|
18
|
+
shape: readonly SkeletonShape[];
|
|
19
|
+
effect: readonly SkeletonEffect[];
|
|
20
|
+
};
|
|
16
21
|
static styles: import('lit').CSSResultGroup[];
|
|
17
22
|
/** 모양 */
|
|
18
23
|
shape: SkeletonShape;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import { styles } from "./USkeleton.styles.js";
|
|
3
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
3
4
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
5
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
6
|
import { html } from "lit";
|
|
@@ -11,6 +12,21 @@ var USkeleton = class USkeleton extends UElement {
|
|
|
11
12
|
this.shape = "rectangle";
|
|
12
13
|
this.effect = "shimmer";
|
|
13
14
|
}
|
|
15
|
+
static {
|
|
16
|
+
this.enumerated = {
|
|
17
|
+
...super.enumerated,
|
|
18
|
+
shape: enumeratedValues()([
|
|
19
|
+
"rectangle",
|
|
20
|
+
"circle",
|
|
21
|
+
"rounded"
|
|
22
|
+
]),
|
|
23
|
+
effect: enumeratedValues()([
|
|
24
|
+
"none",
|
|
25
|
+
"pulse",
|
|
26
|
+
"shimmer"
|
|
27
|
+
])
|
|
28
|
+
};
|
|
29
|
+
}
|
|
14
30
|
static {
|
|
15
31
|
this.styles = [super.styles, styles];
|
|
16
32
|
}
|
|
@@ -15,6 +15,10 @@ export type SpinnerColor = "neutral" | "primary" | "secondary" | "info" | "succe
|
|
|
15
15
|
* @cssprop --spinner-indicator-speed - 회전 속도 (기본: 2s)
|
|
16
16
|
*/
|
|
17
17
|
export declare class USpinner extends UElement {
|
|
18
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
19
|
+
static enumerated: {
|
|
20
|
+
color: readonly SpinnerColor[];
|
|
21
|
+
};
|
|
18
22
|
static styles: import('lit').CSSResultGroup[];
|
|
19
23
|
/** 인디케이터 색상 */
|
|
20
24
|
color?: SpinnerColor;
|
|
@@ -3,6 +3,7 @@ import { styles } from "./USpinner.styles.js";
|
|
|
3
3
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
4
4
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
5
5
|
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
7
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
8
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
9
|
import { html } from "lit";
|
|
@@ -15,6 +16,29 @@ var USpinner = class USpinner extends UElement {
|
|
|
15
16
|
this.aria = new HostAria(this);
|
|
16
17
|
this.slotText = "";
|
|
17
18
|
}
|
|
19
|
+
static {
|
|
20
|
+
this.enumerated = {
|
|
21
|
+
...super.enumerated,
|
|
22
|
+
color: enumeratedValues()([
|
|
23
|
+
"neutral",
|
|
24
|
+
"primary",
|
|
25
|
+
"secondary",
|
|
26
|
+
"info",
|
|
27
|
+
"success",
|
|
28
|
+
"warning",
|
|
29
|
+
"danger",
|
|
30
|
+
"blue",
|
|
31
|
+
"green",
|
|
32
|
+
"yellow",
|
|
33
|
+
"red",
|
|
34
|
+
"orange",
|
|
35
|
+
"teal",
|
|
36
|
+
"cyan",
|
|
37
|
+
"purple",
|
|
38
|
+
"pink"
|
|
39
|
+
])
|
|
40
|
+
};
|
|
41
|
+
}
|
|
18
42
|
static {
|
|
19
43
|
this.styles = [super.styles, styles];
|
|
20
44
|
}
|
|
@@ -24,6 +24,10 @@ import { UElement } from '../UElement.js';
|
|
|
24
24
|
* 키보드든 `shift-end` 하나만 들으면 된다.
|
|
25
25
|
*/
|
|
26
26
|
export declare class USplitPanel extends UElement {
|
|
27
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
28
|
+
static enumerated: {
|
|
29
|
+
orientation: readonly ("vertical" | "horizontal")[];
|
|
30
|
+
};
|
|
27
31
|
static styles: import('lit').CSSResultGroup[];
|
|
28
32
|
/** 리사이즈 비활성화 여부 */
|
|
29
33
|
disabled: boolean;
|
|
@@ -3,6 +3,7 @@ import { Locale } from "../../utilities/Locale.js";
|
|
|
3
3
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
4
4
|
import { UElement } from "../UElement.js";
|
|
5
5
|
import { styles } from "./USplitPanel.styles.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
7
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
8
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
9
|
import { html } from "lit";
|
|
@@ -196,6 +197,12 @@ var USplitPanel = class USplitPanel extends UElement {
|
|
|
196
197
|
});
|
|
197
198
|
};
|
|
198
199
|
}
|
|
200
|
+
static {
|
|
201
|
+
this.enumerated = {
|
|
202
|
+
...super.enumerated,
|
|
203
|
+
orientation: enumeratedValues()(["horizontal", "vertical"])
|
|
204
|
+
};
|
|
205
|
+
}
|
|
199
206
|
static {
|
|
200
207
|
this.styles = [super.styles, styles];
|
|
201
208
|
}
|
|
@@ -58,6 +58,10 @@ export interface StepItem {
|
|
|
58
58
|
* @cssprop --steps-current-color - `compact` 의 지금 칸 색 (기본 `--steps-bar-color`) — 주 색이 잉크인 테마에서 지나온 칸과 가르려고
|
|
59
59
|
*/
|
|
60
60
|
export declare class USteps extends UElement {
|
|
61
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
62
|
+
static enumerated: {
|
|
63
|
+
appearance: readonly StepsAppearance[];
|
|
64
|
+
};
|
|
61
65
|
static styles: import('lit').CSSResultGroup[];
|
|
62
66
|
/** 단계 목록 */
|
|
63
67
|
items: StepItem[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import { Locale } from "../../utilities/Locale.js";
|
|
3
3
|
import { styles } from "./USteps.styles.js";
|
|
4
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
4
5
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
6
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
7
|
import { html, nothing } from "lit";
|
|
@@ -15,6 +16,16 @@ var USteps = class USteps extends UElement {
|
|
|
15
16
|
this.folded = false;
|
|
16
17
|
this.naturalWidth = 0;
|
|
17
18
|
}
|
|
19
|
+
static {
|
|
20
|
+
this.enumerated = {
|
|
21
|
+
...super.enumerated,
|
|
22
|
+
appearance: enumeratedValues()([
|
|
23
|
+
"line",
|
|
24
|
+
"bars",
|
|
25
|
+
"compact"
|
|
26
|
+
])
|
|
27
|
+
};
|
|
28
|
+
}
|
|
18
29
|
static {
|
|
19
30
|
this.styles = [super.styles, styles];
|
|
20
31
|
}
|
|
@@ -84,7 +95,7 @@ var USteps = class USteps extends UElement {
|
|
|
84
95
|
<li class="step" part="step step-${status}" data-status=${status}
|
|
85
96
|
aria-current=${ifDefined(status === "current" ? "step" : void 0)}>
|
|
86
97
|
<span class="marker" part="marker" aria-hidden="true">${status === "complete" && !plain ? CHECK : nothing}</span>
|
|
87
|
-
<span class="title" part="title">${item.label}</span>
|
|
98
|
+
<span class="title" part="title"><bdi>${item.label}</bdi></span>
|
|
88
99
|
${item.description ? html`<span class="description" part="description">${item.description}</span>` : nothing}
|
|
89
100
|
${status === "complete" || status === "hold" || status === "skipped" ? html`<span class="sr-only">${Locale.getValue(STATUS_WORD[status])}</span>` : nothing}
|
|
90
101
|
</li>
|
|
@@ -84,7 +84,7 @@ var USwitch = class USwitch extends UFormControlElement {
|
|
|
84
84
|
문서는 기본 슬롯만 가르쳐 왔으므로 문서 위반이
|
|
85
85
|
아니라 «선언은 있는데 동작이 없는» 자리다.
|
|
86
86
|
주의: 이 주석에 백틱을 쓰지 말 것 — html 태그드 템플릿을 그 자리에서 끝낸다. -->
|
|
87
|
-
<slot @slotchange=${this.handleLabelSlotChange}>${this.label}</slot>
|
|
87
|
+
<bdi><slot @slotchange=${this.handleLabelSlotChange}>${this.label}</slot></bdi>
|
|
88
88
|
<span class="required" ?hidden=${!this.required}>*</span>
|
|
89
89
|
</span>
|
|
90
90
|
</label>
|
|
@@ -23,6 +23,10 @@ export type TabCountAppearance = 'badge' | 'plain' | 'figure';
|
|
|
23
23
|
* @cssprop --tab-padding-inline - 가로 여백
|
|
24
24
|
*/
|
|
25
25
|
export declare class UTab extends UElement {
|
|
26
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
27
|
+
static enumerated: {
|
|
28
|
+
countAppearance: readonly TabCountAppearance[];
|
|
29
|
+
};
|
|
26
30
|
static styles: import('lit').CSSResultGroup[];
|
|
27
31
|
/** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
|
|
28
32
|
private readonly affixes;
|
|
@@ -6,6 +6,7 @@ import { Locale } from "../../utilities/Locale.js";
|
|
|
6
6
|
import { formatNumber } from "../../utilities/format.js";
|
|
7
7
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
8
8
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
9
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
9
10
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
10
11
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
11
12
|
import { html, nothing } from "lit";
|
|
@@ -34,6 +35,16 @@ var UTab = class UTab extends UElement {
|
|
|
34
35
|
})) this.remove();
|
|
35
36
|
};
|
|
36
37
|
}
|
|
38
|
+
static {
|
|
39
|
+
this.enumerated = {
|
|
40
|
+
...super.enumerated,
|
|
41
|
+
countAppearance: enumeratedValues()([
|
|
42
|
+
"badge",
|
|
43
|
+
"plain",
|
|
44
|
+
"figure"
|
|
45
|
+
])
|
|
46
|
+
};
|
|
47
|
+
}
|
|
37
48
|
static {
|
|
38
49
|
this.styles = [super.styles, styles];
|
|
39
50
|
}
|
|
@@ -100,7 +111,7 @@ var UTab = class UTab extends UElement {
|
|
|
100
111
|
const appearance = this.countAppearance ?? _UTab.countAppearance;
|
|
101
112
|
return html`
|
|
102
113
|
<span class="affix affix-prefix" ?hidden=${!this.affixes.has("prefix")}><slot name="prefix"></slot></span>
|
|
103
|
-
<slot></slot>
|
|
114
|
+
<bdi><slot></slot></bdi>
|
|
104
115
|
${this.count == null || Number.isNaN(this.count) ? nothing : html`<span class="count ${appearance === "plain" || appearance === "figure" ? appearance : "badge"}"
|
|
105
116
|
part="count">${formatNumber(this.count)}</span>`}
|
|
106
117
|
<span class="affix affix-suffix" ?hidden=${!this.affixes.has("suffix")}><slot name="suffix"></slot></span>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { UElement } from '../UElement.js';
|
|
3
|
+
/** 탭 띠의 외형 — `line`(기본 — 밑줄) · `tiles`(같은 폭의 칸 — 현재 칸은 채운 면). */
|
|
4
|
+
export type TabNavAppearance = 'line' | 'tiles';
|
|
3
5
|
/**
|
|
4
6
|
* 이동 링크의 탭 띠 — 저장된 보기(«열림 · 내 것 · 이번 주») 처럼 탭마다 URL 이 있는 자리.
|
|
5
7
|
*
|
|
@@ -18,9 +20,11 @@ import { UElement } from '../UElement.js';
|
|
|
18
20
|
* @cssprop --tab-nav-contrast - `tiles` 의 현재 칸 글자색 (기본: --u-primary-txt-color)
|
|
19
21
|
* @cssprop --tab-nav-tile-min - `tiles` 의 칸 최소 폭 (기본 7rem) — 이보다 좁아지면 다음 줄로 넘어간다
|
|
20
22
|
*/
|
|
21
|
-
/** 탭 띠의 외형 — `line`(기본 — 밑줄) · `tiles`(같은 폭의 칸 — 현재 칸은 채운 면). */
|
|
22
|
-
export type TabNavAppearance = 'line' | 'tiles';
|
|
23
23
|
export declare class UTabNav extends UElement {
|
|
24
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
25
|
+
static enumerated: {
|
|
26
|
+
appearance: readonly TabNavAppearance[];
|
|
27
|
+
};
|
|
24
28
|
static styles: import('lit').CSSResultGroup[];
|
|
25
29
|
/**
|
|
26
30
|
* 현재 보기 — 같은 `value` 의 탭이 `active` 가 된다. 비워 두면 담긴 탭의 `active` 를 건드리지 않는다
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
2
|
import { UTab } from "../tab/UTab.js";
|
|
3
3
|
import { styles } from "./UTabNav.styles.js";
|
|
4
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
4
5
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
6
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
7
|
import { html, nothing } from "lit";
|
|
@@ -18,6 +19,12 @@ var UTabNav = class UTabNav extends UElement {
|
|
|
18
19
|
this.tabs = slots.flatMap((s) => s.assignedElements({ flatten: true })).filter((el) => el instanceof UTab);
|
|
19
20
|
};
|
|
20
21
|
}
|
|
22
|
+
static {
|
|
23
|
+
this.enumerated = {
|
|
24
|
+
...super.enumerated,
|
|
25
|
+
appearance: enumeratedValues()(["line", "tiles"])
|
|
26
|
+
};
|
|
27
|
+
}
|
|
21
28
|
static {
|
|
22
29
|
this.styles = [super.styles, styles];
|
|
23
30
|
}
|
|
@@ -21,6 +21,11 @@ export type TabPanelPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
|
21
21
|
* 발생시키지 않는다(네이티브 select가 프로그래밍적 대입에는 change를 내지 않는 것과 동일한 관례).
|
|
22
22
|
*/
|
|
23
23
|
export declare class UTabPanel extends UElement {
|
|
24
|
+
/** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
|
|
25
|
+
static enumerated: {
|
|
26
|
+
appearance: readonly TabPanelAppearance[];
|
|
27
|
+
placement: readonly TabPanelPlacement[];
|
|
28
|
+
};
|
|
24
29
|
static styles: import('lit').CSSResultGroup[];
|
|
25
30
|
/** 탭 비활성화 여부 */
|
|
26
31
|
disabled: boolean;
|
|
@@ -3,6 +3,7 @@ import { UTab } from "../tab/UTab.js";
|
|
|
3
3
|
import { UPanel } from "../panel/UPanel.js";
|
|
4
4
|
import { styles } from "./UTabPanel.styles.js";
|
|
5
5
|
import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
7
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
8
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
9
|
import { html } from "lit";
|
|
@@ -88,6 +89,23 @@ var UTabPanel = class UTabPanel extends UElement {
|
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
91
|
}
|
|
92
|
+
static {
|
|
93
|
+
this.enumerated = {
|
|
94
|
+
...super.enumerated,
|
|
95
|
+
appearance: enumeratedValues()([
|
|
96
|
+
"line",
|
|
97
|
+
"card",
|
|
98
|
+
"pill",
|
|
99
|
+
"plain"
|
|
100
|
+
]),
|
|
101
|
+
placement: enumeratedValues()([
|
|
102
|
+
"top",
|
|
103
|
+
"bottom",
|
|
104
|
+
"left",
|
|
105
|
+
"right"
|
|
106
|
+
])
|
|
107
|
+
};
|
|
108
|
+
}
|
|
91
109
|
static {
|
|
92
110
|
this.styles = [super.styles, styles];
|
|
93
111
|
}
|