@iyulab/components 2.35.1 → 2.37.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 +33 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/components/UFloatingElement.js +3 -3
- package/dist/components/UFormControlElement.d.ts +5 -0
- package/dist/components/UFormControlElement.js +6 -2
- package/dist/components/UOverlayElement.js +3 -3
- package/dist/components/alert/UAlert.js +6 -6
- package/dist/components/auto-scroll/UAutoScroll.js +2 -2
- package/dist/components/avatar/UAvatar.js +2 -2
- package/dist/components/badge/UBadge.js +4 -4
- package/dist/components/breadcrumb/UBreadcrumb.js +3 -3
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +3 -3
- package/dist/components/button/UButton.js +3 -3
- package/dist/components/button/UButton.styles.js +6 -2
- package/dist/components/button-group/UButtonGroup.js +2 -2
- package/dist/components/calendar/UCalendar.js +4 -4
- package/dist/components/calendar/datetime.js +1 -1
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.js +5 -5
- package/dist/components/carousel/UCarousel.styles.js +4 -0
- package/dist/components/checkbox/UCheckbox.js +4 -4
- package/dist/components/chip/UChip.js +6 -6
- package/dist/components/command-palette/UCommandPalette.js +6 -6
- package/dist/components/copy-button/UCopyButton.js +5 -5
- package/dist/components/date-picker/UDatePicker.d.ts +1 -0
- package/dist/components/date-picker/UDatePicker.js +11 -8
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +1 -0
- package/dist/components/date-range-picker/UDateRangePicker.js +12 -9
- package/dist/components/dialog/UDialog.js +4 -4
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/drawer/UDrawer.js +4 -4
- package/dist/components/expander/UExpander.js +3 -3
- package/dist/components/field/UField.d.ts +3 -0
- package/dist/components/field/UField.js +6 -4
- package/dist/components/file-input/UFileInput.d.ts +1 -0
- package/dist/components/file-input/UFileInput.js +8 -5
- package/dist/components/form/UForm.js +3 -3
- package/dist/components/icon/UIcon.js +2 -2
- package/dist/components/icon-button/UIconButton.js +4 -4
- package/dist/components/input/UInput.d.ts +1 -0
- package/dist/components/input/UInput.js +12 -9
- package/dist/components/menu/UMenu.js +3 -3
- package/dist/components/menu-item/UMenuItem.js +5 -5
- package/dist/components/option/UOption.js +4 -4
- package/dist/components/option-group/UOptionGroup.js +2 -2
- package/dist/components/pagination/UPagination.js +5 -5
- package/dist/components/panel/UPanel.js +2 -2
- package/dist/components/popover/UPopover.js +3 -3
- package/dist/components/progress-bar/UProgressBar.js +2 -2
- package/dist/components/progress-ring/UProgressRing.js +2 -2
- package/dist/components/radio/URadio.js +4 -4
- package/dist/components/rating/URating.js +5 -5
- package/dist/components/select/USelect.d.ts +1 -0
- package/dist/components/select/USelect.js +13 -10
- package/dist/components/skeleton/USkeleton.js +2 -2
- package/dist/components/slider/USlider.js +5 -5
- package/dist/components/spinner/USpinner.js +4 -4
- package/dist/components/split-panel/USplitPanel.js +4 -4
- package/dist/components/steps/USteps.js +3 -3
- package/dist/components/switch/USwitch.js +3 -3
- package/dist/components/tab/UTab.js +6 -6
- package/dist/components/tab-nav/UTabNav.js +2 -2
- package/dist/components/tab-panel/UTabPanel.js +4 -4
- package/dist/components/tag/UTag.js +3 -3
- package/dist/components/text/UText.js +2 -2
- package/dist/components/textarea/UTextarea.d.ts +1 -0
- package/dist/components/textarea/UTextarea.js +7 -4
- package/dist/components/tooltip/UTooltip.js +3 -3
- package/dist/components/tree/UTree.js +3 -3
- package/dist/components/tree-item/UTreeItem.js +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -25
- package/dist/utilities/Dialog.js +2 -2
- package/dist/utilities/Theme.js +1 -1
- package/dist/utilities/Toast.js +1 -1
- package/dist/utilities/numberFormat.d.ts +23 -0
- package/dist/utilities/numberFormat.js +260 -0
- package/package.json +2 -2
- package/skills/iyulab-components/SKILL.md +1 -0
- package/skills/iyulab-components/references/usage.md +14 -0
- package/skills/iyulab-components/references/utilities/format.md +2 -0
- package/skills/iyulab-components/references/utilities/number-format.md +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.37.0] - 2026-10-31
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`:state(field)` on controls that draw an input box** — `u-input`, `u-select`, `u-textarea`, `u-date-picker`,
|
|
8
|
+
`u-date-range-picker`, `u-file-input` and the `u-field` wrapper. Toggles that sit beside their text (`u-checkbox`,
|
|
9
|
+
`u-switch`, `u-radio`) do not carry it. A layout that stands fields on their bottom edge and buttons, toggles and text
|
|
10
|
+
on one text line can select `:state(field)` instead of listing tags (write it as an override of a rule for every
|
|
11
|
+
item — Chromium does not recompute a negated `:not(:state(field))` when the state arrives). A `UFormControlElement` subclass from
|
|
12
|
+
another package opts in with `protected static override fieldBox = true`.
|
|
13
|
+
|
|
14
|
+
## [2.36.0] - 2026-10-30
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **`applyNumberFormat(value, format, locale?)`** — one number format for tables, sheets and widgets: a spreadsheet
|
|
19
|
+
format code (`#,##0.00`, `0.0%`, `#,##0;[Red](#,##0)`, `#,##0원`, sections, scaling, literals, `[$₩-412]`) or
|
|
20
|
+
`Intl.NumberFormat` options. Returns `{ text, tone? }` — a section color becomes a theme status tone — or `null`
|
|
21
|
+
for code syntax it does not support. Neither path writes a signed zero. Exported with the `NumberFormat`,
|
|
22
|
+
`FormattedNumber` and `FormatTone` types.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **`u-button` shows its keyboard focus ring.** The ring is the inner button's outline, drawn 2px outside the
|
|
27
|
+
host box, and the host clipped its overflow — so a focused `u-button` (every appearance, link buttons too) looked
|
|
28
|
+
exactly like an unfocused one (WCAG 2.4.7). The host no longer clips; the inner button does, which keeps the content
|
|
29
|
+
inside the rounded box without cutting its own outline.
|
|
30
|
+
- **The focused name tab of `u-carousel pagination-style="labels"` shows its whole ring.** The row spans the host's width
|
|
31
|
+
at its bottom edge and the host clips its slides, so the ring drawn outside the tab was cut on three sides; it is now
|
|
32
|
+
drawn just inside the tab.
|
|
33
|
+
- **A `u-button` label too long for its width ends in «…».** The label box did not shrink, so the declared ellipsis
|
|
34
|
+
never applied and the text was simply cut at the edge.
|
|
35
|
+
|
|
3
36
|
## [2.35.1] - 2026-10-25
|
|
4
37
|
|
|
5
38
|
### Fixed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateMetadata.js
|
|
2
2
|
function __decorateMetadata(k, v) {
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UElement } from "./UElement.js";
|
|
2
1
|
import { getParentElement, querySelectorAllWithin } from "../utilities/elements.js";
|
|
2
|
+
import { UElement } from "./UElement.js";
|
|
3
3
|
import { styles } from "./UFloatingElement.styles.js";
|
|
4
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.
|
|
5
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { property, state } from "lit/decorators.js";
|
|
7
7
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, getOverflowAncestors, hide, offset, shift } from "@floating-ui/dom";
|
|
8
8
|
// src/components/UFloatingElement.ts
|
|
@@ -88,6 +88,11 @@ export declare abstract class UFormControlElement<T> extends UElement {
|
|
|
88
88
|
/** form-associated 표준 콜백 — 조상 fieldset 의 비활성 상태가 바뀔 때 UA 가 부른다. */
|
|
89
89
|
formDisabledCallback(disabled: boolean): void;
|
|
90
90
|
constructor();
|
|
91
|
+
/**
|
|
92
|
+
* 입력 상자를 그리는 컨트롤인가(`u-input` · `u-select` · 날짜 피커 …) — 참이면 `:state(field)` 를 싣는다.
|
|
93
|
+
* 체크박스 · 스위치처럼 글자 옆에 서는 토글은 거짓이다. 하위 클래스가 `static override fieldBox = true` 로 켠다.
|
|
94
|
+
*/
|
|
95
|
+
protected static fieldBox: boolean;
|
|
91
96
|
connectedCallback(): void;
|
|
92
97
|
/** 자기 `validate()` 가 `internals.checkValidity()` 를 부르는 동안 — 그때 오는 `invalid` 는 보고가 아니다. */
|
|
93
98
|
private quietCheck;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "./UElement.js";
|
|
2
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UFormControlElement.styles.js";
|
|
3
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { property, state } from "lit/decorators.js";
|
|
6
6
|
// src/components/UFormControlElement.ts
|
|
7
7
|
/**
|
|
@@ -101,9 +101,13 @@ var UFormControlElement = class extends UElement {
|
|
|
101
101
|
};
|
|
102
102
|
this.addEventListener("invalid", this.handleInvalid);
|
|
103
103
|
}
|
|
104
|
+
static {
|
|
105
|
+
this.fieldBox = false;
|
|
106
|
+
}
|
|
104
107
|
connectedCallback() {
|
|
105
108
|
super.connectedCallback();
|
|
106
109
|
if (!this.internals && "attachInternals" in this) this.internals = this.attachInternals();
|
|
110
|
+
if (this.constructor.fieldBox) this.internals?.states.add("field");
|
|
107
111
|
}
|
|
108
112
|
/**
|
|
109
113
|
* 검증 메시지는 `setValidity()` 가 `internals` 에 적어 둔 문장이다 — 다시 그리기만 하면 옛 언어가 그대로 나온다.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UElement } from "./UElement.js";
|
|
2
1
|
import { isFocusCandidate, querySelectorDeep } from "../utilities/elements.js";
|
|
3
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
2
|
import { OverlayManager } from "../utilities/OverlayManager.js";
|
|
6
3
|
import { arrayAttrConverter } from "../utilities/converters.js";
|
|
7
4
|
import { HostAria, nameFromSlot } from "../utilities/hostAria.js";
|
|
5
|
+
import { UElement } from "./UElement.js";
|
|
8
6
|
import { styles } from "./UOverlayElement.styles.js";
|
|
7
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { property } from "lit/decorators.js";
|
|
10
10
|
import { createFocusTrap } from "focus-trap";
|
|
11
11
|
// src/components/UOverlayElement.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
1
|
import "../button/UButton.js";
|
|
7
|
-
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
8
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UElement } from "../UElement.js";
|
|
9
4
|
import { styles } from "./UAlert.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
12
|
// src/components/alert/UAlert.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
3
|
import { styles } from "./UAutoScroll.styles.js";
|
|
6
4
|
import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
// src/components/auto-scroll/UAutoScroll.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UAvatar.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
// src/components/avatar/UAvatar.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
5
|
-
import "../icon/UIcon.js";
|
|
6
2
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
7
3
|
import { styles } from "./UBadge.styles.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
5
|
+
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html, nothing } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
10
|
// src/components/badge/UBadge.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UBreadcrumb.styles.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
8
8
|
// src/components/breadcrumb/UBreadcrumb.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
5
2
|
import { styles } from "./UBreadcrumbItem.styles.js";
|
|
3
|
+
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
4
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../spinner/USpinner.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UButton.styles.js";
|
|
6
4
|
import { FORWARDED_ARIA, readForwardedAria } from "./forwarded-aria.js";
|
|
7
5
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -59,7 +59,8 @@ var styles = css`
|
|
|
59
59
|
background-color: transparent;
|
|
60
60
|
|
|
61
61
|
transition: all var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
62
|
-
|
|
62
|
+
|
|
63
|
+
|
|
63
64
|
user-select: none;
|
|
64
65
|
cursor: pointer;
|
|
65
66
|
}
|
|
@@ -335,6 +336,8 @@ var styles = css`
|
|
|
335
336
|
padding: var(--btn-padding-block, 0.5em) var(--btn-padding-inline, 1em);
|
|
336
337
|
border: 1px solid var(--btn-border-color, transparent);
|
|
337
338
|
border-radius: inherit;
|
|
339
|
+
|
|
340
|
+
overflow: hidden;
|
|
338
341
|
|
|
339
342
|
|
|
340
343
|
|
|
@@ -379,7 +382,8 @@ var styles = css`
|
|
|
379
382
|
}
|
|
380
383
|
|
|
381
384
|
.content {
|
|
382
|
-
|
|
385
|
+
|
|
386
|
+
flex: 1 1 auto;
|
|
383
387
|
min-width: 0;
|
|
384
388
|
line-height: 1.5;
|
|
385
389
|
display: inline-flex;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { UButton } from "../button/UButton.js";
|
|
5
3
|
import { UIconButton } from "../icon-button/UIconButton.js";
|
|
6
4
|
import { styles } from "./UButtonGroup.styles.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
// src/components/button-group/UButtonGroup.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
1
|
import "../icon-button/UIconButton.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
3
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
4
|
import { formatDate } from "../../utilities/format.js";
|
|
7
5
|
import { addDays, addMonths, daysInMonth, isDayUnavailable, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate } from "./dates.js";
|
|
8
6
|
import { styles } from "./UCalendar.styles.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property, state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { localOffset, readDateValue, writeInstant } from "../../utilities/dateValue.js";
|
|
2
1
|
import { parseISODate } from "./dates.js";
|
|
2
|
+
import { localOffset, readDateValue, writeInstant } from "../../utilities/dateValue.js";
|
|
3
3
|
// src/components/calendar/datetime.ts
|
|
4
4
|
/** ISO day + `HH:mm` or `HH:mm:ss` → `YYYY-MM-DDTHH:mm:ss±HH:mm` (the offset of that local day and time). */
|
|
5
5
|
function toDateTimeOffset(day, time) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UCard.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
1
|
import "../button/UButton.js";
|
|
7
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UElement } from "../UElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
6
|
import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
9
7
|
import { styles } from "./UCarousel.styles.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html, nothing } from "lit";
|
|
11
11
|
import { customElement, property, state } from "lit/decorators.js";
|
|
12
12
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
3
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
4
|
import { styles } from "./UCheckbox.styles.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property, query } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import "../button/UButton.js";
|
|
1
|
+
import "../tag/UTag.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import "../button/UButton.js";
|
|
7
4
|
import "../tooltip/UTooltip.js";
|
|
8
|
-
import "../
|
|
5
|
+
import { UElement } from "../UElement.js";
|
|
9
6
|
import { styles } from "./UChip.styles.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
12
|
// src/components/chip/UChip.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
5
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
6
|
-
import "../spinner/USpinner.js";
|
|
7
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import "../spinner/USpinner.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
8
4
|
import { styles } from "./UCommandPalette.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
1
|
+
import "../icon-button/UIconButton.js";
|
|
5
2
|
import "../button/UButton.js";
|
|
6
3
|
import "../icon/UIcon.js";
|
|
7
|
-
import "../
|
|
4
|
+
import { UElement } from "../UElement.js";
|
|
8
5
|
import { styles } from "./UCopyButton.styles.js";
|
|
6
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
// src/components/copy-button/UCopyButton.ts
|
|
@@ -62,6 +62,7 @@ export type { DateDisabledFn } from '../calendar/dates.js';
|
|
|
62
62
|
*/
|
|
63
63
|
export declare class UDatePicker extends UFormControlElement<string> {
|
|
64
64
|
static styles: import('lit').CSSResultGroup[];
|
|
65
|
+
protected static fieldBox: boolean;
|
|
65
66
|
/** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
|
|
66
67
|
size: FieldSize;
|
|
67
68
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
|
-
import "../icon/UIcon.js";
|
|
7
|
-
import { dateTextPattern, formatDateText, formatDateTimeText, parseDate, parseDateTime } from "../../utilities/format.js";
|
|
8
|
-
import { isDayUnavailable, parseISODate, toISODate } from "../calendar/dates.js";
|
|
9
2
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
10
3
|
import "../field/UField.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
11
5
|
import { UPopover } from "../popover/UPopover.js";
|
|
6
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
12
8
|
import { CharsWidthController } from "../../utilities/chars.js";
|
|
13
|
-
import {
|
|
9
|
+
import { dateTextPattern, formatDateText, formatDateTimeText, parseDate, parseDateTime } from "../../utilities/format.js";
|
|
14
10
|
import { DateTextController } from "../calendar/date-text-controller.js";
|
|
11
|
+
import { isDayUnavailable, parseISODate, toISODate } from "../calendar/dates.js";
|
|
12
|
+
import { normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset } from "../calendar/datetime.js";
|
|
15
13
|
import { styles } from "../calendar/picker.styles.js";
|
|
16
14
|
import { styles as styles$1 } from "./UDatePicker.styles.js";
|
|
15
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
16
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
17
17
|
import { html } from "lit";
|
|
18
18
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
19
19
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -148,6 +148,9 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
|
148
148
|
styles$1
|
|
149
149
|
];
|
|
150
150
|
}
|
|
151
|
+
static {
|
|
152
|
+
this.fieldBox = true;
|
|
153
|
+
}
|
|
151
154
|
shouldValidate(changed) {
|
|
152
155
|
return super.shouldValidate(changed) || changed.has("min") || changed.has("max") || changed.has("isDateDisabled");
|
|
153
156
|
}
|
|
@@ -76,6 +76,7 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
|
|
|
76
76
|
*/
|
|
77
77
|
export declare class UDateRangePicker extends UFormControlElement<string> {
|
|
78
78
|
static styles: import('lit').CSSResultGroup[];
|
|
79
|
+
protected static fieldBox: boolean;
|
|
79
80
|
/** 크기 — 다른 필드·버튼과 같은 세 단(`md` = `--u-density`(14px) · `sm` = 그 6/7(12px) · `lg` = 8/7(16px) — 밀도 단을 바꾸면 셋이 함께 움직인다). */
|
|
80
81
|
size: FieldSize;
|
|
81
82
|
/**
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
|
-
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
|
-
import "../icon/UIcon.js";
|
|
8
|
-
import { dateTextPattern, formatDateRangeText, formatDateTimeRangeText, parseDateRange, parseDateTimeRange } from "../../utilities/format.js";
|
|
9
|
-
import { parseISODate } from "../calendar/dates.js";
|
|
10
2
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
11
3
|
import "../field/UField.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
12
5
|
import { UPopover } from "../popover/UPopover.js";
|
|
6
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
13
8
|
import { CharsWidthController, charsCount } from "../../utilities/chars.js";
|
|
14
|
-
import {
|
|
9
|
+
import { dateTextPattern, formatDateRangeText, formatDateTimeRangeText, parseDateRange, parseDateTimeRange } from "../../utilities/format.js";
|
|
15
10
|
import { DateTextController } from "../calendar/date-text-controller.js";
|
|
11
|
+
import { parseISODate } from "../calendar/dates.js";
|
|
12
|
+
import { normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset, toLocalDateTime } from "../calendar/datetime.js";
|
|
16
13
|
import { styles } from "../calendar/picker.styles.js";
|
|
14
|
+
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
17
15
|
import { resolvePresets } from "./presets.js";
|
|
18
16
|
import { styles as styles$1 } from "./UDateRangePicker.styles.js";
|
|
17
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
18
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
19
19
|
import { html } from "lit";
|
|
20
20
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
21
21
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -146,6 +146,9 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
146
146
|
styles$1
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
|
+
static {
|
|
150
|
+
this.fieldBox = true;
|
|
151
|
+
}
|
|
149
152
|
textPattern() {
|
|
150
153
|
return this.mode === "datetime" ? `${dateTextPattern(this.format)} ${this.seconds ? "HH:mm:ss" : "HH:mm"}` : dateTextPattern(this.format);
|
|
151
154
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
7
4
|
import { styles } from "./UDialog.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
10
|
// src/components/dialog/UDialog.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UDivider.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
// src/components/divider/UDivider.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
7
4
|
import { styles } from "./UDrawer.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
10
|
// src/components/drawer/UDrawer.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UExpander.styles.js";
|
|
4
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
// src/components/expander/UExpander.ts
|
|
@@ -21,9 +21,12 @@ export type FieldDescriptionDisplay = 'inline' | 'hint';
|
|
|
21
21
|
* @csspart footer - 컨트롤 아래 줄(설명, 또는 `invalid` 일 때 검증 문구 — `u-field[invalid]::part(footer)` 로 가른다)
|
|
22
22
|
* @csspart hint - `description-display="hint"` 의 정보 아이콘 감싸개
|
|
23
23
|
* @csspart hint-tooltip - 그 툴팁
|
|
24
|
+
*
|
|
25
|
+
* 감싼 칸처럼 `:state(field)` 를 싣는다 — 줄 배치에서 아래 끝으로 서는 «입력 상자를 가진 컨트롤» 이다(`UFormControlElement.fieldBox`).
|
|
24
26
|
*/
|
|
25
27
|
export declare class UField extends UElement {
|
|
26
28
|
static styles: import('lit').CSSResultGroup[];
|
|
29
|
+
private readonly fieldInternals?;
|
|
27
30
|
/** 비활성화 여부 */
|
|
28
31
|
disabled: boolean;
|
|
29
32
|
/** 필수 입력 여부 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
2
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
3
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
4
|
+
import { styles } from "./UField.styles.js";
|
|
6
5
|
import "../icon/UIcon.js";
|
|
7
6
|
import "../tooltip/UTooltip.js";
|
|
8
|
-
import
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
import { isFocusable } from "tabbable";
|
|
@@ -86,6 +86,7 @@ var UField = class UField extends UElement {
|
|
|
86
86
|
}
|
|
87
87
|
constructor(..._args) {
|
|
88
88
|
super(..._args);
|
|
89
|
+
this.fieldInternals = typeof this.attachInternals === "function" ? this.attachInternals() : void 0;
|
|
89
90
|
this.disabled = false;
|
|
90
91
|
this.required = false;
|
|
91
92
|
this.invalid = false;
|
|
@@ -197,6 +198,7 @@ var UField = class UField extends UElement {
|
|
|
197
198
|
connectedCallback() {
|
|
198
199
|
super.connectedCallback();
|
|
199
200
|
tabNavigation.install();
|
|
201
|
+
this.fieldInternals?.states.add("field");
|
|
200
202
|
this.addEventListener("pointerdown", this.handleHostPointerDown, true);
|
|
201
203
|
this.addEventListener("focusin", this.handleFocusIn);
|
|
202
204
|
this.addEventListener("focusout", this.handleFocusOut);
|