@iyulab/chat-components 0.11.7 → 0.11.8
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.8] - 2026-09-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **The table block's toolbar stayed English in every locale.** `UTableBlock`
|
|
8
|
+
was the only block component that never went through the message registry
|
|
9
|
+
at all — it did not even import it — so its search placeholder, row-count
|
|
10
|
+
label, and Excel/CSV download tooltips were English literals regardless of
|
|
11
|
+
the active locale. Routed all four through the existing registry. The
|
|
12
|
+
row-count label uses the registry's existing `{name}` interpolation
|
|
13
|
+
(`'{shown} / {total} Rows'`), so no new API was needed.
|
|
14
|
+
|
|
3
15
|
## [0.11.7] - 2026-09-01
|
|
4
16
|
|
|
5
17
|
### Fixed
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorateMetadata.js";
|
|
2
2
|
import __decorate from "../../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/decorate.js";
|
|
3
3
|
import { UDataElement } from "../UDataElement.js";
|
|
4
|
+
import { messages } from "../../utilities/messages.js";
|
|
4
5
|
import { styles } from "./UTableBlock.styles.js";
|
|
5
6
|
import { html } from "lit";
|
|
6
7
|
import { customElement, property, state } from "lit/decorators.js";
|
|
@@ -34,22 +35,25 @@ var UTableBlock = class UTableBlock extends UDataElement {
|
|
|
34
35
|
<u-input
|
|
35
36
|
class="toolbar-search"
|
|
36
37
|
type="search"
|
|
37
|
-
placeholder
|
|
38
|
+
placeholder=${messages.text("search")}
|
|
38
39
|
.value=${this.search}
|
|
39
40
|
@input=${this.handleSearchInput}
|
|
40
41
|
>
|
|
41
42
|
<u-icon slot="prefix" lib="internal" name="search"></u-icon>
|
|
42
43
|
</u-input>
|
|
43
44
|
<span class="toolbar-count">
|
|
44
|
-
${
|
|
45
|
+
${messages.text("rowCount", {
|
|
46
|
+
shown: rows.length,
|
|
47
|
+
total: this.rows.length
|
|
48
|
+
})}
|
|
45
49
|
</span>
|
|
46
50
|
</div>
|
|
47
51
|
<div class="toolbar-right">
|
|
48
|
-
<u-button @click=${this.handleDownloadXLS} title
|
|
52
|
+
<u-button @click=${this.handleDownloadXLS} title=${messages.text("excelDownload")}>
|
|
49
53
|
XLS
|
|
50
54
|
<u-icon slot="suffix" lib="internal-chat" name="download"></u-icon>
|
|
51
55
|
</u-button>
|
|
52
|
-
<u-button @click=${this.handleDownloadCSV} title
|
|
56
|
+
<u-button @click=${this.handleDownloadCSV} title=${messages.text("csvDownload")}>
|
|
53
57
|
CSV
|
|
54
58
|
<u-icon slot="suffix" lib="internal-chat" name="download"></u-icon>
|
|
55
59
|
</u-button>
|
|
@@ -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';
|
|
8
|
+
export type ChatMessageKey = 'canvasUnavailable' | 'previousReference' | 'nextReference' | 'closePreview' | 'closeLightbox' | 'previousImage' | 'nextImage' | 'sendMessage' | 'stopGenerating' | 'fullScreen' | 'remove' | 'pngDownload' | 'jsonDownload' | 'search' | 'rowCount' | 'excelDownload' | 'csvDownload';
|
|
9
9
|
export declare const messages: import('@iyulab/components/dist/utilities/Locale.js').LocaleNamespace<ChatMessageKey>;
|
|
@@ -14,7 +14,11 @@ messages.register("en", {
|
|
|
14
14
|
fullScreen: "Full screen",
|
|
15
15
|
remove: "Remove",
|
|
16
16
|
pngDownload: "PNG Download",
|
|
17
|
-
jsonDownload: "JSON Download"
|
|
17
|
+
jsonDownload: "JSON Download",
|
|
18
|
+
search: "Search...",
|
|
19
|
+
rowCount: "{shown} / {total} Rows",
|
|
20
|
+
excelDownload: "Excel Download",
|
|
21
|
+
csvDownload: "CSV Download"
|
|
18
22
|
});
|
|
19
23
|
messages.register("ko", {
|
|
20
24
|
canvasUnavailable: "Canvas 2D context를 가져올 수 없습니다.",
|
|
@@ -29,7 +33,11 @@ messages.register("ko", {
|
|
|
29
33
|
fullScreen: "전체 화면",
|
|
30
34
|
remove: "제거",
|
|
31
35
|
pngDownload: "PNG 다운로드",
|
|
32
|
-
jsonDownload: "JSON 다운로드"
|
|
36
|
+
jsonDownload: "JSON 다운로드",
|
|
37
|
+
search: "검색...",
|
|
38
|
+
rowCount: "{shown} / {total} 행",
|
|
39
|
+
excelDownload: "Excel 다운로드",
|
|
40
|
+
csvDownload: "CSV 다운로드"
|
|
33
41
|
});
|
|
34
42
|
//#endregion
|
|
35
43
|
export { messages };
|