@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,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 };
|
|
@@ -4,7 +4,7 @@ export type SupportedLocale = 'en' | 'ko' | 'ja' | 'zh-CN' | 'zh-TW' | 'es' | 'f
|
|
|
4
4
|
/** 내장 로케일은 자동완성되지만, 임의의 BCP47 태그도 그대로 받는다. */
|
|
5
5
|
export type LocaleTag = SupportedLocale | (string & {});
|
|
6
6
|
/** 라이브러리가 제공하는 chrome 문자열 키. 지금은 검증 메시지뿐이지만 이후 다른 UI 문구도 추가될 수 있다. */
|
|
7
|
-
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
|
|
7
|
+
export type LocaleMessageKey = 'valueMissing' | 'badInput' | 'typeMismatch' | 'patternMismatch' | 'rangeUnderflow' | 'rangeOverflow' | 'stepMismatch' | 'tooShort' | 'tooLong' | 'increment' | 'decrement' | 'clear' | 'today' | 'time' | 'showPassword' | 'hidePassword' | 'previousSlide' | 'nextSlide' | 'goToSlide' | 'carousel' | 'slide' | 'slideOf' | 'stopSlideRotation' | 'startSlideRotation' | 'chooseDate' | 'chooseDateRange' | 'yesterday' | 'last7Days' | 'last30Days' | 'last3Months' | 'last6Months' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'quickRanges' | 'rangeStartChosen' | 'previousMonth' | 'nextMonth' | 'close' | 'copy' | 'copied' | 'chooseFile' | 'noFileChosen' | 'filesSelected' | 'resizePanels' | 'loading' | 'breadcrumb' | 'search' | 'noMatches' | 'alertError' | 'alertWarning' | 'alertSuccess' | 'alertInfo' | 'alertNotice' | 'alertMessage' | 'remove' | 'closeTab' | 'confirm' | 'cancel' | 'ok' | 'stepComplete' | 'stepOnHold' | 'apply' | 'dateUnavailable' | 'startTime' | 'endTime' | 'timeAm' | 'timePm' | 'pagination' | 'previousPage' | 'nextPage' | 'pageN' | 'rowsPerPage' | 'rangeOfTotal';
|
|
8
8
|
type LocaleTable = Record<LocaleMessageKey, string>;
|
|
9
9
|
/**
|
|
10
10
|
* 글자가 검색어를 담는가 — 사람이 «찾았다» 고 여기는 일치. 글자마다 거르는 칸(`u-select` 의 검색 등)이 쓴다.
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/devWarning.ts
|
|
2
2
|
/**
|
|
3
3
|
* 개발 모드 «사용 안내» 경고 — 오류 경로가 아닌, ***조용히 틀리는*** 상태를 한 번 알린다.
|
|
4
4
|
*
|
|
@@ -43,5 +43,4 @@ var devWarnOnce = createDevWarner("@iyulab/components");
|
|
|
43
43
|
function resetDevWarnings() {
|
|
44
44
|
warned.clear();
|
|
45
45
|
}
|
|
46
|
-
//#endregion
|
|
47
46
|
export { createDevWarner, devWarnOnce, resetDevWarnings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/elements.ts
|
|
2
2
|
/**
|
|
3
3
|
* 엘리먼트의 부모 엘리먼트를 반환합니다.
|
|
4
4
|
* - Shadow DOM을 지원하는 경우, Shadow DOM의 호스트 엘리먼트를 반환합니다.
|
|
@@ -113,5 +113,4 @@ function querySelectorDeep(roots, selectors, accept = () => true) {
|
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
}
|
|
116
|
-
//#endregion
|
|
117
116
|
export { getParentElement, isCoarsePointer, isFocusCandidate, isFromControl, querySelectorAllWithin, querySelectorDeep, querySelectorWithin };
|
package/dist/utilities/format.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "./Locale.js";
|
|
2
2
|
import { readDateValue } from "./dateValue.js";
|
|
3
|
-
|
|
3
|
+
// src/utilities/format.ts
|
|
4
4
|
/**
|
|
5
5
|
* Resolves a Date or date string to a Date — through {@link readDateValue}, so a `YYYY-MM-DD` day is local
|
|
6
6
|
* midnight (not UTC midnight, which is the previous day west of Greenwich), a date-time without an offset is
|
|
@@ -409,5 +409,4 @@ function parseDateTimeRange(text, options = {}) {
|
|
|
409
409
|
function formatDateTimeRangeText(start, end, format = "iso", locale, seconds = false) {
|
|
410
410
|
return `${formatDateTimeText(start, format, locale, seconds)} – ${formatDateTimeText(end, format, locale, seconds)}`;
|
|
411
411
|
}
|
|
412
|
-
//#endregion
|
|
413
412
|
export { dateTextPattern, formatCurrency, formatDate, formatDateRange, formatDateRangeText, formatDateText, formatDateTimeRangeText, formatDateTimeText, formatNumber, parseDate, parseDateRange, parseDateTime, parseDateTimeRange, parseNumber };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/hostAria.ts
|
|
2
2
|
/**
|
|
3
3
|
* A component's own ARIA on its host, written as attributes — and only where the author left them empty.
|
|
4
4
|
*
|
|
@@ -84,5 +84,4 @@ function nameFromSlot(aria, host, slot, given) {
|
|
|
84
84
|
aria.set("aria-label", text || null);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { HostAria, nameFromSlot };
|
package/dist/utilities/icons.js
CHANGED
|
@@ -22,7 +22,7 @@ import search_svg_default from "../_virtual/_glob-assets_raw/search.svg.0ba2012d
|
|
|
22
22
|
import star_fill_svg_default from "../_virtual/_glob-assets_raw/star-fill.svg.f24b5a2d.js";
|
|
23
23
|
import star_svg_default from "../_virtual/_glob-assets_raw/star.svg.4af61468.js";
|
|
24
24
|
import x_svg_default from "../_virtual/_glob-assets_raw/x.svg.5596f6bb.js";
|
|
25
|
-
|
|
25
|
+
// src/utilities/icons.ts
|
|
26
26
|
var defaultIconBaseUrl = "/assets/icons/";
|
|
27
27
|
/**
|
|
28
28
|
* 기본 라이브러리에서 아이콘을 로드할 때 사용할 기본 URL을 반환합니다.
|
|
@@ -38,6 +38,22 @@ function getDefaultBaseUrl() {
|
|
|
38
38
|
function setDefaultBaseUrl(url) {
|
|
39
39
|
defaultIconBaseUrl = url;
|
|
40
40
|
}
|
|
41
|
+
/** 페이지를 떠나는 중인가 — 그때 끊기는 진행 중 fetch 는 `TypeError: Failed to fetch` 로 오지만 실패가 아니다. */
|
|
42
|
+
var leavingPage = false;
|
|
43
|
+
if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
|
|
44
|
+
window.addEventListener("pagehide", () => {
|
|
45
|
+
leavingPage = true;
|
|
46
|
+
});
|
|
47
|
+
window.addEventListener("beforeunload", () => {
|
|
48
|
+
leavingPage = true;
|
|
49
|
+
});
|
|
50
|
+
window.addEventListener("pageshow", () => {
|
|
51
|
+
leavingPage = false;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function isAbortError(error) {
|
|
55
|
+
return typeof error === "object" && error !== null && error.name === "AbortError";
|
|
56
|
+
}
|
|
41
57
|
/**
|
|
42
58
|
* vite의 `import.meta.glob`을 사용하여 내부 경로상의 모든 SVG 파일을 빌드 시점에 한 번에 로드합니다.
|
|
43
59
|
* 이 레지스트리는 런타임 동안 불변이며, 아이콘 조회 시 재사용됩니다.
|
|
@@ -213,7 +229,7 @@ var IconRegistry = class {
|
|
|
213
229
|
if ((this.generation.get(lib) ?? 0) === generation) IconCache.set(lib, name, svg);
|
|
214
230
|
return svg;
|
|
215
231
|
} catch (error) {
|
|
216
|
-
console.
|
|
232
|
+
if (!leavingPage && !isAbortError(error)) console.warn(`[@iyulab/components] IconRegistry: Failed to resolve icon '${key}' (will retry):`, error);
|
|
217
233
|
return;
|
|
218
234
|
}
|
|
219
235
|
})();
|
|
@@ -253,5 +269,4 @@ IconRegistry.register("bootstrap", async (name) => {
|
|
|
253
269
|
if (!response.ok) return void 0;
|
|
254
270
|
return await response.text();
|
|
255
271
|
});
|
|
256
|
-
//#endregion
|
|
257
272
|
export { IconCache, IconRegistry, getDefaultBaseUrl, setDefaultBaseUrl };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/keyboard.ts
|
|
2
2
|
/**
|
|
3
3
|
* Whether a key event belongs to an IME composition — typing Korean, Japanese, Chinese and other
|
|
4
4
|
* languages that build a character from several keystrokes.
|
|
@@ -21,5 +21,4 @@
|
|
|
21
21
|
function isImeComposing(e) {
|
|
22
22
|
return e.isComposing || e.keyCode === 229;
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { isImeComposing };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFocusable } from "tabbable";
|
|
2
|
-
|
|
2
|
+
// src/utilities/nestedControl.ts
|
|
3
3
|
/**
|
|
4
4
|
* 이벤트가 `owner` «안의» 다른 상호작용 요소(포커스를 받는 요소)에서 왔는가.
|
|
5
5
|
*
|
|
@@ -16,5 +16,4 @@ function isFromNestedControl(e, owner) {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { isFromNestedControl };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/progressAria.ts
|
|
2
2
|
/**
|
|
3
3
|
* 진행 표시(`u-progress-bar`·`u-progress-ring`·`u-spinner`)를 보조기기에 `progressbar` 로 내놓는다.
|
|
4
4
|
*
|
|
@@ -14,5 +14,4 @@ function syncProgressbar(aria, state) {
|
|
|
14
14
|
aria.set("aria-valuemax", String(state.max));
|
|
15
15
|
aria.set("aria-valuenow", state.indeterminate ? null : String(Math.max(state.min, Math.min(state.max, state.value))));
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { syncProgressbar };
|
package/dist/utilities/search.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/search.ts
|
|
2
2
|
var HANGUL_BASE = 44032;
|
|
3
3
|
var HANGUL_LAST = 55203;
|
|
4
4
|
/** 초성 19 — 호환 자모. */
|
|
@@ -147,5 +147,4 @@ function defaultSearchMatch(text, query, options = {}) {
|
|
|
147
147
|
for (let at = folded.indexOf(head); at !== -1 && at < folded.length; at = folded.indexOf(head, at + 1)) if (hangulKeystrokes(folded.slice(at + head.length)).startsWith(tail)) return true;
|
|
148
148
|
return false;
|
|
149
149
|
}
|
|
150
|
-
//#endregion
|
|
151
150
|
export { defaultSearchMatch, foldForSearch, hangulKeystrokes, initialsOf, isHangul };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/statusIcon.ts
|
|
2
2
|
/**
|
|
3
3
|
* 역할 축(의미)의 상태 → 내장 아이콘 이름.
|
|
4
4
|
*
|
|
@@ -30,5 +30,4 @@ var STATUS_ICON = {
|
|
|
30
30
|
function statusIcon(color) {
|
|
31
31
|
return color && color in STATUS_ICON ? STATUS_ICON[color] : void 0;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { STATUS_ICON, statusIcon };
|
package/dist/utilities/tsv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/tsv.ts
|
|
2
2
|
/**
|
|
3
3
|
* 스프레드시트 클립보드 형식(TSV)의 인코더·디코더 — Excel·Google Sheets 와 복사·붙여넣기로 오가는 표.
|
|
4
4
|
*
|
|
@@ -93,5 +93,4 @@ function decodeDelimited(text, delimiter) {
|
|
|
93
93
|
endRow();
|
|
94
94
|
return rows;
|
|
95
95
|
}
|
|
96
|
-
//#endregion
|
|
97
96
|
export { decodeDelimited, decodeTsv, encodeTsv };
|
package/package.json
CHANGED
|
@@ -99,6 +99,8 @@ so "Last 7 days" is always the last seven days.
|
|
|
99
99
|
| `yesterday` | yesterday |
|
|
100
100
|
| `last7Days` | the 7 days ending today |
|
|
101
101
|
| `last30Days` | the 30 days ending today |
|
|
102
|
+
| `last3Months` | the 3 months ending today (from the day after the same date 3 months back; a day the earlier month lacks clamps to its end) |
|
|
103
|
+
| `last6Months` | the 6 months ending today, counted the same way |
|
|
102
104
|
| `thisWeek` | Sunday–Saturday of this week |
|
|
103
105
|
| `lastWeek` | Sunday–Saturday of last week |
|
|
104
106
|
| `thisMonth` | the whole of this month |
|
|
@@ -8,6 +8,8 @@ import '@iyulab/components/dist/components/tooltip/UTooltip.js';
|
|
|
8
8
|
|
|
9
9
|
Hover/focus tooltip anchored to a `for` target. Opens and closes automatically; Escape closes an open tooltip without moving the pointer or focus (WCAG 1.4.13) — inside a dialog, the first Escape closes the tooltip and the next one the dialog.
|
|
10
10
|
|
|
11
|
+
Assistive technology: the host gets `role="tooltip"` and an `id`, and each `for` target gets that `id` appended to its `aria-describedby` (an existing value is kept; an author's own `id`/`role` is never overwritten). A screen reader therefore reads the tooltip text as the target's description. An `interactive` tooltip (one that holds links or controls) is not an APG tooltip — it gets the description link but no `role="tooltip"`; for content a user must operate, prefer a non-modal dialog or a toggletip.
|
|
12
|
+
|
|
11
13
|
```html
|
|
12
14
|
<u-button id="save-btn">Save</u-button>
|
|
13
15
|
<u-tooltip for="#save-btn" placement="top">
|