@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
|
@@ -1,51 +1,115 @@
|
|
|
1
1
|
<!-- <pre style="font-size: 12px;"> {{ groupDetail | json }} </pre> -->
|
|
2
2
|
|
|
3
3
|
<ion-content class="group-profile">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</div>
|
|
4
|
+
<ion-card class="first-card">
|
|
5
|
+
<div class="chat21-box-profile chat21-box">
|
|
6
|
+
<div class="chat21-content">
|
|
7
|
+
<div class="image-profile">
|
|
8
|
+
<app-avatar-profile [itemAvatar]="groupDetail"></app-avatar-profile>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="info-profile">
|
|
12
|
+
<div class="name">
|
|
13
|
+
<span class="read">{{groupDetail?.name}}</span>
|
|
15
14
|
</div>
|
|
16
15
|
</div>
|
|
17
|
-
|
|
16
|
+
<!-- <div class="member-email">
|
|
17
|
+
<a [href]="'mailto:' + member.email + '?Subject='">
|
|
18
|
+
{{member.email}}
|
|
19
|
+
</a>
|
|
20
|
+
</div> -->
|
|
18
21
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<ion-item lines="none" *ngFor="let fake of generateFake(membersObjectLength)" style="margin-left:-3px">
|
|
23
|
-
<ion-avatar slot="start">
|
|
24
|
-
<ion-skeleton-text animated style="width: 44px; height: 44px;"></ion-skeleton-text>
|
|
25
|
-
</ion-avatar>
|
|
26
|
-
<ion-label>
|
|
27
|
-
<h3>
|
|
28
|
-
<ion-skeleton-text animated style="width: 60%;position: relative;top: 2px;height: 16px;"></ion-skeleton-text>
|
|
29
|
-
</h3>
|
|
30
|
-
</ion-label>
|
|
31
|
-
</ion-item>
|
|
32
|
-
</ion-list>
|
|
33
|
-
|
|
34
|
-
<!-- <pre style="font-size: 8px;"> {{member_array | json }} </pre> <pre style="font-size: 8px;"> {{displaySkeletonScreen}} </pre> -->
|
|
35
|
-
<ion-list id="members-list" *ngIf="groupDetail?.member_array?.length > 0 && !displaySkeletonScreen">
|
|
36
|
-
<ion-item lines="none" *ngFor='let member of groupDetail?.member_array'>
|
|
37
|
-
<ion-avatar slot="start" style="margin-right: 12px;">
|
|
38
|
-
<app-avatar-profile [itemAvatar]=member></app-avatar-profile>
|
|
39
|
-
<div class="status-icon-container" [class.mobile]="isMobile" >
|
|
40
|
-
<svg xmlns="http://www.w3.org/2000/svg" [class.online]="(member?.userOnline)" height="15" width="15" viewBox="0 0 24 24" fill="#000000"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>
|
|
41
|
-
</div>
|
|
42
|
-
</ion-avatar>
|
|
43
|
-
<ion-label>
|
|
44
|
-
<h3>
|
|
45
|
-
{{ member.fullname }}
|
|
46
|
-
</h3>
|
|
47
|
-
</ion-label>
|
|
48
|
-
</ion-item>
|
|
49
|
-
</ion-list>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
</ion-card>
|
|
50
25
|
|
|
51
|
-
|
|
26
|
+
<ion-list id="fake-members-list" *ngIf="displaySkeletonScreen">
|
|
27
|
+
<ion-item lines="none" *ngFor="let fake of generateFake(membersObjectLength)" style="margin-left:-3px">
|
|
28
|
+
<ion-avatar slot="start">
|
|
29
|
+
<ion-skeleton-text animated style="width: 44px; height: 44px;"></ion-skeleton-text>
|
|
30
|
+
</ion-avatar>
|
|
31
|
+
<ion-label>
|
|
32
|
+
<h3>
|
|
33
|
+
<ion-skeleton-text animated style="width: 60%;position: relative;top: 2px;height: 16px;"></ion-skeleton-text>
|
|
34
|
+
</h3>
|
|
35
|
+
</ion-label>
|
|
36
|
+
</ion-item>
|
|
37
|
+
</ion-list>
|
|
38
|
+
|
|
39
|
+
<!-- <pre style="font-size: 8px;"> {{member_array | json }} </pre> <pre style="font-size: 8px;"> {{displaySkeletonScreen}} </pre> -->
|
|
40
|
+
<ion-list id="members-list" *ngIf="groupDetail?.member_array?.length > 0 && !displaySkeletonScreen">
|
|
41
|
+
<ion-item lines="none" *ngFor='let member of groupDetail?.member_array'>
|
|
42
|
+
<ion-avatar slot="start" style="margin-right: 12px;">
|
|
43
|
+
<app-avatar-profile [itemAvatar]=member></app-avatar-profile>
|
|
44
|
+
<div class="user-online" [ngStyle]="{ 'background-color':(member?.userOnline)?'#24d066':'#db4437' }"></div>
|
|
45
|
+
</ion-avatar>
|
|
46
|
+
<ion-label>
|
|
47
|
+
<h3>
|
|
48
|
+
{{ member.fullname }}
|
|
49
|
+
</h3>
|
|
50
|
+
</ion-label>
|
|
51
|
+
</ion-item>
|
|
52
|
+
</ion-list>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<div *ngIf="groupDetail" style="display:none">
|
|
58
|
+
<div *ngFor='let member of groupDetail?.member_array'>
|
|
59
|
+
<ion-grid>
|
|
60
|
+
<ion-row class="ion-align-items-center">
|
|
61
|
+
<ion-col size="3">
|
|
62
|
+
<div class="member-profile">
|
|
63
|
+
<!-- (click)="copyLoggedUserUID({member.userid)" -->
|
|
64
|
+
<!-- <div class="avatar-container" [tooltip]="useruidTooltip" [options]="tooltipOptions" placement="top"
|
|
65
|
+
content-type="template" > -->
|
|
66
|
+
<app-avatar-profile [itemAvatar]=member></app-avatar-profile>
|
|
67
|
+
<!-- </div> -->
|
|
68
|
+
<!-- <ng-template #useruidTooltip>
|
|
69
|
+
<span> {{member.userid}}</span>
|
|
70
|
+
</ng-template> -->
|
|
71
|
+
|
|
72
|
+
<div class="user-online" [ngStyle]="{ 'background-color':(member?.userOnline)?'#24d066':'#db4437' }">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</ion-col>
|
|
78
|
+
<ion-col>
|
|
79
|
+
<ion-label>
|
|
80
|
+
{{ member.fullname }}
|
|
81
|
+
</ion-label>
|
|
82
|
+
|
|
83
|
+
<!-- <div class="info-group-member-email">
|
|
84
|
+
<a [href]="'mailto:' + member.email + '?Subject='">
|
|
85
|
+
{{member.email}}
|
|
86
|
+
</a>
|
|
87
|
+
</div> -->
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</ion-col>
|
|
91
|
+
</ion-row>
|
|
92
|
+
</ion-grid>
|
|
93
|
+
<!-- </ion-avatar>
|
|
94
|
+
</ion-item> -->
|
|
95
|
+
<!-- {{member | json}}
|
|
96
|
+
|
|
97
|
+
>>> {{member?.avatar}} -->
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<!-- <ion-list>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</ion-list> -->
|
|
105
|
+
|
|
106
|
+
<!-- </div> -->
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<!-- <app-advanced-info-accordion
|
|
110
|
+
[advancedAttributes]="advancedAttributes"
|
|
111
|
+
[translationMap]="translationMap">
|
|
112
|
+
|
|
113
|
+
</app-advanced-info-accordion> -->
|
|
114
|
+
|
|
115
|
+
</ion-content>
|
|
@@ -7,114 +7,74 @@
|
|
|
7
7
|
-webkit-box-shadow: none;
|
|
8
8
|
box-shadow: none;
|
|
9
9
|
border-bottom: 1px solid rgba(169, 169, 169, 0.2);
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.info-profile {
|
|
22
|
-
padding: 10px 0 0 0;
|
|
23
|
-
text-align: center;
|
|
24
|
-
.name {
|
|
25
|
-
-webkit-font-smoothing: antialiased;
|
|
26
|
-
text-rendering: optimizeLegibility;
|
|
27
|
-
text-size-adjust: none;
|
|
28
|
-
user-select: text;
|
|
29
|
-
font-family: "Roboto", "Helvetica Neue", sans-serif;
|
|
30
|
-
-webkit-box-direction: normal;
|
|
31
|
-
color: #333333;
|
|
32
|
-
font-weight: 500;
|
|
33
|
-
font-size: 17px;
|
|
34
|
-
box-sizing: border-box;
|
|
35
|
-
-webkit-tap-highlight-color: transparent;
|
|
36
|
-
display: block;
|
|
37
|
-
font-size: large;
|
|
38
|
-
font-weight: bold;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
12
|
+
.image-profile {
|
|
13
|
+
padding: 0 0 0 0;
|
|
14
|
+
width: 100px;
|
|
15
|
+
height: 100px;
|
|
16
|
+
margin: auto;
|
|
17
|
+
line-height: 100px;
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: white;
|
|
41
20
|
}
|
|
42
21
|
|
|
22
|
+
.member-profile {
|
|
23
|
+
padding: 0 0 0 0;
|
|
24
|
+
width: 55px;
|
|
25
|
+
height: 55px;
|
|
26
|
+
margin: auto;
|
|
27
|
+
line-height: 57px;
|
|
28
|
+
font-size: 25px;
|
|
29
|
+
color: white;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
43
32
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
.user-online {
|
|
34
|
+
height: 11px;
|
|
35
|
+
width: 11px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 44px;
|
|
39
|
+
left: 40px;
|
|
40
|
+
border: 0.5px solid #fff;
|
|
41
|
+
}
|
|
48
42
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
border-radius: 50%;
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
|
|
61
|
-
&.mobile{
|
|
62
|
-
top: 30px;
|
|
63
|
-
left: 50px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
svg{
|
|
67
|
-
fill: #f44336;
|
|
68
|
-
|
|
69
|
-
&.online{
|
|
70
|
-
fill: #4caf50;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
43
|
+
.user-presence {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 88px;
|
|
46
|
+
height: 12px;
|
|
47
|
+
left: calc(50% + 30px);
|
|
48
|
+
width: 100px;
|
|
49
|
+
}
|
|
74
50
|
|
|
51
|
+
.info-profile {
|
|
52
|
+
padding: 10px 0 0 0;
|
|
53
|
+
text-align: center;
|
|
54
|
+
.name {
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
text-rendering: optimizeLegibility;
|
|
57
|
+
text-size-adjust: none;
|
|
58
|
+
user-select: text;
|
|
59
|
+
font-family: "Roboto", "Helvetica Neue", sans-serif;
|
|
60
|
+
-webkit-box-direction: normal;
|
|
61
|
+
color: #333333;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
font-size: 17px;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
-webkit-tap-highlight-color: transparent;
|
|
66
|
+
display: block;
|
|
67
|
+
font-size: large;
|
|
68
|
+
font-weight: bold;
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// font-size: 25px;
|
|
87
|
-
// color: white;
|
|
88
|
-
// position: relative;
|
|
89
|
-
// }
|
|
90
|
-
|
|
91
|
-
// .user-online {
|
|
92
|
-
// height: 11px;
|
|
93
|
-
// width: 11px;
|
|
94
|
-
// border-radius: 50%;
|
|
95
|
-
// position: absolute;
|
|
96
|
-
// top: 44px;
|
|
97
|
-
// left: 40px;
|
|
98
|
-
// border: 0.5px solid #fff;
|
|
99
|
-
// }
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
// .user-presence {
|
|
103
|
-
// position: absolute;
|
|
104
|
-
// top: 88px;
|
|
105
|
-
// height: 12px;
|
|
106
|
-
// left: calc(50% + 30px);
|
|
107
|
-
// width: 100px;
|
|
108
|
-
// }
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
// .info-group-member-email {
|
|
113
|
-
// font-size: 13px;
|
|
114
|
-
// margin-top: 2px;
|
|
115
|
-
// white-space: nowrap;
|
|
116
|
-
// width: 205px;
|
|
117
|
-
// overflow: hidden;
|
|
118
|
-
// text-overflow: ellipsis;
|
|
119
|
-
// }
|
|
72
|
+
.info-group-member-email {
|
|
73
|
+
font-size: 13px;
|
|
74
|
+
margin-top: 2px;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
width: 205px;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
}
|
|
120
80
|
}
|
|
@@ -23,7 +23,6 @@ export class InfoGroupComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
23
23
|
// objectKeys = Object.keys;
|
|
24
24
|
|
|
25
25
|
@Input() groupDetail: any;
|
|
26
|
-
@Input() isMobile: boolean;
|
|
27
26
|
// @Input() member_array: any;
|
|
28
27
|
public displaySkeletonScreen: boolean = true;
|
|
29
28
|
public member_array: any
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<ion-toolbar [
|
|
1
|
+
<ion-toolbar style="height:60px" [ngClass]="{'bottom-border-on-mobile':IS_ON_MOBILE_DEVICE === true }">
|
|
2
2
|
|
|
3
|
-
<ion-buttons *ngIf="
|
|
3
|
+
<ion-buttons *ngIf="IS_ON_MOBILE_DEVICE === true || supportMode === false" slot="start" style="height:60px">
|
|
4
4
|
<ion-button ion-button icon-only fill="clear" (click)="onOpenProfileInfo($event)">
|
|
5
5
|
<ion-icon slot="icon-only" name="reorder-three-outline"></ion-icon>
|
|
6
6
|
</ion-button>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div *ngIf="numberOpenConv > 0" class="number-open-conv">({{numberOpenConv}})</div>
|
|
12
12
|
</ion-title>
|
|
13
13
|
|
|
14
|
-
<ion-buttons slot="start"
|
|
14
|
+
<ion-buttons slot="start">
|
|
15
15
|
<ion-button *ngIf="sound_btn==='enabled'" ion-button fill="clear" (click)="onSoundChangeFN('disabled')">
|
|
16
16
|
<ion-icon slot="icon-only" name="volume-high-outline" ></ion-icon>
|
|
17
17
|
</ion-button>
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
ion-toolbar {
|
|
3
|
-
height: var(--header-height);
|
|
4
|
-
&:not(.mobile){
|
|
5
|
-
--background: var(--list-bkg-color);
|
|
6
|
-
border: none;
|
|
7
|
-
}
|
|
8
|
-
&.mobile{
|
|
9
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
ion-button{
|
|
13
|
-
--color: var(--basic-blue);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
1
|
ion-title img {
|
|
18
2
|
height: 30px;
|
|
19
3
|
}
|
|
@@ -39,4 +23,8 @@ ion-title img {
|
|
|
39
23
|
|
|
40
24
|
.header-logo {
|
|
41
25
|
margin-top: 5px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bottom-border-on-mobile {
|
|
29
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
42
30
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
2
|
import { IonicModule } from '@ionic/angular';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { DdpHeaderComponent } from './ddp-header.component';
|
|
5
5
|
|
|
6
|
-
describe('
|
|
7
|
-
let component:
|
|
8
|
-
let fixture: ComponentFixture<
|
|
6
|
+
describe('DdpHeaderComponent', () => {
|
|
7
|
+
let component: DdpHeaderComponent;
|
|
8
|
+
let fixture: ComponentFixture<DdpHeaderComponent>;
|
|
9
9
|
|
|
10
10
|
beforeEach(async(() => {
|
|
11
11
|
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [
|
|
12
|
+
declarations: [ DdpHeaderComponent ],
|
|
13
13
|
imports: [IonicModule.forRoot()]
|
|
14
14
|
}).compileComponents();
|
|
15
15
|
|
|
16
|
-
fixture = TestBed.createComponent(
|
|
16
|
+
fixture = TestBed.createComponent(DdpHeaderComponent);
|
|
17
17
|
component = fixture.componentInstance;
|
|
18
18
|
fixture.detectChanges();
|
|
19
19
|
}));
|
|
@@ -4,22 +4,22 @@ import { EventsService } from 'src/app/services/events-service'
|
|
|
4
4
|
import { CreateTicketPage } from 'src/app/pages/create-ticket/create-ticket.page'
|
|
5
5
|
import { CustomTranslateService } from 'src/chat21-core/providers/custom-translate.service'
|
|
6
6
|
@Component({
|
|
7
|
-
selector: '
|
|
8
|
-
templateUrl: './header
|
|
9
|
-
styleUrls: ['./header
|
|
7
|
+
selector: 'app-ddp-header',
|
|
8
|
+
templateUrl: './ddp-header.component.html',
|
|
9
|
+
styleUrls: ['./ddp-header.component.scss'],
|
|
10
10
|
})
|
|
11
|
-
export class
|
|
11
|
+
export class DdpHeaderComponent implements OnInit {
|
|
12
12
|
|
|
13
13
|
@Input() numberOpenConv: number
|
|
14
14
|
@Input() supportMode: boolean
|
|
15
15
|
@Input() archived_btn: boolean
|
|
16
16
|
@Input() writeto_btn: boolean
|
|
17
|
-
@Input() sound_btn: string
|
|
18
|
-
@Input() isMobile: boolean;
|
|
17
|
+
@Input() sound_btn: string
|
|
19
18
|
@Output() onSoundChange = new EventEmitter<string>()
|
|
20
19
|
@Output() openContactsDirectory = new EventEmitter()
|
|
21
20
|
@Output() openProfileInfo = new EventEmitter()
|
|
22
21
|
|
|
22
|
+
IS_ON_MOBILE_DEVICE: boolean
|
|
23
23
|
createTicketModal = null
|
|
24
24
|
public translationMap: Map<string, string>;
|
|
25
25
|
tooltipOptions = {
|
|
@@ -36,7 +36,7 @@ export class HeaderConversationsList implements OnInit {
|
|
|
36
36
|
public modalController: ModalController,
|
|
37
37
|
private translateService: CustomTranslateService,
|
|
38
38
|
) {
|
|
39
|
-
|
|
39
|
+
this.isOnMobileDevice();
|
|
40
40
|
this.translations();
|
|
41
41
|
// this.listenToCloseCreateTicketModal() // published from create ticket page
|
|
42
42
|
}
|
|
@@ -68,6 +68,15 @@ export class HeaderConversationsList implements OnInit {
|
|
|
68
68
|
// }
|
|
69
69
|
// }
|
|
70
70
|
|
|
71
|
+
isOnMobileDevice() {
|
|
72
|
+
this.IS_ON_MOBILE_DEVICE = false
|
|
73
|
+
if (/Android|iPhone/i.test(window.navigator.userAgent)) {
|
|
74
|
+
this.IS_ON_MOBILE_DEVICE = true
|
|
75
|
+
}
|
|
76
|
+
// console.log('[DDP-HEADER] IS_ON_MOBILE_DEVICE', this.IS_ON_MOBILE_DEVICE)
|
|
77
|
+
return this.IS_ON_MOBILE_DEVICE
|
|
78
|
+
}
|
|
79
|
+
|
|
71
80
|
ngOnInit() {
|
|
72
81
|
// console.log('DDP HEADER SUPPORT MODE ', this.supportMode)
|
|
73
82
|
}
|