@iyulab/chat-components 0.17.3 → 0.17.5
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 +18 -0
- package/dist/components/blocks/UTableBlock.js +2 -0
- package/dist/components/prompt/UPrompt.js +1 -0
- package/dist/components-extra/UChartBlock.d.ts +1 -0
- package/dist/components-extra/UChartBlock.js +2 -2
- package/dist/utilities/messages.d.ts +1 -1
- package/dist/utilities/messages.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.5] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Deep imports register what they render.** `u-prompt` renders its input as `<u-text-block>` and `u-table-block`
|
|
8
|
+
its search box as `<u-input>`, but each imported the class for a type only, so the build dropped both imports:
|
|
9
|
+
importing either component by its own module path left the prompt without an input and the table without a
|
|
10
|
+
search box. The package entry hid it (it registers every component).
|
|
11
|
+
- **`u-table-block`'s search box has a name** (new locale key `searchLabel` — en *Search rows*, ko *행 검색*); it had
|
|
12
|
+
only its placeholder, which disappears as you type.
|
|
13
|
+
|
|
14
|
+
## [0.17.4] - 2026-10-07
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **`u-chart-block`'s "canvas unavailable" message follows a runtime locale switch** — it is looked up when drawn
|
|
19
|
+
instead of stored as text. (With `@iyulab/components` 2.8.0 every component re-renders on `Locale.set()`.)
|
|
20
|
+
|
|
3
21
|
## [0.17.3] - 2026-10-06
|
|
4
22
|
|
|
5
23
|
### Fixed
|
|
@@ -11,6 +11,7 @@ import "@iyulab/components/dist/components/icon/UIcon.js";
|
|
|
11
11
|
import "@iyulab/components/dist/components/skeleton/USkeleton.js";
|
|
12
12
|
import "@iyulab/components/dist/components/button/UButton.js";
|
|
13
13
|
import { repeat } from "lit/directives/repeat.js";
|
|
14
|
+
import "@iyulab/components/dist/components/input/UInput.js";
|
|
14
15
|
//#region src/components/blocks/UTableBlock.ts
|
|
15
16
|
var UTableBlock = class UTableBlock extends UDataElement {
|
|
16
17
|
constructor(..._args) {
|
|
@@ -37,6 +38,7 @@ var UTableBlock = class UTableBlock extends UDataElement {
|
|
|
37
38
|
class="toolbar-search"
|
|
38
39
|
type="search"
|
|
39
40
|
placeholder=${messages.text("search")}
|
|
41
|
+
aria-label=${messages.text("searchLabel")}
|
|
40
42
|
.value=${this.search}
|
|
41
43
|
@input=${this.handleSearchInput}
|
|
42
44
|
>
|
|
@@ -3,6 +3,7 @@ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.152.0/hel
|
|
|
3
3
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.js";
|
|
4
4
|
import { messages } from "../../utilities/messages.js";
|
|
5
5
|
import "../blocks/UFileBlock.js";
|
|
6
|
+
import "../blocks/UTextBlock.js";
|
|
6
7
|
import { styles } from "./UPrompt.styles.js";
|
|
7
8
|
import { html } from "lit";
|
|
8
9
|
import { customElement, property } from "lit/decorators.js";
|
|
@@ -15,6 +15,7 @@ export declare class UChartBlock extends UElement {
|
|
|
15
15
|
private canvas?;
|
|
16
16
|
private viewport?;
|
|
17
17
|
/** 차트 생성 에러 메시지 */
|
|
18
|
+
/** 차트를 못 그린 이유 — 우리 문장은 «그릴 때 찾는» 함수로(런타임 로캘 전환에 따라오게), Chart.js 의 예외 문장은 그대로. */
|
|
18
19
|
private error;
|
|
19
20
|
private chartjs;
|
|
20
21
|
private observer?;
|
|
@@ -68,7 +68,7 @@ var UChartBlock = class UChartBlock extends UElement {
|
|
|
68
68
|
<canvas></canvas>
|
|
69
69
|
<div class="error-overlay" ?hidden=${!this.error}>
|
|
70
70
|
<u-icon lib="internal-chat" name="alert-triangle-fill"></u-icon>
|
|
71
|
-
<span>${this.error}</span>
|
|
71
|
+
<span>${typeof this.error === "function" ? this.error() : this.error}</span>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
74
|
`;
|
|
@@ -81,7 +81,7 @@ var UChartBlock = class UChartBlock extends UElement {
|
|
|
81
81
|
this.error = null;
|
|
82
82
|
const ctx = this.canvas.getContext("2d");
|
|
83
83
|
if (!ctx) {
|
|
84
|
-
this.error = messages.text("canvasUnavailable");
|
|
84
|
+
this.error = () => messages.text("canvasUnavailable");
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
try {
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* 이 리포가 채택한 표준이 *"영어 기본 **+ 레지스트리**"* 이기 때문이다 — 영어 리터럴만으로는
|
|
6
6
|
* 한국어 앱이 그 문구를 되돌릴 방법이 없다. 다음 문자열은 여기로 온다.
|
|
7
7
|
*/
|
|
8
|
-
export type ChatMessageKey = 'canvasUnavailable' | 'previousReference' | 'nextReference' | 'closePreview' | 'closeLightbox' | 'previousImage' | 'nextImage' | 'sendMessage' | 'stopGenerating' | 'fullScreen' | 'remove' | 'pngDownload' | 'jsonDownload' | 'search' | 'rowCount' | 'excelDownload' | 'csvDownload' | 'openImage' | 'previewFile' | 'imageBlocked' | 'imageBlockedNamed' | 'opensInNewTab' | 'textBlock' | 'references';
|
|
8
|
+
export type ChatMessageKey = 'canvasUnavailable' | 'previousReference' | 'nextReference' | 'closePreview' | 'closeLightbox' | 'previousImage' | 'nextImage' | 'sendMessage' | 'stopGenerating' | 'fullScreen' | 'remove' | 'pngDownload' | 'jsonDownload' | 'search' | 'searchLabel' | 'rowCount' | 'excelDownload' | 'csvDownload' | 'openImage' | 'previewFile' | 'imageBlocked' | 'imageBlockedNamed' | 'opensInNewTab' | 'textBlock' | 'references';
|
|
9
9
|
export declare const messages: import('@iyulab/components/dist/utilities/Locale.js').LocaleNamespace<ChatMessageKey>;
|
|
@@ -16,6 +16,7 @@ messages.register("en", {
|
|
|
16
16
|
pngDownload: "PNG Download",
|
|
17
17
|
jsonDownload: "JSON Download",
|
|
18
18
|
search: "Search...",
|
|
19
|
+
searchLabel: "Search rows",
|
|
19
20
|
textBlock: "Text",
|
|
20
21
|
references: "References",
|
|
21
22
|
rowCount: "{shown} / {total} Rows",
|
|
@@ -42,6 +43,7 @@ messages.register("ko", {
|
|
|
42
43
|
pngDownload: "PNG 다운로드",
|
|
43
44
|
jsonDownload: "JSON 다운로드",
|
|
44
45
|
search: "검색...",
|
|
46
|
+
searchLabel: "행 검색",
|
|
45
47
|
textBlock: "텍스트",
|
|
46
48
|
references: "참조",
|
|
47
49
|
rowCount: "{shown} / {total} 행",
|