@iyulab/components 3.1.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/README.md +5 -0
  3. package/dist/components/UElement.d.ts +11 -0
  4. package/dist/components/UElement.js +14 -0
  5. package/dist/components/UElement.styles.js +9 -0
  6. package/dist/components/UFloatingElement.d.ts +7 -0
  7. package/dist/components/UFloatingElement.js +26 -1
  8. package/dist/components/UFormControlElement.d.ts +20 -3
  9. package/dist/components/UFormControlElement.js +46 -4
  10. package/dist/components/UOverlayElement.d.ts +4 -0
  11. package/dist/components/UOverlayElement.js +7 -0
  12. package/dist/components/alert/UAlert.d.ts +4 -0
  13. package/dist/components/alert/UAlert.js +7 -0
  14. package/dist/components/auto-scroll/UAutoScroll.d.ts +6 -2
  15. package/dist/components/auto-scroll/UAutoScroll.js +7 -0
  16. package/dist/components/avatar/UAvatar.d.ts +4 -0
  17. package/dist/components/avatar/UAvatar.js +11 -0
  18. package/dist/components/badge/UBadge.d.ts +6 -0
  19. package/dist/components/badge/UBadge.js +36 -1
  20. package/dist/components/badge/UBadge.styles.js +8 -0
  21. package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
  22. package/dist/components/button/UButton.d.ts +7 -0
  23. package/dist/components/button/UButton.js +41 -1
  24. package/dist/components/button/UButton.styles.js +8 -0
  25. package/dist/components/button-group/UButtonGroup.d.ts +4 -0
  26. package/dist/components/button-group/UButtonGroup.js +13 -0
  27. package/dist/components/calendar/UCalendar.d.ts +8 -0
  28. package/dist/components/calendar/UCalendar.js +30 -14
  29. package/dist/components/calendar/UCalendar.styles.js +3 -0
  30. package/dist/components/calendar/dates.d.ts +12 -0
  31. package/dist/components/calendar/dates.js +25 -1
  32. package/dist/components/card/UCard.d.ts +6 -0
  33. package/dist/components/card/UCard.js +15 -0
  34. package/dist/components/carousel/UCarousel.d.ts +4 -0
  35. package/dist/components/carousel/UCarousel.js +7 -0
  36. package/dist/components/checkbox/UCheckbox.d.ts +6 -0
  37. package/dist/components/checkbox/UCheckbox.js +25 -1
  38. package/dist/components/chip/UChip.d.ts +5 -0
  39. package/dist/components/chip/UChip.js +30 -0
  40. package/dist/components/command-palette/UCommandPalette.js +3 -0
  41. package/dist/components/copy-button/UCopyButton.d.ts +4 -0
  42. package/dist/components/copy-button/UCopyButton.js +13 -0
  43. package/dist/components/date-picker/UDatePicker.d.ts +11 -5
  44. package/dist/components/date-picker/UDatePicker.js +13 -0
  45. package/dist/components/date-range-picker/UDateRangePicker.d.ts +9 -2
  46. package/dist/components/date-range-picker/UDateRangePicker.js +13 -0
  47. package/dist/components/date-range-picker/presets.d.ts +2 -1
  48. package/dist/components/date-range-picker/presets.js +5 -5
  49. package/dist/components/dialog/UDialog.d.ts +5 -0
  50. package/dist/components/dialog/UDialog.js +17 -0
  51. package/dist/components/divider/UDivider.d.ts +5 -0
  52. package/dist/components/divider/UDivider.js +17 -1
  53. package/dist/components/divider/UDivider.styles.js +5 -0
  54. package/dist/components/drawer/UDrawer.d.ts +5 -0
  55. package/dist/components/drawer/UDrawer.js +12 -0
  56. package/dist/components/field/UField.d.ts +4 -0
  57. package/dist/components/field/UField.js +7 -0
  58. package/dist/components/icon-button/UIconButton.d.ts +4 -0
  59. package/dist/components/icon-button/UIconButton.js +13 -0
  60. package/dist/components/input/UInput.d.ts +7 -0
  61. package/dist/components/input/UInput.js +31 -0
  62. package/dist/components/input/UInput.styles.js +9 -0
  63. package/dist/components/menu/UMenu.d.ts +7 -0
  64. package/dist/components/menu/UMenu.js +18 -0
  65. package/dist/components/menu-item/UMenuItem.d.ts +5 -0
  66. package/dist/components/menu-item/UMenuItem.js +13 -1
  67. package/dist/components/option/UOption.d.ts +4 -0
  68. package/dist/components/option/UOption.js +8 -1
  69. package/dist/components/pagination/UPagination.d.ts +4 -0
  70. package/dist/components/pagination/UPagination.js +11 -0
  71. package/dist/components/popover/UPopover.d.ts +5 -0
  72. package/dist/components/popover/UPopover.js +13 -0
  73. package/dist/components/progress-bar/UProgressBar.d.ts +4 -0
  74. package/dist/components/progress-bar/UProgressBar.js +14 -1
  75. package/dist/components/progress-bar/UProgressBar.styles.js +5 -0
  76. package/dist/components/progress-ring/UProgressRing.d.ts +4 -0
  77. package/dist/components/progress-ring/UProgressRing.js +13 -0
  78. package/dist/components/radio/URadio.d.ts +7 -0
  79. package/dist/components/radio/URadio.js +14 -1
  80. package/dist/components/rating/URating.d.ts +5 -1
  81. package/dist/components/rating/URating.js +6 -2
  82. package/dist/components/select/USelect.d.ts +7 -0
  83. package/dist/components/select/USelect.js +19 -1
  84. package/dist/components/skeleton/USkeleton.d.ts +5 -0
  85. package/dist/components/skeleton/USkeleton.js +16 -0
  86. package/dist/components/spinner/USpinner.d.ts +4 -0
  87. package/dist/components/spinner/USpinner.js +24 -0
  88. package/dist/components/split-panel/USplitPanel.d.ts +4 -0
  89. package/dist/components/split-panel/USplitPanel.js +7 -0
  90. package/dist/components/steps/USteps.d.ts +4 -0
  91. package/dist/components/steps/USteps.js +12 -1
  92. package/dist/components/switch/USwitch.js +1 -1
  93. package/dist/components/tab/UTab.d.ts +4 -0
  94. package/dist/components/tab/UTab.js +12 -1
  95. package/dist/components/tab/UTab.styles.js +7 -0
  96. package/dist/components/tab-nav/UTabNav.d.ts +6 -2
  97. package/dist/components/tab-nav/UTabNav.js +7 -0
  98. package/dist/components/tab-panel/UTabPanel.d.ts +5 -0
  99. package/dist/components/tab-panel/UTabPanel.js +18 -0
  100. package/dist/components/tag/UTag.d.ts +6 -0
  101. package/dist/components/tag/UTag.js +32 -1
  102. package/dist/components/text/UText.d.ts +5 -0
  103. package/dist/components/text/UText.js +21 -0
  104. package/dist/components/textarea/UTextarea.d.ts +7 -0
  105. package/dist/components/textarea/UTextarea.js +24 -0
  106. package/dist/components/tree/UTree.d.ts +4 -0
  107. package/dist/components/tree/UTree.js +7 -0
  108. package/dist/components/tree-item/UTreeItem.d.ts +4 -0
  109. package/dist/components/tree-item/UTreeItem.js +8 -1
  110. package/dist/custom-elements.json +46642 -0
  111. package/dist/index.d.ts +1 -0
  112. package/dist/index.js +2 -1
  113. package/dist/plugins/cem-check.d.ts +29 -0
  114. package/dist/plugins/cem-check.js +90 -0
  115. package/dist/plugins/cem-config.d.ts +17 -0
  116. package/dist/plugins/cem-config.js +22 -0
  117. package/dist/plugins/cem-enumerated-plugin.d.ts +20 -0
  118. package/dist/plugins/cem-enumerated-plugin.js +105 -0
  119. package/dist/plugins/cem-events-plugin.d.ts +18 -0
  120. package/dist/plugins/cem-events-plugin.js +96 -0
  121. package/dist/utilities/enumerated.d.ts +20 -0
  122. package/dist/utilities/enumerated.js +24 -0
  123. package/dist/utilities/format.js +49 -15
  124. package/package.json +18 -15
  125. package/skills/iyulab-components/SKILL.md +5 -1
  126. package/skills/iyulab-components/references/components/checkbox.md +1 -1
  127. package/skills/iyulab-components/references/components/date-picker.md +2 -2
  128. package/skills/iyulab-components/references/components/date-range-picker.md +4 -4
  129. package/skills/iyulab-components/references/components/field.md +5 -0
  130. package/skills/iyulab-components/references/components/file-input.md +1 -1
  131. package/skills/iyulab-components/references/components/input.md +1 -1
  132. package/skills/iyulab-components/references/components/select.md +1 -1
  133. package/skills/iyulab-components/references/components/textarea.md +1 -1
@@ -5,6 +5,7 @@ import { UElement } from "../UElement.js";
5
5
  import { styles } from "./UCopyButton.styles.js";
6
6
  import { Locale } from "../../utilities/Locale.js";
7
7
  import { delegate } from "../../utilities/listenInShadow.js";
8
+ import { enumeratedValues } from "../../utilities/enumerated.js";
8
9
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
9
10
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
10
11
  import { html } from "lit";
@@ -46,6 +47,18 @@ var UCopyButton = class UCopyButton extends UElement {
46
47
  }
47
48
  };
48
49
  }
50
+ static {
51
+ this.enumerated = {
52
+ ...super.enumerated,
53
+ appearance: enumeratedValues()([
54
+ "solid",
55
+ "soft",
56
+ "outlined",
57
+ "plain",
58
+ "link"
59
+ ])
60
+ };
61
+ }
49
62
  static {
50
63
  this.styles = [super.styles, styles];
51
64
  }
@@ -21,11 +21,10 @@ export type { DateDisabledFn } from '../calendar/dates.js';
21
21
  * local UTC offset, so the value is unconditionally valid regardless of how coarse the time
22
22
  * input was.
23
23
  *
24
- * The calendar week always starts on Sunday, regardless of locale — harmless for the
25
- * locales this library currently ships (en/ko), but not correct for locales where Monday
26
- * (most of Europe) or Saturday is conventional. Fix when a consumer needs it: derive the
27
- * first day of week from `Intl.Locale(locale).weekInfo?.firstDay`, falling back to Sunday
28
- * where unsupported.
24
+ * The calendar week starts on the active locale's first day of the week — Monday for `de` `fr` `ru`,
25
+ * Saturday for `fa` `ar-EG`, Sunday for `en` `ko` `ja` — read from `Intl.Locale`. The weekday row, the
26
+ * empty cells before the 1st and the Home/End keys all follow it. A browser that does not report week
27
+ * information gets Sunday.
29
28
  *
30
29
  * Exposes a `:state(open)` custom state (via `ElementInternals.states`) while the calendar
31
30
  * popover is showing — style with `u-date-picker:state(open)::part(container)`. Unlike
@@ -61,6 +60,13 @@ export type { DateDisabledFn } from '../calendar/dates.js';
61
60
  * value assignment does not fire it (same contract as native form controls).
62
61
  */
63
62
  export declare class UDatePicker extends UFormControlElement<string> {
63
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
64
+ static enumerated: {
65
+ size: readonly FieldSize[];
66
+ mode: readonly DatePickerMode[];
67
+ format: readonly DateTextFormat[];
68
+ descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[];
69
+ };
64
70
  static styles: import('lit').CSSResultGroup[];
65
71
  protected static fieldBox: boolean;
66
72
  /** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
@@ -13,6 +13,7 @@ import { normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset } from "..
13
13
  import { styles } from "../calendar/picker.styles.js";
14
14
  import { styles as styles$1 } from "./UDatePicker.styles.js";
15
15
  import { delegate } from "../../utilities/listenInShadow.js";
16
+ import { enumeratedValues } from "../../utilities/enumerated.js";
16
17
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
17
18
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
18
19
  import { html } from "lit";
@@ -142,6 +143,18 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
142
143
  this.handleClearClick(e);
143
144
  };
144
145
  }
146
+ static {
147
+ this.enumerated = {
148
+ ...super.enumerated,
149
+ size: enumeratedValues()([
150
+ "sm",
151
+ "md",
152
+ "lg"
153
+ ]),
154
+ mode: enumeratedValues()(["date", "datetime"]),
155
+ format: enumeratedValues()(["iso", "locale"])
156
+ };
157
+ }
145
158
  static {
146
159
  this.styles = [
147
160
  super.styles,
@@ -40,8 +40,8 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
40
40
  * whose range reaches outside `min`/`max` is disabled; the one equal to the current range is
41
41
  * marked `aria-pressed="true"`. Relative ranges are computed when drawn.
42
42
  *
43
- * The calendar week starts on Sunday regardless of locale (same as `u-date-picker`); `thisWeek` and
44
- * `lastWeek` follow it.
43
+ * The calendar week starts on the active locale's first day of the week (same as `u-date-picker`);
44
+ * `thisWeek` and `lastWeek` follow it.
45
45
  *
46
46
  * Exposes a `:state(open)` custom state while the calendar is showing.
47
47
  *
@@ -75,6 +75,13 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
75
75
  * assignment does not fire it (same contract as native form controls).
76
76
  */
77
77
  export declare class UDateRangePicker extends UFormControlElement<string> {
78
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
79
+ static enumerated: {
80
+ size: readonly FieldSize[];
81
+ format: readonly DateTextFormat[];
82
+ mode: readonly DatePickerMode[];
83
+ descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[];
84
+ };
78
85
  static styles: import('lit').CSSResultGroup[];
79
86
  protected static fieldBox: boolean;
80
87
  /** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
@@ -15,6 +15,7 @@ import { devWarnOnce } from "../../utilities/devWarning.js";
15
15
  import { resolvePresets } from "./presets.js";
16
16
  import { styles as styles$1 } from "./UDateRangePicker.styles.js";
17
17
  import { delegate } from "../../utilities/listenInShadow.js";
18
+ import { enumeratedValues } from "../../utilities/enumerated.js";
18
19
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
19
20
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
20
21
  import { html } from "lit";
@@ -140,6 +141,18 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
140
141
  this.handleClearClick(e);
141
142
  };
142
143
  }
144
+ static {
145
+ this.enumerated = {
146
+ ...super.enumerated,
147
+ size: enumeratedValues()([
148
+ "sm",
149
+ "md",
150
+ "lg"
151
+ ]),
152
+ format: enumeratedValues()(["iso", "locale"]),
153
+ mode: enumeratedValues()(["date", "datetime"])
154
+ };
155
+ }
143
156
  static {
144
157
  this.styles = [
145
158
  super.styles,
@@ -18,9 +18,10 @@ export interface ResolvedPreset {
18
18
  start: string;
19
19
  end: string;
20
20
  }
21
+ /** `weekStart` is the locale's first day of the week (0 = Sunday … 6 = Saturday) — the same value the calendar grid draws. */
21
22
  type Builtin = {
22
23
  key: LocaleMessageKey;
23
- range: (today: Date) => [Date, Date];
24
+ range: (today: Date, weekStart: number) => [Date, Date];
24
25
  };
25
26
  /** Built-in ranges as pure functions of "today" (a local calendar day). Both ends are inclusive. */
26
27
  export declare const BUILTIN_PRESETS: Record<DateRangePresetName, Builtin>;
@@ -1,7 +1,6 @@
1
1
  import { Locale } from "../../utilities/Locale.js";
2
- import { addDays, addMonths, daysInMonth, parseISODate, toISODate } from "../calendar/dates.js";
2
+ import { addDays, addMonths, daysInMonth, parseISODate, startOfWeek, toISODate, weekStartDay } from "../calendar/dates.js";
3
3
  // src/components/date-range-picker/presets.ts
4
- var startOfWeek = (d) => addDays(d, -d.getDay());
5
4
  var endOfMonth = (d) => new Date(d.getFullYear(), d.getMonth(), daysInMonth(d));
6
5
  /**
7
6
  * The first day of the `n` months ending `d`: the same day `n` months back, plus one. A day the earlier month lacks
@@ -39,11 +38,11 @@ var BUILTIN_PRESETS = {
39
38
  },
40
39
  thisWeek: {
41
40
  key: "thisWeek",
42
- range: (t) => [startOfWeek(t), addDays(startOfWeek(t), 6)]
41
+ range: (t, w) => [startOfWeek(t, w), addDays(startOfWeek(t, w), 6)]
43
42
  },
44
43
  lastWeek: {
45
44
  key: "lastWeek",
46
- range: (t) => [addDays(startOfWeek(t), -7), addDays(startOfWeek(t), -1)]
45
+ range: (t, w) => [addDays(startOfWeek(t, w), -7), addDays(startOfWeek(t, w), -1)]
47
46
  },
48
47
  thisMonth: {
49
48
  key: "thisMonth",
@@ -65,13 +64,14 @@ var toISO = (v) => typeof v === "string" ? toISODate(parseISODate(v)) : toISODat
65
64
  */
66
65
  function resolvePresets(options, today, onUnknown) {
67
66
  const out = [];
67
+ const weekStart = weekStartDay(Locale.get());
68
68
  for (const option of options) if (typeof option === "string") {
69
69
  const builtin = BUILTIN_PRESETS[option];
70
70
  if (!builtin) {
71
71
  onUnknown?.(option);
72
72
  continue;
73
73
  }
74
- const [a, b] = builtin.range(today);
74
+ const [a, b] = builtin.range(today, weekStart);
75
75
  out.push(ordered(Locale.getValue(builtin.key), toISODate(a), toISODate(b)));
76
76
  } else {
77
77
  const [a, b] = option.range();
@@ -16,6 +16,11 @@ export type DialogPlacement = 'top-start' | 'top' | 'top-end' | 'start' | 'cente
16
16
  * @csspart close-btn - 닫기 버튼 요소
17
17
  */
18
18
  export declare class UDialog extends UOverlayElement {
19
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
20
+ static enumerated: {
21
+ placement: readonly DialogPlacement[];
22
+ mode: readonly import('../UOverlayElement.js').OverlayMode[];
23
+ };
19
24
  static styles: CSSResultGroup;
20
25
  /** 닫기 버튼 표시 여부 */
21
26
  closable: boolean;
@@ -4,6 +4,7 @@ import { UOverlayElement } from "../UOverlayElement.js";
4
4
  import { styles } from "./UDialog.styles.js";
5
5
  import { Locale } from "../../utilities/Locale.js";
6
6
  import { delegate } from "../../utilities/listenInShadow.js";
7
+ import { enumeratedValues } from "../../utilities/enumerated.js";
7
8
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
8
9
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
9
10
  import { html } from "lit";
@@ -18,6 +19,22 @@ var UDialog = class UDialog extends UOverlayElement {
18
19
  this.hasHeader = false;
19
20
  this.hasFooter = false;
20
21
  }
22
+ static {
23
+ this.enumerated = {
24
+ ...super.enumerated,
25
+ placement: enumeratedValues()([
26
+ "top-start",
27
+ "top",
28
+ "top-end",
29
+ "start",
30
+ "center",
31
+ "end",
32
+ "bottom-start",
33
+ "bottom",
34
+ "bottom-end"
35
+ ])
36
+ };
37
+ }
21
38
  static {
22
39
  this.styles = [super.styles, styles];
23
40
  }
@@ -16,6 +16,11 @@ export type DividerAlign = 'start' | 'center' | 'end';
16
16
  * @cssprop --divider-spacing - 상하/좌우 간격 (기본: 8px)
17
17
  */
18
18
  export declare class UDivider extends UElement {
19
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
20
+ static enumerated: {
21
+ line: readonly DividerLine[];
22
+ align: readonly DividerAlign[];
23
+ };
19
24
  static styles: import('lit').CSSResultGroup[];
20
25
  /** 수직 방향 여부 (기본값 수평) */
21
26
  vertical: boolean;
@@ -1,5 +1,6 @@
1
1
  import { UElement } from "../UElement.js";
2
2
  import { styles } from "./UDivider.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";
@@ -12,6 +13,21 @@ var UDivider = class UDivider extends UElement {
12
13
  this.line = "solid";
13
14
  this.align = "center";
14
15
  }
16
+ static {
17
+ this.enumerated = {
18
+ ...super.enumerated,
19
+ line: enumeratedValues()([
20
+ "solid",
21
+ "dashed",
22
+ "dotted"
23
+ ]),
24
+ align: enumeratedValues()([
25
+ "start",
26
+ "center",
27
+ "end"
28
+ ])
29
+ };
30
+ }
15
31
  static {
16
32
  this.styles = [super.styles, styles];
17
33
  }
@@ -20,7 +36,7 @@ var UDivider = class UDivider extends UElement {
20
36
  <div class="base" part="base">
21
37
  <span class="line" part="line-start"></span>
22
38
  <span class="label" part="label">
23
- <slot @slotchange=${this.handleSlotChange}></slot>
39
+ <bdi><slot @slotchange=${this.handleSlotChange}></slot></bdi>
24
40
  </span>
25
41
  <span class="line" part="line-end"></span>
26
42
  </div>
@@ -47,6 +47,11 @@ var styles = css`
47
47
  display: inline-flex;
48
48
  align-items: center;
49
49
  }
50
+
51
+ .label > bdi {
52
+ display: inline-flex;
53
+ align-items: center;
54
+ }
50
55
 
51
56
 
52
57
  .line {
@@ -19,6 +19,11 @@ export type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
19
19
  * 화면이 좁으면 max-width/max-height:100%로 자동 축소된다.
20
20
  */
21
21
  export declare class UDrawer extends UOverlayElement {
22
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
23
+ static enumerated: {
24
+ placement: readonly DrawerPlacement[];
25
+ mode: readonly import('../UOverlayElement.js').OverlayMode[];
26
+ };
22
27
  static styles: CSSResultGroup;
23
28
  /** 닫기 버튼 표시 여부 */
24
29
  closable: boolean;
@@ -4,6 +4,7 @@ import { UOverlayElement } from "../UOverlayElement.js";
4
4
  import { styles } from "./UDrawer.styles.js";
5
5
  import { Locale } from "../../utilities/Locale.js";
6
6
  import { delegate } from "../../utilities/listenInShadow.js";
7
+ import { enumeratedValues } from "../../utilities/enumerated.js";
7
8
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
8
9
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
9
10
  import { html } from "lit";
@@ -17,6 +18,17 @@ var UDrawer = class UDrawer extends UOverlayElement {
17
18
  this.hasHeader = false;
18
19
  this.hasFooter = false;
19
20
  }
21
+ static {
22
+ this.enumerated = {
23
+ ...super.enumerated,
24
+ placement: enumeratedValues()([
25
+ "left",
26
+ "right",
27
+ "top",
28
+ "bottom"
29
+ ])
30
+ };
31
+ }
20
32
  static {
21
33
  this.styles = [super.styles, styles];
22
34
  }
@@ -25,6 +25,10 @@ export type FieldDescriptionDisplay = 'inline' | 'hint';
25
25
  * 감싼 칸처럼 `:state(field)` 를 싣는다 — 줄 배치에서 아래 끝으로 서는 «입력 상자를 가진 컨트롤» 이다(`UFormControlElement.fieldBox`).
26
26
  */
27
27
  export declare class UField extends UElement {
28
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
29
+ static enumerated: {
30
+ descriptionDisplay: readonly FieldDescriptionDisplay[];
31
+ };
28
32
  static styles: import('lit').CSSResultGroup[];
29
33
  private readonly fieldInternals?;
30
34
  /** 비활성화 여부 */
@@ -5,6 +5,7 @@ import { styles } from "./UField.styles.js";
5
5
  import "../icon/UIcon.js";
6
6
  import "../tooltip/UTooltip.js";
7
7
  import { delegate } from "../../utilities/listenInShadow.js";
8
+ import { enumeratedValues } from "../../utilities/enumerated.js";
8
9
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
9
10
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
10
11
  import { html, nothing } from "lit";
@@ -140,6 +141,12 @@ var UField = class UField extends UElement {
140
141
  this.focus();
141
142
  };
142
143
  }
144
+ static {
145
+ this.enumerated = {
146
+ ...super.enumerated,
147
+ descriptionDisplay: enumeratedValues()(["inline", "hint"])
148
+ };
149
+ }
143
150
  static {
144
151
  this.styles = [super.styles, styles];
145
152
  }
@@ -13,6 +13,10 @@ import { IconLibrary } from '../icon/UIcon.js';
13
13
  * @csspart tooltip - 툴팁 요소
14
14
  */
15
15
  export declare class UIconButton extends UElement {
16
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
17
+ static enumerated: {
18
+ appearance: readonly ButtonAppearance[];
19
+ };
16
20
  static styles: import('lit').CSSResultGroup[];
17
21
  /** 호스트의 `.focus()` 를 안쪽 컨트롤로 위임한다 — `UButton` 과 같은 계약(호스트는 포커스 가능하지 않다). */
18
22
  static shadowRootOptions: ShadowRootInit;
@@ -4,6 +4,7 @@ import "../tooltip/UTooltip.js";
4
4
  import { UElement } from "../UElement.js";
5
5
  import { FORWARDED_ARIA, readForwardedAria } from "../button/forwarded-aria.js";
6
6
  import { styles } from "./UIconButton.styles.js";
7
+ import { enumeratedValues } from "../../utilities/enumerated.js";
7
8
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
8
9
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
9
10
  import { html } from "lit";
@@ -25,6 +26,18 @@ var UIconButton = class UIconButton extends UElement {
25
26
  this.slotText = nodes.map((n) => n.textContent ?? "").join(" ").replace(/\s+/g, " ").trim();
26
27
  };
27
28
  }
29
+ static {
30
+ this.enumerated = {
31
+ ...super.enumerated,
32
+ appearance: enumeratedValues()([
33
+ "solid",
34
+ "soft",
35
+ "outlined",
36
+ "plain",
37
+ "link"
38
+ ])
39
+ };
40
+ }
28
41
  static {
29
42
  this.styles = [super.styles, styles];
30
43
  }
@@ -51,6 +51,13 @@ export type FieldSize = 'sm' | 'md' | 'lg';
51
51
  * @event search - `type="search"` 에서 검색을 확정할 때(Enter · 지우기 버튼 · 값이 있는 Escape) — `detail.query` 는 앞뒤 공백을 걷은 값
52
52
  */
53
53
  export declare class UInput extends UFormControlElement<string> {
54
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
55
+ static enumerated: {
56
+ appearance: readonly FieldAppearance[];
57
+ type: readonly InputType[];
58
+ size: readonly FieldSize[];
59
+ descriptionDisplay: readonly import('../field/UField.js').FieldDescriptionDisplay[];
60
+ };
54
61
  static styles: import('lit').CSSResultGroup[];
55
62
  protected static fieldBox: boolean;
56
63
  /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
@@ -11,6 +11,7 @@ import { styles } from "./UInput.styles.js";
11
11
  import { isImeComposing } from "../../utilities/keyboard.js";
12
12
  import { SlotPresence } from "../../utilities/slotPresence.js";
13
13
  import { delegate } from "../../utilities/listenInShadow.js";
14
+ import { enumeratedValues } from "../../utilities/enumerated.js";
14
15
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
15
16
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
16
17
  import { html } from "lit";
@@ -169,6 +170,36 @@ var UInput = class UInput extends UFormControlElement {
169
170
  if (this.options.length === 0) e.preventDefault();
170
171
  };
171
172
  }
173
+ static {
174
+ this.enumerated = {
175
+ ...super.enumerated,
176
+ appearance: enumeratedValues()([
177
+ "outlined",
178
+ "soft",
179
+ "underlined",
180
+ "plain"
181
+ ]),
182
+ type: enumeratedValues()([
183
+ "text",
184
+ "password",
185
+ "email",
186
+ "tel",
187
+ "url",
188
+ "search",
189
+ "number",
190
+ "date",
191
+ "time",
192
+ "datetime-local",
193
+ "month",
194
+ "week"
195
+ ]),
196
+ size: enumeratedValues()([
197
+ "sm",
198
+ "md",
199
+ "lg"
200
+ ])
201
+ };
202
+ }
172
203
  static {
173
204
  this.styles = [super.styles, styles];
174
205
  }
@@ -166,6 +166,15 @@ var styles = css`
166
166
  input[type="number"] {
167
167
  -moz-appearance: textfield;
168
168
  }
169
+
170
+
171
+
172
+ :host([type="number"]) input {
173
+ direction: ltr;
174
+ }
175
+ :host([type="number"]:dir(rtl)) input {
176
+ text-align: end;
177
+ }
169
178
  input[type="number"]::-webkit-inner-spin-button,
170
179
  input[type="number"]::-webkit-outer-spin-button {
171
180
  -webkit-appearance: none;
@@ -16,6 +16,13 @@ export type MenuAppearance = 'outlined' | 'plain';
16
16
  * @event change - 선택된 아이템이 변경될 때 발생
17
17
  */
18
18
  export declare class UMenu extends UElement {
19
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
20
+ static enumerated: {
21
+ appearance: readonly MenuAppearance[];
22
+ selection: readonly MenuSelection[];
23
+ indicator: readonly MenuItemIndicator[];
24
+ align: readonly MenuItemAlign[];
25
+ };
19
26
  static styles: import('lit').CSSResultGroup[];
20
27
  /** 외형 정도 — `outlined`(기본) · `plain`(테두리·여백 없음 — 다른 표면 안에 넣을 때) */
21
28
  appearance: MenuAppearance;
@@ -2,6 +2,7 @@ import { UElement } from "../UElement.js";
2
2
  import { UMenuItem } from "../menu-item/UMenuItem.js";
3
3
  import { styles } from "./UMenu.styles.js";
4
4
  import { isFromNestedControl } from "../../utilities/nestedControl.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";
@@ -95,6 +96,23 @@ var UMenu = class UMenu extends UElement {
95
96
  }
96
97
  };
97
98
  }
99
+ static {
100
+ this.enumerated = {
101
+ ...super.enumerated,
102
+ appearance: enumeratedValues()(["outlined", "plain"]),
103
+ selection: enumeratedValues()([
104
+ "none",
105
+ "single",
106
+ "multiple"
107
+ ]),
108
+ indicator: enumeratedValues()(["highlight", "check"]),
109
+ align: enumeratedValues()([
110
+ "left",
111
+ "center",
112
+ "right"
113
+ ])
114
+ };
115
+ }
98
116
  static {
99
117
  this.styles = [super.styles, styles];
100
118
  }
@@ -20,6 +20,11 @@ export type MenuItemAlign = 'left' | 'center' | 'right';
20
20
  * @cssprop --menu-item-color - 선택/활성 상태의 기준색 (기본: --u-primary-color)
21
21
  */
22
22
  export declare class UMenuItem extends UElement {
23
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
24
+ static enumerated: {
25
+ indicator: readonly MenuItemIndicator[];
26
+ align: readonly MenuItemAlign[];
27
+ };
23
28
  static styles: import('lit').CSSResultGroup[];
24
29
  /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
25
30
  private readonly affixes;
@@ -7,6 +7,7 @@ import { isFromNestedControl } from "../../utilities/nestedControl.js";
7
7
  import { HostAria } from "../../utilities/hostAria.js";
8
8
  import { SlotPresence } from "../../utilities/slotPresence.js";
9
9
  import { delegate } from "../../utilities/listenInShadow.js";
10
+ import { enumeratedValues } from "../../utilities/enumerated.js";
10
11
  import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
11
12
  import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
12
13
  import { html } from "lit";
@@ -61,6 +62,17 @@ var UMenuItem = class UMenuItem extends UElement {
61
62
  this.propagate();
62
63
  };
63
64
  }
65
+ static {
66
+ this.enumerated = {
67
+ ...super.enumerated,
68
+ indicator: enumeratedValues()(["highlight", "check"]),
69
+ align: enumeratedValues()([
70
+ "left",
71
+ "center",
72
+ "right"
73
+ ])
74
+ };
75
+ }
64
76
  static {
65
77
  this.styles = [super.styles, styles];
66
78
  }
@@ -109,7 +121,7 @@ var UMenuItem = class UMenuItem extends UElement {
109
121
 
110
122
  <span class="affix affix-prefix" ?hidden=${!this.affixes.has("prefix")}><slot name="prefix"></slot></span>
111
123
  <div class="content" part="content">
112
- <slot @slotchange=${this.handleSlotChange}></slot>
124
+ <bdi><slot @slotchange=${this.handleSlotChange}></slot></bdi>
113
125
  </div>
114
126
  <span class="affix affix-suffix" ?hidden=${!this.affixes.has("suffix")}><slot name="suffix"></slot></span>
115
127
 
@@ -29,6 +29,10 @@ export type OptionMarker = 'radio' | 'check';
29
29
  * @cssprop --option-padding-inline - 가로 여백
30
30
  */
31
31
  export declare class UOption extends UElement {
32
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
33
+ static enumerated: {
34
+ marker: readonly OptionMarker[];
35
+ };
32
36
  static styles: import('lit').CSSResultGroup[];
33
37
  /** 접두 · 접미 슬롯이 찼는가 — 그 옆 간격은 섀도 안 상자가 갖는다(`::slotted` 여백은 문서의 전역 리셋에 진다). */
34
38
  private readonly affixes;
@@ -2,6 +2,7 @@ import "../icon/UIcon.js";
2
2
  import { UElement } from "../UElement.js";
3
3
  import { styles } from "./UOption.styles.js";
4
4
  import { SlotPresence } from "../../utilities/slotPresence.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, nothing } from "lit";
@@ -16,6 +17,12 @@ var UOption = class UOption extends UElement {
16
17
  this.active = false;
17
18
  this.value = "";
18
19
  }
20
+ static {
21
+ this.enumerated = {
22
+ ...super.enumerated,
23
+ marker: enumeratedValues()(["radio", "check"])
24
+ };
25
+ }
19
26
  static {
20
27
  this.styles = [super.styles, styles];
21
28
  }
@@ -42,7 +49,7 @@ var UOption = class UOption extends UElement {
42
49
  ${this.renderMarker()}
43
50
  <span class="affix affix-prefix" ?hidden=${!this.affixes.has("prefix")}><slot name="prefix"></slot></span>
44
51
  <div class="content" part="content">
45
- <slot></slot>
52
+ <bdi><slot></slot></bdi>
46
53
  </div>
47
54
  <span class="affix affix-suffix" ?hidden=${!this.affixes.has("suffix")}><slot name="suffix"></slot></span>
48
55
  </div>
@@ -24,6 +24,10 @@ export interface PageChangeDetail {
24
24
  * @csspart page-size - «페이지당 행 수» 선택
25
25
  */
26
26
  export declare class UPagination extends UElement {
27
+ /** 목록 밖의 값은 어떤 규칙에도 안 걸려 조용히 기본 모양이 된다 — 개발 모드에서 한 번 알린다(`UElement.enumerated`). */
28
+ static enumerated: {
29
+ size: readonly PaginationSize[];
30
+ };
27
31
  static styles: import('lit').CSSResultGroup[];
28
32
  /** 현재 페이지 — 0 기준. 범위를 넘으면 마지막(또는 첫) 페이지로 보인다. */
29
33
  page: number;