Skip to content

Commit 532cce4

Browse files
authored
Chat and TileView demos: get rid of custom classes with dx prefix (DevExpress#30232)
1 parent 8baff86 commit 532cce4

File tree

23 files changed

+48
-48
lines changed

23 files changed

+48
-48
lines changed

apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717

1818
::ng-deep .dx-chat-messagebubble-content,
19-
::ng-deep .dx-chat-messagebubble-text {
19+
::ng-deep .chat-messagebubble-text {
2020
display: flex;
2121
flex-direction: column;
2222
}
2323

24-
::ng-deep .dx-bubble-button-container {
24+
::ng-deep .bubble-button-container {
2525
display: none;
2626
}
2727

@@ -30,7 +30,7 @@
3030
color: var(--dx-color-icon);
3131
}
3232

33-
::ng-deep .dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .dx-bubble-button-container {
33+
::ng-deep .dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .bubble-button-container {
3434
display: flex;
3535
gap: 4px;
3636
margin-top: 8px;
@@ -54,7 +54,7 @@
5454
font-weight: revert;
5555
}
5656

57-
::ng-deep .dx-chat-disabled .dx-chat-messagebox {
57+
::ng-deep .chat-disabled .dx-chat-messagebox {
5858
opacity: 0.5;
5959
pointer-events: none;
6060
}

apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="demo-container">
22
<dx-chat
3-
[class.dx-chat-disabled]="isDisabled"
3+
[class.chat-disabled]="isDisabled"
44
[dataSource]="dataSource"
55
[reloadOnChange]="false"
66
[showAvatar]="false"
@@ -18,11 +18,11 @@
1818
</ng-container>
1919
<ng-container *ngIf="data.message.text !== regenerationText">
2020
<div
21-
class="dx-chat-messagebubble-text"
21+
class="chat-messagebubble-text"
2222
[innerHTML]="convertToHtml(data.message)"
2323
>
2424
</div>
25-
<div class="dx-bubble-button-container">
25+
<div class="bubble-button-container">
2626
<dx-button
2727
[icon]="copyButtonIcon"
2828
stylingMode="text"

apps/demos/Demos/Chat/AIAndChatbotIntegration/React/Message.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ const Message: FC<MessageProps> = ({ text, onRegenerateButtonClick }) => {
4545

4646
return (
4747
<React.Fragment>
48-
<div className='dx-chat-messagebubble-text'>
48+
<div className='chat-messagebubble-text'>
4949
{HTMLReactParser(convertToHtml(text))}
5050
</div>
51-
<div className='dx-bubble-button-container'>
51+
<div className='bubble-button-container'>
5252
<Button
5353
icon={icon}
5454
stylingMode='text'

apps/demos/Demos/Chat/AIAndChatbotIntegration/React/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const AzureOpenAIConfig = {
99
}
1010

1111
export const REGENERATION_TEXT = 'Regeneration...';
12-
export const CHAT_DISABLED_CLASS = 'dx-chat-disabled';
12+
export const CHAT_DISABLED_CLASS = 'chat-disabled';
1313
export const ALERT_TIMEOUT = 1000 * 60;
1414

1515
export const user: ChatTypes.User = {

apps/demos/Demos/Chat/AIAndChatbotIntegration/React/styles.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717

1818
.dx-chat-messagebubble-content,
19-
.dx-chat-messagebubble-text {
19+
.chat-messagebubble-text {
2020
display: flex;
2121
flex-direction: column;
2222
}
2323

24-
.dx-bubble-button-container {
24+
.bubble-button-container {
2525
display: none;
2626
}
2727

@@ -30,7 +30,7 @@
3030
color: var(--dx-color-icon);
3131
}
3232

33-
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .dx-bubble-button-container {
33+
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .bubble-button-container {
3434
display: flex;
3535
gap: 4px;
3636
margin-top: 8px;
@@ -54,7 +54,7 @@
5454
font-weight: revert;
5555
}
5656

57-
.dx-chat-disabled .dx-chat-messagebox {
57+
.chat-disabled .dx-chat-messagebox {
5858
opacity: 0.5;
5959
pointer-events: none;
6060
}

apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/Message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const Message = ({ text, onRegenerateButtonClick }) => {
3232
}
3333
return (
3434
<React.Fragment>
35-
<div className="dx-chat-messagebubble-text">{HTMLReactParser(convertToHtml(text))}</div>
36-
<div className="dx-bubble-button-container">
35+
<div className="chat-messagebubble-text">{HTMLReactParser(convertToHtml(text))}</div>
36+
<div className="bubble-button-container">
3737
<Button
3838
icon={icon}
3939
stylingMode="text"

apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const AzureOpenAIConfig = {
66
apiKey: 'DEMO',
77
};
88
export const REGENERATION_TEXT = 'Regeneration...';
9-
export const CHAT_DISABLED_CLASS = 'dx-chat-disabled';
9+
export const CHAT_DISABLED_CLASS = 'chat-disabled';
1010
export const ALERT_TIMEOUT = 1000 * 60;
1111
export const user = {
1212
id: 'user',

apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/styles.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717

1818
.dx-chat-messagebubble-content,
19-
.dx-chat-messagebubble-text {
19+
.chat-messagebubble-text {
2020
display: flex;
2121
flex-direction: column;
2222
}
2323

24-
.dx-bubble-button-container {
24+
.bubble-button-container {
2525
display: none;
2626
}
2727

@@ -30,7 +30,7 @@
3030
color: var(--dx-color-icon);
3131
}
3232

33-
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .dx-bubble-button-container {
33+
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .bubble-button-container {
3434
display: flex;
3535
gap: 4px;
3636
margin-top: 8px;
@@ -54,7 +54,7 @@
5454
font-weight: revert;
5555
}
5656

57-
.dx-chat-disabled .dx-chat-messagebox {
57+
.chat-disabled .dx-chat-messagebox {
5858
opacity: 0.5;
5959
pointer-events: none;
6060
}

apps/demos/Demos/Chat/AIAndChatbotIntegration/Vue/App.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="chat-container"
44
>
55
<DxChat
6-
:class="{'dx-chat-disabled' : isDisabled == true }"
6+
:class="{'chat-disabled' : isDisabled == true }"
77
ref="chatElement"
88
:height="710"
99
:data-source="dataSource"
@@ -25,9 +25,9 @@
2525
<template v-else>
2626
<div
2727
v-html="convertToHtml(data.message.text)"
28-
class="dx-chat-messagebubble-text"
28+
class="chat-messagebubble-text"
2929
/>
30-
<div class="dx-bubble-button-container">
30+
<div class="bubble-button-container">
3131
<DxButton
3232
:icon="copyButtonIcon"
3333
styling-mode="text"
@@ -216,12 +216,12 @@ function onRegenerateButtonClick() {
216216
}
217217
218218
.dx-chat-messagebubble-content,
219-
.dx-chat-messagebubble-text {
219+
.chat-messagebubble-text {
220220
display: flex;
221221
flex-direction: column;
222222
}
223223
224-
.dx-bubble-button-container {
224+
.bubble-button-container {
225225
display: none;
226226
}
227227
@@ -230,7 +230,7 @@ function onRegenerateButtonClick() {
230230
color: var(--dx-color-icon);
231231
}
232232
233-
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .dx-bubble-button-container {
233+
.dx-chat-messagegroup-alignment-start:last-child .dx-chat-messagebubble:last-child .bubble-button-container {
234234
display: flex;
235235
gap: 4px;
236236
margin-top: 8px;
@@ -254,7 +254,7 @@ function onRegenerateButtonClick() {
254254
font-weight: revert;
255255
}
256256
257-
.dx-chat-disabled .dx-chat-messagebox {
257+
.chat-disabled .dx-chat-messagebox {
258258
opacity: 0.5;
259259
pointer-events: none;
260260
}

apps/demos/Demos/Chat/AIAndChatbotIntegration/Vue/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const AzureOpenAIConfig = {
2323
};
2424

2525
export const REGENERATION_TEXT = 'Regeneration...';
26-
export const CHAT_DISABLED_CLASS = 'dx-chat-disabled';
26+
export const CHAT_DISABLED_CLASS = 'chat-disabled';
2727
export const ALERT_TIMEOUT = 1000 * 60;
2828

2929
export const user = {

0 commit comments

Comments
 (0)