@chat21/chat21-web-widget 5.1.0-rc25 → 5.1.0-rc27
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.scss +44 -34
- package/src/app/component/conversation-detail/conversation/conversation.component.ts +2 -2
- package/src/app/component/conversation-detail/conversation-content/conversation-content.component.html +1 -1
- package/src/app/component/message/avatar/avatar.component.scss +4 -4
- package/src/app/providers/global-settings.service.ts +13 -9
- package/src/app/sass/_variables.scss +3 -4
- package/src/app/utils/globals.ts +2 -2
- package/src/iframe-style.css +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
### **Copyrigth**:
|
|
7
7
|
*Tiledesk SRL*
|
|
8
8
|
|
|
9
|
+
# 5.1.0-rc27
|
|
10
|
+
- **bug-fixed**: minor fix on avatar image and textarea style
|
|
11
|
+
|
|
12
|
+
# 5.1.0-rc26
|
|
13
|
+
- **added**: buttons attachments aligned to bubble message
|
|
14
|
+
- **changed**: enable new textarea style if width is grather than 688px
|
|
15
|
+
- **bug-fixed**: fullscreenMode is not enabled (css class override fullscreen style)
|
|
16
|
+
|
|
9
17
|
# 5.1.0-rc25
|
|
10
18
|
- **added**: allowedUploadExtentions property from api call
|
|
11
19
|
|
package/package.json
CHANGED
|
@@ -13,40 +13,6 @@
|
|
|
13
13
|
bottom: var(--chat-footer-height) !important
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@media(min-width:688px){
|
|
17
|
-
:host-context(#chat21-conversations.full-screen-mode){
|
|
18
|
-
--button-in-msg-padding: 10px 16px;
|
|
19
|
-
#chat21-footer{
|
|
20
|
-
left: 20%;
|
|
21
|
-
right: 20%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
chat-conversation-content ::ng-deep{
|
|
25
|
-
.attachment_container,
|
|
26
|
-
.buttons-wrapper {
|
|
27
|
-
justify-content: flex-start;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.button-in-message{
|
|
31
|
-
padding: 14px 22px !important
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
chat-conversation-footer ::ng-deep {
|
|
37
|
-
.textarea-container {
|
|
38
|
-
padding: 8px 24px;
|
|
39
|
-
background-color: var(--chat-footer-background-color);
|
|
40
|
-
border-radius: 28px;
|
|
41
|
-
}
|
|
42
|
-
#hiddenFooter,
|
|
43
|
-
#emoji-mart-container {
|
|
44
|
-
bottom: calc(100% + 10px)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
16
|
// ============= CSS #chat21-conversation-component ================= //
|
|
51
17
|
#chat21-conversation-component {
|
|
52
18
|
// background-color: #ffffff;
|
|
@@ -215,4 +181,48 @@ dialog:-internal-dialog-in-top-layer{
|
|
|
215
181
|
}
|
|
216
182
|
}
|
|
217
183
|
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@media(min-width:688px){
|
|
187
|
+
|
|
188
|
+
#chat21-footer{
|
|
189
|
+
left: 20%;
|
|
190
|
+
right: 20%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host-context(#chat21-conversations.full-screen-mode){
|
|
194
|
+
--button-in-msg-padding: 10px 16px;
|
|
195
|
+
|
|
196
|
+
chat-conversation-content ::ng-deep{
|
|
197
|
+
.attachment_container,
|
|
198
|
+
.buttons-wrapper {
|
|
199
|
+
justify-content: flex-start;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.button-in-message{
|
|
203
|
+
padding: 14px 22px !important
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
chat-message-attachment {
|
|
207
|
+
margin: auto 20px auto 10px; //0 20px 4px 10px;
|
|
208
|
+
margin-left: calc( var(--avatar-width) + 10px )
|
|
209
|
+
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
chat-conversation-footer ::ng-deep {
|
|
217
|
+
.textarea-container {
|
|
218
|
+
padding: 8px 24px;
|
|
219
|
+
background-color: var(--chat-footer-background-color);
|
|
220
|
+
border-radius: 28px;
|
|
221
|
+
}
|
|
222
|
+
#hiddenFooter,
|
|
223
|
+
#emoji-mart-container {
|
|
224
|
+
bottom: calc(100% + 10px)
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
218
228
|
}
|
|
@@ -1409,9 +1409,9 @@ export class ConversationComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
1409
1409
|
this.logger.log('[CONV-COMP] ----> FILE - (dragleave) drag ev ', event)
|
|
1410
1410
|
if (event.dataTransfer && event.dataTransfer.files) {
|
|
1411
1411
|
const files = event.dataTransfer.files;
|
|
1412
|
-
const canUploadFile = checkAcceptedFile(files[0].type, this.
|
|
1412
|
+
const canUploadFile = checkAcceptedFile(files[0].type, this.g.fileUploadAccept)
|
|
1413
1413
|
if(!canUploadFile){
|
|
1414
|
-
this.logger.error('[IMAGE-UPLOAD] detectFiles: can not upload current file type--> NOT ALLOWED', this.
|
|
1414
|
+
this.logger.error('[IMAGE-UPLOAD] detectFiles: can not upload current file type--> NOT ALLOWED', this.g.fileUploadAccept)
|
|
1415
1415
|
return;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
[ngClass]="{'slide-in-left': false}"
|
|
64
64
|
[class.no-background]="(isImage(message) || isFrame(message) || isCarousel(message)) && ((message?.text && message?.text.trim() === '') || !message?.text)"
|
|
65
65
|
[class.emoticon]="isEmojii(message?.text)"
|
|
66
|
-
[style.margin-left]="isSameSender(message?.sender, i)? '
|
|
66
|
+
[style.margin-left]="isSameSender(message?.sender, i)? 'calc(var(--avatar-width) + 10px)': null"
|
|
67
67
|
[ngStyle]="{'background': stylesMap.get('bubbleReceivedBackground'), 'color': stylesMap.get('bubbleReceivedTextColor')}"
|
|
68
68
|
[isSameSender]="isSameSender(message?.sender, i)"
|
|
69
69
|
[message]="message"
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: 0;
|
|
5
5
|
margin: 0;
|
|
6
|
-
height:
|
|
7
|
-
width:
|
|
8
|
-
min-height:
|
|
9
|
-
min-width:
|
|
6
|
+
height: var(--avatar-height);
|
|
7
|
+
width: var(--avatar-width);
|
|
8
|
+
min-height: var(--avatar-height);
|
|
9
|
+
min-width: var(--avatar-width);
|
|
10
10
|
line-height: 40px;
|
|
11
11
|
border-radius: 50%;
|
|
12
12
|
overflow: hidden;
|
|
@@ -367,15 +367,19 @@ export class GlobalSettingsService {
|
|
|
367
367
|
}
|
|
368
368
|
// console.log('this.globals.fullscreenMode' + this.globals.fullscreenMode);
|
|
369
369
|
if (this.globals.fullscreenMode === true) {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
divTiledeskiframe.classList.add('fullscreen')
|
|
370
|
+
divTiledeskiframe.style.left = 0;
|
|
371
|
+
divTiledeskiframe.style.right = 0;
|
|
372
|
+
divTiledeskiframe.style.top = 0;
|
|
373
|
+
divTiledeskiframe.style.bottom = 0;
|
|
374
|
+
divTiledeskiframe.style.width = '100%';
|
|
375
|
+
divTiledeskiframe.style.height = '100%';
|
|
376
|
+
divTiledeskiframe.style.maxHeight = 'none';
|
|
377
|
+
divTiledeskiframe.style.maxWidth = 'none';
|
|
378
|
+
// divTiledeskiframe.classList.add('fullscreen')
|
|
379
|
+
divTiledeskiframe.classList.remove('min-size')
|
|
380
|
+
divTiledeskiframe.classList.remove('max-size')
|
|
381
|
+
divTiledeskiframe.classList.remove('top-size')
|
|
382
|
+
|
|
379
383
|
}
|
|
380
384
|
}
|
|
381
385
|
|
|
@@ -39,19 +39,18 @@
|
|
|
39
39
|
|
|
40
40
|
--icon-fill-color: #5f6368;
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
--content-background-color: #fff;
|
|
44
43
|
--content-text-color: var(--black);
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
45
|
--font-family: 'Roboto','Google Sans', Helvetica, Arial, sans-serif; //Mulish, sans-serif;
|
|
49
46
|
--font-family-bubble-message: 'Roboto','Google Sans', Helvetica, Arial, sans-serif;
|
|
50
47
|
--font-family-callout: 'Helvetica Neue', 'Apple Color Emoji', Helvetica, Arial, sans-serif;
|
|
51
48
|
--font-family-powered-by: Mulish, sans-serif;
|
|
52
49
|
|
|
53
|
-
--font-size-bubble-message: 1.4em
|
|
50
|
+
--font-size-bubble-message: 1.4em;
|
|
54
51
|
|
|
52
|
+
--avatar-height: 40px;
|
|
53
|
+
--avatar-width: 40px;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
$trasp-black:rgba(0,0,0,0.8);
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -614,8 +614,8 @@ export class Globals {
|
|
|
614
614
|
this.align === 'left'? divTiledeskWidget.style.left = this.mobileMarginX : divTiledeskWidget.style.right = this.mobileMarginX;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
//customize position for 'tiledeskdiv' for desktop
|
|
618
|
-
if(isOpen && !this.isMobile && divTiledeskWidget && this.size){
|
|
617
|
+
//customize position for 'tiledeskdiv' for desktop if fullscreenMode is not active
|
|
618
|
+
if(isOpen && !this.isMobile && !this.fullscreenMode && divTiledeskWidget && this.size){
|
|
619
619
|
divTiledeskWidget.classList.add(this.size + '-size')
|
|
620
620
|
}
|
|
621
621
|
|
package/src/iframe-style.css
CHANGED
|
@@ -45,10 +45,11 @@
|
|
|
45
45
|
|
|
46
46
|
#tiledeskdiv.top-size {
|
|
47
47
|
position: fixed;
|
|
48
|
-
|
|
48
|
+
top: 0;
|
|
49
|
+
bottom: 0;
|
|
49
50
|
left: 50%;
|
|
50
|
-
width: var(--iframeMaxWidth);
|
|
51
|
-
height: var(--iframeMaxHeight)
|
|
51
|
+
width: calc( var(--iframeMaxWidth) + 180px);
|
|
52
|
+
height: 100%; /*var(--iframeMaxHeight);*/
|
|
52
53
|
/* transform: translate(-50%, -50%); */
|
|
53
54
|
transform: translate(-50%, 0%);
|
|
54
55
|
}
|