@iyulab/components 2.15.0 → 2.17.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.152.0 → _@oxc-project_runtime@0.153.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.152.0 → _@oxc-project_runtime@0.153.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/components/UFloatingElement.js +2 -2
- package/dist/components/UFormControlElement.js +2 -2
- package/dist/components/UOverlayElement.js +2 -2
- package/dist/components/alert/UAlert.js +2 -2
- package/dist/components/alert/UAlert.styles.js +1 -1
- package/dist/components/avatar/UAvatar.js +2 -2
- package/dist/components/badge/UBadge.js +2 -2
- package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +2 -2
- package/dist/components/button/UButton.js +2 -2
- package/dist/components/button-group/UButtonGroup.js +2 -2
- package/dist/components/calendar/UCalendar.js +2 -2
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.js +2 -2
- package/dist/components/checkbox/UCheckbox.js +2 -2
- package/dist/components/chip/UChip.js +2 -2
- package/dist/components/copy-button/UCopyButton.js +2 -2
- package/dist/components/copy-button/UCopyButton.styles.js +2 -1
- package/dist/components/date-picker/UDatePicker.js +2 -2
- package/dist/components/date-range-picker/UDateRangePicker.js +2 -2
- package/dist/components/dialog/UDialog.js +2 -2
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/drawer/UDrawer.js +2 -2
- package/dist/components/expander/UExpander.js +2 -2
- package/dist/components/field/UField.js +2 -2
- package/dist/components/file-input/UFileInput.js +2 -2
- package/dist/components/form/UForm.js +2 -2
- package/dist/components/icon/UIcon.js +2 -2
- package/dist/components/icon-button/UIconButton.js +2 -2
- package/dist/components/icon-button/UIconButton.styles.js +2 -1
- package/dist/components/input/UInput.d.ts +21 -0
- package/dist/components/input/UInput.js +29 -11
- package/dist/components/menu/UMenu.js +2 -2
- package/dist/components/menu-item/UMenuItem.js +2 -2
- package/dist/components/option/UOption.js +2 -2
- package/dist/components/pagination/UPagination.d.ts +10 -0
- package/dist/components/pagination/UPagination.js +7 -4
- package/dist/components/panel/UPanel.js +2 -2
- package/dist/components/popover/UPopover.js +2 -2
- package/dist/components/progress-bar/UProgressBar.js +2 -2
- package/dist/components/progress-ring/UProgressRing.js +2 -2
- package/dist/components/radio/URadio.js +2 -2
- package/dist/components/rating/URating.js +2 -2
- package/dist/components/select/USelect.js +2 -2
- package/dist/components/skeleton/USkeleton.js +2 -2
- package/dist/components/slider/USlider.js +2 -2
- package/dist/components/spinner/USpinner.js +2 -2
- package/dist/components/split-panel/USplitPanel.js +2 -2
- package/dist/components/steps/USteps.js +2 -2
- package/dist/components/steps/USteps.styles.js +3 -0
- package/dist/components/switch/USwitch.js +2 -2
- package/dist/components/tab/UTab.js +2 -2
- package/dist/components/tab-panel/UTabPanel.js +2 -2
- package/dist/components/tag/UTag.js +2 -2
- package/dist/components/text/UText.js +2 -2
- package/dist/components/textarea/UTextarea.js +2 -2
- package/dist/components/tooltip/UTooltip.js +2 -2
- package/dist/components/tree/UTree.js +2 -2
- package/dist/components/tree-item/UTreeItem.js +2 -2
- package/dist/react/UInput.d.ts +2 -1
- package/dist/react/UInput.js +1 -0
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/copy-button.md +5 -3
- package/skills/iyulab-components/references/components/input.md +1 -0
- package/skills/iyulab-components/references/components/pagination.md +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.17.0] - 2026-10-08
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`u-input type="search"` fires `search { query }`** when a search is committed — `Enter`, the clear button, or
|
|
8
|
+
`Escape`, which now clears a non-empty search field in every browser (an empty field leaves `Escape` to the page).
|
|
9
|
+
`query` is the value with surrounding spaces trimmed. A list search box had no event in the shape list sources take;
|
|
10
|
+
the native `search` event exists only in some browsers and stays inside the shadow root. `UInputEventMap` types it.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `u-steps` keeps its screen-reader-only status text inside the element — the absolutely positioned text escaped an
|
|
15
|
+
unpositioned scroll container and could stretch the document.
|
|
16
|
+
- **`u-icon-button` and `u-copy-button` follow the control density** — their glyph size is `--u-density` × 10/7
|
|
17
|
+
and × 9/7 (20px and 18px at the default density, unchanged). On a screen that raises the density, the
|
|
18
|
+
`u-button` text grew and the icon buttons beside it stayed put.
|
|
19
|
+
- **`u-alert`'s body reads `--u-text-body-size`** (14px by default, unchanged) — like its title, which already read
|
|
20
|
+
`--u-text-subtitle-size`.
|
|
21
|
+
|
|
22
|
+
### Documentation
|
|
23
|
+
|
|
24
|
+
- `docs/react-events.md`: an event description that spans several lines in the source is shown in full (it was cut
|
|
25
|
+
after its first line, mid-sentence, in nine rows), and an element that redescribes an inherited event shows its own
|
|
26
|
+
description (`u-tooltip` and `u-popover` showed the base class wording for `show`/`hide`).
|
|
27
|
+
|
|
28
|
+
## [2.16.0] - 2026-10-07
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **`u-pagination` `label` and `formatRange`.** `label` names the navigation (the locale string when empty) — two
|
|
33
|
+
pagers on one page were two landmarks with the same name. `formatRange(start, end, total)` builds the range text
|
|
34
|
+
when a screen formats counts its own way. Both are what a table needs to use `u-pagination` as its pager.
|
|
35
|
+
|
|
3
36
|
## [2.15.0] - 2026-10-07
|
|
4
37
|
|
|
5
38
|
### Added
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.153.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
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.153.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
1
|
import { UElement } from "./UElement.js";
|
|
2
2
|
import { getParentElement, querySelectorAllWithin } from "../utilities/elements.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.153.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
6
6
|
import { property, state } from "lit/decorators.js";
|
|
7
7
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, offset, shift } from "@floating-ui/dom";
|
|
8
8
|
//#region src/components/UFloatingElement.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "./UElement.js";
|
|
2
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UFormControlElement.styles.js";
|
|
5
5
|
import { property, state } from "lit/decorators.js";
|
|
6
6
|
//#region src/components/UFormControlElement.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "./UElement.js";
|
|
2
2
|
import { isFocusCandidate, querySelectorDeep } from "../utilities/elements.js";
|
|
3
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import { OverlayManager } from "../utilities/OverlayManager.js";
|
|
6
6
|
import { arrayAttrConverter } from "../utilities/converters.js";
|
|
7
7
|
import { HostAria, nameFromSlot } from "../utilities/hostAria.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
7
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UAvatar.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
6
6
|
import { styles } from "./UBadge.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { styles } from "./UBreadcrumb.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UBreadcrumbItem.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../spinner/USpinner.js";
|
|
5
5
|
import { styles } from "./UButton.styles.js";
|
|
6
6
|
import { FORWARDED_ARIA } from "./forwarded-aria.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UButton } from "../button/UButton.js";
|
|
5
5
|
import { UIconButton } from "../icon-button/UIconButton.js";
|
|
6
6
|
import { styles } from "./UButtonGroup.styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../icon-button/UIconButton.js";
|
|
6
6
|
import { formatDate } from "../../utilities/format.js";
|
|
7
7
|
import { addDays, addMonths, daysInMonth, isDayUnavailable, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate } from "./dates.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UCard.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
6
|
import "../button/UButton.js";
|
|
7
7
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import { styles } from "./UCheckbox.styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import "../tooltip/UTooltip.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import "../icon-button/UIconButton.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UDivider.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { styles } from "./UExpander.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
6
|
import { styles } from "./UField.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import "../field/UField.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import { arrayAttrConverter } from "../../utilities/converters.js";
|
|
6
6
|
import { styles } from "./UForm.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { IconRegistry, getDefaultBaseUrl } from "../../utilities/icons.js";
|
|
5
5
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
6
|
import { styles } from "./UIcon.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { FORWARDED_ARIA } from "../button/forwarded-aria.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -4,7 +4,8 @@ var styles = css`
|
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
color: var(--u-icon-color, #616161);
|
|
7
|
-
|
|
7
|
+
/* 글리프는 밀도 단에 비례한다(기본 밀도 14px 에서 20px) — 같은 줄의 u-button 글자와 함께 커지고 준다. */
|
|
8
|
+
font-size: calc(var(--u-density, 14px) * 10 / 7);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
:host([appearance="solid"]) {
|
|
@@ -48,6 +48,7 @@ export type FieldSize = 'sm' | 'md' | 'lg';
|
|
|
48
48
|
*
|
|
49
49
|
* @event input - 입력값이 변경될 때 발생
|
|
50
50
|
* @event change - 값이 확정됐을 때 발생 — Enter 또는 blur 에서, 값이 바뀐 경우에만(네이티브 입력과 같다)
|
|
51
|
+
* @event search - `type="search"` 에서 검색을 확정할 때(Enter · 지우기 버튼 · 값이 있는 Escape) — `detail.query` 는 앞뒤 공백을 걷은 값
|
|
51
52
|
*/
|
|
52
53
|
export declare class UInput extends UFormControlElement<string> {
|
|
53
54
|
static styles: import('lit').CSSResultGroup[];
|
|
@@ -172,6 +173,10 @@ export declare class UInput extends UFormControlElement<string> {
|
|
|
172
173
|
private handleSuffixIconKeydown;
|
|
173
174
|
private handlePasswordTogglerClick;
|
|
174
175
|
private handleClearButtonClick;
|
|
176
|
+
/** 값을 비우고 그 사실을 알린다 — 지우기 버튼과 검색 칸의 Escape 가 같은 길을 탄다. */
|
|
177
|
+
private clearValue;
|
|
178
|
+
/** 검색 확정 — 목록 소스의 검색어 모양(`{ query }`). */
|
|
179
|
+
private fireSearch;
|
|
175
180
|
/** 경계(min/max)에 걸리면 시각적으로 흐리고 마우스 클릭을 막는다(CSS `pointer-events:
|
|
176
181
|
* none`) — 네이티브 stepUp/stepDown 자체가 경계에서 조용히 no-op이라 값이 튀지는
|
|
177
182
|
* 않지만, 헛클릭 피드백을 준다. 키보드 Enter/Space는 `pointer-events`의 영향을 받지
|
|
@@ -192,6 +197,22 @@ export declare class UInput extends UFormControlElement<string> {
|
|
|
192
197
|
* 열린 채 옵션이 모두 사라지면 **빈 팝오버가 닫히지 못하고** 페이지 위에 남았다. */
|
|
193
198
|
private handlePopoverShow;
|
|
194
199
|
}
|
|
200
|
+
/** Custom events `<u-input>` dispatches (its `change`/`input` are the native form-control events). */
|
|
201
|
+
export interface UInputEventMap {
|
|
202
|
+
/** A search was committed (`type="search"`: Enter, the clear button, or Escape clearing the value). `query` is trimmed. */
|
|
203
|
+
'search': CustomEvent<{
|
|
204
|
+
query: string;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
|
207
|
+
/** Typed listeners for {@link UInputEventMap} — element-scoped, the DOM's own pattern (`HTMLMediaElementEventMap`). */
|
|
208
|
+
export interface UInput {
|
|
209
|
+
addEventListener<K extends keyof UInputEventMap>(type: K, listener: (this: UInput, ev: UInputEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
210
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UInput, ev: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
211
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
212
|
+
removeEventListener<K extends keyof UInputEventMap>(type: K, listener: (this: UInput, ev: UInputEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
213
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UInput, ev: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
|
|
214
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
215
|
+
}
|
|
195
216
|
declare global {
|
|
196
217
|
interface HTMLElementTagNameMap {
|
|
197
218
|
'u-input': UInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
6
6
|
import "../spinner/USpinner.js";
|
|
@@ -86,9 +86,15 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
86
86
|
};
|
|
87
87
|
this.handleInputKeydown = (e) => {
|
|
88
88
|
if (e.key === "Enter") {
|
|
89
|
+
if (this.type === "search" && !isImeComposing(e) && !this.composing && !e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) this.fireSearch();
|
|
89
90
|
this.handleImplicitSubmission(e);
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
93
|
+
if (e.key === "Escape" && this.type === "search" && this.value && !this.popoverEl?.open && !this.readonly && !this.effectivelyDisabled) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
this.clearValue();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
92
98
|
if (this.type === "number" && (e.key === "ArrowUp" || e.key === "ArrowDown") && !this.popoverEl?.open && !this.readonly && !this.effectivelyDisabled) {
|
|
93
99
|
e.preventDefault();
|
|
94
100
|
this.stepBy(e.key === "ArrowUp" ? 1 : -1);
|
|
@@ -119,15 +125,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
119
125
|
};
|
|
120
126
|
this.handleClearButtonClick = (e) => {
|
|
121
127
|
e.stopImmediatePropagation();
|
|
122
|
-
this.
|
|
123
|
-
this.dispatchEvent(new InputEvent("input", {
|
|
124
|
-
bubbles: true,
|
|
125
|
-
composed: true
|
|
126
|
-
}));
|
|
127
|
-
this.dispatchEvent(new Event("change", {
|
|
128
|
-
bubbles: true,
|
|
129
|
-
composed: true
|
|
130
|
-
}));
|
|
128
|
+
this.clearValue();
|
|
131
129
|
this.focus();
|
|
132
130
|
};
|
|
133
131
|
this.handleStepperClick = (delta) => (e) => {
|
|
@@ -451,6 +449,26 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
451
449
|
else if (elements.filter(blocksImplicitSubmission).length <= 1) form.requestSubmit();
|
|
452
450
|
});
|
|
453
451
|
}
|
|
452
|
+
/** 값을 비우고 그 사실을 알린다 — 지우기 버튼과 검색 칸의 Escape 가 같은 길을 탄다. */
|
|
453
|
+
clearValue() {
|
|
454
|
+
this.reset();
|
|
455
|
+
this.dispatchEvent(new InputEvent("input", {
|
|
456
|
+
bubbles: true,
|
|
457
|
+
composed: true
|
|
458
|
+
}));
|
|
459
|
+
this.dispatchEvent(new Event("change", {
|
|
460
|
+
bubbles: true,
|
|
461
|
+
composed: true
|
|
462
|
+
}));
|
|
463
|
+
if (this.type === "search") this.fireSearch();
|
|
464
|
+
}
|
|
465
|
+
/** 검색 확정 — 목록 소스의 검색어 모양(`{ query }`). */
|
|
466
|
+
fireSearch() {
|
|
467
|
+
this.fire("search", {
|
|
468
|
+
detail: { query: (this.value ?? "").trim() },
|
|
469
|
+
cancelable: false
|
|
470
|
+
});
|
|
471
|
+
}
|
|
454
472
|
/** 경계(min/max)에 걸리면 시각적으로 흐리고 마우스 클릭을 막는다(CSS `pointer-events:
|
|
455
473
|
* none`) — 네이티브 stepUp/stepDown 자체가 경계에서 조용히 no-op이라 값이 튀지는
|
|
456
474
|
* 않지만, 헛클릭 피드백을 준다. 키보드 Enter/Space는 `pointer-events`의 영향을 받지
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
5
5
|
import { UMenuItem } from "../menu-item/UMenuItem.js";
|
|
6
6
|
import { styles } from "./UMenu.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import "../popover/UPopover.js";
|
|
6
6
|
import { UDivider } from "../divider/UDivider.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { styles } from "./UOption.styles.js";
|
|
6
6
|
import { html, nothing } from "lit";
|
|
@@ -39,6 +39,16 @@ export declare class UPagination extends UElement {
|
|
|
39
39
|
size: PaginationSize;
|
|
40
40
|
/** 현재 쪽 양옆에 보일 쪽 번호 수. */
|
|
41
41
|
siblings: number;
|
|
42
|
+
/**
|
|
43
|
+
* 내비게이션의 접근 가능한 이름. 비우면 로케일 문장(`pagination`). 한 화면에 페이저가 둘 이상이면 각자 이름을 준다
|
|
44
|
+
* (랜드마크는 이름으로 구별된다 — 예: «주문 목록 페이지»).
|
|
45
|
+
*/
|
|
46
|
+
label: string;
|
|
47
|
+
/**
|
|
48
|
+
* 범위 글자를 만든다 — `(start, end, total)`, `start` 는 1 기준(행이 없으면 0). 비우면 로케일 문장(`rangeOfTotal` —
|
|
49
|
+
* «1–20 / 345»). 숫자 형식·문구를 화면 규약에 맞출 때.
|
|
50
|
+
*/
|
|
51
|
+
formatRange?: (start: number, end: number, total: number) => string;
|
|
42
52
|
/** 페이지 수 — 행이 없어도 1. */
|
|
43
53
|
get pageCount(): number;
|
|
44
54
|
private get current();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import "../option/UOption.js";
|
|
@@ -19,6 +19,7 @@ var UPagination = class UPagination extends UElement {
|
|
|
19
19
|
this.pageSizes = [];
|
|
20
20
|
this.size = "md";
|
|
21
21
|
this.siblings = 1;
|
|
22
|
+
this.label = "";
|
|
22
23
|
this.onPageSizeChange = (e) => {
|
|
23
24
|
e.stopPropagation();
|
|
24
25
|
const size = Number(e.target.value);
|
|
@@ -48,8 +49,8 @@ var UPagination = class UPagination extends UElement {
|
|
|
48
49
|
const start = this.totalCount === 0 ? 0 : current * this.pageSize + 1;
|
|
49
50
|
const end = Math.min(this.totalCount, (current + 1) * this.pageSize);
|
|
50
51
|
return html`
|
|
51
|
-
<nav part="nav" aria-label=${Locale.getValue("pagination")}>
|
|
52
|
-
<span class="range" part="range">${Locale.getValue("rangeOfTotal", {
|
|
52
|
+
<nav part="nav" aria-label=${this.label || Locale.getValue("pagination")}>
|
|
53
|
+
<span class="range" part="range">${this.formatRange ? this.formatRange(start, end, this.totalCount) : Locale.getValue("rangeOfTotal", {
|
|
53
54
|
start,
|
|
54
55
|
end,
|
|
55
56
|
total: this.totalCount
|
|
@@ -130,6 +131,8 @@ __decorate([property({
|
|
|
130
131
|
reflect: true
|
|
131
132
|
}), __decorateMetadata("design:type", Object)], UPagination.prototype, "size", void 0);
|
|
132
133
|
__decorate([property({ type: Number }), __decorateMetadata("design:type", Object)], UPagination.prototype, "siblings", void 0);
|
|
134
|
+
__decorate([property({ type: String }), __decorateMetadata("design:type", Object)], UPagination.prototype, "label", void 0);
|
|
135
|
+
__decorate([property({ attribute: false }), __decorateMetadata("design:type", Function)], UPagination.prototype, "formatRange", void 0);
|
|
133
136
|
UPagination = __decorate([customElement("u-pagination")], UPagination);
|
|
134
137
|
//#endregion
|
|
135
138
|
export { UPagination };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UPanel.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isCoarsePointer } from "../../utilities/elements.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFloatingElement } from "../UFloatingElement.js";
|
|
5
5
|
import { OverlayManager } from "../../utilities/OverlayManager.js";
|
|
6
6
|
import { arrayAttrConverter } from "../../utilities/converters.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
6
6
|
import { styles } from "./UProgressBar.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
6
6
|
import { styles } from "./UProgressRing.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../field/UField.js";
|
|
6
6
|
import { UOption } from "../option/UOption.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import "../field/UField.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../spinner/USpinner.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./USkeleton.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../tooltip/UTooltip.js";
|
|
6
6
|
import "../field/UField.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
6
|
import { styles } from "./USpinner.styles.js";
|
|
7
7
|
import { syncProgressbar } from "../../utilities/progressAria.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import { arrayAttrConverter } from "../../utilities/converters.js";
|
|
6
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
7
|
import { styles } from "./USplitPanel.styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import { styles } from "./USteps.styles.js";
|
|
6
6
|
import { html, nothing } from "lit";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -3,6 +3,9 @@ import { css } from "lit";
|
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
6
|
+
/* 위치 지정 — 안의 숨김 문구(절대 위치 · 1px)의 포함 블록이 이 요소가 된다. 없으면 포함 블록이 문서 전체라 호스트의
|
|
7
|
+
overflow 감싸개를 건너뛰고 그 정적 위치에서 문서를 늘렸다(위치 지정되지 않은 스크롤 상자 안에서). */
|
|
8
|
+
position: relative;
|
|
6
9
|
font-size: var(--u-text-label-size, 13px);
|
|
7
10
|
line-height: var(--u-text-label-leading, 1.5);
|
|
8
11
|
color: var(--u-txt-color-weaker, #757575);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import { styles } from "./USwitch.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import { styles } from "./UTab.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
5
5
|
import { UPanel } from "../panel/UPanel.js";
|
|
6
6
|
import { UTab } from "../tab/UTab.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
6
6
|
import { styles } from "./UTag.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UText.styles.js";
|
|
5
5
|
import { customElement, property } from "lit/decorators.js";
|
|
6
6
|
import { html, literal } from "lit/static-html.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../field/UField.js";
|
|
6
6
|
import { styles } from "./UTextarea.styles.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFloatingElement } from "../UFloatingElement.js";
|
|
4
4
|
import { styles } from "./UTooltip.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
5
5
|
import { UTreeItem } from "../tree-item/UTreeItem.js";
|
|
6
6
|
import { styles } from "./UTree.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import "../spinner/USpinner.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
package/dist/react/UInput.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ type UInputOwnProps = Omit<UInputElement, keyof HTMLElement>;
|
|
|
5
5
|
|
|
6
6
|
export declare const UInput: React.ForwardRefExoticComponent<
|
|
7
7
|
Partial<Omit<UInputElement, Exclude<keyof React.HTMLAttributes<UInputElement>, keyof UInputOwnProps>>>
|
|
8
|
-
& Omit<React.HTMLAttributes<UInputElement>, keyof UInputOwnProps | 'onInput' | 'onChange'>
|
|
8
|
+
& Omit<React.HTMLAttributes<UInputElement>, keyof UInputOwnProps | 'onInput' | 'onChange' | 'onSearch'>
|
|
9
9
|
& React.RefAttributes<UInputElement>
|
|
10
10
|
& {
|
|
11
11
|
onInput?: (event: CustomEvent) => void;
|
|
12
12
|
onChange?: (event: CustomEvent) => void;
|
|
13
|
+
onSearch?: (event: CustomEvent<{ query: string }>) => void;
|
|
13
14
|
}
|
|
14
15
|
>;
|
|
15
16
|
|
package/dist/react/UInput.js
CHANGED
package/package.json
CHANGED
|
@@ -75,6 +75,8 @@ button.addEventListener('copy', (e: ClipboardEvent) => {
|
|
|
75
75
|
|
|
76
76
|
## Sizing
|
|
77
77
|
|
|
78
|
-
This component
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
This component does not inherit the surrounding typography — it reads as an affordance next to text
|
|
79
|
+
of any size. Its size follows the control density instead: `--u-density` × 9/7, 18px at the default
|
|
80
|
+
density (14px), so it grows with the `u-button` text beside it on a denser screen. See
|
|
81
|
+
[design-tokens.md](../../../../docs/design-tokens.md) for the components that follow a scale rather than the
|
|
82
|
+
surrounding text.
|
|
@@ -90,6 +90,7 @@ the library does not infer one from field meaning.
|
|
|
90
90
|
|-------|-------------|
|
|
91
91
|
| `input` | Fires on every keystroke |
|
|
92
92
|
| `change` | Fires when the value is committed — on `Enter` or on blur, and only if it changed (like a native `<input>`). On `Enter` inside a form it fires before the form submits |
|
|
93
|
+
| `search` | `type="search"` only — a search was committed: `Enter`, the clear button, or `Escape` (which clears a non-empty value; on an empty field `Escape` is left to the page, e.g. to close a dialog). `detail.query` is the value with surrounding spaces trimmed. This is the shape list sources take (`bindSource`, `u-list-page` in `@iyulab/enterprise`) |
|
|
93
94
|
|
|
94
95
|
## Form submission
|
|
95
96
|
|
|
@@ -37,6 +37,8 @@ pager.addEventListener('page-change', (e) => {
|
|
|
37
37
|
| `pageSizes` | `number[]` | `[]` | | Choices for rows per page (attribute `page-sizes`, a comma list). Empty — no select |
|
|
38
38
|
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | ✓ | Size step of the buttons and the select, as the other controls |
|
|
39
39
|
| `siblings` | `number` | `1` | | Page numbers shown on each side of the current one |
|
|
40
|
+
| `label` | `string` | `''` | | The navigation's accessible name; the locale string (`pagination`) when empty. Give each pager on a page its own — landmarks are told apart by name |
|
|
41
|
+
| `formatRange` | `(start, end, total) => string` | — | | Builds the range text (`start` is 1-based, 0 when there are no rows); the locale string (`rangeOfTotal`) when unset |
|
|
40
42
|
|
|
41
43
|
`pageCount` (read-only) is the number of pages — 1 when there are no rows.
|
|
42
44
|
|