@iyulab/components 2.30.1 → 2.31.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 +34 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/decorate.js +1 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/decorateMetadata.js +1 -2
- package/dist/_virtual/_glob-assets_raw/alert-circle-fill.svg.1e438750.js +1 -2
- package/dist/_virtual/_glob-assets_raw/alert-triangle-fill.svg.1a8797c4.js +1 -2
- package/dist/_virtual/_glob-assets_raw/bell-fill.svg.d37c41d9.js +1 -2
- package/dist/_virtual/_glob-assets_raw/calendar.svg.02c3abd8.js +1 -2
- package/dist/_virtual/_glob-assets_raw/check.svg.4690b01e.js +1 -2
- package/dist/_virtual/_glob-assets_raw/chevron-down.svg.0ccd06ea.js +1 -2
- package/dist/_virtual/_glob-assets_raw/chevron-left.svg.b4601050.js +1 -2
- package/dist/_virtual/_glob-assets_raw/chevron-right.svg.0711bb67.js +1 -2
- package/dist/_virtual/_glob-assets_raw/chevron-up.svg.ed917211.js +1 -2
- package/dist/_virtual/_glob-assets_raw/circle-check-fill.svg.3f0fcb72.js +1 -2
- package/dist/_virtual/_glob-assets_raw/copy.svg.6192f853.js +1 -2
- package/dist/_virtual/_glob-assets_raw/dark.css.e8ac080d.js +1 -2
- package/dist/_virtual/_glob-assets_raw/eye-off.svg.7aa25df0.js +1 -2
- package/dist/_virtual/_glob-assets_raw/eye.svg.2e5e9c4c.js +1 -2
- package/dist/_virtual/_glob-assets_raw/info-circle-fill.svg.6580071d.js +1 -2
- package/dist/_virtual/_glob-assets_raw/layout-sidebar.svg.3fe5a68f.js +1 -2
- package/dist/_virtual/_glob-assets_raw/light.css.637cb2f8.js +1 -2
- package/dist/_virtual/_glob-assets_raw/menu-2.svg.d6c83cc4.js +1 -2
- package/dist/_virtual/_glob-assets_raw/minus.svg.4610de75.js +1 -2
- package/dist/_virtual/_glob-assets_raw/player-pause-fill.svg.a756c400.js +1 -2
- package/dist/_virtual/_glob-assets_raw/player-play-fill.svg.768b6efc.js +1 -2
- package/dist/_virtual/_glob-assets_raw/plus.svg.d83ead68.js +1 -2
- package/dist/_virtual/_glob-assets_raw/search.svg.0ba2012d.js +1 -2
- package/dist/_virtual/_glob-assets_raw/star-fill.svg.f24b5a2d.js +1 -2
- package/dist/_virtual/_glob-assets_raw/star.svg.4af61468.js +1 -2
- package/dist/_virtual/_glob-assets_raw/x.svg.5596f6bb.js +1 -2
- package/dist/assets/locales/ar.json.js +6 -3
- package/dist/assets/locales/de.json.js +6 -3
- package/dist/assets/locales/en.json.js +6 -3
- package/dist/assets/locales/es.json.js +6 -3
- package/dist/assets/locales/fr.json.js +6 -3
- package/dist/assets/locales/id.json.js +6 -3
- package/dist/assets/locales/ja.json.js +6 -3
- package/dist/assets/locales/ko.json.js +6 -3
- package/dist/assets/locales/pt-BR.json.js +6 -3
- package/dist/assets/locales/ru.json.js +6 -3
- package/dist/assets/locales/th.json.js +6 -3
- package/dist/assets/locales/vi.json.js +6 -3
- package/dist/assets/locales/zh-CN.json.js +6 -3
- package/dist/assets/locales/zh-TW.json.js +6 -3
- package/dist/components/UElement.js +1 -2
- package/dist/components/UElement.styles.js +1 -2
- package/dist/components/UFloatingElement.js +3 -4
- package/dist/components/UFloatingElement.styles.js +1 -2
- package/dist/components/UFormControlElement.js +14 -5
- package/dist/components/UFormControlElement.styles.js +1 -2
- package/dist/components/UOverlayElement.js +3 -4
- package/dist/components/UOverlayElement.styles.js +1 -2
- package/dist/components/alert/UAlert.js +3 -4
- package/dist/components/alert/UAlert.styles.js +1 -2
- package/dist/components/avatar/UAvatar.js +3 -4
- package/dist/components/avatar/UAvatar.styles.js +1 -2
- package/dist/components/badge/UBadge.js +3 -4
- package/dist/components/badge/UBadge.styles.js +1 -2
- package/dist/components/breadcrumb/UBreadcrumb.js +2 -3
- package/dist/components/breadcrumb/UBreadcrumb.styles.js +1 -2
- package/dist/components/breadcrumb-item/UBreadcrumbItem.js +3 -4
- package/dist/components/breadcrumb-item/UBreadcrumbItem.styles.js +1 -2
- package/dist/components/button/UButton.js +3 -4
- package/dist/components/button/UButton.styles.js +1 -2
- package/dist/components/button/forwarded-aria.js +1 -2
- package/dist/components/button-group/UButtonGroup.js +3 -4
- package/dist/components/button-group/UButtonGroup.styles.js +1 -2
- package/dist/components/calendar/UCalendar.js +3 -4
- package/dist/components/calendar/UCalendar.styles.js +1 -2
- package/dist/components/calendar/date-text-controller.js +1 -2
- package/dist/components/calendar/dates.js +1 -2
- package/dist/components/calendar/datetime.js +1 -2
- package/dist/components/calendar/picker.styles.js +1 -2
- package/dist/components/card/UCard.js +3 -4
- package/dist/components/card/UCard.styles.js +1 -2
- package/dist/components/carousel/UCarousel.js +3 -4
- package/dist/components/carousel/UCarousel.styles.js +1 -2
- package/dist/components/checkbox/UCheckbox.js +3 -4
- package/dist/components/checkbox/UCheckbox.styles.js +1 -2
- package/dist/components/chip/UChip.js +3 -4
- package/dist/components/chip/UChip.styles.js +1 -2
- package/dist/components/copy-button/UCopyButton.js +3 -4
- package/dist/components/copy-button/UCopyButton.styles.js +1 -2
- package/dist/components/date-picker/UDatePicker.js +3 -4
- package/dist/components/date-picker/UDatePicker.styles.js +1 -2
- package/dist/components/date-range-picker/UDateRangePicker.d.ts +1 -1
- package/dist/components/date-range-picker/UDateRangePicker.js +3 -4
- package/dist/components/date-range-picker/UDateRangePicker.styles.js +1 -2
- package/dist/components/date-range-picker/presets.d.ts +1 -1
- package/dist/components/date-range-picker/presets.js +17 -2
- package/dist/components/dialog/UDialog.js +3 -4
- package/dist/components/dialog/UDialog.styles.js +1 -2
- package/dist/components/divider/UDivider.js +3 -4
- package/dist/components/divider/UDivider.styles.js +1 -2
- package/dist/components/drawer/UDrawer.js +3 -4
- package/dist/components/drawer/UDrawer.styles.js +1 -2
- package/dist/components/expander/UExpander.js +3 -4
- package/dist/components/expander/UExpander.styles.js +1 -2
- package/dist/components/field/UField.js +25 -4
- package/dist/components/field/UField.styles.js +1 -2
- package/dist/components/file-input/UFileInput.js +3 -4
- package/dist/components/file-input/UFileInput.styles.js +1 -2
- package/dist/components/form/UForm.js +3 -4
- package/dist/components/form/UForm.styles.js +1 -2
- package/dist/components/icon/UIcon.js +3 -4
- package/dist/components/icon/UIcon.styles.js +1 -2
- package/dist/components/icon-button/UIconButton.js +3 -4
- package/dist/components/icon-button/UIconButton.styles.js +1 -2
- package/dist/components/input/UInput.js +42 -8
- package/dist/components/input/UInput.styles.js +1 -2
- package/dist/components/menu/UMenu.js +3 -4
- package/dist/components/menu/UMenu.styles.js +1 -2
- package/dist/components/menu-item/UMenuItem.js +3 -4
- package/dist/components/menu-item/UMenuItem.styles.js +1 -2
- package/dist/components/option/UOption.js +3 -4
- package/dist/components/option/UOption.styles.js +1 -2
- package/dist/components/option-group/UOptionGroup.js +3 -4
- package/dist/components/option-group/UOptionGroup.styles.js +1 -2
- package/dist/components/pagination/UPagination.js +3 -4
- package/dist/components/pagination/UPagination.styles.js +1 -2
- package/dist/components/panel/UPanel.js +3 -4
- package/dist/components/panel/UPanel.styles.js +1 -2
- package/dist/components/popover/UPopover.js +3 -4
- package/dist/components/popover/UPopover.styles.js +1 -2
- package/dist/components/progress-bar/UProgressBar.js +3 -4
- package/dist/components/progress-bar/UProgressBar.styles.js +1 -2
- package/dist/components/progress-ring/UProgressRing.js +3 -4
- package/dist/components/progress-ring/UProgressRing.styles.js +1 -2
- package/dist/components/radio/URadio.js +3 -4
- package/dist/components/radio/URadio.styles.js +1 -2
- package/dist/components/rating/URating.js +3 -4
- package/dist/components/rating/URating.styles.js +1 -2
- package/dist/components/select/USelect.js +3 -4
- package/dist/components/select/USelect.styles.js +1 -2
- package/dist/components/skeleton/USkeleton.js +3 -4
- package/dist/components/skeleton/USkeleton.styles.js +1 -2
- package/dist/components/slider/USlider.js +3 -4
- package/dist/components/slider/USlider.styles.js +1 -2
- package/dist/components/spinner/USpinner.js +3 -4
- package/dist/components/spinner/USpinner.styles.js +1 -2
- package/dist/components/split-panel/USplitPanel.js +3 -4
- package/dist/components/split-panel/USplitPanel.styles.js +1 -2
- package/dist/components/steps/USteps.js +3 -4
- package/dist/components/steps/USteps.styles.js +1 -2
- package/dist/components/switch/USwitch.js +3 -4
- package/dist/components/switch/USwitch.styles.js +1 -2
- package/dist/components/tab/UTab.js +3 -4
- package/dist/components/tab/UTab.styles.js +1 -2
- package/dist/components/tab-nav/UTabNav.js +3 -4
- package/dist/components/tab-nav/UTabNav.styles.js +1 -2
- package/dist/components/tab-panel/UTabPanel.js +3 -4
- package/dist/components/tab-panel/UTabPanel.styles.js +1 -2
- package/dist/components/tag/UTag.js +3 -4
- package/dist/components/tag/UTag.styles.js +1 -2
- package/dist/components/text/UText.js +3 -4
- package/dist/components/text/UText.styles.js +1 -2
- package/dist/components/textarea/UTextarea.js +3 -4
- package/dist/components/textarea/UTextarea.styles.js +1 -2
- package/dist/components/tooltip/UTooltip.d.ts +12 -0
- package/dist/components/tooltip/UTooltip.js +54 -7
- package/dist/components/tooltip/UTooltip.styles.js +1 -2
- package/dist/components/tree/UTree.js +3 -4
- package/dist/components/tree/UTree.styles.js +1 -2
- package/dist/components/tree-item/UTreeItem.js +3 -4
- package/dist/components/tree-item/UTreeItem.styles.js +1 -2
- package/dist/utilities/BrowserStorage.js +1 -2
- package/dist/utilities/Dialog.js +1 -2
- package/dist/utilities/Locale.d.ts +1 -1
- package/dist/utilities/Locale.js +1 -2
- package/dist/utilities/OverlayManager.js +1 -2
- package/dist/utilities/Theme.js +1 -2
- package/dist/utilities/Toast.js +1 -2
- package/dist/utilities/accent.js +1 -2
- package/dist/utilities/chars.js +1 -2
- package/dist/utilities/clipboard.js +1 -2
- package/dist/utilities/composition.js +1 -2
- package/dist/utilities/converters.js +1 -2
- package/dist/utilities/dateValue.js +1 -2
- package/dist/utilities/devWarning.js +1 -2
- package/dist/utilities/elements.js +1 -2
- package/dist/utilities/format.js +1 -2
- package/dist/utilities/hostAria.js +1 -2
- package/dist/utilities/icons.js +18 -3
- package/dist/utilities/keyboard.js +1 -2
- package/dist/utilities/nestedControl.js +1 -2
- package/dist/utilities/progressAria.js +1 -2
- package/dist/utilities/search.js +1 -2
- package/dist/utilities/statusIcon.js +1 -2
- package/dist/utilities/tsv.js +1 -2
- package/package.json +1 -1
- package/skills/iyulab-components/references/components/date-range-picker.md +2 -0
- package/skills/iyulab-components/references/components/tooltip.md +2 -0
|
@@ -1,11 +1,11 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
|
-
|
|
8
|
+
// src/components/expander/UExpander.ts
|
|
9
9
|
var UExpander = class UExpander extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
11
11
|
super(..._args);
|
|
@@ -74,5 +74,4 @@ __decorate([property({
|
|
|
74
74
|
}), __decorateMetadata("design:type", Object)], UExpander.prototype, "disabled", void 0);
|
|
75
75
|
__decorate([property({ type: String }), __decorateMetadata("design:type", Object)], UExpander.prototype, "label", void 0);
|
|
76
76
|
UExpander = __decorate([customElement("u-expander")], UExpander);
|
|
77
|
-
//#endregion
|
|
78
77
|
export { UExpander };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/expander/UExpander.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -93,5 +93,4 @@ var styles = css`
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
`;
|
|
96
|
-
//#endregion
|
|
97
96
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -9,7 +9,7 @@ import { styles } from "./UField.styles.js";
|
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
import { isFocusable } from "tabbable";
|
|
12
|
-
|
|
12
|
+
// src/components/field/UField.ts
|
|
13
13
|
var _UField;
|
|
14
14
|
/** 네이티브로 «폼 컨트롤이거나 포커스를 받도록 저작된» 태그 — 가시성과 무관한 구조 사실이다. */
|
|
15
15
|
var NATIVE_CONTROL_TAGS = /* @__PURE__ */ new Set([
|
|
@@ -19,6 +19,26 @@ var NATIVE_CONTROL_TAGS = /* @__PURE__ */ new Set([
|
|
|
19
19
|
"BUTTON"
|
|
20
20
|
]);
|
|
21
21
|
/**
|
|
22
|
+
* 그 자체로 조작 대상인 ARIA 위젯 역할. 묶음형 컨트롤은 자기 섀도에서 이 역할의 상자를 이 필드에 슬롯하고,
|
|
23
|
+
* 항목은 그 상자 안 슬롯으로 들어온다(`u-radio` 의 `role="radiogroup"` 컨테이너) — 하위 탐색은 슬롯 배정을 따라가지
|
|
24
|
+
* 않으므로, 역할로 세지 않으면 라벨이 실제로 이름 붙인 묶음이 «컨트롤 없음» 이 된다.
|
|
25
|
+
*/
|
|
26
|
+
var WIDGET_ROLES = /* @__PURE__ */ new Set([
|
|
27
|
+
"radiogroup",
|
|
28
|
+
"listbox",
|
|
29
|
+
"combobox",
|
|
30
|
+
"textbox",
|
|
31
|
+
"searchbox",
|
|
32
|
+
"spinbutton",
|
|
33
|
+
"slider",
|
|
34
|
+
"grid",
|
|
35
|
+
"tree",
|
|
36
|
+
"treegrid",
|
|
37
|
+
"tablist",
|
|
38
|
+
"menu",
|
|
39
|
+
"menubar"
|
|
40
|
+
]);
|
|
41
|
+
/**
|
|
22
42
|
* **구조상** 폼 컨트롤인가 — `UField.hasControlInSubtree` 가 쓰는 술어.
|
|
23
43
|
* `isFocusable()`(tabbable)과 달리 **렌더 여부도 `disabled` 도 보지 않는다**: 숨겨진 폼도,
|
|
24
44
|
* 비활성 입력도 «라벨이 가리킬 대상» 이라는 사실은 같다. 근거는 `hasControlInSubtree` 주석.
|
|
@@ -29,6 +49,8 @@ function isFormControlByStructure(node) {
|
|
|
29
49
|
if (node.tagName === "A" && node.hasAttribute("href")) return true;
|
|
30
50
|
if (node.hasAttribute("tabindex")) return true;
|
|
31
51
|
if (node.hasAttribute("contenteditable")) return true;
|
|
52
|
+
const role = node.getAttribute("role");
|
|
53
|
+
if (role && WIDGET_ROLES.has(role)) return true;
|
|
32
54
|
return false;
|
|
33
55
|
}
|
|
34
56
|
/** 자기 글자로 접근성 이름을 갖는 컨트롤 — 필드 라벨로 덮으면 보이는 글자와 이름이 어긋난다. */
|
|
@@ -386,5 +408,4 @@ __decorate([property({
|
|
|
386
408
|
attribute: "description-display"
|
|
387
409
|
}), __decorateMetadata("design:type", Object)], UField.prototype, "descriptionDisplay", void 0);
|
|
388
410
|
UField = _UField = __decorate([customElement("u-field")], UField);
|
|
389
|
-
//#endregion
|
|
390
411
|
export { UField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/field/UField.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -80,5 +80,4 @@ var styles = css`
|
|
|
80
80
|
margin-top: 0.5em;
|
|
81
81
|
}
|
|
82
82
|
`;
|
|
83
|
-
//#endregion
|
|
84
83
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
4
|
import { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import "../field/UField.js";
|
|
@@ -8,7 +8,7 @@ import { styles } from "./UFileInput.styles.js";
|
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, query } from "lit/decorators.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
-
|
|
11
|
+
// src/components/file-input/UFileInput.ts
|
|
12
12
|
var UFileInput = class UFileInput extends UFormControlElement {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
@@ -155,5 +155,4 @@ __decorate([property({
|
|
|
155
155
|
__decorate([query(".trigger", true), __decorateMetadata("design:type", typeof HTMLButtonElement === "undefined" ? Object : HTMLButtonElement)], UFileInput.prototype, "triggerEl", void 0);
|
|
156
156
|
__decorate([query("input[type=\"file\"]", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], UFileInput.prototype, "inputEl", void 0);
|
|
157
157
|
UFileInput = __decorate([customElement("u-file-input")], UFileInput);
|
|
158
|
-
//#endregion
|
|
159
158
|
export { UFileInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/file-input/UFileInput.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: var(--u-file-input-display, inline-block);
|
|
@@ -95,5 +95,4 @@ var styles = css`
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
`;
|
|
98
|
-
//#endregion
|
|
99
98
|
export { styles };
|
|
@@ -1,12 +1,12 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/form/UForm.ts
|
|
10
10
|
var UForm = class UForm extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -113,5 +113,4 @@ __decorate([property({
|
|
|
113
113
|
attribute: false
|
|
114
114
|
}), __decorateMetadata("design:type", typeof Record === "undefined" ? Object : Record)], UForm.prototype, "model", void 0);
|
|
115
115
|
UForm = __decorate([customElement("u-form")], UForm);
|
|
116
|
-
//#endregion
|
|
117
116
|
export { UForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/form/UForm.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
width: 100%;
|
|
@@ -16,5 +16,4 @@ var styles = css`
|
|
|
16
16
|
font-size: inherit;
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
|
-
//#endregion
|
|
20
19
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
@@ -8,7 +8,7 @@ import { nothing } from "lit";
|
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
10
|
import { until } from "lit/directives/until.js";
|
|
11
|
-
|
|
11
|
+
// src/components/icon/UIcon.ts
|
|
12
12
|
var UIcon = class UIcon extends UElement {
|
|
13
13
|
static {
|
|
14
14
|
this.styles = [super.styles, styles];
|
|
@@ -61,5 +61,4 @@ __decorate([property({ type: String }), __decorateMetadata("design:type", Object
|
|
|
61
61
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UIcon.prototype, "name", void 0);
|
|
62
62
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UIcon.prototype, "fallback", void 0);
|
|
63
63
|
UIcon = __decorate([customElement("u-icon")], UIcon);
|
|
64
|
-
//#endregion
|
|
65
64
|
export { UIcon };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
4
|
import { FORWARDED_ARIA, readForwardedAria } from "../button/forwarded-aria.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -9,7 +9,7 @@ import { styles } from "./UIconButton.styles.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";
|
|
12
|
-
|
|
12
|
+
// src/components/icon-button/UIconButton.ts
|
|
13
13
|
var UIconButton = class UIconButton extends UElement {
|
|
14
14
|
constructor(..._args) {
|
|
15
15
|
super(..._args);
|
|
@@ -117,5 +117,4 @@ __decorate([property({
|
|
|
117
117
|
}), __decorateMetadata("design:type", Object)], UIconButton.prototype, "tooltipOffset", void 0);
|
|
118
118
|
__decorate([state(), __decorateMetadata("design:type", Object)], UIconButton.prototype, "slotText", void 0);
|
|
119
119
|
UIconButton = __decorate([customElement("u-icon-button")], UIconButton);
|
|
120
|
-
//#endregion
|
|
121
120
|
export { UIconButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/icon-button/UIconButton.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
@@ -21,5 +21,4 @@ var styles = css`
|
|
|
21
21
|
padding: 0.4em;
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
|
-
//#endregion
|
|
25
24
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
@@ -15,7 +15,7 @@ import { html } from "lit";
|
|
|
15
15
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
16
16
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
17
17
|
import { live } from "lit/directives/live.js";
|
|
18
|
-
|
|
18
|
+
// src/components/input/UInput.ts
|
|
19
19
|
var UInput = class UInput extends UFormControlElement {
|
|
20
20
|
constructor(..._args) {
|
|
21
21
|
super(..._args);
|
|
@@ -360,8 +360,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
360
360
|
};
|
|
361
361
|
const step = this.step ?? 1;
|
|
362
362
|
if (Number.isFinite(step) && step > 0) {
|
|
363
|
-
|
|
364
|
-
if (Math.abs(k - Math.round(k)) > 1e-9) return {
|
|
363
|
+
if (!isStepMultiple(n, min ?? 0, step)) return {
|
|
365
364
|
flags: { stepMismatch: true },
|
|
366
365
|
message: Locale.getValue("stepMismatch", { step })
|
|
367
366
|
};
|
|
@@ -507,8 +506,7 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
507
506
|
const max = this.max !== void 0 && this.max !== "" ? Number(this.max) : void 0;
|
|
508
507
|
const current = parseNumber(this.numberText) ?? 0;
|
|
509
508
|
const base = min ?? 0;
|
|
510
|
-
const
|
|
511
|
-
const index = delta > 0 ? Math.floor(k + 1e-9) + 1 : Math.ceil(k - 1e-9) - 1;
|
|
509
|
+
const index = stepIndex(current, base, step, delta);
|
|
512
510
|
const places = Math.max(fractionDigits(step), fractionDigits(base));
|
|
513
511
|
let next = Number((base + index * step).toFixed(places));
|
|
514
512
|
if (min !== void 0 && next < min) next = min;
|
|
@@ -573,6 +571,43 @@ function fractionDigits(n) {
|
|
|
573
571
|
const digits = (mantissa.split(".")[1] ?? "").length;
|
|
574
572
|
return Math.max(0, digits - Number(exponent ?? 0));
|
|
575
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* `n` 이 `base` 에서 `step` 의 정수 배만큼 떨어져 있는가. 나눗셈의 부동소수 오차는 몫의 크기에 비례해 자라므로
|
|
576
|
+
* (`49.7 / 0.000001` 의 소수부는 7e-9) 절대 허용오차로는 작은 step 에서 거짓 불일치가 난다 — 가장 긴 소수 자릿수로
|
|
577
|
+
* 정수에 맞춰 정확히 나눠 본다. 자릿수가 정수 정밀도를 넘으면 몫에 상대 허용오차를 쓴다.
|
|
578
|
+
*/
|
|
579
|
+
/** 스테퍼가 가야 할 step 번호 — `current` 의 위쪽(+1)·아래쪽(-1) 이웃. 같은 정수 비교라 큰 몫에서도 오차가 없다. */
|
|
580
|
+
function stepIndex(current, base, step, delta) {
|
|
581
|
+
const scale = 10 ** Math.max(fractionDigits(current), fractionDigits(base), fractionDigits(step));
|
|
582
|
+
const scaledCurrent = Math.round(current * scale);
|
|
583
|
+
const scaledBase = Math.round(base * scale);
|
|
584
|
+
const scaledStep = Math.round(step * scale);
|
|
585
|
+
if ([
|
|
586
|
+
scaledCurrent,
|
|
587
|
+
scaledBase,
|
|
588
|
+
scaledStep
|
|
589
|
+
].every(Number.isSafeInteger) && scaledStep > 0) {
|
|
590
|
+
const diff = scaledCurrent - scaledBase;
|
|
591
|
+
const remainder = (diff % scaledStep + scaledStep) % scaledStep;
|
|
592
|
+
const floor = (diff - remainder) / scaledStep;
|
|
593
|
+
return delta > 0 ? floor + 1 : remainder === 0 ? floor - 1 : floor;
|
|
594
|
+
}
|
|
595
|
+
const k = (current - base) / step;
|
|
596
|
+
return delta > 0 ? Math.floor(k + 1e-9) + 1 : Math.ceil(k - 1e-9) - 1;
|
|
597
|
+
}
|
|
598
|
+
function isStepMultiple(n, base, step) {
|
|
599
|
+
const scale = 10 ** Math.max(fractionDigits(n), fractionDigits(base), fractionDigits(step));
|
|
600
|
+
const scaledN = Math.round(n * scale);
|
|
601
|
+
const scaledBase = Math.round(base * scale);
|
|
602
|
+
const scaledStep = Math.round(step * scale);
|
|
603
|
+
if ([
|
|
604
|
+
scaledN,
|
|
605
|
+
scaledBase,
|
|
606
|
+
scaledStep
|
|
607
|
+
].every(Number.isSafeInteger) && scaledStep > 0) return (scaledN - scaledBase) % scaledStep === 0;
|
|
608
|
+
const k = (n - base) / step;
|
|
609
|
+
return Math.abs(k - Math.round(k)) <= Math.max(1e-9, Math.abs(k) * Number.EPSILON * 4);
|
|
610
|
+
}
|
|
576
611
|
/** HTML 명세의 «암묵 제출을 막는 필드» — 네이티브 단일 행 입력의 이 type 들. `u-input` 의 type 은 전부 여기에 든다. */
|
|
577
612
|
var BLOCKING_TYPES = /* @__PURE__ */ new Set([
|
|
578
613
|
"text",
|
|
@@ -596,5 +631,4 @@ function isSubmitButton(el) {
|
|
|
596
631
|
function blocksImplicitSubmission(el) {
|
|
597
632
|
return (el instanceof HTMLInputElement || el instanceof UInput) && BLOCKING_TYPES.has(el.type);
|
|
598
633
|
}
|
|
599
|
-
//#endregion
|
|
600
634
|
export { UInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/input/UInput.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--input-popover-min-height: 0px;
|
|
@@ -263,5 +263,4 @@ var styles = css`
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
`;
|
|
266
|
-
//#endregion
|
|
267
266
|
export { styles };
|
|
@@ -1,12 +1,12 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/menu/UMenu.ts
|
|
10
10
|
var UMenu = class UMenu extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -181,5 +181,4 @@ __decorate([property({
|
|
|
181
181
|
reflect: true
|
|
182
182
|
}), __decorateMetadata("design:type", Object)], UMenu.prototype, "align", void 0);
|
|
183
183
|
UMenu = __decorate([customElement("u-menu")], UMenu);
|
|
184
|
-
//#endregion
|
|
185
184
|
export { UMenu };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/menu/UMenu.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--menu-indent-size: 20px;
|
|
@@ -34,5 +34,4 @@ var styles = css`
|
|
|
34
34
|
background-color: transparent;
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
37
|
-
//#endregion
|
|
38
37
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import "../icon/UIcon.js";
|
|
6
6
|
import "../popover/UPopover.js";
|
|
@@ -10,7 +10,7 @@ import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property, state } from "lit/decorators.js";
|
|
12
12
|
import { live } from "lit/directives/live.js";
|
|
13
|
-
|
|
13
|
+
// src/components/menu-item/UMenuItem.ts
|
|
14
14
|
var _UMenuItem;
|
|
15
15
|
var UMenuItem = class UMenuItem extends UElement {
|
|
16
16
|
static {
|
|
@@ -202,5 +202,4 @@ __decorate([state(), __decorateMetadata("design:type", Boolean)], UMenuItem.prot
|
|
|
202
202
|
__decorate([state(), __decorateMetadata("design:type", Boolean)], UMenuItem.prototype, "leaf", void 0);
|
|
203
203
|
__decorate([state(), __decorateMetadata("design:type", Number)], UMenuItem.prototype, "depth", void 0);
|
|
204
204
|
UMenuItem = _UMenuItem = __decorate([customElement("u-menu-item")], UMenuItem);
|
|
205
|
-
//#endregion
|
|
206
205
|
export { UMenuItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/menu-item/UMenuItem.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--menu-item-depth: 0;
|
|
@@ -151,5 +151,4 @@ var styles = css`
|
|
|
151
151
|
transition-delay: 0s;
|
|
152
152
|
}
|
|
153
153
|
`;
|
|
154
|
-
//#endregion
|
|
155
154
|
export { styles };
|
|
@@ -1,11 +1,11 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
|
-
|
|
8
|
+
// src/components/option/UOption.ts
|
|
9
9
|
var UOption = class UOption extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
11
11
|
super(..._args);
|
|
@@ -95,5 +95,4 @@ __decorate([property({
|
|
|
95
95
|
}), __decorateMetadata("design:type", Object)], UOption.prototype, "marker", void 0);
|
|
96
96
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UOption.prototype, "value", void 0);
|
|
97
97
|
UOption = __decorate([customElement("u-option")], UOption);
|
|
98
|
-
//#endregion
|
|
99
98
|
export { UOption };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/option/UOption.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--option-color: var(--u-primary-color, #1976D2);
|
|
@@ -151,5 +151,4 @@ var styles = css`
|
|
|
151
151
|
margin-left: 0.25em;
|
|
152
152
|
}
|
|
153
153
|
`;
|
|
154
|
-
//#endregion
|
|
155
154
|
export { styles };
|
|
@@ -1,12 +1,12 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
4
4
|
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
5
|
import { UOption } from "../option/UOption.js";
|
|
6
6
|
import { styles } from "./UOptionGroup.styles.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/option-group/UOptionGroup.ts
|
|
10
10
|
var UOptionGroup = class UOptionGroup extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -65,5 +65,4 @@ UOptionGroup = __decorate([customElement("u-option-group")], UOptionGroup);
|
|
|
65
65
|
function collectOptions(elements) {
|
|
66
66
|
return elements.flatMap((el) => el instanceof UOption ? [el] : el instanceof UOptionGroup ? el.options.filter((o) => o instanceof UOption) : []);
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { UOptionGroup, collectOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/option-group/UOptionGroup.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -29,5 +29,4 @@ var styles = css`
|
|
|
29
29
|
display: contents;
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
|
-
//#endregion
|
|
33
32
|
export { styles };
|
|
@@ -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.155.0/helpers/esm/decorateMetadata.js";
|
|
4
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import "../option/UOption.js";
|
|
@@ -9,7 +9,7 @@ import "../select/USelect.js";
|
|
|
9
9
|
import { styles } from "./UPagination.styles.js";
|
|
10
10
|
import { html, nothing } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
|
-
|
|
12
|
+
// src/components/pagination/UPagination.ts
|
|
13
13
|
var UPagination = class UPagination extends UElement {
|
|
14
14
|
constructor(..._args) {
|
|
15
15
|
super(..._args);
|
|
@@ -134,5 +134,4 @@ __decorate([property({ type: Number }), __decorateMetadata("design:type", Object
|
|
|
134
134
|
__decorate([property({ type: String }), __decorateMetadata("design:type", Object)], UPagination.prototype, "label", void 0);
|
|
135
135
|
__decorate([property({ attribute: false }), __decorateMetadata("design:type", Function)], UPagination.prototype, "formatRange", void 0);
|
|
136
136
|
UPagination = __decorate([customElement("u-pagination")], UPagination);
|
|
137
|
-
//#endregion
|
|
138
137
|
export { UPagination };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/pagination/UPagination.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -43,5 +43,4 @@ var styles = css`
|
|
|
43
43
|
user-select: none;
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
46
|
-
//#endregion
|
|
47
46
|
export { styles };
|
|
@@ -1,10 +1,10 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
|
-
|
|
7
|
+
// src/components/panel/UPanel.ts
|
|
8
8
|
var UPanel = class UPanel extends UElement {
|
|
9
9
|
constructor(..._args) {
|
|
10
10
|
super(..._args);
|
|
@@ -27,5 +27,4 @@ __decorate([property({
|
|
|
27
27
|
reflect: true
|
|
28
28
|
}), __decorateMetadata("design:type", Object)], UPanel.prototype, "value", void 0);
|
|
29
29
|
UPanel = __decorate([customElement("u-panel")], UPanel);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { UPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/panel/UPanel.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -22,5 +22,4 @@ var styles = css`
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
-
//#endregion
|
|
26
25
|
export { styles };
|
|
@@ -1,13 +1,13 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { styles } from "./UPopover.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
|
-
|
|
10
|
+
// src/components/popover/UPopover.ts
|
|
11
11
|
var _UPopover;
|
|
12
12
|
var FOCUSABLE = "a, button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
|
|
13
13
|
/**
|
|
@@ -287,5 +287,4 @@ __decorate([property({
|
|
|
287
287
|
converter: arrayAttrConverter()
|
|
288
288
|
}), __decorateMetadata("design:type", Array)], UPopover.prototype, "dismissEvent", void 0);
|
|
289
289
|
UPopover = _UPopover = __decorate([customElement("u-popover")], UPopover);
|
|
290
|
-
//#endregion
|
|
291
290
|
export { UPopover };
|
|
@@ -1,12 +1,12 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
3
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.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";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/progress-bar/UProgressBar.ts
|
|
10
10
|
var UProgressBar = class UProgressBar extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -106,5 +106,4 @@ __decorate([property({ type: Number }), __decorateMetadata("design:type", Number
|
|
|
106
106
|
__decorate([state(), __decorateMetadata("design:type", Number)], UProgressBar.prototype, "progress", void 0);
|
|
107
107
|
__decorate([state(), __decorateMetadata("design:type", Number)], UProgressBar.prototype, "bufferProgress", void 0);
|
|
108
108
|
UProgressBar = __decorate([customElement("u-progress-bar")], UProgressBar);
|
|
109
|
-
//#endregion
|
|
110
109
|
export { UProgressBar };
|