@iyulab/components 1.52.0 → 1.54.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 +73 -0
- package/README.md +54 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.152.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.152.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/_virtual/_glob-assets_raw/player-pause-fill.svg.a756c400.js +4 -0
- package/dist/_virtual/_glob-assets_raw/player-play-fill.svg.768b6efc.js +4 -0
- package/dist/assets/locales/ar.json.js +27 -1
- package/dist/assets/locales/de.json.js +27 -1
- package/dist/assets/locales/en.json.js +27 -1
- package/dist/assets/locales/es.json.js +27 -1
- package/dist/assets/locales/fr.json.js +27 -1
- package/dist/assets/locales/id.json.js +27 -1
- package/dist/assets/locales/ja.json.js +27 -1
- package/dist/assets/locales/ko.json.js +27 -1
- package/dist/assets/locales/pt-BR.json.js +27 -1
- package/dist/assets/locales/ru.json.js +27 -1
- package/dist/assets/locales/th.json.js +27 -1
- package/dist/assets/locales/vi.json.js +27 -1
- package/dist/assets/locales/zh-CN.json.js +27 -1
- package/dist/assets/locales/zh-TW.json.js +27 -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/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.d.ts +101 -0
- package/dist/components/calendar/UCalendar.js +223 -0
- package/dist/components/calendar/UCalendar.styles.d.ts +1 -0
- package/dist/components/calendar/UCalendar.styles.js +137 -0
- package/dist/components/calendar/dates.d.ts +13 -0
- package/dist/components/calendar/dates.js +37 -0
- package/dist/components/calendar/picker.styles.d.ts +5 -0
- package/dist/components/calendar/picker.styles.js +78 -0
- package/dist/components/card/UCard.js +2 -2
- package/dist/components/carousel/UCarousel.d.ts +17 -0
- package/dist/components/carousel/UCarousel.js +53 -12
- package/dist/components/carousel/UCarousel.styles.js +20 -0
- 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/date-picker/UDatePicker.d.ts +8 -13
- package/dist/components/date-picker/UDatePicker.js +36 -165
- package/dist/components/date-picker/UDatePicker.styles.js +0 -135
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +113 -0
- package/dist/components/date-range-picker/UDateRangePicker.js +276 -0
- package/dist/components/date-range-picker/UDateRangePicker.styles.d.ts +1 -0
- package/dist/components/date-range-picker/UDateRangePicker.styles.js +83 -0
- package/dist/components/date-range-picker/presets.d.ts +32 -0
- package/dist/components/date-range-picker/presets.js +78 -0
- 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/input/UInput.d.ts +31 -3
- package/dist/components/input/UInput.js +131 -24
- 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/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/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/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/plugins/vite-plugin-react-wrapper.d.ts +7 -0
- package/dist/plugins/vite-plugin-react-wrapper.js +11 -1
- package/dist/react/UDateRangePicker.d.ts +13 -0
- package/dist/react/UDateRangePicker.js +12 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/format.d.ts +27 -0
- package/dist/utilities/format.js +71 -1
- package/dist/utilities/icons.js +4 -0
- package/package.json +3 -3
- package/skills/iyulab-components/SKILL.md +1 -0
- package/skills/iyulab-components/references/components/carousel.md +6 -0
- package/skills/iyulab-components/references/components/date-picker.md +2 -0
- package/skills/iyulab-components/references/components/date-range-picker.md +147 -0
- package/skills/iyulab-components/references/components/input.md +14 -4
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Locale } from "../../utilities/Locale.js";
|
|
2
|
+
import { addDays, addMonths, daysInMonth, parseISODate, toISODate } from "../calendar/dates.js";
|
|
3
|
+
//#region src/components/date-range-picker/presets.ts
|
|
4
|
+
var startOfWeek = (d) => addDays(d, -d.getDay());
|
|
5
|
+
var endOfMonth = (d) => new Date(d.getFullYear(), d.getMonth(), daysInMonth(d));
|
|
6
|
+
/** Built-in ranges as pure functions of "today" (a local calendar day). Both ends are inclusive. */
|
|
7
|
+
var BUILTIN_PRESETS = {
|
|
8
|
+
today: {
|
|
9
|
+
key: "today",
|
|
10
|
+
range: (t) => [t, t]
|
|
11
|
+
},
|
|
12
|
+
yesterday: {
|
|
13
|
+
key: "yesterday",
|
|
14
|
+
range: (t) => [addDays(t, -1), addDays(t, -1)]
|
|
15
|
+
},
|
|
16
|
+
last7Days: {
|
|
17
|
+
key: "last7Days",
|
|
18
|
+
range: (t) => [addDays(t, -6), t]
|
|
19
|
+
},
|
|
20
|
+
last30Days: {
|
|
21
|
+
key: "last30Days",
|
|
22
|
+
range: (t) => [addDays(t, -29), t]
|
|
23
|
+
},
|
|
24
|
+
thisWeek: {
|
|
25
|
+
key: "thisWeek",
|
|
26
|
+
range: (t) => [startOfWeek(t), addDays(startOfWeek(t), 6)]
|
|
27
|
+
},
|
|
28
|
+
lastWeek: {
|
|
29
|
+
key: "lastWeek",
|
|
30
|
+
range: (t) => [addDays(startOfWeek(t), -7), addDays(startOfWeek(t), -1)]
|
|
31
|
+
},
|
|
32
|
+
thisMonth: {
|
|
33
|
+
key: "thisMonth",
|
|
34
|
+
range: (t) => [addMonths(t, 0), endOfMonth(t)]
|
|
35
|
+
},
|
|
36
|
+
lastMonth: {
|
|
37
|
+
key: "lastMonth",
|
|
38
|
+
range: (t) => [addMonths(t, -1), endOfMonth(addMonths(t, -1))]
|
|
39
|
+
},
|
|
40
|
+
thisYear: {
|
|
41
|
+
key: "thisYear",
|
|
42
|
+
range: (t) => [new Date(t.getFullYear(), 0, 1), new Date(t.getFullYear(), 11, 31)]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var toISO = (v) => typeof v === "string" ? toISODate(parseISODate(v)) : toISODate(v);
|
|
46
|
+
/**
|
|
47
|
+
* Resolves the `presets` list against `today` — labels through the active locale, ends as ISO
|
|
48
|
+
* days earliest first. An unknown name is skipped and reported through `onUnknown`.
|
|
49
|
+
*/
|
|
50
|
+
function resolvePresets(options, today, onUnknown) {
|
|
51
|
+
const out = [];
|
|
52
|
+
for (const option of options) if (typeof option === "string") {
|
|
53
|
+
const builtin = BUILTIN_PRESETS[option];
|
|
54
|
+
if (!builtin) {
|
|
55
|
+
onUnknown?.(option);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const [a, b] = builtin.range(today);
|
|
59
|
+
out.push(ordered(Locale.getValue(builtin.key), toISODate(a), toISODate(b)));
|
|
60
|
+
} else {
|
|
61
|
+
const [a, b] = option.range();
|
|
62
|
+
out.push(ordered(option.label, toISO(a), toISO(b)));
|
|
63
|
+
}
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
function ordered(label, a, b) {
|
|
67
|
+
return a <= b ? {
|
|
68
|
+
label,
|
|
69
|
+
start: a,
|
|
70
|
+
end: b
|
|
71
|
+
} : {
|
|
72
|
+
label,
|
|
73
|
+
start: b,
|
|
74
|
+
end: a
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { BUILTIN_PRESETS, resolvePresets };
|
|
@@ -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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
4
4
|
import "../button/UButton.js";
|
|
5
5
|
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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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,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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UOverlayElement } from "../UOverlayElement.js";
|
|
4
4
|
import "../button/UButton.js";
|
|
5
5
|
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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
5
5
|
import { styles } from "./UField.styles.js";
|
|
6
6
|
import { html, nothing } from "lit";
|
|
@@ -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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { Locale } from "../../utilities/Locale.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import "../button/UButton.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import "../tooltip/UTooltip.js";
|
|
@@ -11,6 +11,15 @@ export type InputVariant = 'outlined' | 'filled' | 'underlined' | 'borderless';
|
|
|
11
11
|
* prefix, suffix 슬롯과 라벨, 설명, 유효성 검사 기능을 지원합니다.
|
|
12
12
|
* 기본 슬롯에 u-option을 넣으면 combobox 모드로 동작합니다.
|
|
13
13
|
*
|
|
14
|
+
* `type="number"` reads what the user types in the page's locale — `1,5` on a German page and
|
|
15
|
+
* `1.5` anywhere are both 1.5, `1.234,5` and `1,234.5` are both 1234.5 (rules: `parseNumber`).
|
|
16
|
+
* The inner input is `type="text" inputmode="decimal"`, because a native number input drops or
|
|
17
|
+
* rejects a decimal comma depending on the browser. `value` is always the canonical dot-decimal
|
|
18
|
+
* string (`""` when the text is not a number — that text reports `badInput`), `valueAsNumber` the
|
|
19
|
+
* number. On blur the text is shown with the locale's decimal separator. `min`/`max`/`step` are
|
|
20
|
+
* checked on the parsed number with native semantics (no `step` = 1; `step="any"` = no step check);
|
|
21
|
+
* the stepper buttons and ArrowUp/ArrowDown step the value.
|
|
22
|
+
*
|
|
14
23
|
* @slot - u-option 아이템 (combobox 모드)
|
|
15
24
|
* @slot prefix - 입력 필드 앞에 표시하는 아이콘 등
|
|
16
25
|
* @slot suffix - 입력 필드 뒤에 표시하는 추가 콘텐츠
|
|
@@ -79,6 +88,14 @@ export declare class UInput extends UFormControlElement<string> {
|
|
|
79
88
|
inputEl?: HTMLInputElement;
|
|
80
89
|
popoverEl?: UPopover;
|
|
81
90
|
showPassword: boolean;
|
|
91
|
+
/** `type="number"` — the text in the field, which may differ from `value` (`1,5` shows while
|
|
92
|
+
* `value` is `1.5`; unparseable text shows while `value` is `""`). */
|
|
93
|
+
private numberText;
|
|
94
|
+
/** Set while `value` is being written from what the user typed, so the field keeps their text
|
|
95
|
+
* instead of being re-rendered from `value` mid-edit. */
|
|
96
|
+
private syncingFromText;
|
|
97
|
+
/** The value as a number — `NaN` when empty or not a number (same as the native input). */
|
|
98
|
+
get valueAsNumber(): number;
|
|
82
99
|
private options;
|
|
83
100
|
disconnectedCallback(): void;
|
|
84
101
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -87,7 +104,14 @@ export declare class UInput extends UFormControlElement<string> {
|
|
|
87
104
|
* blur 전에 폼이 제출되면(다른 컨트롤의 Enter 등) `FormData`가 낡은 값을 돌려줬다.
|
|
88
105
|
* 형제 `USelect`의 `updated()`+`onChangeValue()` 패턴과 같은 경계 — `T`가 이미
|
|
89
106
|
* `string`이라 `valueAsString` 같은 변환 없이 그대로 넘긴다. */
|
|
107
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
|
90
108
|
protected updated(changedProperties: PropertyValues): void;
|
|
109
|
+
/** Canonical `value` → the text shown: the locale's decimal separator, no grouping inserted. */
|
|
110
|
+
private displayNumber;
|
|
111
|
+
/** Writes what the user typed into `value` (canonical, or `""` when it is not a number). */
|
|
112
|
+
private syncNumberFromText;
|
|
113
|
+
/** `type="number"` 의 검증 — 네이티브 숫자 입력이 아니므로 파싱한 수로 직접 잰다(같은 플래그·같은 문구). */
|
|
114
|
+
private numberValidity;
|
|
91
115
|
protected setValidity(): void;
|
|
92
116
|
reset(): void;
|
|
93
117
|
focus(options?: FocusOptions): void;
|
|
@@ -135,10 +159,14 @@ export declare class UInput extends UFormControlElement<string> {
|
|
|
135
159
|
* 않아 그대로 stepUp/stepDown까지 가지만 결과는 동일하게 no-op이다. */
|
|
136
160
|
private get canIncrement();
|
|
137
161
|
private get canDecrement();
|
|
138
|
-
/**
|
|
139
|
-
* 다시 구현하지 않는다. 클릭이 곧 "값을 확정"하는 동작이라 change도 함께 낸다(네이티브
|
|
140
|
-
* 스핀 버튼과 동일하게, 타이핑 중 blur 대기가 아니다). */
|
|
162
|
+
/** 증감 버튼 — 클릭이 곧 «값을 확정» 하는 동작이라 change 도 함께 낸다(네이티브 스핀 버튼과 같다). */
|
|
141
163
|
private handleStepperClick;
|
|
164
|
+
/**
|
|
165
|
+
* 한 step 만큼 올리거나 내린다 — 네이티브 `stepUp`/`stepDown` 의 규칙: 기준선(`min`, 없으면 0)에서 step 의
|
|
166
|
+
* 정수배로 맞추고(어긋난 값은 그 방향의 다음 눈금으로), `min`/`max` 로 자른다. 빈 값은 0 에서 출발한다.
|
|
167
|
+
* 이동이 없으면(경계) 아무 이벤트도 내지 않는다. 소수 step 의 부동소수 잡음(0.1+0.2)은 step·기준선의 자릿수로 반올림한다.
|
|
168
|
+
*/
|
|
169
|
+
private stepBy;
|
|
142
170
|
private handleOptionClick;
|
|
143
171
|
private handleOptionKeydown;
|
|
144
172
|
/** 옵션이 없으면 열지 않는다. ⚠닫힘은 막지 않는다 — 종전에는 같은 조건으로 `hide` 도 취소해,
|
|
@@ -1,10 +1,11 @@
|
|
|
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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { isImeComposing } from "../../utilities/keyboard.js";
|
|
5
5
|
import "../spinner/USpinner.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import { Locale } from "../../utilities/Locale.js";
|
|
8
|
+
import { parseNumber } from "../../utilities/format.js";
|
|
8
9
|
import "../field/UField.js";
|
|
9
10
|
import { UPopover } from "../popover/UPopover.js";
|
|
10
11
|
import { UOption } from "../option/UOption.js";
|
|
@@ -25,6 +26,8 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
25
26
|
this.autocorrect = false;
|
|
26
27
|
this.autocapitalize = "off";
|
|
27
28
|
this.showPassword = false;
|
|
29
|
+
this.numberText = "";
|
|
30
|
+
this.syncingFromText = false;
|
|
28
31
|
this.options = [];
|
|
29
32
|
this.handleSlotChange = (e) => {
|
|
30
33
|
this.cleanup(this.options);
|
|
@@ -44,6 +47,13 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
44
47
|
};
|
|
45
48
|
this.handleInputInput = (e) => {
|
|
46
49
|
if (this.composing) return;
|
|
50
|
+
if (this.type === "number") {
|
|
51
|
+
const text = this.inputEl?.value ?? "";
|
|
52
|
+
if (text === this.numberText) return;
|
|
53
|
+
this.syncNumberFromText(text);
|
|
54
|
+
this.relay(e);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
47
57
|
const next = this.inputEl?.value;
|
|
48
58
|
if (next === this.value) return;
|
|
49
59
|
this.value = next;
|
|
@@ -52,7 +62,8 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
52
62
|
this.handleInputChange = (e) => {
|
|
53
63
|
e.stopPropagation();
|
|
54
64
|
if (this.composing) return;
|
|
55
|
-
this.
|
|
65
|
+
if (this.type === "number") this.syncNumberFromText(this.inputEl?.value ?? "");
|
|
66
|
+
else this.value = this.inputEl?.value || "";
|
|
56
67
|
if (!this.novalidate) this.validate();
|
|
57
68
|
this.dispatchEvent(new Event("change", {
|
|
58
69
|
bubbles: true,
|
|
@@ -60,7 +71,10 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
60
71
|
}));
|
|
61
72
|
};
|
|
62
73
|
this.handleInputBlur = (_) => {
|
|
63
|
-
|
|
74
|
+
if (this.type === "number") {
|
|
75
|
+
this.syncNumberFromText(this.inputEl?.value ?? "");
|
|
76
|
+
if (parseNumber(this.numberText) !== null) this.numberText = this.displayNumber(this.value ?? "");
|
|
77
|
+
} else this.value = this.inputEl?.value || "";
|
|
64
78
|
if (!this.novalidate) this.validate();
|
|
65
79
|
};
|
|
66
80
|
this.handleInputKeydown = (e) => {
|
|
@@ -68,6 +82,11 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
68
82
|
this.handleImplicitSubmission(e);
|
|
69
83
|
return;
|
|
70
84
|
}
|
|
85
|
+
if (this.type === "number" && (e.key === "ArrowUp" || e.key === "ArrowDown") && !this.popoverEl?.open && !this.readonly && !this.effectivelyDisabled) {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
this.stepBy(e.key === "ArrowUp" ? 1 : -1);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
71
90
|
if (this.options.length === 0) return;
|
|
72
91
|
switch (e.key) {
|
|
73
92
|
case "ArrowDown":
|
|
@@ -106,19 +125,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
106
125
|
};
|
|
107
126
|
this.handleStepperClick = (delta) => (e) => {
|
|
108
127
|
e.stopImmediatePropagation();
|
|
109
|
-
|
|
110
|
-
if (!input) return;
|
|
111
|
-
try {
|
|
112
|
-
if (delta === 1) input.stepUp();
|
|
113
|
-
else input.stepDown();
|
|
114
|
-
} catch {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
input.dispatchEvent(new InputEvent("input", { bubbles: true }));
|
|
118
|
-
this.dispatchEvent(new Event("change", {
|
|
119
|
-
bubbles: true,
|
|
120
|
-
composed: true
|
|
121
|
-
}));
|
|
128
|
+
this.stepBy(delta);
|
|
122
129
|
this.focus();
|
|
123
130
|
};
|
|
124
131
|
this.handleOptionClick = (e) => {
|
|
@@ -161,6 +168,11 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
161
168
|
static {
|
|
162
169
|
this.styles = [super.styles, styles];
|
|
163
170
|
}
|
|
171
|
+
/** The value as a number — `NaN` when empty or not a number (same as the native input). */
|
|
172
|
+
get valueAsNumber() {
|
|
173
|
+
if (this.type !== "number" || !this.value) return NaN;
|
|
174
|
+
return parseNumber(this.value, "en") ?? NaN;
|
|
175
|
+
}
|
|
164
176
|
disconnectedCallback() {
|
|
165
177
|
this.cleanup(this.options);
|
|
166
178
|
super.disconnectedCallback();
|
|
@@ -169,7 +181,8 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
169
181
|
const editable = !this.effectivelyDisabled && !this.readonly;
|
|
170
182
|
const showToggle = this.type === "password" && editable;
|
|
171
183
|
const showClear = this.clearable && editable && !!this.value;
|
|
172
|
-
const
|
|
184
|
+
const isNumber = this.type === "number";
|
|
185
|
+
const showStepper = isNumber && editable;
|
|
173
186
|
return html`
|
|
174
187
|
<u-field part="field"
|
|
175
188
|
?required=${this.required}
|
|
@@ -184,7 +197,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
184
197
|
<slot name="prefix"></slot>
|
|
185
198
|
|
|
186
199
|
<input part="input"
|
|
187
|
-
type=${this.type === "password" && this.showPassword ? "text" : this.type}
|
|
200
|
+
type=${isNumber || this.type === "password" && this.showPassword ? "text" : this.type}
|
|
188
201
|
aria-label=${ifDefined(this.resolvedAriaLabel)}
|
|
189
202
|
aria-description=${ifDefined(this.resolvedAriaDescription)}
|
|
190
203
|
name=${ifDefined(this.name)}
|
|
@@ -193,21 +206,21 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
193
206
|
?readonly=${this.readonly}
|
|
194
207
|
minlength=${ifDefined(this.minlength)}
|
|
195
208
|
maxlength=${ifDefined(this.maxlength)}
|
|
196
|
-
min=${ifDefined(this.min)}
|
|
197
|
-
max=${ifDefined(this.max)}
|
|
198
|
-
step=${ifDefined(this.step)}
|
|
209
|
+
min=${ifDefined(isNumber ? void 0 : this.min)}
|
|
210
|
+
max=${ifDefined(isNumber ? void 0 : this.max)}
|
|
211
|
+
step=${ifDefined(isNumber ? void 0 : this.step)}
|
|
199
212
|
dirname=${ifDefined(this.dirname)}
|
|
200
213
|
spellcheck=${this.spellcheck}
|
|
201
214
|
?autofocus=${this.autofocus}
|
|
202
215
|
?autocorrect=${this.autocorrect}
|
|
203
216
|
autocapitalize=${ifDefined(this.autocapitalize)}
|
|
204
217
|
autocomplete=${ifDefined(this.autocomplete)}
|
|
205
|
-
inputmode=${ifDefined(this.inputmode)}
|
|
218
|
+
inputmode=${ifDefined(this.inputmode ?? (isNumber ? "decimal" : void 0))}
|
|
206
219
|
enterkeyhint=${ifDefined(this.enterkeyhint)}
|
|
207
220
|
size=${ifDefined(this.size)}
|
|
208
221
|
pattern=${ifDefined(this.pattern)}
|
|
209
222
|
placeholder=${ifDefined(this.placeholder)}
|
|
210
|
-
.value=${live(this.value || "")}
|
|
223
|
+
.value=${live(isNumber ? this.numberText : this.value || "")}
|
|
211
224
|
@input=${this.handleInputInput}
|
|
212
225
|
@change=${this.handleInputChange}
|
|
213
226
|
@blur=${this.handleInputBlur}
|
|
@@ -282,11 +295,68 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
282
295
|
* blur 전에 폼이 제출되면(다른 컨트롤의 Enter 등) `FormData`가 낡은 값을 돌려줬다.
|
|
283
296
|
* 형제 `USelect`의 `updated()`+`onChangeValue()` 패턴과 같은 경계 — `T`가 이미
|
|
284
297
|
* `string`이라 `valueAsString` 같은 변환 없이 그대로 넘긴다. */
|
|
298
|
+
willUpdate(changedProperties) {
|
|
299
|
+
super.willUpdate(changedProperties);
|
|
300
|
+
if (this.type === "number" && (changedProperties.has("value") || changedProperties.has("type")) && !this.syncingFromText) this.numberText = this.displayNumber(this.value ?? "");
|
|
301
|
+
this.syncingFromText = false;
|
|
302
|
+
}
|
|
285
303
|
updated(changedProperties) {
|
|
286
304
|
super.updated(changedProperties);
|
|
287
305
|
if (changedProperties.has("value")) this.internals?.setFormValue(this.value ?? "");
|
|
288
306
|
}
|
|
307
|
+
/** Canonical `value` → the text shown: the locale's decimal separator, no grouping inserted. */
|
|
308
|
+
displayNumber(value) {
|
|
309
|
+
if ((value ? parseNumber(value, "en") : null) === null) return value;
|
|
310
|
+
const decimal = new Intl.NumberFormat(Locale.get()).formatToParts(1.1).find((p) => p.type === "decimal")?.value ?? ".";
|
|
311
|
+
return value.replace(".", decimal);
|
|
312
|
+
}
|
|
313
|
+
/** Writes what the user typed into `value` (canonical, or `""` when it is not a number). */
|
|
314
|
+
syncNumberFromText(text) {
|
|
315
|
+
this.numberText = text;
|
|
316
|
+
const n = parseNumber(text);
|
|
317
|
+
const next = text.trim() === "" || n === null ? "" : String(n);
|
|
318
|
+
if (next !== this.value) {
|
|
319
|
+
this.syncingFromText = true;
|
|
320
|
+
this.value = next;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/** `type="number"` 의 검증 — 네이티브 숫자 입력이 아니므로 파싱한 수로 직접 잰다(같은 플래그·같은 문구). */
|
|
324
|
+
numberValidity() {
|
|
325
|
+
const text = this.numberText.trim();
|
|
326
|
+
if (!text) return this.required ? {
|
|
327
|
+
flags: { valueMissing: true },
|
|
328
|
+
message: Locale.getValue("valueMissing")
|
|
329
|
+
} : void 0;
|
|
330
|
+
const n = parseNumber(text);
|
|
331
|
+
if (n === null) return {
|
|
332
|
+
flags: { badInput: true },
|
|
333
|
+
message: Locale.getValue("badInput")
|
|
334
|
+
};
|
|
335
|
+
const min = this.min !== void 0 && this.min !== "" ? Number(this.min) : void 0;
|
|
336
|
+
const max = this.max !== void 0 && this.max !== "" ? Number(this.max) : void 0;
|
|
337
|
+
if (min !== void 0 && n < min) return {
|
|
338
|
+
flags: { rangeUnderflow: true },
|
|
339
|
+
message: Locale.getValue("rangeUnderflow", { min: this.min ?? "" })
|
|
340
|
+
};
|
|
341
|
+
if (max !== void 0 && n > max) return {
|
|
342
|
+
flags: { rangeOverflow: true },
|
|
343
|
+
message: Locale.getValue("rangeOverflow", { max: this.max ?? "" })
|
|
344
|
+
};
|
|
345
|
+
const step = this.step ?? 1;
|
|
346
|
+
if (Number.isFinite(step) && step > 0) {
|
|
347
|
+
const k = (n - (min ?? 0)) / step;
|
|
348
|
+
if (Math.abs(k - Math.round(k)) > 1e-9) return {
|
|
349
|
+
flags: { stepMismatch: true },
|
|
350
|
+
message: Locale.getValue("stepMismatch", { step })
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
}
|
|
289
354
|
setValidity() {
|
|
355
|
+
if (this.type === "number") {
|
|
356
|
+
const result = this.numberValidity();
|
|
357
|
+
this.commit(result?.flags ?? {}, result?.message ?? "", this.containerEl ?? void 0);
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
290
360
|
const v = this.inputEl?.validity;
|
|
291
361
|
let flags = {};
|
|
292
362
|
let message = "";
|
|
@@ -322,6 +392,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
322
392
|
}
|
|
323
393
|
reset() {
|
|
324
394
|
this.value = "";
|
|
395
|
+
this.numberText = "";
|
|
325
396
|
this.invalid = false;
|
|
326
397
|
}
|
|
327
398
|
focus(options) {
|
|
@@ -379,6 +450,35 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
379
450
|
if (this.min === void 0 || this.min === "" || !this.value) return true;
|
|
380
451
|
return Number(this.value) > Number(this.min);
|
|
381
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* 한 step 만큼 올리거나 내린다 — 네이티브 `stepUp`/`stepDown` 의 규칙: 기준선(`min`, 없으면 0)에서 step 의
|
|
455
|
+
* 정수배로 맞추고(어긋난 값은 그 방향의 다음 눈금으로), `min`/`max` 로 자른다. 빈 값은 0 에서 출발한다.
|
|
456
|
+
* 이동이 없으면(경계) 아무 이벤트도 내지 않는다. 소수 step 의 부동소수 잡음(0.1+0.2)은 step·기준선의 자릿수로 반올림한다.
|
|
457
|
+
*/
|
|
458
|
+
stepBy(delta) {
|
|
459
|
+
const step = this.step !== void 0 && Number.isFinite(this.step) && this.step > 0 ? this.step : 1;
|
|
460
|
+
const min = this.min !== void 0 && this.min !== "" ? Number(this.min) : void 0;
|
|
461
|
+
const max = this.max !== void 0 && this.max !== "" ? Number(this.max) : void 0;
|
|
462
|
+
const current = parseNumber(this.numberText) ?? 0;
|
|
463
|
+
const base = min ?? 0;
|
|
464
|
+
const k = (current - base) / step;
|
|
465
|
+
const index = delta > 0 ? Math.floor(k + 1e-9) + 1 : Math.ceil(k - 1e-9) - 1;
|
|
466
|
+
const places = Math.max(fractionDigits(step), fractionDigits(base));
|
|
467
|
+
let next = Number((base + index * step).toFixed(places));
|
|
468
|
+
if (min !== void 0 && next < min) next = min;
|
|
469
|
+
if (max !== void 0 && next > max) next = max;
|
|
470
|
+
if (this.numberText.trim() !== "" && next === current) return;
|
|
471
|
+
this.value = String(next);
|
|
472
|
+
this.dispatchEvent(new InputEvent("input", {
|
|
473
|
+
bubbles: true,
|
|
474
|
+
composed: true
|
|
475
|
+
}));
|
|
476
|
+
if (!this.novalidate) this.validate();
|
|
477
|
+
this.dispatchEvent(new Event("change", {
|
|
478
|
+
bubbles: true,
|
|
479
|
+
composed: true
|
|
480
|
+
}));
|
|
481
|
+
}
|
|
382
482
|
};
|
|
383
483
|
__decorate([property({
|
|
384
484
|
type: String,
|
|
@@ -412,7 +512,14 @@ __decorate([query(".container", true), __decorateMetadata("design:type", typeof
|
|
|
412
512
|
__decorate([query("input", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], UInput.prototype, "inputEl", void 0);
|
|
413
513
|
__decorate([query("u-popover", true), __decorateMetadata("design:type", typeof UPopover === "undefined" ? Object : UPopover)], UInput.prototype, "popoverEl", void 0);
|
|
414
514
|
__decorate([state(), __decorateMetadata("design:type", Boolean)], UInput.prototype, "showPassword", void 0);
|
|
515
|
+
__decorate([state(), __decorateMetadata("design:type", String)], UInput.prototype, "numberText", void 0);
|
|
415
516
|
UInput = __decorate([customElement("u-input")], UInput);
|
|
517
|
+
/** 수의 소수 자릿수(`0.25` → 2, `1e-7` → 7) — step 연산의 반올림 자리. */
|
|
518
|
+
function fractionDigits(n) {
|
|
519
|
+
const [mantissa, exponent] = String(n).split("e");
|
|
520
|
+
const digits = (mantissa.split(".")[1] ?? "").length;
|
|
521
|
+
return Math.max(0, digits - Number(exponent ?? 0));
|
|
522
|
+
}
|
|
416
523
|
/** HTML 명세의 «암묵 제출을 막는 필드» — 네이티브 단일 행 입력의 이 type 들. `u-input` 의 type 은 전부 여기에 든다. */
|
|
417
524
|
var BLOCKING_TYPES = /* @__PURE__ */ new Set([
|
|
418
525
|
"text",
|
|
@@ -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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UMenuItem } from "../menu-item/UMenuItem.js";
|
|
5
5
|
import { styles } from "./UMenu.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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";
|
|
@@ -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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UProgressBar.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property, state } 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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { styles } from "./UProgressRing.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property, state } from "lit/decorators.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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
5
|
import "../field/UField.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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import "../icon/UIcon.js";
|
|
5
5
|
import { Locale } from "../../utilities/Locale.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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import "../spinner/USpinner.js";
|
|
5
5
|
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.152.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.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,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.152.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
4
4
|
import { Locale } from "../../utilities/Locale.js";
|
|
5
5
|
import "../tooltip/UTooltip.js";
|