Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedwag committed Nov 6, 2024
1 parent 5da4801 commit fc95a4d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/devextreme-angular/src/ui/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges
}


/**
* [descr:dxChatOptions.messageTemplate]
*/
@Input()
get messageTemplate(): null {
return this._getOption('messageTemplate');
}
set messageTemplate(value: null) {
this._setOption('messageTemplate', value);
}


/**
* [descr:dxChatOptions.messageTimestampFormat]
Expand Down Expand Up @@ -512,6 +525,13 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges
*/
@Output() itemsChange: EventEmitter<Array<Message>>;

/**
* This member supports the internal infrastructure and is not intended to be used directly from your code.
*/
@Output() messageTemplateChange: EventEmitter<null>;

/**
* This member supports the internal infrastructure and is not intended to be used directly from your code.
Expand Down Expand Up @@ -681,6 +701,7 @@ export class DxChatComponent extends DxComponent implements OnDestroy, OnChanges
{ emit: 'hintChange' },
{ emit: 'hoverStateEnabledChange' },
{ emit: 'itemsChange' },
{ emit: 'messageTemplateChange' },
{ emit: 'messageTimestampFormatChange' },
{ emit: 'reloadOnChangeChange' },
{ emit: 'rtlEnabledChange' },
Expand Down
3 changes: 3 additions & 0 deletions packages/devextreme-vue/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type AccessibleOptions = Pick<Properties,
"hint" |
"hoverStateEnabled" |
"items" |
"messageTemplate" |
"messageTimestampFormat" |
"onDisposing" |
"onInitialized" |
Expand Down Expand Up @@ -53,6 +54,7 @@ const componentConfig = {
hint: String,
hoverStateEnabled: Boolean,
items: Array,
messageTemplate: {},
messageTimestampFormat: {},
onDisposing: Function,
onInitialized: Function,
Expand Down Expand Up @@ -86,6 +88,7 @@ const componentConfig = {
"update:hint": null,
"update:hoverStateEnabled": null,
"update:items": null,
"update:messageTemplate": null,
"update:messageTimestampFormat": null,
"update:onDisposing": null,
"update:onInitialized": null,
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme/js/ui/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export interface dxChatOptions extends WidgetOptions<dxChat> {
*/
alerts?: Array<Alert>;
/**
* @docid
* @default null
* @type_function_return string|Element|jQuery
* @public
Expand Down
3 changes: 3 additions & 0 deletions packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9594,6 +9594,9 @@ declare module DevExpress.ui {
* [descr:dxChatOptions.alerts]
*/
alerts?: Array<DevExpress.ui.dxChat.Alert>;
/**
* [descr:dxChatOptions.messageTemplate]
*/
messageTemplate?:
| ((
data: DevExpress.ui.dxChat.MessageTemplateData,
Expand Down

0 comments on commit fc95a4d

Please sign in to comment.