@iyulab/components 2.35.0 → 2.36.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 +39 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/components/UFloatingElement.js +3 -3
- package/dist/components/UFormControlElement.js +2 -2
- package/dist/components/UOverlayElement.js +3 -3
- package/dist/components/alert/UAlert.js +6 -6
- package/dist/components/auto-scroll/UAutoScroll.js +2 -2
- package/dist/components/avatar/UAvatar.js +2 -2
- package/dist/components/badge/UBadge.js +4 -4
- package/dist/components/breadcrumb/UBreadcrumb.js +3 -3
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +3 -3
- package/dist/components/button/UButton.js +3 -3
- package/dist/components/button/UButton.styles.js +6 -2
- package/dist/components/button-group/UButtonGroup.js +2 -2
- package/dist/components/calendar/UCalendar.js +4 -4
- package/dist/components/calendar/datetime.js +1 -1
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.js +5 -5
- package/dist/components/carousel/UCarousel.styles.js +4 -0
- package/dist/components/checkbox/UCheckbox.js +4 -4
- package/dist/components/chip/UChip.js +6 -6
- package/dist/components/command-palette/UCommandPalette.js +6 -6
- package/dist/components/copy-button/UCopyButton.js +5 -5
- package/dist/components/date-picker/UDatePicker.js +8 -8
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +8 -0
- package/dist/components/date-range-picker/UDateRangePicker.js +31 -13
- package/dist/components/dialog/UDialog.js +4 -4
- package/dist/components/divider/UDivider.js +2 -2
- package/dist/components/drawer/UDrawer.js +4 -4
- package/dist/components/drawer/UDrawer.styles.js +16 -0
- package/dist/components/expander/UExpander.js +3 -3
- package/dist/components/field/UField.js +4 -4
- package/dist/components/file-input/UFileInput.js +5 -5
- package/dist/components/form/UForm.js +3 -3
- package/dist/components/icon/UIcon.js +2 -2
- package/dist/components/icon-button/UIconButton.js +4 -4
- package/dist/components/input/UInput.js +9 -9
- package/dist/components/menu/UMenu.js +3 -3
- package/dist/components/menu-item/UMenuItem.js +5 -5
- package/dist/components/option/UOption.js +4 -4
- package/dist/components/option-group/UOptionGroup.js +2 -2
- package/dist/components/pagination/UPagination.js +5 -5
- package/dist/components/panel/UPanel.js +2 -2
- package/dist/components/popover/UPopover.js +3 -3
- package/dist/components/progress-bar/UProgressBar.js +2 -2
- package/dist/components/progress-ring/UProgressRing.js +2 -2
- package/dist/components/radio/URadio.js +4 -4
- package/dist/components/rating/URating.js +5 -5
- package/dist/components/select/USelect.js +10 -10
- package/dist/components/skeleton/USkeleton.js +2 -2
- package/dist/components/slider/USlider.js +5 -5
- package/dist/components/spinner/USpinner.js +4 -4
- package/dist/components/split-panel/USplitPanel.js +4 -4
- package/dist/components/steps/USteps.d.ts +14 -0
- package/dist/components/steps/USteps.js +38 -3
- package/dist/components/steps/USteps.styles.js +16 -0
- package/dist/components/switch/USwitch.js +3 -3
- package/dist/components/tab/UTab.js +6 -6
- package/dist/components/tab-nav/UTabNav.js +2 -2
- package/dist/components/tab-panel/UTabPanel.js +4 -4
- package/dist/components/tag/UTag.js +3 -3
- package/dist/components/text/UText.js +2 -2
- package/dist/components/textarea/UTextarea.js +4 -4
- package/dist/components/tooltip/UTooltip.js +3 -3
- package/dist/components/tree/UTree.js +3 -3
- package/dist/components/tree-item/UTreeItem.js +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -25
- package/dist/utilities/Dialog.js +2 -2
- package/dist/utilities/Theme.js +1 -1
- package/dist/utilities/Toast.js +1 -1
- package/dist/utilities/chars.d.ts +2 -0
- package/dist/utilities/chars.js +1 -1
- package/dist/utilities/numberFormat.d.ts +23 -0
- package/dist/utilities/numberFormat.js +260 -0
- package/package.json +1 -1
- package/skills/iyulab-components/SKILL.md +1 -0
- package/skills/iyulab-components/references/components/steps.md +4 -0
- package/skills/iyulab-components/references/utilities/format.md +2 -0
- package/skills/iyulab-components/references/utilities/number-format.md +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.36.0] - 2026-10-30
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`applyNumberFormat(value, format, locale?)`** — one number format for tables, sheets and widgets: a spreadsheet
|
|
8
|
+
format code (`#,##0.00`, `0.0%`, `#,##0;[Red](#,##0)`, `#,##0원`, sections, scaling, literals, `[$₩-412]`) or
|
|
9
|
+
`Intl.NumberFormat` options. Returns `{ text, tone? }` — a section color becomes a theme status tone — or `null`
|
|
10
|
+
for code syntax it does not support. Neither path writes a signed zero. Exported with the `NumberFormat`,
|
|
11
|
+
`FormattedNumber` and `FormatTone` types.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`u-button` shows its keyboard focus ring.** The ring is the inner button's outline, drawn 2px outside the
|
|
16
|
+
host box, and the host clipped its overflow — so a focused `u-button` (every appearance, link buttons too) looked
|
|
17
|
+
exactly like an unfocused one (WCAG 2.4.7). The host no longer clips; the inner button does, which keeps the content
|
|
18
|
+
inside the rounded box without cutting its own outline.
|
|
19
|
+
- **The focused name tab of `u-carousel pagination-style="labels"` shows its whole ring.** The row spans the host's width
|
|
20
|
+
at its bottom edge and the host clips its slides, so the ring drawn outside the tab was cut on three sides; it is now
|
|
21
|
+
drawn just inside the tab.
|
|
22
|
+
- **A `u-button` label too long for its width ends in «…».** The label box did not shrink, so the declared ellipsis
|
|
23
|
+
never applied and the text was simply cut at the edge.
|
|
24
|
+
|
|
25
|
+
## [2.35.1] - 2026-10-25
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- **A drawer that fills a phone screen keeps its close button and actions off the notch.** The panel now pads the
|
|
30
|
+
screen edges it touches by `env(safe-area-inset-*)` — top, bottom and its own side for a side drawer — so on a page
|
|
31
|
+
with `viewport-fit=cover` the header and footer no longer sit under a notch or home indicator. Pages without it see
|
|
32
|
+
no change (the insets are 0).
|
|
33
|
+
- **An empty `u-date-range-picker` shows its whole placeholder.** The text box took the input's default width (about
|
|
34
|
+
twenty characters), shorter than the range placeholder, so its end was cut off («YYYY-MM-DD – YYYY-MM-DI»). Without
|
|
35
|
+
`chars` the box is now as wide as the longer of the placeholder and a filled range, measured in the rendered font;
|
|
36
|
+
a width set on the host still decides.
|
|
37
|
+
- **`u-steps` no longer cuts off steps in a narrow box.** The default `line` form kept every step on one row, so in a
|
|
38
|
+
narrow container (seven steps in a 22rem side panel) the steps past the edge were clipped. When the steps do not fit
|
|
39
|
+
the element's width it now folds to one step per row, with the connectors running down from the markers, and
|
|
40
|
+
returns to one row when the width allows. `bars` and `compact` are unchanged.
|
|
41
|
+
|
|
3
42
|
## [2.35.0] - 2026-10-24
|
|
4
43
|
|
|
5
44
|
### Added
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
|
|
2
2
|
function __decorate(decorators, target, key, desc) {
|
|
3
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// \0@oxc-project+runtime@0.
|
|
1
|
+
// \0@oxc-project+runtime@0.156.0/helpers/esm/decorateMetadata.js
|
|
2
2
|
function __decorateMetadata(k, v) {
|
|
3
3
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UElement } from "./UElement.js";
|
|
2
1
|
import { getParentElement, querySelectorAllWithin } from "../utilities/elements.js";
|
|
2
|
+
import { UElement } from "./UElement.js";
|
|
3
3
|
import { styles } from "./UFloatingElement.styles.js";
|
|
4
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.
|
|
5
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { property, state } from "lit/decorators.js";
|
|
7
7
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, getOverflowAncestors, hide, offset, shift } from "@floating-ui/dom";
|
|
8
8
|
// src/components/UFloatingElement.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "./UElement.js";
|
|
2
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UFormControlElement.styles.js";
|
|
3
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { property, state } from "lit/decorators.js";
|
|
6
6
|
// src/components/UFormControlElement.ts
|
|
7
7
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UElement } from "./UElement.js";
|
|
2
1
|
import { isFocusCandidate, querySelectorDeep } from "../utilities/elements.js";
|
|
3
|
-
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
2
|
import { OverlayManager } from "../utilities/OverlayManager.js";
|
|
6
3
|
import { arrayAttrConverter } from "../utilities/converters.js";
|
|
7
4
|
import { HostAria, nameFromSlot } from "../utilities/hostAria.js";
|
|
5
|
+
import { UElement } from "./UElement.js";
|
|
8
6
|
import { styles } from "./UOverlayElement.styles.js";
|
|
7
|
+
import __decorateMetadata from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { property } from "lit/decorators.js";
|
|
10
10
|
import { createFocusTrap } from "focus-trap";
|
|
11
11
|
// src/components/UOverlayElement.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
1
|
import "../button/UButton.js";
|
|
7
|
-
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
8
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UElement } from "../UElement.js";
|
|
9
4
|
import { styles } from "./UAlert.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
12
|
// src/components/alert/UAlert.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
3
|
import { styles } from "./UAutoScroll.styles.js";
|
|
6
4
|
import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
// src/components/auto-scroll/UAutoScroll.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UAvatar.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
// src/components/avatar/UAvatar.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
5
|
-
import "../icon/UIcon.js";
|
|
6
2
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
7
3
|
import { styles } from "./UBadge.styles.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
5
|
+
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html, nothing } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
10
|
// src/components/badge/UBadge.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UBreadcrumb.styles.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
8
8
|
// src/components/breadcrumb/UBreadcrumb.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
5
2
|
import { styles } from "./UBreadcrumbItem.styles.js";
|
|
3
|
+
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
4
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../spinner/USpinner.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UButton.styles.js";
|
|
6
4
|
import { FORWARDED_ARIA, readForwardedAria } from "./forwarded-aria.js";
|
|
7
5
|
import { SlotPresence } from "../../utilities/slotPresence.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -59,7 +59,8 @@ var styles = css`
|
|
|
59
59
|
background-color: transparent;
|
|
60
60
|
|
|
61
61
|
transition: all var(--u-duration-normal, 220ms) var(--u-ease-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
62
|
-
|
|
62
|
+
|
|
63
|
+
|
|
63
64
|
user-select: none;
|
|
64
65
|
cursor: pointer;
|
|
65
66
|
}
|
|
@@ -335,6 +336,8 @@ var styles = css`
|
|
|
335
336
|
padding: var(--btn-padding-block, 0.5em) var(--btn-padding-inline, 1em);
|
|
336
337
|
border: 1px solid var(--btn-border-color, transparent);
|
|
337
338
|
border-radius: inherit;
|
|
339
|
+
|
|
340
|
+
overflow: hidden;
|
|
338
341
|
|
|
339
342
|
|
|
340
343
|
|
|
@@ -379,7 +382,8 @@ var styles = css`
|
|
|
379
382
|
}
|
|
380
383
|
|
|
381
384
|
.content {
|
|
382
|
-
|
|
385
|
+
|
|
386
|
+
flex: 1 1 auto;
|
|
383
387
|
min-width: 0;
|
|
384
388
|
line-height: 1.5;
|
|
385
389
|
display: inline-flex;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { UButton } from "../button/UButton.js";
|
|
5
3
|
import { UIconButton } from "../icon-button/UIconButton.js";
|
|
6
4
|
import { styles } from "./UButtonGroup.styles.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
// src/components/button-group/UButtonGroup.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
1
|
import "../icon-button/UIconButton.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
3
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
4
|
import { formatDate } from "../../utilities/format.js";
|
|
7
5
|
import { addDays, addMonths, daysInMonth, isDayUnavailable, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate } from "./dates.js";
|
|
8
6
|
import { styles } from "./UCalendar.styles.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property, state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { localOffset, readDateValue, writeInstant } from "../../utilities/dateValue.js";
|
|
2
1
|
import { parseISODate } from "./dates.js";
|
|
2
|
+
import { localOffset, readDateValue, writeInstant } from "../../utilities/dateValue.js";
|
|
3
3
|
// src/components/calendar/datetime.ts
|
|
4
4
|
/** ISO day + `HH:mm` or `HH:mm:ss` → `YYYY-MM-DDTHH:mm:ss±HH:mm` (the offset of that local day and time). */
|
|
5
5
|
function toDateTimeOffset(day, time) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UCard.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import { HostAria } from "../../utilities/hostAria.js";
|
|
6
1
|
import "../button/UButton.js";
|
|
7
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UElement } from "../UElement.js";
|
|
4
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
5
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
8
6
|
import { UNATTENDED_IDLE_MS } from "../../utilities/unattended.js";
|
|
9
7
|
import { styles } from "./UCarousel.styles.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html, nothing } from "lit";
|
|
11
11
|
import { customElement, property, state } from "lit/decorators.js";
|
|
12
12
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
3
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
4
|
import { styles } from "./UCheckbox.styles.js";
|
|
5
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
6
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property, query } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
|
-
import "../button/UButton.js";
|
|
1
|
+
import "../tag/UTag.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import "../button/UButton.js";
|
|
7
4
|
import "../tooltip/UTooltip.js";
|
|
8
|
-
import "../
|
|
5
|
+
import { UElement } from "../UElement.js";
|
|
9
6
|
import { styles } from "./UChip.styles.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
8
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
9
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
12
|
// src/components/chip/UChip.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
5
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
6
|
-
import "../spinner/USpinner.js";
|
|
7
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import "../spinner/USpinner.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
8
4
|
import { styles } from "./UCommandPalette.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UElement } from "../UElement.js";
|
|
3
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
1
|
+
import "../icon-button/UIconButton.js";
|
|
5
2
|
import "../button/UButton.js";
|
|
6
3
|
import "../icon/UIcon.js";
|
|
7
|
-
import "../
|
|
4
|
+
import { UElement } from "../UElement.js";
|
|
8
5
|
import { styles } from "./UCopyButton.styles.js";
|
|
6
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
7
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
8
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
// src/components/copy-button/UCopyButton.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
|
-
import "../icon/UIcon.js";
|
|
7
|
-
import { dateTextPattern, formatDateText, formatDateTimeText, parseDate, parseDateTime } from "../../utilities/format.js";
|
|
8
|
-
import { isDayUnavailable, parseISODate, toISODate } from "../calendar/dates.js";
|
|
9
2
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
10
3
|
import "../field/UField.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
11
5
|
import { UPopover } from "../popover/UPopover.js";
|
|
6
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
12
8
|
import { CharsWidthController } from "../../utilities/chars.js";
|
|
13
|
-
import {
|
|
9
|
+
import { dateTextPattern, formatDateText, formatDateTimeText, parseDate, parseDateTime } from "../../utilities/format.js";
|
|
14
10
|
import { DateTextController } from "../calendar/date-text-controller.js";
|
|
11
|
+
import { isDayUnavailable, parseISODate, toISODate } from "../calendar/dates.js";
|
|
12
|
+
import { normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset } from "../calendar/datetime.js";
|
|
15
13
|
import { styles } from "../calendar/picker.styles.js";
|
|
16
14
|
import { styles as styles$1 } from "./UDatePicker.styles.js";
|
|
15
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
16
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
17
17
|
import { html } from "lit";
|
|
18
18
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
19
19
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -86,6 +86,14 @@ export declare class UDateRangePicker extends UFormControlElement<string> {
|
|
|
86
86
|
chars?: number;
|
|
87
87
|
/** `chars` 의 폭 — 그려지는 N자를 잰다(`ch` 는 글꼴 기능·자간을 빼고 잰다). */
|
|
88
88
|
private readonly charsWidth;
|
|
89
|
+
/**
|
|
90
|
+
* `chars` 가 없을 때의 자연 폭 — 자리표시와 범위 글(두 날짜 + 구분자) 중 긴 쪽을 그려 잰다. 입력의 기본 폭(`size` 20)은 범위
|
|
91
|
+
* 자리표시보다 짧아 끝이 잘렸다. 치는 동안의 글자로는 늘리지 않는다(칸이 들썩이지 않게).
|
|
92
|
+
*/
|
|
93
|
+
private readonly naturalWidth;
|
|
94
|
+
private textPattern;
|
|
95
|
+
/** 자연 폭을 정하는 글 — 자리표시, 또는 같은 꼴의 범위 값(패턴 글자 자리에 숫자) 중 긴 쪽. */
|
|
96
|
+
private naturalSample;
|
|
89
97
|
/** Earliest selectable day (ISO `YYYY-MM-DD`), inclusive. */
|
|
90
98
|
min?: string;
|
|
91
99
|
/** Latest selectable day (ISO `YYYY-MM-DD`), inclusive. */
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
|
-
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
7
|
-
import "../icon/UIcon.js";
|
|
8
|
-
import { dateTextPattern, formatDateRangeText, formatDateTimeRangeText, parseDateRange, parseDateTimeRange } from "../../utilities/format.js";
|
|
9
|
-
import { parseISODate } from "../calendar/dates.js";
|
|
10
2
|
import { UCalendar } from "../calendar/UCalendar.js";
|
|
11
3
|
import "../field/UField.js";
|
|
4
|
+
import "../icon/UIcon.js";
|
|
12
5
|
import { UPopover } from "../popover/UPopover.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import { UFormControlElement } from "../UFormControlElement.js";
|
|
7
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
8
|
+
import { CharsWidthController, charsCount } from "../../utilities/chars.js";
|
|
9
|
+
import { dateTextPattern, formatDateRangeText, formatDateTimeRangeText, parseDateRange, parseDateTimeRange } from "../../utilities/format.js";
|
|
15
10
|
import { DateTextController } from "../calendar/date-text-controller.js";
|
|
11
|
+
import { parseISODate } from "../calendar/dates.js";
|
|
12
|
+
import { normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset, toLocalDateTime } from "../calendar/datetime.js";
|
|
16
13
|
import { styles } from "../calendar/picker.styles.js";
|
|
14
|
+
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
17
15
|
import { resolvePresets } from "./presets.js";
|
|
18
16
|
import { styles as styles$1 } from "./UDateRangePicker.styles.js";
|
|
17
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
18
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
19
19
|
import { html } from "lit";
|
|
20
20
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
21
21
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -53,6 +53,12 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
53
53
|
text: () => this.renderRoot.querySelector(".text-input"),
|
|
54
54
|
box: () => this.renderRoot.querySelector(".container")
|
|
55
55
|
});
|
|
56
|
+
this.naturalWidth = new CharsWidthController(this, {
|
|
57
|
+
chars: () => charsCount(this.chars) ? void 0 : this.naturalSample().length,
|
|
58
|
+
sample: () => this.naturalSample(),
|
|
59
|
+
text: () => this.renderRoot.querySelector(".text-input"),
|
|
60
|
+
box: () => this.renderRoot.querySelector(".container")
|
|
61
|
+
});
|
|
56
62
|
this.clearable = false;
|
|
57
63
|
this.format = "iso";
|
|
58
64
|
this.presets = [];
|
|
@@ -140,6 +146,16 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
140
146
|
styles$1
|
|
141
147
|
];
|
|
142
148
|
}
|
|
149
|
+
textPattern() {
|
|
150
|
+
return this.mode === "datetime" ? `${dateTextPattern(this.format)} ${this.seconds ? "HH:mm:ss" : "HH:mm"}` : dateTextPattern(this.format);
|
|
151
|
+
}
|
|
152
|
+
/** 자연 폭을 정하는 글 — 자리표시, 또는 같은 꼴의 범위 값(패턴 글자 자리에 숫자) 중 긴 쪽. */
|
|
153
|
+
naturalSample() {
|
|
154
|
+
const pattern = this.textPattern();
|
|
155
|
+
const placeholder = this.placeholder ?? `${pattern} – ${pattern}`;
|
|
156
|
+
const valueShape = `${pattern} – ${pattern}`.replace(/[A-Za-z]/g, "0");
|
|
157
|
+
return placeholder.length >= valueShape.length ? placeholder : valueShape;
|
|
158
|
+
}
|
|
143
159
|
/** Start of the range — the ISO day, or in `mode="datetime"` the ISO date-time; `undefined` when
|
|
144
160
|
* there is no complete range. */
|
|
145
161
|
get start() {
|
|
@@ -217,7 +233,9 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
217
233
|
}
|
|
218
234
|
render() {
|
|
219
235
|
const chars = this.charsWidth.width;
|
|
220
|
-
const pattern = this.
|
|
236
|
+
const pattern = this.textPattern();
|
|
237
|
+
const placeholder = this.placeholder ?? `${pattern} – ${pattern}`;
|
|
238
|
+
const width = chars ?? this.naturalWidth.width;
|
|
221
239
|
return html`
|
|
222
240
|
<u-field part="field"
|
|
223
241
|
?required=${this.required}
|
|
@@ -231,7 +249,7 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
231
249
|
<div class="container" part="container" @click=${this.textEntry.handleContainerClick}
|
|
232
250
|
style=${`--_icons: ${this.suffixButtonCount()}${chars ? `; --date-range-picker-min-text: ${chars}` : ""}`}>
|
|
233
251
|
<input class="text-input" part="input"
|
|
234
|
-
style=${ifDefined(
|
|
252
|
+
style=${ifDefined(width ? `inline-size: ${width}` : void 0)}
|
|
235
253
|
type="text"
|
|
236
254
|
autocomplete="off"
|
|
237
255
|
role="combobox"
|
|
@@ -241,7 +259,7 @@ var UDateRangePicker = class UDateRangePicker extends UFormControlElement {
|
|
|
241
259
|
aria-label=${ifDefined(this.resolvedAriaLabel)}
|
|
242
260
|
aria-description=${ifDefined(this.resolvedAriaDescription)}
|
|
243
261
|
aria-invalid=${this.textEntry.badText ? "true" : "false"}
|
|
244
|
-
placeholder=${
|
|
262
|
+
placeholder=${placeholder}
|
|
245
263
|
.value=${this.textEntry.text}
|
|
246
264
|
?disabled=${this.effectivelyDisabled}
|
|
247
265
|
?readonly=${this.readonly}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
7
4
|
import { styles } from "./UDialog.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
10
|
// src/components/dialog/UDialog.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
2
|
import { styles } from "./UDivider.styles.js";
|
|
3
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
7
|
// src/components/divider/UDivider.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
|
-
import { UOverlayElement } from "../UOverlayElement.js";
|
|
5
1
|
import "../button/UButton.js";
|
|
6
2
|
import "../icon/UIcon.js";
|
|
3
|
+
import { UOverlayElement } from "../UOverlayElement.js";
|
|
7
4
|
import { styles } from "./UDrawer.styles.js";
|
|
5
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
6
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
7
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
10
|
// src/components/drawer/UDrawer.ts
|
|
@@ -32,6 +32,22 @@ var styles = css`
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
:host([placement="left"]) .panel,
|
|
36
|
+
:host([placement="right"]) .panel {
|
|
37
|
+
padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
|
|
38
|
+
}
|
|
39
|
+
:host([placement="left"]) .panel { padding-left: env(safe-area-inset-left, 0px); }
|
|
40
|
+
:host([placement="right"]) .panel { padding-right: env(safe-area-inset-right, 0px); }
|
|
41
|
+
:host([placement="top"]) .panel,
|
|
42
|
+
:host([placement="bottom"]) .panel {
|
|
43
|
+
padding-left: env(safe-area-inset-left, 0px);
|
|
44
|
+
padding-right: env(safe-area-inset-right, 0px);
|
|
45
|
+
}
|
|
46
|
+
:host([placement="top"]) .panel { padding-top: env(safe-area-inset-top, 0px); }
|
|
47
|
+
:host([placement="bottom"]) .panel { padding-bottom: env(safe-area-inset-bottom, 0px); }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
35
51
|
|
|
36
52
|
|
|
37
53
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UElement } from "../UElement.js";
|
|
2
|
-
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
-
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
1
|
import "../icon/UIcon.js";
|
|
2
|
+
import { UElement } from "../UElement.js";
|
|
5
3
|
import { styles } from "./UExpander.styles.js";
|
|
4
|
+
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorateMetadata.js";
|
|
5
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/decorate.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
// src/components/expander/UExpander.ts
|