@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,13 +1,13 @@
|
|
|
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 "../spinner/USpinner.js";
|
|
5
5
|
import { styles } from "./UButton.styles.js";
|
|
6
6
|
import { FORWARDED_ARIA, readForwardedAria } from "./forwarded-aria.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
-
|
|
10
|
+
// src/components/button/UButton.ts
|
|
11
11
|
var UButton = class UButton extends UElement {
|
|
12
12
|
constructor(..._args) {
|
|
13
13
|
super(..._args);
|
|
@@ -207,5 +207,4 @@ __decorate([property({
|
|
|
207
207
|
reflect: true
|
|
208
208
|
}), __decorateMetadata("design:type", String)], UButton.prototype, "value", void 0);
|
|
209
209
|
UButton = __decorate([customElement("u-button")], UButton);
|
|
210
|
-
//#endregion
|
|
211
210
|
export { UButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/button/UButton.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
|
|
@@ -401,5 +401,4 @@ var styles = css`
|
|
|
401
401
|
pointer-events: none;
|
|
402
402
|
}
|
|
403
403
|
`;
|
|
404
|
-
//#endregion
|
|
405
404
|
export { styles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/button/forwarded-aria.ts
|
|
2
2
|
/**
|
|
3
3
|
* 호스트에서 안쪽 포커스 대상(`<button>`/`<a>`)으로 옮기는 ARIA — 이름과 버튼 계열의 상태다.
|
|
4
4
|
* 상태 속성은 포커스된 요소에 있어야 보조기기가 읽는다(WCAG 4.1.2). `aria-pressed` 는 링크에
|
|
@@ -29,5 +29,4 @@ function readForwardedAria(host, name) {
|
|
|
29
29
|
if (value === null) return void 0;
|
|
30
30
|
return value === "" && PRESENCE_STATES.has(name) ? "true" : value;
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { FORWARDED_ARIA, readForwardedAria };
|
|
@@ -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 { UButton } from "../button/UButton.js";
|
|
5
5
|
import { UIconButton } from "../icon-button/UIconButton.js";
|
|
6
6
|
import { styles } from "./UButtonGroup.styles.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/button-group/UButtonGroup.ts
|
|
10
10
|
var UButtonGroup = class UButtonGroup extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -90,5 +90,4 @@ __decorate([property({
|
|
|
90
90
|
reflect: true
|
|
91
91
|
}), __decorateMetadata("design:type", Object)], UButtonGroup.prototype, "disabled", void 0);
|
|
92
92
|
UButtonGroup = __decorate([customElement("u-button-group")], UButtonGroup);
|
|
93
|
-
//#endregion
|
|
94
93
|
export { UButtonGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/button-group/UButtonGroup.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
@@ -31,5 +31,4 @@ var styles = css`
|
|
|
31
31
|
gap: var(--u-space-3xs, 2px);
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
|
-
//#endregion
|
|
35
34
|
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 "../icon-button/UIconButton.js";
|
|
6
6
|
import { formatDate } from "../../utilities/format.js";
|
|
7
7
|
import { addDays, addMonths, daysInMonth, isDayUnavailable, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate } from "./dates.js";
|
|
@@ -9,7 +9,7 @@ import { styles } from "./UCalendar.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/calendar/UCalendar.ts
|
|
13
13
|
/** Cells to render for one month — leading `null`s pad the previous month's weekday offset. */
|
|
14
14
|
function buildMonthGrid(month) {
|
|
15
15
|
const first = startOfMonth(month);
|
|
@@ -220,5 +220,4 @@ __decorate([state(), __decorateMetadata("design:type", typeof Date === "undefine
|
|
|
220
220
|
__decorate([state(), __decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)], UCalendar.prototype, "anchor", void 0);
|
|
221
221
|
__decorate([state(), __decorateMetadata("design:type", typeof Date === "undefined" ? Object : Date)], UCalendar.prototype, "hoverDate", void 0);
|
|
222
222
|
UCalendar = __decorate([customElement("u-calendar")], UCalendar);
|
|
223
|
-
//#endregion
|
|
224
223
|
export { UCalendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/calendar/UCalendar.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
position: relative;
|
|
@@ -143,5 +143,4 @@ var styles = css`
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
`;
|
|
146
|
-
//#endregion
|
|
147
146
|
export { styles };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sameDateTime } from "./datetime.js";
|
|
2
|
-
|
|
2
|
+
// src/components/calendar/date-text-controller.ts
|
|
3
3
|
/**
|
|
4
4
|
* The typed-date text box shared by `u-date-picker` and `u-date-range-picker`: what is being typed
|
|
5
5
|
* (`draft`), whether the last commit was unreadable (`badText`), committing on Enter and blur,
|
|
@@ -94,5 +94,4 @@ var DateTextController = class {
|
|
|
94
94
|
if (container) this.options.popover()?.show(container);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
//#endregion
|
|
98
97
|
export { DateTextController };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/calendar/dates.ts
|
|
2
2
|
/** ISO `YYYY-MM-DD` → 로컬 자정 `Date`. */
|
|
3
3
|
function parseISODate(iso) {
|
|
4
4
|
const [y, m, d] = iso.split("-").map(Number);
|
|
@@ -37,5 +37,4 @@ function isOutOfRange(date, min, max) {
|
|
|
37
37
|
if (max && date.getTime() > parseISODate(max).getTime()) return true;
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { addDays, addMonths, daysInMonth, isDayUnavailable, isOutOfRange, isSameDay, monthDiff, parseISODate, startOfMonth, toISODate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { localOffset, readDateValue, writeInstant } from "../../utilities/dateValue.js";
|
|
2
2
|
import { parseISODate } from "./dates.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) {
|
|
6
6
|
const [h, m, s = 0] = time.split(":").map(Number);
|
|
@@ -43,5 +43,4 @@ function normalizeTime(time, seconds) {
|
|
|
43
43
|
const hm = time.slice(0, 5);
|
|
44
44
|
return seconds ? `${hm}:${time.slice(6, 8) || "00"}` : hm;
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { localOffset, normalizeTime, sameDateTime, splitDateTime, toDateTimeOffset, toLocalDateTime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/calendar/picker.styles.ts
|
|
3
3
|
/**
|
|
4
4
|
* 날짜 피커들(`u-date-picker` · `u-date-range-picker`)이 함께 쓰는 트리거·팝오버·하단 줄 규칙.
|
|
5
5
|
* 호스트의 `display`/`width` 와 팝오버 폭은 피커마다 다르므로 각 피커의 시트가 갖는다.
|
|
@@ -169,5 +169,4 @@ var styles = css`
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
`;
|
|
172
|
-
//#endregion
|
|
173
172
|
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 { styles } from "./UCard.styles.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";
|
|
8
|
-
|
|
8
|
+
// src/components/card/UCard.ts
|
|
9
9
|
var UCard = class UCard extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
11
11
|
super(..._args);
|
|
@@ -81,5 +81,4 @@ __decorate([property({ type: String }), __decorateMetadata("design:type", String
|
|
|
81
81
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UCard.prototype, "rel", void 0);
|
|
82
82
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UCard.prototype, "download", void 0);
|
|
83
83
|
UCard = __decorate([customElement("u-card")], UCard);
|
|
84
|
-
//#endregion
|
|
85
84
|
export { UCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/card/UCard.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: flex;
|
|
@@ -110,5 +110,4 @@ var styles = css`
|
|
|
110
110
|
display: block;
|
|
111
111
|
}
|
|
112
112
|
`;
|
|
113
|
-
//#endregion
|
|
114
113
|
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 { HostAria } from "../../utilities/hostAria.js";
|
|
6
6
|
import "../button/UButton.js";
|
|
7
7
|
import "../icon/UIcon.js";
|
|
@@ -9,7 +9,7 @@ import { styles } from "./UCarousel.styles.js";
|
|
|
9
9
|
import { html, nothing } 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/carousel/UCarousel.ts
|
|
13
13
|
var UCarousel = class UCarousel extends UElement {
|
|
14
14
|
constructor(..._args) {
|
|
15
15
|
super(..._args);
|
|
@@ -315,5 +315,4 @@ __decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.proto
|
|
|
315
315
|
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "rotationStopped", void 0);
|
|
316
316
|
__decorate([state(), __decorateMetadata("design:type", Object)], UCarousel.prototype, "hovered", void 0);
|
|
317
317
|
UCarousel = __decorate([customElement("u-carousel")], UCarousel);
|
|
318
|
-
//#endregion
|
|
319
318
|
export { UCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/carousel/UCarousel.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--slide-gap: 0px;
|
|
@@ -139,5 +139,4 @@ var styles = css`
|
|
|
139
139
|
background-color: var(--u-neutral-100, #F5F5F5);
|
|
140
140
|
}
|
|
141
141
|
`;
|
|
142
|
-
//#endregion
|
|
143
142
|
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 { styles } from "./UCheckbox.styles.js";
|
|
@@ -8,7 +8,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";
|
|
10
10
|
import { live } from "lit/directives/live.js";
|
|
11
|
-
|
|
11
|
+
// src/components/checkbox/UCheckbox.ts
|
|
12
12
|
var UCheckbox = class UCheckbox extends UFormControlElement {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
@@ -116,5 +116,4 @@ __decorate([property({
|
|
|
116
116
|
}), __decorateMetadata("design:type", Boolean)], UCheckbox.prototype, "checked", void 0);
|
|
117
117
|
__decorate([query("input", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], UCheckbox.prototype, "inputEl", void 0);
|
|
118
118
|
UCheckbox = __decorate([customElement("u-checkbox")], UCheckbox);
|
|
119
|
-
//#endregion
|
|
120
119
|
export { UCheckbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/checkbox/UCheckbox.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--checkbox-color: inherit;
|
|
@@ -215,5 +215,4 @@ var styles = css`
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
`;
|
|
218
|
-
//#endregion
|
|
219
218
|
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 "../tooltip/UTooltip.js";
|
|
@@ -9,7 +9,7 @@ import "../tag/UTag.js";
|
|
|
9
9
|
import { styles } from "./UChip.styles.js";
|
|
10
10
|
import { html } from "lit";
|
|
11
11
|
import { customElement, property } from "lit/decorators.js";
|
|
12
|
-
|
|
12
|
+
// src/components/chip/UChip.ts
|
|
13
13
|
var UChip = class UChip extends UElement {
|
|
14
14
|
constructor(..._args) {
|
|
15
15
|
super(..._args);
|
|
@@ -144,5 +144,4 @@ __decorate([property({
|
|
|
144
144
|
}), __decorateMetadata("design:type", Object)], UChip.prototype, "selected", void 0);
|
|
145
145
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UChip.prototype, "value", void 0);
|
|
146
146
|
UChip = __decorate([customElement("u-chip")], UChip);
|
|
147
|
-
//#endregion
|
|
148
147
|
export { UChip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/chip/UChip.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
@@ -34,5 +34,4 @@ var styles = css`
|
|
|
34
34
|
min-inline-size: 24px;
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
37
|
-
//#endregion
|
|
38
37
|
export { styles };
|
|
@@ -1,14 +1,14 @@
|
|
|
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 "../icon-button/UIconButton.js";
|
|
8
8
|
import { styles } from "./UCopyButton.styles.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
|
-
|
|
11
|
+
// src/components/copy-button/UCopyButton.ts
|
|
12
12
|
var UCopyButton = class UCopyButton extends UElement {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
@@ -114,5 +114,4 @@ __decorate([property({ type: Number }), __decorateMetadata("design:type", Number
|
|
|
114
114
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UCopyButton.prototype, "value", void 0);
|
|
115
115
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UCopyButton.prototype, "label", void 0);
|
|
116
116
|
UCopyButton = __decorate([customElement("u-copy-button")], UCopyButton);
|
|
117
|
-
//#endregion
|
|
118
117
|
export { UCopyButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/copy-button/UCopyButton.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
@@ -23,5 +23,4 @@ var styles = css`
|
|
|
23
23
|
color: var(--u-success-color-strong, #1B5E20);
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
|
-
//#endregion
|
|
27
26
|
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 "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -17,7 +17,7 @@ import { styles as styles$1 } from "./UDatePicker.styles.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";
|
|
20
|
-
|
|
20
|
+
// src/components/date-picker/UDatePicker.ts
|
|
21
21
|
/** Builds the `value` for the given mode — `datetime` always emits seconds + local offset so
|
|
22
22
|
* the result is unconditionally a valid, unambiguous ISO-8601 `DateTimeOffset` regardless of
|
|
23
23
|
* how coarse the UI input was (this is the guarantee the datetime mode request asked for). */
|
|
@@ -434,5 +434,4 @@ __decorate([state(), __decorateMetadata("design:type", Boolean)], UDatePicker.pr
|
|
|
434
434
|
__decorate([state(), __decorateMetadata("design:type", String)], UDatePicker.prototype, "pendingTime", void 0);
|
|
435
435
|
__decorate([state(), __decorateMetadata("design:type", String)], UDatePicker.prototype, "staged", void 0);
|
|
436
436
|
UDatePicker = __decorate([customElement("u-date-picker")], UDatePicker);
|
|
437
|
-
//#endregion
|
|
438
437
|
export { UDatePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/date-picker/UDatePicker.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--date-picker-popover-width: 296px;
|
|
@@ -37,5 +37,4 @@ var styles = css`
|
|
|
37
37
|
font-size: calc(var(--u-density, 14px) * 8 / 7);
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
|
-
//#endregion
|
|
41
40
|
export { styles };
|
|
@@ -34,7 +34,7 @@ export type { DateRangePreset, DateRangePresetName, DateRangePresetOption } from
|
|
|
34
34
|
* `change` and closes the calendar. Escape while an anchor is set drops it; Escape again closes.
|
|
35
35
|
*
|
|
36
36
|
* `presets` adds a list of quick ranges beside the calendar — built-in names (`today`, `yesterday`,
|
|
37
|
-
* `last7Days`, `last30Days`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `thisYear`, which
|
|
37
|
+
* `last7Days`, `last30Days`, `last3Months`, `last6Months`, `thisWeek`, `lastWeek`, `thisMonth`, `lastMonth`, `thisYear`, which
|
|
38
38
|
* can be written as a space-separated attribute) and app-defined `{ label, range }` objects, in the
|
|
39
39
|
* order given. Picking one sets the range at once, fires `change` and closes the calendar. A preset
|
|
40
40
|
* whose range reaches outside `min`/`max` is disabled; the one equal to the current range is
|
|
@@ -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 "../button/UButton.js";
|
|
6
6
|
import { devWarnOnce } from "../../utilities/devWarning.js";
|
|
@@ -19,7 +19,7 @@ import { styles as styles$1 } from "./UDateRangePicker.styles.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";
|
|
22
|
-
|
|
22
|
+
// src/components/date-range-picker/UDateRangePicker.ts
|
|
23
23
|
var ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
24
24
|
var ISO_DATE_TIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
25
25
|
/** Splits `"start/end"` into its two halves — ISO dates, or in `mode="datetime"` ISO date-times read
|
|
@@ -514,5 +514,4 @@ __decorate([state(), __decorateMetadata("design:type", Boolean)], UDateRangePick
|
|
|
514
514
|
__decorate([state(), __decorateMetadata("design:type", String)], UDateRangePicker.prototype, "staged", void 0);
|
|
515
515
|
__decorate([state(), __decorateMetadata("design:type", Object)], UDateRangePicker.prototype, "pendingTimes", void 0);
|
|
516
516
|
UDateRangePicker = __decorate([customElement("u-date-range-picker")], UDateRangePicker);
|
|
517
|
-
//#endregion
|
|
518
517
|
export { UDateRangePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/date-range-picker/UDateRangePicker.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
position: relative;
|
|
@@ -107,5 +107,4 @@ var styles = css`
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
`;
|
|
110
|
-
//#endregion
|
|
111
110
|
export { styles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocaleMessageKey } from '../../utilities/Locale.js';
|
|
2
2
|
/** A built-in quick range, named so it can be listed in the `presets` attribute. */
|
|
3
|
-
export type DateRangePresetName = 'today' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear';
|
|
3
|
+
export type DateRangePresetName = 'today' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear';
|
|
4
4
|
/**
|
|
5
5
|
* A quick range the app defines — a fiscal quarter, "since the last release". `range` runs when
|
|
6
6
|
* the preset is drawn and when it is picked, so a relative range stays current. It returns the
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { Locale } from "../../utilities/Locale.js";
|
|
2
2
|
import { addDays, addMonths, daysInMonth, parseISODate, toISODate } from "../calendar/dates.js";
|
|
3
|
-
|
|
3
|
+
// src/components/date-range-picker/presets.ts
|
|
4
4
|
var startOfWeek = (d) => addDays(d, -d.getDay());
|
|
5
5
|
var endOfMonth = (d) => new Date(d.getFullYear(), d.getMonth(), daysInMonth(d));
|
|
6
|
+
/**
|
|
7
|
+
* The first day of the `n` months ending `d`: the same day `n` months back, plus one. A day the earlier month lacks
|
|
8
|
+
* clamps to its last day — the 3 months ending May 31 start on March 1, not on a "February 31".
|
|
9
|
+
*/
|
|
10
|
+
var monthsEnding = (d, n) => {
|
|
11
|
+
const back = addMonths(d, -n);
|
|
12
|
+
return addDays(new Date(back.getFullYear(), back.getMonth(), Math.min(d.getDate(), daysInMonth(back))), 1);
|
|
13
|
+
};
|
|
6
14
|
/** Built-in ranges as pure functions of "today" (a local calendar day). Both ends are inclusive. */
|
|
7
15
|
var BUILTIN_PRESETS = {
|
|
8
16
|
today: {
|
|
@@ -21,6 +29,14 @@ var BUILTIN_PRESETS = {
|
|
|
21
29
|
key: "last30Days",
|
|
22
30
|
range: (t) => [addDays(t, -29), t]
|
|
23
31
|
},
|
|
32
|
+
last3Months: {
|
|
33
|
+
key: "last3Months",
|
|
34
|
+
range: (t) => [monthsEnding(t, 3), t]
|
|
35
|
+
},
|
|
36
|
+
last6Months: {
|
|
37
|
+
key: "last6Months",
|
|
38
|
+
range: (t) => [monthsEnding(t, 6), t]
|
|
39
|
+
},
|
|
24
40
|
thisWeek: {
|
|
25
41
|
key: "thisWeek",
|
|
26
42
|
range: (t) => [startOfWeek(t), addDays(startOfWeek(t), 6)]
|
|
@@ -74,5 +90,4 @@ function ordered(label, a, b) {
|
|
|
74
90
|
end: a
|
|
75
91
|
};
|
|
76
92
|
}
|
|
77
|
-
//#endregion
|
|
78
93
|
export { BUILTIN_PRESETS, resolvePresets };
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { UOverlayElement } from "../UOverlayElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import { styles } from "./UDialog.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
-
|
|
10
|
+
// src/components/dialog/UDialog.ts
|
|
11
11
|
var UDialog = class UDialog extends UOverlayElement {
|
|
12
12
|
constructor(..._args) {
|
|
13
13
|
super(..._args);
|
|
@@ -67,5 +67,4 @@ __decorate([property({
|
|
|
67
67
|
}), __decorateMetadata("design:type", Object)], UDialog.prototype, "offset", void 0);
|
|
68
68
|
__decorate([state(), __decorateMetadata("design:type", Object)], UDialog.prototype, "hasHeader", void 0);
|
|
69
69
|
UDialog = __decorate([customElement("u-dialog")], UDialog);
|
|
70
|
-
//#endregion
|
|
71
70
|
export { UDialog };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/dialog/UDialog.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--container-offset: 0px;
|
|
@@ -119,5 +119,4 @@ var styles = css`
|
|
|
119
119
|
border-top: 1px solid var(--u-border-color, #E0E0E0);
|
|
120
120
|
}
|
|
121
121
|
`;
|
|
122
|
-
//#endregion
|
|
123
122
|
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 "./UDivider.styles.js";
|
|
5
5
|
import { html } from "lit";
|
|
6
6
|
import { customElement, property } from "lit/decorators.js";
|
|
7
|
-
|
|
7
|
+
// src/components/divider/UDivider.ts
|
|
8
8
|
var UDivider = class UDivider extends UElement {
|
|
9
9
|
constructor(..._args) {
|
|
10
10
|
super(..._args);
|
|
@@ -44,5 +44,4 @@ __decorate([property({
|
|
|
44
44
|
reflect: true
|
|
45
45
|
}), __decorateMetadata("design:type", Object)], UDivider.prototype, "align", void 0);
|
|
46
46
|
UDivider = __decorate([customElement("u-divider")], UDivider);
|
|
47
|
-
//#endregion
|
|
48
47
|
export { UDivider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/divider/UDivider.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--divider-size: 1px;
|
|
@@ -109,5 +109,4 @@ var styles = css`
|
|
|
109
109
|
padding: var(--u-space-md, 12px) 0;
|
|
110
110
|
}
|
|
111
111
|
`;
|
|
112
|
-
//#endregion
|
|
113
112
|
export { styles };
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { UOverlayElement } from "../UOverlayElement.js";
|
|
5
5
|
import "../button/UButton.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
7
7
|
import { styles } from "./UDrawer.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
-
|
|
10
|
+
// src/components/drawer/UDrawer.ts
|
|
11
11
|
var UDrawer = class UDrawer extends UOverlayElement {
|
|
12
12
|
constructor(..._args) {
|
|
13
13
|
super(..._args);
|
|
@@ -55,5 +55,4 @@ __decorate([property({
|
|
|
55
55
|
}), __decorateMetadata("design:type", Object)], UDrawer.prototype, "placement", void 0);
|
|
56
56
|
__decorate([state(), __decorateMetadata("design:type", Object)], UDrawer.prototype, "hasHeader", void 0);
|
|
57
57
|
UDrawer = __decorate([customElement("u-drawer")], UDrawer);
|
|
58
|
-
//#endregion
|
|
59
58
|
export { UDrawer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/drawer/UDrawer.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
|
|
5
5
|
:host([placement="left"]) { justify-content: flex-start; }
|
|
@@ -107,5 +107,4 @@ var styles = css`
|
|
|
107
107
|
border-top: 1px solid var(--u-border-color, #E0E0E0);
|
|
108
108
|
}
|
|
109
109
|
`;
|
|
110
|
-
//#endregion
|
|
111
110
|
export { styles };
|