Skip to content

Commit fe49388

Browse files
author
marker dao ®
committed
feat(regenerate)
1 parent ab0b9ea commit fe49388

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

packages/devextreme-angular/src/ui/chat/nested/send-button-options.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414

1515

1616

17-
import type { SendButtonBehavior, SendButtonClickEvent } from 'devextreme/ui/chat';
17+
import type { SendButtonAction, SendButtonClickEvent } from 'devextreme/ui/chat';
1818

1919
import {
2020
DxIntegrationModule,
@@ -33,11 +33,11 @@ import { NestedOption } from 'devextreme-angular/core';
3333
})
3434
export class DxoChatSendButtonOptionsComponent extends NestedOption implements OnDestroy, OnInit {
3535
@Input()
36-
get behavior(): SendButtonBehavior {
37-
return this._getOption('behavior');
36+
get action(): SendButtonAction {
37+
return this._getOption('action');
3838
}
39-
set behavior(value: SendButtonBehavior) {
40-
this._setOption('behavior', value);
39+
set action(value: SendButtonAction) {
40+
this._setOption('action', value);
4141
}
4242

4343
@Input()

packages/devextreme-react/src/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import dxChat, {
88
import { Component as BaseComponent, IHtmlOptions, ComponentRef, NestedComponentMeta } from "./core/component";
99
import NestedOption from "./core/nested-option";
1010

11-
import type { Message, AttachmentDownloadClickEvent, DisposingEvent, InitializedEvent, MessageDeletedEvent, MessageDeletingEvent, MessageEditCanceledEvent, MessageEditingStartEvent, MessageEnteredEvent, MessageUpdatedEvent, MessageUpdatingEvent, TypingEndEvent, TypingStartEvent, Attachment as ChatAttachment, User as ChatUser, SendButtonBehavior, SendButtonClickEvent } from "devextreme/ui/chat";
11+
import type { Message, AttachmentDownloadClickEvent, DisposingEvent, InitializedEvent, MessageDeletedEvent, MessageDeletingEvent, MessageEditCanceledEvent, MessageEditingStartEvent, MessageEnteredEvent, MessageUpdatedEvent, MessageUpdatingEvent, TypingEndEvent, TypingStartEvent, Attachment as ChatAttachment, User as ChatUser, SendButtonAction, SendButtonClickEvent } from "devextreme/ui/chat";
1212
import type { DisposingEvent as FileUploaderDisposingEvent, InitializedEvent as FileUploaderInitializedEvent, BeforeSendEvent, ContentReadyEvent, DropZoneEnterEvent, DropZoneLeaveEvent, FilesUploadedEvent, OptionChangedEvent, ProgressEvent, UploadAbortedEvent, UploadedEvent, UploadErrorEvent, UploadStartedEvent, ValueChangedEvent, UploadHttpMethod, FileUploadMode } from "devextreme/ui/file_uploader";
1313
import type { DisposingEvent as SpeechToTextDisposingEvent, InitializedEvent as SpeechToTextInitializedEvent, ContentReadyEvent as SpeechToTextContentReadyEvent, OptionChangedEvent as SpeechToTextOptionChangedEvent, CustomSpeechRecognizer as SpeechToTextCustomSpeechRecognizer, EndEvent, ErrorEvent, ResultEvent, StartClickEvent, StopClickEvent, SpeechRecognitionConfig as SpeechToTextSpeechRecognitionConfig } from "devextreme/ui/speech_to_text";
1414
import type { Format, ValidationStatus, ButtonStyle, ButtonType } from "devextreme/common";
@@ -376,7 +376,7 @@ const MessageTimestampFormat = Object.assign<typeof _componentMessageTimestampFo
376376
// owners:
377377
// Chat
378378
type ISendButtonOptionsProps = React.PropsWithChildren<{
379-
behavior?: SendButtonBehavior;
379+
action?: SendButtonAction;
380380
icon?: string;
381381
onClick?: ((e: SendButtonClickEvent) => void);
382382
}>

packages/devextreme-vue/src/chat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
SendButtonProperties,
2626
User,
2727
Attachment,
28-
SendButtonBehavior,
28+
SendButtonAction,
2929
SendButtonClickEvent,
3030
} from "devextreme/ui/chat";
3131
import {
@@ -597,12 +597,12 @@ const DxSendButtonOptionsConfig = {
597597
emits: {
598598
"update:isActive": null,
599599
"update:hoveredElement": null,
600-
"update:behavior": null,
600+
"update:action": null,
601601
"update:icon": null,
602602
"update:onClick": null,
603603
},
604604
props: {
605-
behavior: String as PropType<SendButtonBehavior>,
605+
action: String as PropType<SendButtonAction>,
606606
icon: String,
607607
onClick: Function as PropType<((e: SendButtonClickEvent) => void)>
608608
}

packages/devextreme/js/ui/chat_types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export {
2222
Message,
2323
MessageTemplateData,
2424
EmptyViewTemplateData,
25-
SendButtonBehavior,
25+
SendButtonAction,
2626
SendButtonProperties,
2727
dxChatOptions,
2828
Properties,

packages/devextreme/ts/dx.all.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11333,7 +11333,7 @@ declare module DevExpress.ui {
1133311333
DevExpress.common.core.events.EventInfo<dxChat> &
1133411334
DevExpress.common.core.events.ChangedOptionInfo;
1133511335
export type Properties = dxChatOptions;
11336-
export type SendButtonBehavior = 'send' | 'custom';
11336+
export type SendButtonAction = 'send' | 'custom';
1133711337
/**
1133811338
* [descr:_ui_chat_SendButtonClickEvent]
1133911339
*/
@@ -34184,13 +34184,13 @@ declare module DevExpress.ui.dxChat {
3418434184
*/
3418534185
export type SendButtonProperties = {
3418634186
/**
34187-
* [descr:SendButtonProperties.icon]
34187+
* [descr:SendButtonProperties.action]
3418834188
*/
34189-
icon?: string;
34189+
action?: SendButtonAction;
3419034190
/**
34191-
* [descr:SendButtonProperties.behavior]
34191+
* [descr:SendButtonProperties.icon]
3419234192
*/
34193-
behavior?: SendButtonBehavior;
34193+
icon?: string;
3419434194
/**
3419534195
* [descr:SendButtonProperties.onClick]
3419634196
*/

0 commit comments

Comments
 (0)