@nine-lab/nine-mu 0.1.163 → 0.1.165
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/dist/css/nine-mu.css +1 -1
- package/dist/nine-mu.js +10 -12
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/public/css/nine-mu.css +1 -1
- package/src/components/NineChat.js +6 -12
package/package.json
CHANGED
package/public/css/nine-mu.css
CHANGED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
border: 1px solid green;
|
|
209
209
|
}
|
|
210
210
|
textarea:disabled {
|
|
211
|
-
background-color:
|
|
211
|
+
background-color: #f5f5f5; /* 연한 회색 배경 */
|
|
212
212
|
color: #999; /* 글자색도 연하게 */
|
|
213
213
|
cursor: not-allowed; /* 마우스 커서를 금지 모양으로 변경 */
|
|
214
214
|
border-color: #ddd; /* 테두리 색상도 힘을 뺌 */
|
|
@@ -69,12 +69,7 @@ export class NineChat extends HTMLElement {
|
|
|
69
69
|
// --- [그룹 2: Action] 엔터키 입력 시 서비스 호출 ---
|
|
70
70
|
#initActions() {
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// 중복 전송 방지 플래그
|
|
75
|
-
//this.isProcessing = false;
|
|
76
|
-
|
|
77
|
-
$textarea.addEventListener('keypress', async (e) => {
|
|
72
|
+
this.shadowRoot.querySelector('#q').addEventListener('keypress', async (e) => {
|
|
78
73
|
if (e.key === 'Enter' && !e.shiftKey) {
|
|
79
74
|
e.preventDefault();
|
|
80
75
|
|
|
@@ -82,8 +77,8 @@ export class NineChat extends HTMLElement {
|
|
|
82
77
|
if (!userInput) return;
|
|
83
78
|
|
|
84
79
|
//this.isProcessing = true;
|
|
85
|
-
e.target.disabled = true;
|
|
86
|
-
|
|
80
|
+
//e.target.disabled = true;
|
|
81
|
+
e.target.setAttribute('disabled', 'disabled');
|
|
87
82
|
|
|
88
83
|
// 1. 즉시 UI 반영
|
|
89
84
|
this.#$nineChatMessage.add("me", userInput);
|
|
@@ -91,11 +86,11 @@ export class NineChat extends HTMLElement {
|
|
|
91
86
|
|
|
92
87
|
// 2. 입력창 비우기
|
|
93
88
|
setTimeout(() => {
|
|
94
|
-
|
|
89
|
+
e.target.value = "";
|
|
95
90
|
});
|
|
96
91
|
|
|
97
92
|
// 3. nine.safe로 매니저 로직 실행
|
|
98
|
-
const [_, err] = await nine.safe(this.#manager.handleChatSubmit(
|
|
93
|
+
const [_, err] = await nine.safe(this.#manager.handleChatSubmit(e.target));
|
|
99
94
|
|
|
100
95
|
if (err) {
|
|
101
96
|
console.error("Manager 실행 에러:", err);
|
|
@@ -104,8 +99,7 @@ export class NineChat extends HTMLElement {
|
|
|
104
99
|
nine.alert("메시지 전송 중 오류가 발생했습니다.").rgb().shake();
|
|
105
100
|
}
|
|
106
101
|
|
|
107
|
-
|
|
108
|
-
//this.isProcessing = false;
|
|
102
|
+
e.target.removeAttribute('disabled');
|
|
109
103
|
}
|
|
110
104
|
});
|
|
111
105
|
}
|