@iyulab/components 2.30.1 → 2.30.2
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 +20 -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 +1 -2
- package/dist/assets/locales/de.json.js +1 -2
- package/dist/assets/locales/en.json.js +1 -2
- package/dist/assets/locales/es.json.js +1 -2
- package/dist/assets/locales/fr.json.js +1 -2
- package/dist/assets/locales/id.json.js +1 -2
- package/dist/assets/locales/ja.json.js +1 -2
- package/dist/assets/locales/ko.json.js +1 -2
- package/dist/assets/locales/pt-BR.json.js +1 -2
- package/dist/assets/locales/ru.json.js +1 -2
- package/dist/assets/locales/th.json.js +1 -2
- package/dist/assets/locales/vi.json.js +1 -2
- package/dist/assets/locales/zh-CN.json.js +1 -2
- package/dist/assets/locales/zh-TW.json.js +1 -2
- 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.js +3 -4
- package/dist/components/date-range-picker/UDateRangePicker.styles.js +1 -2
- package/dist/components/date-range-picker/presets.js +1 -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 +3 -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.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/tooltip.md +2 -0
|
@@ -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 { UFormControlElement } from "../UFormControlElement.js";
|
|
5
5
|
import { styles } from "./USwitch.styles.js";
|
|
6
6
|
import { html } from "lit";
|
|
7
7
|
import { customElement, property, query } from "lit/decorators.js";
|
|
8
8
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
9
9
|
import { live } from "lit/directives/live.js";
|
|
10
|
-
|
|
10
|
+
// src/components/switch/USwitch.ts
|
|
11
11
|
var USwitch = class USwitch extends UFormControlElement {
|
|
12
12
|
constructor(..._args) {
|
|
13
13
|
super(..._args);
|
|
@@ -115,5 +115,4 @@ __decorate([property({
|
|
|
115
115
|
}), __decorateMetadata("design:type", Boolean)], USwitch.prototype, "checked", void 0);
|
|
116
116
|
__decorate([query("input", true), __decorateMetadata("design:type", typeof HTMLInputElement === "undefined" ? Object : HTMLInputElement)], USwitch.prototype, "inputEl", void 0);
|
|
117
117
|
USwitch = __decorate([customElement("u-switch")], USwitch);
|
|
118
|
-
//#endregion
|
|
119
118
|
export { USwitch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/switch/USwitch.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--switch-track-width: 2.4em;
|
|
@@ -224,5 +224,4 @@ var styles = css`
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
`;
|
|
227
|
-
//#endregion
|
|
228
227
|
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 { formatNumber } from "../../utilities/format.js";
|
|
@@ -9,7 +9,7 @@ import { styles } from "./UTab.styles.js";
|
|
|
9
9
|
import { html, nothing } from "lit";
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
|
-
|
|
12
|
+
// src/components/tab/UTab.ts
|
|
13
13
|
var _UTab;
|
|
14
14
|
var UTab = class UTab extends UElement {
|
|
15
15
|
static {
|
|
@@ -131,5 +131,4 @@ __decorate([property({
|
|
|
131
131
|
attribute: "count-appearance"
|
|
132
132
|
}), __decorateMetadata("design:type", Object)], UTab.prototype, "countAppearance", void 0);
|
|
133
133
|
UTab = _UTab = __decorate([customElement("u-tab")], UTab);
|
|
134
|
-
//#endregion
|
|
135
134
|
export { UTab };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tab/UTab.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
flex-shrink: 0;
|
|
@@ -96,5 +96,4 @@ var styles = css`
|
|
|
96
96
|
opacity: 1;
|
|
97
97
|
}
|
|
98
98
|
`;
|
|
99
|
-
//#endregion
|
|
100
99
|
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 { UTab } from "../tab/UTab.js";
|
|
5
5
|
import { styles } from "./UTabNav.styles.js";
|
|
6
6
|
import { html, nothing } from "lit";
|
|
7
7
|
import { customElement, property, state } from "lit/decorators.js";
|
|
8
|
-
|
|
8
|
+
// src/components/tab-nav/UTabNav.ts
|
|
9
9
|
var UTabNav = class UTabNav extends UElement {
|
|
10
10
|
constructor(..._args) {
|
|
11
11
|
super(..._args);
|
|
@@ -40,5 +40,4 @@ __decorate([property({
|
|
|
40
40
|
__decorate([property({ type: String }), __decorateMetadata("design:type", Object)], UTabNav.prototype, "label", void 0);
|
|
41
41
|
__decorate([state(), __decorateMetadata("design:type", Array)], UTabNav.prototype, "tabs", void 0);
|
|
42
42
|
UTabNav = __decorate([customElement("u-tab-nav")], UTabNav);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { UTabNav };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tab-nav/UTabNav.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tab-nav-color: var(--u-primary-color, #1976D2);
|
|
@@ -34,5 +34,4 @@ var styles = css`
|
|
|
34
34
|
background-color: var(--tab-nav-color);
|
|
35
35
|
}
|
|
36
36
|
`;
|
|
37
|
-
//#endregion
|
|
38
37
|
export { styles };
|
|
@@ -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 { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
5
5
|
import { UPanel } from "../panel/UPanel.js";
|
|
6
6
|
import { UTab } from "../tab/UTab.js";
|
|
7
7
|
import { styles } from "./UTabPanel.styles.js";
|
|
8
8
|
import { html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
|
-
|
|
10
|
+
// src/components/tab-panel/UTabPanel.ts
|
|
11
11
|
var idSeq = 0;
|
|
12
12
|
var nextId = (prefix) => `${prefix}-${++idSeq}`;
|
|
13
13
|
var UTabPanel = class UTabPanel extends UElement {
|
|
@@ -181,5 +181,4 @@ __decorate([property({
|
|
|
181
181
|
__decorate([state(), __decorateMetadata("design:type", Array)], UTabPanel.prototype, "tabs", void 0);
|
|
182
182
|
__decorate([state(), __decorateMetadata("design:type", Array)], UTabPanel.prototype, "panels", void 0);
|
|
183
183
|
UTabPanel = __decorate([customElement("u-tab-panel")], UTabPanel);
|
|
184
|
-
//#endregion
|
|
185
184
|
export { UTabPanel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tab-panel/UTabPanel.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tab-panel-color: var(--u-primary-color, #1976D2);
|
|
@@ -201,5 +201,4 @@ var styles = css`
|
|
|
201
201
|
font-weight: 600;
|
|
202
202
|
}
|
|
203
203
|
`;
|
|
204
|
-
//#endregion
|
|
205
204
|
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 "../icon/UIcon.js";
|
|
5
5
|
import { statusIcon } from "../../utilities/statusIcon.js";
|
|
6
6
|
import { styles } from "./UTag.styles.js";
|
|
7
7
|
import { html, nothing } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/tag/UTag.ts
|
|
10
10
|
var UTag = class UTag extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -59,5 +59,4 @@ __decorate([property({
|
|
|
59
59
|
reflect: true
|
|
60
60
|
}), __decorateMetadata("design:type", Object)], UTag.prototype, "dot", void 0);
|
|
61
61
|
UTag = __decorate([customElement("u-tag")], UTag);
|
|
62
|
-
//#endregion
|
|
63
62
|
export { UTag };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tag/UTag.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tag-color: var(--u-neutral-800, #424242);
|
|
@@ -251,5 +251,4 @@ var styles = css`
|
|
|
251
251
|
background: currentColor;
|
|
252
252
|
}
|
|
253
253
|
`;
|
|
254
|
-
//#endregion
|
|
255
254
|
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 "./UText.styles.js";
|
|
5
5
|
import { customElement, property } from "lit/decorators.js";
|
|
6
6
|
import { html, literal } from "lit/static-html.js";
|
|
7
|
-
|
|
7
|
+
// src/components/text/UText.ts
|
|
8
8
|
var PARAGRAPH = literal`p`;
|
|
9
9
|
var HEADINGS = {
|
|
10
10
|
1: literal`h1`,
|
|
@@ -41,5 +41,4 @@ __decorate([property({
|
|
|
41
41
|
reflect: true
|
|
42
42
|
}), __decorateMetadata("design:type", Object)], UText.prototype, "level", void 0);
|
|
43
43
|
UText = __decorate([customElement("u-text")], UText);
|
|
44
|
-
//#endregion
|
|
45
44
|
export { UText };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/text/UText.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
display: block;
|
|
@@ -87,5 +87,4 @@ var styles = css`
|
|
|
87
87
|
color: var(--u-txt-color-inverse, #FFFFFF);
|
|
88
88
|
}
|
|
89
89
|
`;
|
|
90
|
-
//#endregion
|
|
91
90
|
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 "../field/UField.js";
|
|
6
6
|
import { styles } from "./UTextarea.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/textarea/UTextarea.ts
|
|
12
12
|
var UTextarea = class UTextarea extends UFormControlElement {
|
|
13
13
|
constructor(..._args) {
|
|
14
14
|
super(..._args);
|
|
@@ -168,5 +168,4 @@ __decorate([property({ type: String }), __decorateMetadata("design:type", typeof
|
|
|
168
168
|
__decorate([property({ type: String }), __decorateMetadata("design:type", String)], UTextarea.prototype, "placeholder", void 0);
|
|
169
169
|
__decorate([query("textarea", true), __decorateMetadata("design:type", typeof HTMLTextAreaElement === "undefined" ? Object : HTMLTextAreaElement)], UTextarea.prototype, "textareaEl", void 0);
|
|
170
170
|
UTextarea = __decorate([customElement("u-textarea")], UTextarea);
|
|
171
|
-
//#endregion
|
|
172
171
|
export { UTextarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/textarea/UTextarea.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
|
|
@@ -198,5 +198,4 @@ var styles = css`
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
`;
|
|
201
|
-
//#endregion
|
|
202
201
|
export { styles };
|
|
@@ -18,7 +18,19 @@ export declare class UTooltip extends UFloatingElement {
|
|
|
18
18
|
/** 호버 시 마우스 커서 위치를 따라가는지 여부 */
|
|
19
19
|
tracking: boolean;
|
|
20
20
|
private isEmpty;
|
|
21
|
+
private readonly aria;
|
|
22
|
+
/** 우리가 `id` 를 준 경우 — 떠날 때 걷는다(작성자가 준 `id` 는 건드리지 않는다). */
|
|
23
|
+
private givenId;
|
|
24
|
+
connectedCallback(): void;
|
|
21
25
|
disconnectedCallback(): void;
|
|
26
|
+
/**
|
|
27
|
+
* 열린 툴팁의 글이 보조기술에 닿으려면 호스트가 `tooltip` 역할을 갖고 대상이 `aria-describedby` 로 그것을 가리켜야 한다
|
|
28
|
+
* (WAI-ARIA APG 툴팁 패턴). 링크 등을 담는 `interactive` 툴팁은 APG 상 툴팁이 아니라(비모달 대화상자·토글팁 쪽) 역할은
|
|
29
|
+
* 덧씌우지 않고 설명 연결만 둔다.
|
|
30
|
+
*/
|
|
31
|
+
private syncAria;
|
|
32
|
+
/** 대상의 `aria-describedby` 에 이 툴팁의 id 를 더하거나(덧붙임) 걷는다 — 대상에 이미 있는 값은 보존한다. */
|
|
33
|
+
private describe;
|
|
22
34
|
protected updated(changedProperties: PropertyValues): void;
|
|
23
35
|
render(): import('lit-html').TemplateResult<1>;
|
|
24
36
|
private bind;
|
|
@@ -1,17 +1,21 @@
|
|
|
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.155.0/helpers/esm/decorateMetadata.js";
|
|
2
|
+
import __decorate from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UFloatingElement } from "../UFloatingElement.js";
|
|
4
4
|
import { OverlayManager } from "../../utilities/OverlayManager.js";
|
|
5
|
+
import { HostAria } from "../../utilities/hostAria.js";
|
|
5
6
|
import { styles } from "./UTooltip.styles.js";
|
|
6
7
|
import { html } from "lit";
|
|
7
8
|
import { customElement, property } from "lit/decorators.js";
|
|
8
|
-
|
|
9
|
+
// src/components/tooltip/UTooltip.ts
|
|
10
|
+
var nextTooltipId = 0;
|
|
9
11
|
var UTooltip = class UTooltip extends UFloatingElement {
|
|
10
12
|
constructor(..._args) {
|
|
11
13
|
super(..._args);
|
|
12
14
|
this.interactive = false;
|
|
13
15
|
this.tracking = false;
|
|
14
16
|
this.isEmpty = true;
|
|
17
|
+
this.aria = new HostAria(this);
|
|
18
|
+
this.givenId = null;
|
|
15
19
|
this.handleSlotChange = (event) => {
|
|
16
20
|
const slot = event.target;
|
|
17
21
|
this.isEmpty = slot.assignedNodes({ flatten: true }).every((node) => {
|
|
@@ -44,11 +48,48 @@ var UTooltip = class UTooltip extends UFloatingElement {
|
|
|
44
48
|
static {
|
|
45
49
|
this.styles = [super.styles, styles];
|
|
46
50
|
}
|
|
51
|
+
connectedCallback() {
|
|
52
|
+
super.connectedCallback();
|
|
53
|
+
this.syncAria();
|
|
54
|
+
if (this.anchors) this.describe(this.anchors, true);
|
|
55
|
+
}
|
|
47
56
|
disconnectedCallback() {
|
|
48
57
|
OverlayManager.closeLayer(this);
|
|
49
|
-
if (this.anchors)
|
|
58
|
+
if (this.anchors) {
|
|
59
|
+
this.describe(this.anchors, false);
|
|
60
|
+
this.unbind(this.anchors);
|
|
61
|
+
}
|
|
62
|
+
if (this.givenId && this.id === this.givenId) this.removeAttribute("id");
|
|
63
|
+
this.givenId = null;
|
|
50
64
|
super.disconnectedCallback();
|
|
51
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* 열린 툴팁의 글이 보조기술에 닿으려면 호스트가 `tooltip` 역할을 갖고 대상이 `aria-describedby` 로 그것을 가리켜야 한다
|
|
68
|
+
* (WAI-ARIA APG 툴팁 패턴). 링크 등을 담는 `interactive` 툴팁은 APG 상 툴팁이 아니라(비모달 대화상자·토글팁 쪽) 역할은
|
|
69
|
+
* 덧씌우지 않고 설명 연결만 둔다.
|
|
70
|
+
*/
|
|
71
|
+
syncAria() {
|
|
72
|
+
this.aria.set("role", this.interactive ? null : "tooltip");
|
|
73
|
+
}
|
|
74
|
+
/** 대상의 `aria-describedby` 에 이 툴팁의 id 를 더하거나(덧붙임) 걷는다 — 대상에 이미 있는 값은 보존한다. */
|
|
75
|
+
describe(anchors, on) {
|
|
76
|
+
if (on && !this.id) {
|
|
77
|
+
this.id = `u-tooltip-${++nextTooltipId}`;
|
|
78
|
+
this.givenId = this.id;
|
|
79
|
+
}
|
|
80
|
+
const id = this.id;
|
|
81
|
+
if (!id) return;
|
|
82
|
+
for (const anchor of anchors) {
|
|
83
|
+
const tokens = (anchor.getAttribute("aria-describedby") ?? "").split(/\s+/).filter(Boolean);
|
|
84
|
+
const has = tokens.includes(id);
|
|
85
|
+
if (on && !has) anchor.setAttribute("aria-describedby", [...tokens, id].join(" "));
|
|
86
|
+
if (!on && has) {
|
|
87
|
+
const rest = tokens.filter((t) => t !== id);
|
|
88
|
+
if (rest.length) anchor.setAttribute("aria-describedby", rest.join(" "));
|
|
89
|
+
else anchor.removeAttribute("aria-describedby");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
52
93
|
updated(changedProperties) {
|
|
53
94
|
super.updated(changedProperties);
|
|
54
95
|
if (changedProperties.has("open")) {
|
|
@@ -60,9 +101,16 @@ var UTooltip = class UTooltip extends UFloatingElement {
|
|
|
60
101
|
if (changedProperties.has("anchors")) {
|
|
61
102
|
const oldAnchors = changedProperties.get("anchors");
|
|
62
103
|
const newAnchors = this.anchors;
|
|
63
|
-
if (oldAnchors)
|
|
64
|
-
|
|
104
|
+
if (oldAnchors) {
|
|
105
|
+
this.describe(oldAnchors, false);
|
|
106
|
+
this.unbind(oldAnchors);
|
|
107
|
+
}
|
|
108
|
+
if (newAnchors) {
|
|
109
|
+
this.describe(newAnchors, true);
|
|
110
|
+
this.bind(newAnchors);
|
|
111
|
+
}
|
|
65
112
|
}
|
|
113
|
+
if (changedProperties.has("interactive")) this.syncAria();
|
|
66
114
|
if (changedProperties.has("offset") || changedProperties.has("interactive")) {
|
|
67
115
|
if (this.interactive) {
|
|
68
116
|
let size = 0;
|
|
@@ -114,5 +162,4 @@ __decorate([property({
|
|
|
114
162
|
reflect: true
|
|
115
163
|
}), __decorateMetadata("design:type", Boolean)], UTooltip.prototype, "tracking", void 0);
|
|
116
164
|
UTooltip = __decorate([customElement("u-tooltip")], UTooltip);
|
|
117
|
-
//#endregion
|
|
118
165
|
export { UTooltip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tooltip/UTooltip.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tooltip-bridge-area: 0px;
|
|
@@ -41,5 +41,4 @@ var styles = css`
|
|
|
41
41
|
z-index: -1;
|
|
42
42
|
}
|
|
43
43
|
`;
|
|
44
|
-
//#endregion
|
|
45
44
|
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 { UTreeItem } from "../tree-item/UTreeItem.js";
|
|
6
6
|
import { styles } from "./UTree.styles.js";
|
|
7
7
|
import { html } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
-
|
|
9
|
+
// src/components/tree/UTree.ts
|
|
10
10
|
var UTree = class UTree extends UElement {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
@@ -340,5 +340,4 @@ __decorate([property({
|
|
|
340
340
|
__decorate([state(), __decorateMetadata("design:type", typeof Node === "undefined" ? Object : Node)], UTree.prototype, "expandIcon", void 0);
|
|
341
341
|
__decorate([state(), __decorateMetadata("design:type", typeof Node === "undefined" ? Object : Node)], UTree.prototype, "collapseIcon", void 0);
|
|
342
342
|
UTree = __decorate([customElement("u-tree")], UTree);
|
|
343
|
-
//#endregion
|
|
344
343
|
export { UTree };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tree/UTree.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tree-indent-size: 14px;
|
|
@@ -18,5 +18,4 @@ var styles = css`
|
|
|
18
18
|
color: var(--u-txt-color, #212121);
|
|
19
19
|
}
|
|
20
20
|
`;
|
|
21
|
-
//#endregion
|
|
22
21
|
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 "../spinner/USpinner.js";
|
|
6
6
|
import "../icon/UIcon.js";
|
|
@@ -8,7 +8,7 @@ import { isFromNestedControl } from "../../utilities/nestedControl.js";
|
|
|
8
8
|
import { styles } from "./UTreeItem.styles.js";
|
|
9
9
|
import { html } from "lit";
|
|
10
10
|
import { customElement, property, state } from "lit/decorators.js";
|
|
11
|
-
|
|
11
|
+
// src/components/tree-item/UTreeItem.ts
|
|
12
12
|
var _UTreeItem;
|
|
13
13
|
var UTreeItem = class UTreeItem extends UElement {
|
|
14
14
|
static {
|
|
@@ -234,5 +234,4 @@ __decorate([state(), __decorateMetadata("design:type", Boolean)], UTreeItem.prot
|
|
|
234
234
|
__decorate([state(), __decorateMetadata("design:type", typeof Node === "undefined" ? Object : Node)], UTreeItem.prototype, "expandIcon", void 0);
|
|
235
235
|
__decorate([state(), __decorateMetadata("design:type", typeof Node === "undefined" ? Object : Node)], UTreeItem.prototype, "collapseIcon", void 0);
|
|
236
236
|
UTreeItem = _UTreeItem = __decorate([customElement("u-tree-item")], UTreeItem);
|
|
237
|
-
//#endregion
|
|
238
237
|
export { UTreeItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
|
|
2
|
+
// src/components/tree-item/UTreeItem.styles.ts
|
|
3
3
|
var styles = css`
|
|
4
4
|
:host {
|
|
5
5
|
--tree-item-depth: 0;
|
|
@@ -171,5 +171,4 @@ var styles = css`
|
|
|
171
171
|
pointer-events: none;
|
|
172
172
|
}
|
|
173
173
|
`;
|
|
174
|
-
//#endregion
|
|
175
174
|
export { styles };
|
package/dist/utilities/Dialog.js
CHANGED
|
@@ -5,7 +5,7 @@ import { UDialog } from "../components/dialog/UDialog.js";
|
|
|
5
5
|
import { html, nothing, render } from "lit";
|
|
6
6
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
7
7
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
8
|
-
|
|
8
|
+
// src/utilities/Dialog.ts
|
|
9
9
|
/**
|
|
10
10
|
* 메시지를 본문 템플릿으로 — 문자열은 lit 이 글자로 이스케이프한다. `show` 는 문자열 `content` 를 HTML 로 해석하므로
|
|
11
11
|
* (그것이 `show` 의 계약이다) `alert`·`confirm` 이 문자열을 그대로 넘기면 그 계약을 조용히 물려받아 마크업 주입 싱크가 된다.
|
|
@@ -187,5 +187,4 @@ var Dialog = class {
|
|
|
187
187
|
return dialog;
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
//#endregion
|
|
191
190
|
export { Dialog };
|
package/dist/utilities/Locale.js
CHANGED
|
@@ -13,7 +13,7 @@ import vi_default from "../assets/locales/vi.json.js";
|
|
|
13
13
|
import zh_CN_default from "../assets/locales/zh-CN.json.js";
|
|
14
14
|
import zh_TW_default from "../assets/locales/zh-TW.json.js";
|
|
15
15
|
import { defaultSearchMatch } from "./search.js";
|
|
16
|
-
|
|
16
|
+
// src/utilities/Locale.ts
|
|
17
17
|
var builtins = new Map(Object.entries(/* #__PURE__ */ Object.assign({
|
|
18
18
|
"../assets/locales/ar.json": ar_default,
|
|
19
19
|
"../assets/locales/de.json": de_default,
|
|
@@ -219,5 +219,4 @@ var Locale = class {
|
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
//#endregion
|
|
223
222
|
export { Locale };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isImeComposing } from "./keyboard.js";
|
|
2
|
-
|
|
2
|
+
// src/utilities/OverlayManager.ts
|
|
3
3
|
/**
|
|
4
4
|
* OverlayManager는 **겹치는 표면 전체의 층(layer)을 소유**합니다.
|
|
5
5
|
*
|
|
@@ -138,5 +138,4 @@ var OverlayManager = class OverlayManager {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
//#endregion
|
|
142
141
|
export { OverlayManager };
|
package/dist/utilities/Theme.js
CHANGED
|
@@ -2,7 +2,7 @@ import { BrowserStorage } from "./BrowserStorage.js";
|
|
|
2
2
|
import dark_css_default from "../_virtual/_glob-assets_raw/dark.css.e8ac080d.js";
|
|
3
3
|
import light_css_default from "../_virtual/_glob-assets_raw/light.css.637cb2f8.js";
|
|
4
4
|
import { accentCustomProperties, deriveAccentRamp } from "./accent.js";
|
|
5
|
-
|
|
5
|
+
// src/utilities/Theme.ts
|
|
6
6
|
/** 프로퍼티 «이름»만 필요할 때 쓰는 더미 — 값은 쓰지 않는다. */
|
|
7
7
|
var EMPTY_RAMP = {
|
|
8
8
|
weakest: "#000",
|
|
@@ -246,5 +246,4 @@ var Theme = class {
|
|
|
246
246
|
if (this._isDebugMode) console.log("[@iyulab/components] Theme:", ...args);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
//#endregion
|
|
250
249
|
export { Theme };
|
package/dist/utilities/Toast.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayManager } from "./OverlayManager.js";
|
|
2
2
|
import { UAlert } from "../components/alert/UAlert.js";
|
|
3
|
-
|
|
3
|
+
// src/utilities/Toast.ts
|
|
4
4
|
/**
|
|
5
5
|
* 토스트 알림 유틸리티 클래스입니다.
|
|
6
6
|
*/
|
|
@@ -183,5 +183,4 @@ var Toast = class {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
//#endregion
|
|
187
186
|
export { Toast };
|
package/dist/utilities/accent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/accent.ts
|
|
2
2
|
/** 대비 계약의 문턱값 — `tests/build/token-contrast.test.ts` 와 같은 값이다. */
|
|
3
3
|
var AA_TEXT = 4.5;
|
|
4
4
|
/** `-strong` 이 `-color` 와 갈려 보이기 위한 최소 대비(2026-08-04 채택). */
|
|
@@ -123,5 +123,4 @@ function accentCustomProperties(ramp, role = "primary") {
|
|
|
123
123
|
[`--u-${role}-txt-color`]: ramp.txt
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
//#endregion
|
|
127
126
|
export { AA_TEXT, MIN_STEP_SEPARATION, accentCustomProperties, contrast, deriveAccentRamp, luminance, mix, parseColor, pickOnColor, toHex };
|
package/dist/utilities/chars.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/chars.ts
|
|
2
2
|
/** `chars` 가 유효한 글자 수인가 — 양의 유한수일 때만(그 밖은 지정 없음과 같다). 소수는 올린다. */
|
|
3
3
|
function charsCount(n) {
|
|
4
4
|
return n != null && Number.isFinite(n) && n > 0 ? Math.ceil(n) : void 0;
|
|
@@ -105,5 +105,4 @@ var CharsWidthController = class {
|
|
|
105
105
|
this.measured = void 0;
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
//#endregion
|
|
109
108
|
export { CharsWidthController, charsCount };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/clipboard.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copy and paste for a keyboard shortcut on something that is not a text field — a grid's selected
|
|
4
4
|
* cells, a list's selected rows.
|
|
@@ -107,5 +107,4 @@ function isTextEntry(target) {
|
|
|
107
107
|
if (target instanceof HTMLInputElement) return !NON_TEXT_INPUTS.has(target.type);
|
|
108
108
|
return target instanceof HTMLElement && target.isContentEditable;
|
|
109
109
|
}
|
|
110
|
-
//#endregion
|
|
111
110
|
export { copyFromKey, isTextEntry, pasteFromKey };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isHangul } from "./search.js";
|
|
2
|
-
|
|
2
|
+
// src/utilities/composition.ts
|
|
3
3
|
/**
|
|
4
4
|
* IME 조합(한국어 · 일본어 · 중국어)을 따라가는 입력 도우미 — 조합 중인 음절을 뺀 «확정된 글자» 를 준다.
|
|
5
5
|
*
|
|
@@ -72,5 +72,4 @@ function replayInput(input) {
|
|
|
72
72
|
composed: false
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
|
-
//#endregion
|
|
76
75
|
export { CompositionTracker, replayInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/converters.ts
|
|
2
2
|
/**
|
|
3
3
|
* 배열을 속성 문자열로, 속성 문자열을 배열로 변환하는 컨버터를 생성합니다.
|
|
4
4
|
* `lit-element`의 `property` 데코레이터에서 사용할 수 있습니다.
|
|
@@ -108,5 +108,4 @@ function urlAttrConverter(parser = (value) => new URL(value)) {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
//#endregion
|
|
112
111
|
export { arrayAttrConverter, booleanAttrConverter, dateAttrConverter, jsonAttrConverter, urlAttrConverter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/dateValue.ts
|
|
2
2
|
var PLAIN_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
3
3
|
var DATE_TIME = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(Z|[+-]\d{2}:?\d{2})?$/i;
|
|
4
4
|
/** Whether the fields name a real calendar day and clock time — `Date` rolls `2026-02-30` into March and
|
|
@@ -75,5 +75,4 @@ function writePlainDateTime(date, seconds = true) {
|
|
|
75
75
|
function writeInstant(date) {
|
|
76
76
|
return `${writePlainDateTime(date)}${localOffset(date)}`;
|
|
77
77
|
}
|
|
78
|
-
//#endregion
|
|
79
78
|
export { localOffset, readDateValue, writeInstant, writePlainDate, writePlainDateTime };
|