@iyulab/components 3.2.1 → 3.3.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 +20 -0
- package/README.md +10 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.156.0 → _@oxc-project_runtime@0.160.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.156.0 → _@oxc-project_runtime@0.160.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/components/UElement.js +1 -1
- package/dist/components/UFloatingElement.js +6 -10
- package/dist/components/UFloatingElement.styles.js +1 -1
- package/dist/components/UFormControlElement.js +5 -4
- package/dist/components/UOverlayElement.js +4 -4
- package/dist/components/alert/UAlert.js +4 -4
- package/dist/components/auto-scroll/UAutoScroll.js +4 -4
- package/dist/components/avatar/UAvatar.js +4 -4
- package/dist/components/badge/UBadge.js +4 -4
- package/dist/components/breadcrumb/UBreadcrumb.js +3 -3
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +5 -5
- package/dist/components/button/UButton.js +5 -5
- package/dist/components/button-group/UButtonGroup.js +4 -4
- package/dist/components/calendar/UCalendar.js +5 -5
- package/dist/components/card/UCard.js +5 -5
- package/dist/components/carousel/UCarousel.js +6 -6
- package/dist/components/checkbox/UCheckbox.js +6 -6
- package/dist/components/chip/UChip.js +4 -4
- package/dist/components/command-palette/UCommandPalette.js +5 -5
- package/dist/components/copy-button/UCopyButton.js +4 -4
- package/dist/components/date-picker/UDatePicker.js +7 -6
- package/dist/components/date-range-picker/UDateRangePicker.js +7 -6
- package/dist/components/dialog/UDialog.js +4 -4
- package/dist/components/divider/UDivider.js +4 -4
- package/dist/components/drawer/UDrawer.js +4 -4
- package/dist/components/expander/UExpander.js +4 -4
- package/dist/components/field/UField.js +7 -6
- package/dist/components/file-input/UFileInput.js +5 -5
- package/dist/components/form/UForm.js +4 -4
- package/dist/components/icon/UIcon.js +6 -6
- package/dist/components/icon-button/UIconButton.js +5 -5
- package/dist/components/input/UInput.js +6 -6
- package/dist/components/menu/UMenu.js +4 -4
- package/dist/components/menu-item/UMenuItem.js +5 -5
- package/dist/components/option/UOption.js +4 -4
- package/dist/components/option-group/UOptionGroup.js +7 -6
- package/dist/components/option-group/UOptionGroup.styles.js +2 -1
- package/dist/components/pagination/UPagination.js +4 -4
- package/dist/components/panel/UPanel.js +4 -4
- package/dist/components/popover/UPopover.js +4 -4
- package/dist/components/progress-bar/UProgressBar.js +4 -4
- package/dist/components/progress-ring/UProgressRing.js +4 -4
- package/dist/components/radio/URadio.js +5 -5
- package/dist/components/rating/URating.js +5 -5
- package/dist/components/select/USelect.js +7 -6
- package/dist/components/skeleton/USkeleton.js +4 -4
- 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 +5 -5
- package/dist/components/switch/USwitch.js +6 -6
- package/dist/components/tab/UTab.js +5 -5
- package/dist/components/tab-nav/UTabNav.js +4 -4
- package/dist/components/tab-panel/UTabPanel.js +4 -4
- package/dist/components/tag/UTag.js +4 -4
- package/dist/components/text/UText.js +4 -4
- package/dist/components/textarea/UTextarea.js +7 -7
- package/dist/components/tooltip/UTooltip.js +4 -4
- package/dist/components/tree/UTree.js +4 -4
- package/dist/components/tree-item/UTreeItem.js +4 -4
- package/dist/custom-elements.json +3676 -3590
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/utilities/Dialog.js +3 -3
- package/dist/utilities/customState.d.ts +19 -0
- package/dist/utilities/customState.js +40 -0
- package/package.json +1 -1
- package/skills/iyulab-components/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.3.0] - 2026-11-28
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `setCustomState(internals, name, on)` and `hasCustomState(element, name)` (exported, also from
|
|
8
|
+
`@iyulab/components/dist/utilities/customState.js`): publish and read a custom state on engines that only accept
|
|
9
|
+
`--`-prefixed names. `setCustomState` tries the plain name and falls back to `--name`; both do nothing on an engine without
|
|
10
|
+
`ElementInternals.states`.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Chrome and Edge 90–124 no longer throw `SyntaxError: ... The specified value 'field' must start with '--'` while a form
|
|
15
|
+
control connects. Those engines refuse a plain custom-state name, and every unprefixed `states.add()` threw: the `field`
|
|
16
|
+
state of `u-input`, `u-select`, `u-textarea`, `u-date-picker`, `u-date-range-picker`, `u-file-input` and `u-field`, the
|
|
17
|
+
`open` state of `u-select` and the two pickers, `empty` on `u-option-group` and `parked` on every floating element. The
|
|
18
|
+
state is now published as `--name` there, and the built-in stylesheets read both forms (`:is(:state(x), :--x)`), so a
|
|
19
|
+
closed floating element leaves the layout and an empty option group hides on those engines as it does elsewhere.
|
|
20
|
+
Behaviour on Chrome and Edge 125+, Firefox and Safari is unchanged. The browser-support notes in the README and the skill
|
|
21
|
+
overview are rewritten to match.
|
|
22
|
+
|
|
3
23
|
## [3.2.1] - 2026-11-25
|
|
4
24
|
|
|
5
25
|
### Fixed
|
package/README.md
CHANGED
|
@@ -12,10 +12,16 @@ npm install @iyulab/components
|
|
|
12
12
|
|
|
13
13
|
## Browser support
|
|
14
14
|
|
|
15
|
-
지원 하한은 **`CustomStateSet`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
지원 하한은 **`ElementInternals.states`(`CustomStateSet`)를 가진 판**입니다 — Chrome · Edge 90, Firefox 126, Safari 17.4 이상.
|
|
16
|
+
컴포넌트는 `:state(field)` · `:state(open)` 같은 상태를 거기에 싣고 시트가 그 선택자로 모양을 정합니다. Chrome · Edge
|
|
17
|
+
125 미만은 `:state()` 를 `--` 접두 없이는 받지 못하므로, 컴포넌트가 접두 없는 이름을 먼저 시도하고 거부당하면 `--이름`
|
|
18
|
+
으로 싣습니다(던지지 않습니다) — 내부 시트는 `:is(:state(x), :--x)` 로 두 형을 함께 읽습니다. 하한 아래(Chrome · Edge 90
|
|
19
|
+
미만, Firefox 126 미만, Safari 17.4 미만)에서는 상태 자체가 없어 상태에 기대는 모양(필드 칸 표시 · 닫힌 떠 있는 요소의
|
|
20
|
+
레이아웃 제외 등)이 적용되지 않을 뿐 동작은 같습니다.
|
|
21
|
+
|
|
22
|
+
공개 상태(`u-select:state(open)` 등)에 손잡이를 거는 앱 시트가 125 미만도 덮어야 하면 같은 두 형을 씁니다 —
|
|
23
|
+
`u-select:is(:state(open), :--open)`. 선택자 목록에 그냥 섞지 마세요(모르는 선택자 하나가 규칙 전체를 죽입니다).
|
|
24
|
+
같은 두 형 읽기는 `hasCustomState(el, name)`, 상태 싣기는 `setCustomState(internals, name, on)` 으로 내보냅니다.
|
|
19
25
|
|
|
20
26
|
## Quick Start
|
|
21
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.160.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.160.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,7 +1,7 @@
|
|
|
1
|
+
import { LitElement, render } from "lit";
|
|
1
2
|
import { styles } from "./UElement.styles.js";
|
|
2
3
|
import { Locale } from "../utilities/Locale.js";
|
|
3
4
|
import { devWarnOnce } from "../utilities/devWarning.js";
|
|
4
|
-
import { LitElement, render } from "lit";
|
|
5
5
|
// src/components/UElement.ts
|
|
6
6
|
/**
|
|
7
7
|
* 모든 UI 컴포넌트의 기반 클래스.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { property, state } from "lit/decorators.js";
|
|
2
|
+
import { arrow, autoPlacement, autoUpdate, computePosition, flip, getOverflowAncestors, hide, offset, shift } from "@floating-ui/dom";
|
|
1
3
|
import { getParentElement, querySelectorAllWithin } from "../utilities/elements.js";
|
|
2
4
|
import { UElement } from "./UElement.js";
|
|
3
5
|
import { styles } from "./UFloatingElement.styles.js";
|
|
4
6
|
import { enumeratedValues } from "../utilities/enumerated.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { arrow, autoPlacement, autoUpdate, computePosition, flip, getOverflowAncestors, hide, offset, shift } from "@floating-ui/dom";
|
|
7
|
+
import { setCustomState } from "../utilities/customState.js";
|
|
8
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
9
10
|
// src/components/UFloatingElement.ts
|
|
10
11
|
/**
|
|
11
12
|
* UFloatingElement는 팝오버, 툴팁 등 화면에 떠 있는 엘리먼트를 구현하기 위한 기본 클래스입니다.
|
|
@@ -85,12 +86,7 @@ var UFloatingElement = class extends UElement {
|
|
|
85
86
|
* 만들었다. 닫힘 전환이 끝난 뒤에 빼고(페이드는 그대로), 열거나 재기 전에 꺼낸다.
|
|
86
87
|
*/
|
|
87
88
|
setParked(parked) {
|
|
88
|
-
|
|
89
|
-
if (!states) return;
|
|
90
|
-
try {
|
|
91
|
-
if (parked) states.add("parked");
|
|
92
|
-
else states.delete("parked");
|
|
93
|
-
} catch {}
|
|
89
|
+
setCustomState(this.floatingInternals, "parked", parked);
|
|
94
90
|
}
|
|
95
91
|
unpark() {
|
|
96
92
|
this.parkSeq++;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { property, state } from "lit/decorators.js";
|
|
1
2
|
import { UElement } from "./UElement.js";
|
|
2
3
|
import { styles } from "./UFormControlElement.styles.js";
|
|
3
4
|
import { enumeratedValues } from "../utilities/enumerated.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import { setCustomState } from "../utilities/customState.js";
|
|
6
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
7
8
|
// src/components/UFormControlElement.ts
|
|
8
9
|
/**
|
|
9
10
|
* 폼 컨트롤 컴포넌트의 공통 기반 클래스입니다.
|
|
@@ -136,7 +137,7 @@ var UFormControlElement = class extends UElement {
|
|
|
136
137
|
connectedCallback() {
|
|
137
138
|
super.connectedCallback();
|
|
138
139
|
if (!this.internals && "attachInternals" in this) this.internals = this.attachInternals();
|
|
139
|
-
if (this.constructor.fieldBox) this.internals
|
|
140
|
+
if (this.constructor.fieldBox) setCustomState(this.internals, "field", true);
|
|
140
141
|
}
|
|
141
142
|
/**
|
|
142
143
|
* 검증 메시지는 `setValidity()` 가 `internals` 에 적어 둔 문장이다 — 다시 그리기만 하면 옛 언어가 그대로 나온다.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { property } from "lit/decorators.js";
|
|
2
|
+
import { createFocusTrap } from "focus-trap";
|
|
1
3
|
import { isFocusCandidate, querySelectorDeep } from "../utilities/elements.js";
|
|
2
4
|
import { OverlayManager } from "../utilities/OverlayManager.js";
|
|
3
5
|
import { arrayAttrConverter } from "../utilities/converters.js";
|
|
@@ -5,10 +7,8 @@ import { HostAria, nameFromSlot } from "../utilities/hostAria.js";
|
|
|
5
7
|
import { UElement } from "./UElement.js";
|
|
6
8
|
import { styles } from "./UOverlayElement.styles.js";
|
|
7
9
|
import { enumeratedValues } from "../utilities/enumerated.js";
|
|
8
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import { property } from "lit/decorators.js";
|
|
11
|
-
import { createFocusTrap } from "focus-trap";
|
|
10
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
11
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
12
12
|
// src/components/UOverlayElement.ts
|
|
13
13
|
/**
|
|
14
14
|
* UOverlayElement는 다이얼로그, 드로어 등 화면에 오버레이로 표시되는 엘리먼트의 기본 클래스입니다.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import "../button/UButton.js";
|
|
2
4
|
import "../icon/UIcon.js";
|
|
3
5
|
import { UElement } from "../UElement.js";
|
|
@@ -7,10 +9,8 @@ import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
|
7
9
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
10
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
9
11
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
10
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
11
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
12
|
-
import { html } from "lit";
|
|
13
|
-
import { customElement, property } from "lit/decorators.js";
|
|
12
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
13
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
14
14
|
// src/components/alert/UAlert.ts
|
|
15
15
|
/** 유효한 `u-alert` 상태 — 런타임 검증과 타입이 **같은 목록**을 보게 둔다. */
|
|
16
16
|
var ALERT_STATUSES = [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import { UElement } from "../UElement.js";
|
|
2
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
3
5
|
import { styles } from "./UAutoScroll.styles.js";
|
|
4
6
|
import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
5
7
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
7
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { customElement, property } from "lit/decorators.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
10
10
|
// src/components/auto-scroll/UAutoScroll.ts
|
|
11
11
|
/** `item` 에서 다음 항목까지 미끄러지는 시간(ms) — 읽히는 것은 멈춘 동안이라 짧고 일정하게 둔다. */
|
|
12
12
|
var ITEM_GLIDE_MS = 600;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import { UElement } from "../UElement.js";
|
|
2
4
|
import { styles } from "./UAvatar.styles.js";
|
|
3
5
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
4
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
5
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
6
|
-
import { html } from "lit";
|
|
7
|
-
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
8
8
|
// src/components/avatar/UAvatar.ts
|
|
9
9
|
var UAvatar = class UAvatar extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import { UElement } from "../UElement.js";
|
|
2
4
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
3
5
|
import { styles } from "./UBadge.styles.js";
|
|
4
6
|
import "../icon/UIcon.js";
|
|
5
7
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
6
8
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
7
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
8
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import { html, nothing } from "lit";
|
|
10
|
-
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
10
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
11
11
|
// src/components/badge/UBadge.ts
|
|
12
12
|
var UBadge = class UBadge extends UElement {
|
|
13
13
|
constructor(..._args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement } from "lit/decorators.js";
|
|
1
3
|
import "../icon/UIcon.js";
|
|
2
4
|
import { UElement } from "../UElement.js";
|
|
3
5
|
import { styles } from "./UBreadcrumb.styles.js";
|
|
4
6
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
6
|
-
import { html } from "lit";
|
|
7
|
-
import { customElement } from "lit/decorators.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
8
8
|
// src/components/breadcrumb/UBreadcrumb.ts
|
|
9
9
|
var UBreadcrumb = class UBreadcrumb extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
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
1
|
import { html } from "lit";
|
|
7
2
|
import { customElement, property } from "lit/decorators.js";
|
|
8
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
|
+
import { UElement } from "../UElement.js";
|
|
5
|
+
import { styles } from "./UBreadcrumbItem.styles.js";
|
|
6
|
+
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
9
9
|
// src/components/breadcrumb-item/UBreadcrumbItem.ts
|
|
10
10
|
var UBreadcrumbItem = class UBreadcrumbItem extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
4
|
import "../spinner/USpinner.js";
|
|
2
5
|
import { UElement } from "../UElement.js";
|
|
3
6
|
import { styles } from "./UButton.styles.js";
|
|
@@ -5,11 +8,8 @@ import { FORWARDED_ARIA, readForwardedAria } from "./forwarded-aria.js";
|
|
|
5
8
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
9
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
7
10
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import { html } from "lit";
|
|
11
|
-
import { customElement, property } from "lit/decorators.js";
|
|
12
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
12
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
13
13
|
// src/components/button/UButton.ts
|
|
14
14
|
var UButton = class UButton extends UElement {
|
|
15
15
|
constructor(..._args) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import { UElement } from "../UElement.js";
|
|
2
4
|
import { UButton } from "../button/UButton.js";
|
|
3
5
|
import { UIconButton } from "../icon-button/UIconButton.js";
|
|
4
6
|
import { styles } from "./UButtonGroup.styles.js";
|
|
5
7
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
7
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { customElement, property } from "lit/decorators.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
10
10
|
// src/components/button-group/UButtonGroup.ts
|
|
11
11
|
var UButtonGroup = class UButtonGroup extends UElement {
|
|
12
12
|
constructor(..._args) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
4
|
import "../icon-button/UIconButton.js";
|
|
2
5
|
import { UElement } from "../UElement.js";
|
|
3
6
|
import { Locale } from "../../utilities/Locale.js";
|
|
@@ -6,11 +9,8 @@ import { addDays, addMonths, dayOfWeekIndex, daysInMonth, isDayUnavailable, isSa
|
|
|
6
9
|
import { styles } from "./UCalendar.styles.js";
|
|
7
10
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
8
11
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
9
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
11
|
-
import { html } from "lit";
|
|
12
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
13
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
13
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
14
14
|
// src/components/calendar/UCalendar.ts
|
|
15
15
|
/** Cells to render for one month — leading `null`s pad the previous month's offset from the locale's first day of the week. */
|
|
16
16
|
function buildMonthGrid(month, weekStart) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
2
|
-
import { styles } from "./UCard.styles.js";
|
|
3
|
-
import { enumeratedValues } from "../../utilities/enumerated.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
1
|
import { html } from "lit";
|
|
7
2
|
import { customElement, property } from "lit/decorators.js";
|
|
8
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
|
+
import { UElement } from "../UElement.js";
|
|
5
|
+
import { styles } from "./UCard.styles.js";
|
|
6
|
+
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
9
9
|
// src/components/card/UCard.ts
|
|
10
10
|
var UCard = class UCard extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
|
+
import { keyed } from "lit/directives/keyed.js";
|
|
1
5
|
import "../button/UButton.js";
|
|
2
6
|
import "../icon/UIcon.js";
|
|
3
7
|
import { UElement } from "../UElement.js";
|
|
@@ -7,12 +11,8 @@ import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
|
7
11
|
import { styles } from "./UCarousel.styles.js";
|
|
8
12
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
9
13
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
10
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
11
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
12
|
-
import { html, nothing } from "lit";
|
|
13
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
14
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
15
|
-
import { keyed } from "lit/directives/keyed.js";
|
|
14
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
15
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
16
16
|
// src/components/carousel/UCarousel.ts
|
|
17
17
|
var UCarousel = class UCarousel extends UElement {
|
|
18
18
|
constructor(..._args) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
3
|
+
import { live } from "lit/directives/live.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
5
|
import "../icon/UIcon.js";
|
|
2
6
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
3
7
|
import { Locale } from "../../utilities/Locale.js";
|
|
4
8
|
import { styles } from "./UCheckbox.styles.js";
|
|
5
9
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
6
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
7
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { customElement, property, query } from "lit/decorators.js";
|
|
10
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
-
import { live } from "lit/directives/live.js";
|
|
10
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
11
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
12
12
|
// src/components/checkbox/UCheckbox.ts
|
|
13
13
|
var UCheckbox = class UCheckbox extends UFormControlElement {
|
|
14
14
|
constructor(..._args) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import "../tag/UTag.js";
|
|
2
4
|
import "../icon/UIcon.js";
|
|
3
5
|
import "../button/UButton.js";
|
|
@@ -7,10 +9,8 @@ import { styles } from "./UChip.styles.js";
|
|
|
7
9
|
import { Locale } from "../../utilities/Locale.js";
|
|
8
10
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
9
11
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
10
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
11
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
12
|
-
import { html } from "lit";
|
|
13
|
-
import { customElement, property } from "lit/decorators.js";
|
|
12
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
13
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
14
14
|
// src/components/chip/UChip.ts
|
|
15
15
|
var UChip = class UChip extends UElement {
|
|
16
16
|
constructor(..._args) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { html, nothing } from "lit";
|
|
2
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
4
|
import "../icon/UIcon.js";
|
|
2
5
|
import "../spinner/USpinner.js";
|
|
3
6
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
@@ -5,11 +8,8 @@ import { styles } from "./UCommandPalette.styles.js";
|
|
|
5
8
|
import { Locale } from "../../utilities/Locale.js";
|
|
6
9
|
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
7
10
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
8
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import { html, nothing } from "lit";
|
|
11
|
-
import { customElement, property, query, state } from "lit/decorators.js";
|
|
12
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
12
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
13
13
|
// src/components/command-palette/UCommandPalette.ts
|
|
14
14
|
/**
|
|
15
15
|
* 정적 항목을 검색어로 거른다 — 이름 · 설명 · 낱말을 활성 로케일의 검색 일치로 견준다(`u-select` 와 같은 규칙). 빈 검색어는 모두다.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import "../icon-button/UIconButton.js";
|
|
2
4
|
import "../button/UButton.js";
|
|
3
5
|
import "../icon/UIcon.js";
|
|
@@ -6,10 +8,8 @@ import { styles } from "./UCopyButton.styles.js";
|
|
|
6
8
|
import { Locale } from "../../utilities/Locale.js";
|
|
7
9
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
8
10
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
9
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
11
|
-
import { html } from "lit";
|
|
12
|
-
import { customElement, property } from "lit/decorators.js";
|
|
11
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
12
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
13
13
|
// src/components/copy-button/UCopyButton.ts
|
|
14
14
|
var UCopyButton = class UCopyButton extends UElement {
|
|
15
15
|
constructor(..._args) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
4
|
import "../button/UButton.js";
|
|
2
5
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
3
6
|
import "../field/UField.js";
|
|
@@ -14,11 +17,9 @@ import { styles } from "../calendar/picker.styles.js";
|
|
|
14
17
|
import { styles as styles$1 } from "./UDatePicker.styles.js";
|
|
15
18
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
16
19
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { customElement, property, query, state } from "lit/decorators.js";
|
|
21
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
20
|
+
import { setCustomState } from "../../utilities/customState.js";
|
|
21
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
22
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
22
23
|
// src/components/date-picker/UDatePicker.ts
|
|
23
24
|
/** Builds the `value` for the given mode — `datetime` always emits seconds + local offset so
|
|
24
25
|
* the result is unconditionally a valid, unambiguous ISO-8601 `DateTimeOffset` regardless of
|
|
@@ -175,7 +176,7 @@ var UDatePicker = class UDatePicker extends UFormControlElement {
|
|
|
175
176
|
updated(changed) {
|
|
176
177
|
super.updated(changed);
|
|
177
178
|
if (changed.has("value")) this.internals?.setFormValue(this.value ?? "");
|
|
178
|
-
if (changed.has("open")) this.internals
|
|
179
|
+
if (changed.has("open")) setCustomState(this.internals, "open", this.open);
|
|
179
180
|
if (changed.has("open") && this.open) this.textEntry.calendarOpened(this.value ? toISODate(splitValue(this.value).date) : /* @__PURE__ */ new Date());
|
|
180
181
|
}
|
|
181
182
|
/** What the open calendar shows and edits: the staged choice with `confirm`, otherwise the value. */
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, query, state } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
1
4
|
import "../button/UButton.js";
|
|
2
5
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
3
6
|
import "../field/UField.js";
|
|
@@ -16,11 +19,9 @@ import { resolvePresets } from "./presets.js";
|
|
|
16
19
|
import { styles as styles$1 } from "./UDateRangePicker.styles.js";
|
|
17
20
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
18
21
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { customElement, property, query, state } from "lit/decorators.js";
|
|
23
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
22
|
+
import { setCustomState } from "../../utilities/customState.js";
|
|
23
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
24
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
24
25
|
// src/components/date-range-picker/UDateRangePicker.ts
|
|
25
26
|
var ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
26
27
|
var ISO_DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
@@ -240,7 +241,7 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
240
241
|
updated(changed) {
|
|
241
242
|
super.updated(changed);
|
|
242
243
|
if (changed.has("value")) this.internals?.setFormValue(this.value ?? "");
|
|
243
|
-
if (changed.has("open")) this.internals
|
|
244
|
+
if (changed.has("open")) setCustomState(this.internals, "open", this.open);
|
|
244
245
|
if (changed.has("open") && this.open) this.textEntry.calendarOpened(this.start ? dayPart(this.start) : /* @__PURE__ */ new Date());
|
|
245
246
|
}
|
|
246
247
|
/** 보이는 접미 버튼 수 — 글자 영역 하한(`min-inline-size`)이 그만큼의 받는 상자를 뺀다. 아래 `?hidden` 조건과 같다. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
1
3
|
import "../button/UButton.js";
|
|
2
4
|
import "../icon/UIcon.js";
|
|
3
5
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
@@ -5,10 +7,8 @@ import { styles } from "./UDialog.styles.js";
|
|
|
5
7
|
import { Locale } from "../../utilities/Locale.js";
|
|
6
8
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
7
9
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
8
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import { html } from "lit";
|
|
11
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
11
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
12
12
|
// src/components/dialog/UDialog.ts
|
|
13
13
|
var UDialog = class UDialog extends UOverlayElement {
|
|
14
14
|
constructor(..._args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import { UElement } from "../UElement.js";
|
|
2
4
|
import { styles } from "./UDivider.styles.js";
|
|
3
5
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
4
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
5
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
6
|
-
import { html } from "lit";
|
|
7
|
-
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
8
8
|
// src/components/divider/UDivider.ts
|
|
9
9
|
var UDivider = class UDivider extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
1
3
|
import "../button/UButton.js";
|
|
2
4
|
import "../icon/UIcon.js";
|
|
3
5
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
@@ -5,10 +7,8 @@ import { styles } from "./UDrawer.styles.js";
|
|
|
5
7
|
import { Locale } from "../../utilities/Locale.js";
|
|
6
8
|
import { delegate } from "../../utilities/listenInShadow.js";
|
|
7
9
|
import { enumeratedValues } from "../../utilities/enumerated.js";
|
|
8
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
9
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
10
|
-
import { html } from "lit";
|
|
11
|
-
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
11
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
12
12
|
// src/components/drawer/UDrawer.ts
|
|
13
13
|
var UDrawer = class UDrawer extends UOverlayElement {
|
|
14
14
|
constructor(..._args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { customElement, property } from "lit/decorators.js";
|
|
1
3
|
import "../icon/UIcon.js";
|
|
2
4
|
import { UElement } from "../UElement.js";
|
|
3
5
|
import { styles } from "./UExpander.styles.js";
|
|
4
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
5
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
6
|
-
import { html } from "lit";
|
|
7
|
-
import { customElement, property } from "lit/decorators.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.160.0/helpers/esm/decorate.js";
|
|
8
8
|
// src/components/expander/UExpander.ts
|
|
9
9
|
var UExpander = class UExpander extends UElement {
|
|
10
10
|
constructor(..._args) {
|