|
1 | 1 | import { LitElement, html } from 'lit'; |
2 | 2 | import { property } from 'lit/decorators.js'; |
| 3 | +import IgcButtonComponent from '../button/button.js'; |
3 | 4 | import { registerComponent } from '../common/definitions/register.js'; |
4 | 5 | import type { Constructor } from '../common/mixins/constructor.js'; |
5 | 6 | import { EventEmitterMixin } from '../common/mixins/event-emitter.js'; |
6 | | -import IgcChatHeaderComponent from './chat-header.js'; |
7 | 7 | import IgcChatInputComponent from './chat-input.js'; |
8 | 8 | import IgcChatMessageListComponent from './chat-message-list.js'; |
9 | 9 | import { styles } from './themes/chat.base.css.js'; |
@@ -37,9 +37,9 @@ export default class IgcChatComponent extends EventEmitterMixin< |
37 | 37 | public static register() { |
38 | 38 | registerComponent( |
39 | 39 | IgcChatComponent, |
40 | | - IgcChatHeaderComponent, |
41 | 40 | IgcChatInputComponent, |
42 | | - IgcChatMessageListComponent |
| 41 | + IgcChatMessageListComponent, |
| 42 | + IgcButtonComponent |
43 | 43 | ); |
44 | 44 | } |
45 | 45 |
|
@@ -186,7 +186,15 @@ export default class IgcChatComponent extends EventEmitterMixin< |
186 | 186 | protected override render() { |
187 | 187 | return html` |
188 | 188 | <div class="chat-container"> |
189 | | - <igc-chat-header .text=${this.headerText}></igc-chat-header> |
| 189 | + <div class="header" part="header"> |
| 190 | + <div class="info"> |
| 191 | + <slot name="prefix" part="prefix"></slot> |
| 192 | + <slot name="title" part="title">${this.headerText}</slot> |
| 193 | + </div> |
| 194 | + <slot name="actions" class="actions"> |
| 195 | + <igc-button variant="flat">⋯</igcbutton> |
| 196 | + </slot> |
| 197 | + </div> |
190 | 198 | <igc-chat-message-list |
191 | 199 | .messages=${this.messages} |
192 | 200 | .user=${this.user} |
|
0 commit comments