@chat21/chat21-ionic 3.0.80-rc.1 → 3.0.80
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 +4 -61
- package/README.md +2 -2
- package/package.json +2 -2
- package/src/app/app.component.html +1 -7
- package/src/app/app.component.scss +2 -18
- package/src/app/app.component.ts +15 -73
- package/src/app/app.module.ts +1 -3
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +1 -8
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +23 -75
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +85 -162
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -39
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +19 -7
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +10 -6
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +25 -16
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +1 -5
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +15 -22
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +5 -25
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +1 -2
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +15 -14
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +5 -24
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +1 -6
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +13 -12
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +5 -26
- package/src/app/chatlib/conversation-detail/message/html/html.component.ts +1 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +2 -2
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +6 -16
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +3 -1
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +0 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +52 -78
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +20 -62
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -14
- package/src/app/components/canned-response/canned-response.component.html +5 -5
- package/src/app/components/canned-response/canned-response.component.scss +1 -1
- package/src/app/components/canned-response/canned-response.component.ts +0 -1
- package/src/app/components/contacts-directory/contacts-directory.component.html +26 -22
- package/src/app/components/contacts-directory/contacts-directory.component.scss +6 -8
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +21 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +14 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +54 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +98 -0
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.spec.ts → conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts} +6 -6
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +84 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +30 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +83 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +68 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +10 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +14 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +42 -61
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +61 -98
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +25 -9
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +5 -6
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +4 -4
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +83 -4
- package/src/app/components/conversation-detail/option-header/option-header.component.html +13 -0
- package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts → conversation-detail/option-header/option-header.component.spec.ts} +5 -5
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts → conversation-detail/option-header/option-header.component.ts} +4 -5
- package/src/app/components/conversation-info/info-content/info-content.component.html +1 -2
- package/src/app/components/conversation-info/info-content/info-content.component.ts +2 -3
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +9 -1
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +2 -0
- package/src/app/components/conversation-info/info-group/info-group.component.html +108 -44
- package/src/app/components/conversation-info/info-group/info-group.component.scss +61 -101
- package/src/app/components/conversation-info/info-group/info-group.component.ts +0 -1
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.html → ddp-header/ddp-header.component.html} +3 -3
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.scss → ddp-header/ddp-header.component.scss} +4 -16
- package/src/app/components/{navbar/navbar.component.spec.ts → ddp-header/ddp-header.component.spec.ts} +6 -6
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.ts → ddp-header/ddp-header.component.ts} +16 -7
- package/src/app/components/project-item/project-item.component.html +149 -98
- package/src/app/components/project-item/project-item.component.scss +35 -42
- package/src/app/components/project-item/project-item.component.ts +4 -16
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +3 -3
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +7 -2
- package/src/app/components/utils/user-presence/user-presence.component.html +2 -7
- package/src/app/components/utils/user-presence/user-presence.component.scss +18 -35
- package/src/app/components/utils/user-presence/user-presence.component.ts +10 -6
- package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +0 -41
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +0 -2
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +8 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.html +23 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +250 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +84 -190
- package/src/app/pages/conversations-list/conversations-list.page.html +8 -11
- package/src/app/pages/conversations-list/conversations-list.page.scss +2 -11
- package/src/app/pages/conversations-list/conversations-list.page.ts +22 -25
- package/src/app/pages/create-canned-response/create-canned-response.page.ts +13 -13
- package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
- package/src/app/pages/loader-preview/loader-preview.page.scss +0 -4
- package/src/app/pages/loader-preview/loader-preview.page.ts +2 -1
- package/src/app/pages/profile-info/profile-info.page.html +4 -2
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +0 -42
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +0 -1
- package/src/app/services/canned-responses/canned-responses.service.ts +0 -26
- package/src/app/services/tiledesk/tiledesk.service.ts +25 -1
- package/src/app/shared/shared.module.ts +33 -24
- package/src/assets/i18n/ar.json +265 -278
- package/src/assets/i18n/az.json +1 -14
- package/src/assets/i18n/de.json +2 -15
- package/src/assets/i18n/en.json +2 -15
- package/src/assets/i18n/es.json +2 -15
- package/src/assets/i18n/fr.json +1 -14
- package/src/assets/i18n/it.json +1 -14
- package/src/assets/i18n/kk.json +2 -15
- package/src/assets/i18n/pt.json +2 -15
- package/src/assets/i18n/ru.json +1 -14
- package/src/assets/i18n/sr.json +264 -277
- package/src/assets/i18n/sv.json +2 -15
- package/src/assets/i18n/tr.json +2 -15
- package/src/assets/i18n/uk.json +2 -15
- package/src/assets/i18n/uz.json +1 -14
- package/src/chat21-core/models/conversation.ts +1 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +9 -7
- package/src/chat21-core/utils/constants.ts +1 -5
- package/src/chat21-core/utils/user-typing/user-typing.component.html +5 -8
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +17 -87
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +94 -12
- package/src/chat21-core/utils/utils.ts +10 -38
- package/src/global.scss +57 -48
- package/src/index.html +2 -2
- package/src/variables.scss +10 -30
- package/deploy_amazon_beta.sh +0 -29
- package/deploy_amazon_prod.sh +0 -30
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +0 -116
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +0 -12
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +0 -14
- package/src/app/components/navbar/navbar.component.html +0 -103
- package/src/app/components/navbar/navbar.component.scss +0 -249
- package/src/app/components/navbar/navbar.component.ts +0 -189
- package/src/app/services/projects/projects.service.spec.ts +0 -12
- package/src/app/services/projects/projects.service.ts +0 -43
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat21-core/models/projects.ts +0 -27
- package/src/chat21-core/utils/convertRequestToConversation.ts +0 -41
package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, OnInit, Output
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
@Component({
|
|
4
4
|
selector: 'chat-action-button-attachment',
|
|
@@ -8,36 +8,16 @@ import { Component, ElementRef, EventEmitter, Input, OnInit, Output, SimpleChang
|
|
|
8
8
|
export class ActionButtonComponent implements OnInit {
|
|
9
9
|
|
|
10
10
|
@Input() button: any;
|
|
11
|
-
@Input()
|
|
12
|
-
@Input()
|
|
13
|
-
@Input() textColor: string;
|
|
14
|
-
@Input() hoverBackgroundColor: string;
|
|
15
|
-
@Input() hoverTextColor: string;
|
|
11
|
+
@Input() themeColor: string;
|
|
12
|
+
@Input() foregroundColor: string;
|
|
16
13
|
@Output() onButtonClicked = new EventEmitter();
|
|
17
|
-
|
|
18
14
|
public type: string = "action"
|
|
19
15
|
constructor(private elementRef: ElementRef) { }
|
|
20
16
|
|
|
21
17
|
ngOnInit() {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
ngOnChanges(changes: SimpleChanges){
|
|
25
18
|
//decomment if element should have same color of themeColor and fregroundColor
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if(this.textColor) this.elementRef.nativeElement.querySelector('.action').style.setProperty('--textColor', this.textColor);
|
|
29
|
-
if(this.hoverBackgroundColor) this.elementRef.nativeElement.querySelector('.action').style.setProperty('--hoverBackgroundColor', this.hoverBackgroundColor);
|
|
30
|
-
if(this.hoverTextColor) this.elementRef.nativeElement.querySelector('.action').style.setProperty('--hoverTextColor', this.hoverTextColor);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
onMouseOver(event){
|
|
34
|
-
// if(this.themeColor) this.elementRef.nativeElement.querySelector('.action').style.background = this.themeColor
|
|
35
|
-
// if(this.foregroundColor) this.elementRef.nativeElement.querySelector('.action').style.color = this.foregroundColor
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
onMouseOut(event){
|
|
39
|
-
// this.elementRef.nativeElement.querySelector('.action').style.color = '';
|
|
40
|
-
// this.elementRef.nativeElement.querySelector('.action').style.background = ''
|
|
19
|
+
// this.elementRef.nativeElement.style.setProperty('--themeColor', this.themeColor);
|
|
20
|
+
// this.elementRef.nativeElement.style.setProperty('--foregroundColor', this.foregroundColor);
|
|
41
21
|
}
|
|
42
22
|
|
|
43
23
|
actionButtonAction(){
|
package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<div class="button-in-msg url" (click)="actionButtonUrl()" title="{{button?.value}}"
|
|
2
|
-
(mouseover)="onMouseOver($event)" (mouseout)="onMouseOut($event)">
|
|
1
|
+
<div class="button-in-msg url" (click)="actionButtonUrl()" title="{{button?.value}}">
|
|
3
2
|
<span *ngIf="button?.target !== 'self'" class="icon-button-action">
|
|
4
3
|
<!-- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="12px" height="12px">
|
|
5
4
|
<path d="M0 0h24v24H0z" fill="none"/>
|
package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @import '../../../../../sass/variables';
|
|
2
2
|
|
|
3
3
|
div {
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
4
|
+
--bck-msg-sent: #62a8ea;
|
|
5
|
+
--col-msg-sent:#ffffff;
|
|
6
|
+
--light-white: #f7f7f7;
|
|
7
|
+
--black: #1a1a1a;
|
|
8
|
+
--gray: #aaaaaa;
|
|
9
|
+
--blue: rgb(42, 106, 193);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.button-in-msg {
|
|
@@ -14,19 +15,19 @@ div {
|
|
|
14
15
|
max-width: 300px;
|
|
15
16
|
min-width: inherit;
|
|
16
17
|
cursor: pointer;
|
|
17
|
-
border: 1px solid var(--
|
|
18
|
+
border: 1px solid var(--blue);
|
|
18
19
|
border-radius: 20px;
|
|
19
20
|
margin: 3px;
|
|
20
|
-
background:
|
|
21
|
+
background: transparent;
|
|
21
22
|
overflow: hidden;
|
|
22
23
|
font-family: 'Muli', sans-serif;
|
|
23
|
-
font-size:
|
|
24
|
+
font-size: 15px;
|
|
24
25
|
-o-text-overflow: ellipsis;
|
|
25
26
|
text-overflow: ellipsis;
|
|
26
27
|
white-space: nowrap;
|
|
27
28
|
letter-spacing: -0.24px;
|
|
28
29
|
-webkit-font-smoothing: antialiased;
|
|
29
|
-
color: var(--
|
|
30
|
+
color: var(--blue);
|
|
30
31
|
line-height: 16px;
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -37,23 +38,23 @@ div {
|
|
|
37
38
|
top: -1px;
|
|
38
39
|
right: 1px;
|
|
39
40
|
svg {
|
|
40
|
-
fill: var(--
|
|
41
|
+
fill: var(--blue);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
.icon-button-action-self{
|
|
44
45
|
position: absolute;
|
|
45
46
|
right: 1px;
|
|
46
47
|
svg {
|
|
47
|
-
fill: var(--
|
|
48
|
+
fill: var(--blue);
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
&:focus,
|
|
51
52
|
&:hover {
|
|
52
|
-
color:
|
|
53
|
-
background: var(--
|
|
53
|
+
color: white;
|
|
54
|
+
background: var(--blue);
|
|
54
55
|
.icon-button-action, .icon-button-action-self {
|
|
55
56
|
svg {
|
|
56
|
-
fill:
|
|
57
|
+
fill: white;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, OnInit, Output
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
@Component({
|
|
4
4
|
selector: 'chat-link-button-attachment',
|
|
@@ -8,35 +8,16 @@ import { Component, ElementRef, EventEmitter, Input, OnInit, Output, SimpleChang
|
|
|
8
8
|
export class LinkButtonComponent implements OnInit {
|
|
9
9
|
|
|
10
10
|
@Input() button: any;
|
|
11
|
-
@Input()
|
|
12
|
-
@Input()
|
|
13
|
-
@Input() textColor: string;
|
|
14
|
-
@Input() hoverBackgroundColor: string;
|
|
15
|
-
@Input() hoverTextColor: string;
|
|
11
|
+
@Input() themeColor: string;
|
|
12
|
+
@Input() foregroundColor: string;
|
|
16
13
|
@Output() onButtonClicked = new EventEmitter();
|
|
17
14
|
public type: string = "url"
|
|
18
15
|
constructor(private elementRef: ElementRef) { }
|
|
19
16
|
|
|
20
17
|
ngOnInit() {
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
ngOnChanges(changes: SimpleChanges){
|
|
24
18
|
//decomment if element should have same color of themeColor and fregroundColor
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if(this.textColor) this.elementRef.nativeElement.querySelector('.url').style.setProperty('--textColor', this.textColor);
|
|
28
|
-
if(this.hoverBackgroundColor) this.elementRef.nativeElement.querySelector('.url').style.setProperty('--hoverBackgroundColor', this.hoverBackgroundColor);
|
|
29
|
-
if(this.hoverTextColor) this.elementRef.nativeElement.querySelector('.url').style.setProperty('--hoverTextColor', this.hoverTextColor);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
onMouseOver(event){
|
|
33
|
-
// if(this.themeColor) this.elementRef.nativeElement.querySelector('.url').style.background = this.themeColor
|
|
34
|
-
// if(this.foregroundColor) this.elementRef.nativeElement.querySelector('.url').style.color = this.foregroundColor
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
onMouseOut(event){
|
|
38
|
-
// this.elementRef.nativeElement.querySelector('.url').style.color = '';
|
|
39
|
-
// this.elementRef.nativeElement.querySelector('.url').style.background = ''
|
|
19
|
+
// this.elementRef.nativeElement.style.setProperty('--themeColor', this.themeColor);
|
|
20
|
+
// this.elementRef.nativeElement.style.setProperty('--foregroundColor', this.foregroundColor);
|
|
40
21
|
}
|
|
41
22
|
|
|
42
23
|
actionButtonUrl(){
|
package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
<div class="button-in-msg text"
|
|
2
|
-
[ngClass]="{'disabled': isConversationArchived}"
|
|
3
|
-
title="{{button?.value}}"
|
|
4
|
-
(click)="actionButtonText()"
|
|
5
|
-
(mouseover)="onMouseOver($event)"
|
|
6
|
-
(mouseout)="onMouseOut($event)">
|
|
1
|
+
<div class="button-in-msg text" (click)="actionButtonText()" title="{{button?.value}}">
|
|
7
2
|
{{button?.value}}
|
|
8
3
|
</div>
|
package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// @import '../../../../../sass/variables';
|
|
2
2
|
div {
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
3
|
+
--bck-msg-sent: #62a8ea;
|
|
4
|
+
--col-msg-sent:#ffffff;
|
|
5
|
+
--light-white: #f7f7f7;
|
|
6
|
+
--black: #1a1a1a;
|
|
7
|
+
--gray: #aaaaaa;
|
|
8
|
+
--blue: rgb(42, 106, 193);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
|
|
@@ -14,19 +15,19 @@ div {
|
|
|
14
15
|
max-width: 300px;
|
|
15
16
|
min-width: inherit;
|
|
16
17
|
cursor: pointer;
|
|
17
|
-
border: 1px solid var(--
|
|
18
|
+
border: 1px solid var(--blue);
|
|
18
19
|
border-radius: 20px;
|
|
19
20
|
margin: 3px;
|
|
20
|
-
background:
|
|
21
|
+
background: transparent;
|
|
21
22
|
overflow: hidden;
|
|
22
23
|
font-family: 'Muli', sans-serif;
|
|
23
|
-
font-size:
|
|
24
|
+
font-size: 15px;
|
|
24
25
|
-o-text-overflow: ellipsis;
|
|
25
26
|
text-overflow: ellipsis;
|
|
26
27
|
white-space: nowrap;
|
|
27
28
|
letter-spacing: -0.24px;
|
|
28
29
|
-webkit-font-smoothing: antialiased;
|
|
29
|
-
color: var(--
|
|
30
|
+
color: var(--blue);
|
|
30
31
|
line-height: 16px;
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -35,11 +36,11 @@ div {
|
|
|
35
36
|
transition: background-color .6s ease;
|
|
36
37
|
&:focus,
|
|
37
38
|
&:hover {
|
|
38
|
-
color:
|
|
39
|
-
background: var(--
|
|
39
|
+
color: white;
|
|
40
|
+
background: var(--blue);
|
|
40
41
|
.icon-button-action {
|
|
41
42
|
svg {
|
|
42
|
-
fill: --black;
|
|
43
|
+
fill: var(--black);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
}
|
package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, Input, OnInit, Output
|
|
1
|
+
import { Component, ElementRef, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
@@ -9,37 +9,16 @@ import { Component, ElementRef, EventEmitter, Input, OnInit, Output, SimpleChang
|
|
|
9
9
|
export class TextButtonComponent implements OnInit {
|
|
10
10
|
|
|
11
11
|
@Input() button: any;
|
|
12
|
-
@Input()
|
|
13
|
-
@Input()
|
|
14
|
-
@Input() backgroundColor: string;
|
|
15
|
-
@Input() textColor: string;
|
|
16
|
-
@Input() hoverBackgroundColor: string;
|
|
17
|
-
@Input() hoverTextColor: string;
|
|
12
|
+
@Input() themeColor: string;
|
|
13
|
+
@Input() foregroundColor: string;
|
|
18
14
|
@Output() onButtonClicked = new EventEmitter();
|
|
19
|
-
|
|
20
15
|
public type: string = "text"
|
|
21
16
|
constructor(private elementRef: ElementRef) { }
|
|
22
17
|
|
|
23
18
|
ngOnInit() {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
ngOnChanges(changes: SimpleChanges){
|
|
27
19
|
//decomment if element should have same color of themeColor and fregroundColor
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if(this.textColor) this.elementRef.nativeElement.querySelector('.text').style.setProperty('--textColor', this.textColor);
|
|
31
|
-
if(this.hoverBackgroundColor) this.elementRef.nativeElement.querySelector('.text').style.setProperty('--hoverBackgroundColor', this.hoverBackgroundColor);
|
|
32
|
-
if(this.hoverTextColor) this.elementRef.nativeElement.querySelector('.text').style.setProperty('--hoverTextColor', this.hoverTextColor);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
onMouseOver(event){
|
|
36
|
-
// if(this.backgroundColor) this.elementRef.nativeElement.querySelector('.text').style.background = this.textColor
|
|
37
|
-
// if(this.textColor) this.elementRef.nativeElement.querySelector('.text').style.color = this.backgroundColor
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
onMouseOut(event){
|
|
41
|
-
// this.elementRef.nativeElement.querySelector('.text').style.color = '';
|
|
42
|
-
// this.elementRef.nativeElement.querySelector('.text').style.background = ''
|
|
20
|
+
// this.elementRef.nativeElement.style.setProperty('--themeColor', this.themeColor);
|
|
21
|
+
// this.elementRef.nativeElement.style.setProperty('--foregroundColor', this.foregroundColor);
|
|
43
22
|
}
|
|
44
23
|
|
|
45
24
|
actionButtonText(){
|
package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
.base_info {
|
|
8
8
|
border-radius: 14px;
|
|
9
|
-
|
|
9
|
+
border: 1px solid #C9E4F6;
|
|
10
10
|
padding-left: 4px;
|
|
11
11
|
padding-right: 4px;
|
|
12
12
|
padding: 6px 10px;
|
|
13
13
|
display: inline-block;
|
|
14
|
-
background:
|
|
14
|
+
background: #C9E4F6;
|
|
15
15
|
font-size: 0.70em;
|
|
16
16
|
color: var(--basic-gray);
|
|
17
17
|
margin-left: 5px; //32px;
|
|
@@ -4,32 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
<chat-text-button-attachment *ngIf="button.type === 'text' && isLastMessage === true" class="div-button"
|
|
6
6
|
[button]="button"
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[backgroundColor]="stylesMap.get('buttonBackgroundColor')"
|
|
10
|
-
[textColor]="stylesMap.get('buttonTextColor')"
|
|
11
|
-
[hoverBackgroundColor]="stylesMap.get('buttonHoverBackgroundColor')"
|
|
12
|
-
[hoverTextColor]="stylesMap.get('buttonHoverTextColor')"
|
|
7
|
+
[themeColor]="stylesMap.get('themeColor')"
|
|
8
|
+
[foregroundColor]="stylesMap.get('foregroundColor')"
|
|
13
9
|
(onButtonClicked)="returnOnAttachmentButtonClicked($event)">
|
|
14
10
|
</chat-text-button-attachment>
|
|
15
11
|
|
|
16
12
|
<chat-link-button-attachment *ngIf="button.type === 'url'" class="div-button"
|
|
17
13
|
[button]="button"
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[textColor]="stylesMap.get('buttonTextColor')"
|
|
21
|
-
[hoverBackgroundColor]="stylesMap.get('buttonHoverBackgroundColor')"
|
|
22
|
-
[hoverTextColor]="stylesMap.get('buttonHoverTextColor')"
|
|
14
|
+
[themeColor]="stylesMap.get('themeColor')"
|
|
15
|
+
[foregroundColor]="stylesMap.get('foregroundColor')"
|
|
23
16
|
(onButtonClicked)="returnOnAttachmentButtonClicked($event)">
|
|
24
17
|
</chat-link-button-attachment>
|
|
25
18
|
|
|
26
19
|
<chat-action-button-attachment *ngIf="button.type === 'action' && isLastMessage === true" class="div-button"
|
|
27
20
|
[button]="button"
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[textColor]="stylesMap.get('buttonTextColor')"
|
|
31
|
-
[hoverBackgroundColor]="stylesMap.get('buttonHoverBackgroundColor')"
|
|
32
|
-
[hoverTextColor]="stylesMap.get('buttonHoverTextColor')"
|
|
21
|
+
[themeColor]="stylesMap.get('themeColor')"
|
|
22
|
+
[foregroundColor]="stylesMap.get('foregroundColor')"
|
|
33
23
|
(onButtonClicked)="returnOnAttachmentButtonClicked($event)">
|
|
34
24
|
</chat-action-button-attachment>
|
|
35
25
|
|
|
@@ -12,9 +12,7 @@ export class MessageAttachmentComponent implements OnInit {
|
|
|
12
12
|
|
|
13
13
|
// ========= begin:: Input/Output values ============//
|
|
14
14
|
@Input() message: MessageModel;
|
|
15
|
-
@Input() isConversationArchived: boolean;
|
|
16
15
|
@Input() isLastMessage: boolean;
|
|
17
|
-
@Input() fullscreenMode: boolean;
|
|
18
16
|
@Input() stylesMap: Map<string, string>;
|
|
19
17
|
@Output() onAttachmentButtonClicked = new EventEmitter<any>();
|
|
20
18
|
@Output() onElementRendered = new EventEmitter<{element: string, status: boolean}>()
|
|
@@ -80,92 +80,55 @@
|
|
|
80
80
|
<div tabindex="0"></div>
|
|
81
81
|
|
|
82
82
|
<!-- <div [class.selected]="conversation.uid === uidConvSelected"></div> -->
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</div>
|
|
102
|
-
<!-- GROUP CONV -->
|
|
103
|
-
<div *ngIf="conversation.uid.startsWith(TYPE_GROUP)">
|
|
104
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 24 24" fill="#000000"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>
|
|
105
|
-
<span class="truncate">{{translationsMap.get('GROUP_CHAT')}}</span>
|
|
106
|
-
</div>
|
|
107
|
-
<!-- SUPPORT-GROUP CONV -->
|
|
108
|
-
<div *ngIf="conversation.uid.startsWith(TYPE_SUPPORT_GROUP)">
|
|
109
|
-
<svg xmlns="http://www.w3.org/2000/svg" data-v-78d18411="" width="15" height="15" fill="none" viewBox="0 0 24 24" class="inbox-icon"><path d="M22.002 12C22.002 6.477 17.524 2 12 2 6.476 1.999 2 6.477 2 12.001c0 5.186 3.947 9.45 9.001 9.952V20.11c-.778-.612-1.478-1.905-1.939-3.61h1.94V15H8.737a18.969 18.969 0 0 1-.135-5h6.794c.068.64.105 1.31.105 2h1.5c0-.684-.033-1.353-.095-2h3.358c.154.64.237 1.31.237 2h1.5ZM4.786 16.5h2.722l.102.396c.317 1.17.748 2.195 1.27 3.015a8.532 8.532 0 0 1-4.094-3.41ZM3.736 10h3.358a20.847 20.847 0 0 0-.095 2c0 1.043.075 2.051.217 3H4.043a8.483 8.483 0 0 1-.544-3c0-.682.08-1.347.232-1.983L3.736 10Zm5.122-5.902.023-.008C8.16 5.222 7.611 6.748 7.298 8.5H4.25c.905-2 2.56-3.587 4.608-4.402Zm3.026-.594L12 3.5l.126.006c1.262.126 2.48 2.125 3.045 4.995H8.83c.568-2.878 1.79-4.88 3.055-4.996Zm3.343.76-.107-.174.291.121a8.533 8.533 0 0 1 4.339 4.29h-3.048c-.298-1.665-.806-3.125-1.475-4.237Z M12 19a1 1 0 0 0 1 1h3v2h-.5a.5.5 0 1 0 0 1h4a.5.5 0 0 0 0-1H19v-2h3a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-9a1 1 0 0 0-1 1v5Z" fill="currentColor"/></svg>
|
|
110
|
-
<span *ngIf="conversation?.attributes?.project_name" class="truncate">{{conversation?.attributes?.project_name}}</span>
|
|
111
|
-
<span *ngIf="!conversation?.attributes?.project_name" class="truncate">{{conversation?.attributes?.projectId}}</span>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
<div style="display: flex;">
|
|
115
|
-
<span class="conversation_with truncate" [class.not-read]="conversation.is_new">
|
|
116
|
-
{{conversation.conversation_with_fullname}}
|
|
117
|
-
</span>
|
|
118
|
-
</div>
|
|
119
|
-
<div class="conversation_message truncate-conv-msg" [ngClass]="{'truncate-on-desktop': !isApp}">
|
|
120
|
-
|
|
121
|
-
<!-- -------------------------------------------------------------------------- -->
|
|
122
|
-
<!-- if conversation type is image display the image icon before the message -->
|
|
123
|
-
<!-- -------------------------------------------------------------------------- -->
|
|
124
|
-
<!-- <div *ngIf="conversation.type === 'image'" class="icon-image-before-msg-wpr">
|
|
125
|
-
<ion-icon name="image-outline" class="icon-image-before-msg"></ion-icon>
|
|
126
|
-
</div>
|
|
127
|
-
<p [class.not-read]="conversation.is_new" class="truncate" [ngClass]="{'truncate-on-desktop': !isApp}"
|
|
128
|
-
[innerHTML]="conversation.last_message_text"></p> -->
|
|
129
|
-
|
|
130
|
-
<!-- <div *ngIf="conversation.type === 'image'" class="icon-image-before-msg-wpr"> -->
|
|
131
|
-
<ion-icon *ngIf="conversation.type === 'image' && conversation.type !== 'file' " name="image-outline"
|
|
132
|
-
class="icon-image-before-msg"></ion-icon>
|
|
133
|
-
<ion-icon *ngIf="conversation.type === 'file' && conversation.type !== 'image'" name="attach-outline"
|
|
134
|
-
class="icon-attach-before-msg"></ion-icon>
|
|
135
|
-
<!-- </div> -->
|
|
136
|
-
<!-- [innerHTML]="conversation.last_message_text" -->
|
|
137
|
-
<span [class.not-read]="conversation.is_new">
|
|
138
|
-
{{ conversation.last_message_text }}
|
|
139
|
-
</span>
|
|
83
|
+
<ion-avatar item-start>
|
|
84
|
+
<!-- [style.background-color]="conversation.color" -->
|
|
85
|
+
<div #avatarPlaceholder class="avatar-placeholder"
|
|
86
|
+
[ngStyle]="{'background': 'linear-gradient(rgb(255,255,255) -125%,' + conversation.color + ')'}"
|
|
87
|
+
[innerHTML]="conversation.avatar"></div>
|
|
88
|
+
<div *ngIf="conversation.image" #avatarImage class="avatar-profile"
|
|
89
|
+
[style.background-image]="'url(' + conversation.image + ')'"></div>
|
|
90
|
+
<!-- <div *ngIf="getImageAvatar(conversation.sender)" #avatarImage class="avatar-profile" [style.background-image]="'url(' + getImageAvatar(conversation.sender) + ')'"></div> -->
|
|
91
|
+
</ion-avatar>
|
|
92
|
+
<ion-label>
|
|
93
|
+
<div class="conversation_with truncate">{{conversation.conversation_with_fullname}}</div>
|
|
94
|
+
<div class="conversation_message truncate-conv-msg" [ngClass]="{'truncate-on-desktop': !isApp}">
|
|
95
|
+
|
|
96
|
+
<!-- -------------------------------------------------------------------------- -->
|
|
97
|
+
<!-- if conversation type is image display the image icon before the message -->
|
|
98
|
+
<!-- -------------------------------------------------------------------------- -->
|
|
99
|
+
<!-- <div *ngIf="conversation.type === 'image'" class="icon-image-before-msg-wpr">
|
|
100
|
+
<ion-icon name="image-outline" class="icon-image-before-msg"></ion-icon>
|
|
140
101
|
</div>
|
|
141
|
-
|
|
142
|
-
|
|
102
|
+
<p [class.not-read]="conversation.is_new" class="truncate" [ngClass]="{'truncate-on-desktop': !isApp}"
|
|
103
|
+
[innerHTML]="conversation.last_message_text"></p> -->
|
|
143
104
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<!--
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
105
|
+
<!-- <div *ngIf="conversation.type === 'image'" class="icon-image-before-msg-wpr"> -->
|
|
106
|
+
<ion-icon *ngIf="conversation.type === 'image' && conversation.type !== 'file' " name="image-outline"
|
|
107
|
+
class="icon-image-before-msg"></ion-icon>
|
|
108
|
+
<ion-icon *ngIf="conversation.type === 'file' && conversation.type !== 'image'" name="attach-outline"
|
|
109
|
+
class="icon-attach-before-msg"></ion-icon>
|
|
110
|
+
<!-- </div> -->
|
|
111
|
+
<!-- [innerHTML]="conversation.last_message_text" -->
|
|
112
|
+
<span [class.not-read]="conversation.is_new">
|
|
113
|
+
{{ conversation.last_message_text }}
|
|
114
|
+
</span>
|
|
115
|
+
</div>
|
|
116
|
+
</ion-label>
|
|
117
|
+
|
|
118
|
+
<ion-note *ngIf="!conversation.archived" class="conversation_time">{{conversation.timestamp | amTimeAgo}}</ion-note>
|
|
157
119
|
|
|
158
120
|
<ion-buttons slot="end">
|
|
159
121
|
<ion-button *ngIf="!conversation.archived" [tooltip]="archiveTooltip" [options]="tooltip_options" placement="bottom" content-type="template"
|
|
160
122
|
[ngClass]="{'hide': !isApp, 'button-on-desktop': !isApp, 'button-on-mobile': isApp }"
|
|
161
123
|
id="{{ 'close_conversation_button' + conversation.uid }}" class="close-conversation-button" ion-button clear
|
|
162
124
|
item-end (click)="closeConversation(conversation);$event.stopPropagation();" padding>
|
|
163
|
-
<ion-icon slot="icon-only" style="display:block;" id="{{ 'close_button_icon' + conversation.uid }}"
|
|
125
|
+
<ion-icon slot="icon-only" style="display:block;" id="{{ 'close_button_icon' + conversation.uid }}"
|
|
126
|
+
color="close-conversation" name="archive-outline" item-end></ion-icon>
|
|
164
127
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
128
|
+
<ng-template #archiveTooltip>
|
|
129
|
+
<span *ngIf="conversation?.recipient.startsWith('support-group')"> {{ resolve_btn_tooltip}} </span>
|
|
130
|
+
<span *ngIf="!conversation?.recipient.startsWith('support-group')"> {{ archive_btn_tooltip }} </span>
|
|
131
|
+
</ng-template>
|
|
169
132
|
</ion-button>
|
|
170
133
|
<!-- <ion-button *ngIf="conversation.archived" class="close-conversation-button" ion-button clear item-end disabled padding>
|
|
171
134
|
<!- - <ion-icon style="display:block;" id="{{ 'close_button_icon' + conversation.uid }}" color="close-conversation" name="archive-outline" item-end></ion-icon> - ->
|
|
@@ -174,7 +137,18 @@
|
|
|
174
137
|
</ion-button> -->
|
|
175
138
|
</ion-buttons>
|
|
176
139
|
|
|
177
|
-
|
|
140
|
+
<div item-end *ngIf="conversation?.archived" class="achived-icon-wpr">
|
|
141
|
+
<span *ngIf="(conversation.timestamp | amDateFormat:'YYYY') === currentYear" class="time-in-archived">
|
|
142
|
+
{{browserLang === 'en' ? (conversation.timestamp | amDateFormat:'MMM DD') : (conversation.timestamp| amDateFormat:'DD MMM')}}
|
|
143
|
+
|
|
144
|
+
<!-- {{conversation.timestamp | amDateFormat:'DD MMM'}} -->
|
|
145
|
+
</span>
|
|
146
|
+
<span *ngIf="(conversation.timestamp | amDateFormat:'YYYY') !== currentYear" class="time-in-archived">
|
|
147
|
+
{{browserLang === 'en' ? (conversation.timestamp | amDateFormat:'MMM DD YYYY') : (conversation.timestamp| amDateFormat:'DD MMM YYYY') }}
|
|
148
|
+
<!-- {{conversation.timestamp | amDateFormat:'DD MMM YYYY'}} -->
|
|
149
|
+
</span>
|
|
150
|
+
<!-- <i class="material-icons" item-end style="font-size: 15px;font-weight: 400;color: #666666;"> history </i> -->
|
|
151
|
+
</div>
|
|
178
152
|
|
|
179
153
|
<!-- && !conversation?.archived -->
|
|
180
154
|
<div item-end class="notification_point"
|