@chat21/chat21-ionic 3.0.60 → 3.0.61-rc14
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 +93 -0
- package/README.md +2 -0
- package/angular.json +4 -0
- package/config.xml +5 -5
- package/deploy_pre.sh +10 -10
- package/deploy_prod.sh +5 -1
- package/env.sample +3 -1
- package/package.json +13 -7
- package/resources/{Android → android}/icon/drawable-hdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-ldpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-mdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xxhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xxxhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-hdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-ldpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-mdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-hdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-ldpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-mdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash.png +0 -0
- package/src/app/app-routing.module.ts +15 -0
- package/src/app/app.component.html +14 -4
- package/src/app/app.component.scss +18 -1
- package/src/app/app.component.ts +50 -16
- package/src/app/app.module.ts +12 -3
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +23 -5
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +142 -49
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +101 -18
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +20 -36
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +10 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +35 -40
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +7 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +103 -12
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +39 -36
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +7 -1
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +148 -63
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +59 -22
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +32 -9
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +102 -23
- package/src/app/components/ddp-header/ddp-header.component.html +20 -6
- package/src/app/components/ddp-header/ddp-header.component.scss +4 -0
- package/src/app/components/ddp-header/ddp-header.component.ts +104 -10
- package/src/app/components/project-item/project-item.component.html +8 -7
- package/src/app/components/project-item/project-item.component.scss +7 -2
- package/src/app/components/project-item/project-item.component.ts +15 -2
- package/src/app/components/sidebar/sidebar.component.html +275 -0
- package/src/app/components/sidebar/sidebar.component.scss +79 -0
- package/src/app/components/sidebar/sidebar.component.spec.ts +24 -0
- package/src/app/components/sidebar/sidebar.component.ts +539 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +117 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +330 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.spec.ts +24 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +490 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +6 -1
- package/src/app/pages/conversation-detail/conversation-detail.page.html +20 -10
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1132 -784
- package/src/app/pages/conversations-list/conversations-list.module.ts +2 -1
- package/src/app/pages/conversations-list/conversations-list.page.html +18 -9
- package/src/app/pages/conversations-list/conversations-list.page.scss +9 -1
- package/src/app/pages/conversations-list/conversations-list.page.ts +738 -425
- package/src/app/pages/create-canned-response/create-canned-response-routing.module.ts +17 -0
- package/src/app/pages/create-canned-response/create-canned-response.module.ts +30 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.html +150 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.scss +55 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.spec.ts +24 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.ts +319 -0
- package/src/app/pages/create-requester/create-requester-routing.module.ts +17 -0
- package/src/app/pages/create-requester/create-requester.module.ts +28 -0
- package/src/app/pages/create-requester/create-requester.page.html +67 -0
- package/src/app/pages/create-requester/create-requester.page.scss +30 -0
- package/src/app/pages/create-requester/create-requester.page.spec.ts +24 -0
- package/src/app/pages/create-requester/create-requester.page.ts +138 -0
- package/src/app/pages/create-ticket/create-ticket-routing.module.ts +17 -0
- package/src/app/pages/create-ticket/create-ticket.module.ts +28 -0
- package/src/app/pages/create-ticket/create-ticket.page.html +171 -0
- package/src/app/pages/create-ticket/create-ticket.page.scss +52 -0
- package/src/app/pages/create-ticket/create-ticket.page.spec.ts +24 -0
- package/src/app/pages/create-ticket/create-ticket.page.ts +432 -0
- package/src/app/pages/loader-preview/loader-preview.page.ts +226 -166
- package/src/app/pages/profile-info/profile-info.page.html +4 -4
- package/src/app/pages/profile-info/profile-info.page.scss +13 -2
- package/src/app/pages/profile-info/profile-info.page.ts +23 -21
- package/src/app/services/tiledesk/tiledesk.service.ts +209 -0
- package/src/app/shared/shared.module.ts +14 -1
- package/src/app/utils/scrollbar-theme.directive.ts +58 -24
- package/src/assets/i18n/de.json +69 -13
- package/src/assets/i18n/en.json +62 -6
- package/src/assets/i18n/es.json +61 -5
- package/src/assets/i18n/fr.json +64 -8
- package/src/assets/i18n/it.json +61 -5
- package/src/assets/i18n/pt.json +61 -5
- package/src/assets/i18n/ru.json +62 -6
- package/src/assets/i18n/sr.json +265 -0
- package/src/assets/i18n/tr.json +61 -5
- package/src/assets/images/default-avatar-x-select.png +0 -0
- package/src/assets/images/language_flag/ar.png +0 -0
- package/src/assets/images/language_flag/bg.png +0 -0
- package/src/assets/images/language_flag/ca.png +0 -0
- package/src/assets/images/language_flag/cs.png +0 -0
- package/src/assets/images/language_flag/da.png +0 -0
- package/src/assets/images/language_flag/de.png +0 -0
- package/src/assets/images/language_flag/el.png +0 -0
- package/src/assets/images/language_flag/en.png +0 -0
- package/src/assets/images/language_flag/es.png +0 -0
- package/src/assets/images/language_flag/fa.png +0 -0
- package/src/assets/images/language_flag/fi.png +0 -0
- package/src/assets/images/language_flag/fr.png +0 -0
- package/src/assets/images/language_flag/he.png +0 -0
- package/src/assets/images/language_flag/hi.png +0 -0
- package/src/assets/images/language_flag/hr.png +0 -0
- package/src/assets/images/language_flag/hu.png +0 -0
- package/src/assets/images/language_flag/id.png +0 -0
- package/src/assets/images/language_flag/it.png +0 -0
- package/src/assets/images/language_flag/ja.png +0 -0
- package/src/assets/images/language_flag/ko.png +0 -0
- package/src/assets/images/language_flag/ml-IN.png +0 -0
- package/src/assets/images/language_flag/ne-NP.png +0 -0
- package/src/assets/images/language_flag/nl.png +0 -0
- package/src/assets/images/language_flag/no.png +0 -0
- package/src/assets/images/language_flag/pl.png +0 -0
- package/src/assets/images/language_flag/pt-BR.png +0 -0
- package/src/assets/images/language_flag/pt.png +0 -0
- package/src/assets/images/language_flag/ro.png +0 -0
- package/src/assets/images/language_flag/ru.png +0 -0
- package/src/assets/images/language_flag/sk.png +0 -0
- package/src/assets/images/language_flag/sl.png +0 -0
- package/src/assets/images/language_flag/sr.png +0 -0
- package/src/assets/images/language_flag/sv-SE.png +0 -0
- package/src/assets/images/language_flag/ta.png +0 -0
- package/src/assets/images/language_flag/th.png +0 -0
- package/src/assets/images/language_flag/tr.png +0 -0
- package/src/assets/images/language_flag/uk.png +0 -0
- package/src/assets/images/language_flag/vi.png +0 -0
- package/src/assets/images/language_flag/zh-CN.png +0 -0
- package/src/assets/images/language_flag/zh-TW.png +0 -0
- package/src/assets/images/no_image_user.png +0 -0
- package/src/assets/images/priority_icons/high.svg +3 -0
- package/src/assets/images/priority_icons/high_v2.svg +14 -0
- package/src/assets/images/priority_icons/low.svg +10 -0
- package/src/assets/images/priority_icons/low_v2.svg +14 -0
- package/src/assets/images/priority_icons/medium.svg +16 -0
- package/src/assets/images/priority_icons/medium_v2.svg +11 -0
- package/src/assets/images/priority_icons/urgent.svg +4 -0
- package/src/assets/images/priority_icons/urgent_v2.svg +16 -0
- package/src/assets/tiledesk-solo-logo.png +0 -0
- package/src/chat-config-pre-test.json +3 -1
- package/src/chat-config-template.json +3 -1
- package/src/chat-config.json +4 -2
- package/src/chat21-core/utils/constants.ts +6 -1
- package/src/global.scss +405 -3
- package/src/index.html +7 -0
- package/publish_pre.sh +0 -33
- package/publish_prod.sh +0 -33
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
<!-- *ngIf="project" -->
|
|
2
|
+
<div class="logo">
|
|
3
|
+
<!-- <a class="logo-img-wpr" [ngClass]="{'small-sidebar-logo-img-wpr' : SIDEBAR_IS_SMALL === true }">
|
|
4
|
+
<div class="logo-img" (click)="goToHome()" style="cursor: pointer;">
|
|
5
|
+
<img class="small-sidebar__logo" src="assets/tiledesk-solo-logo.png" />
|
|
6
|
+
</div>
|
|
7
|
+
</a> -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<div id="sidebaravatar-img-wpr" class="sidebar-avatar-container tiledesk-nav-avatar" (click)="openUserDetailSidePanel()"
|
|
12
|
+
style="cursor: pointer;" [ngClass]="{'small-sidebar-avatar' : SIDEBAR_IS_SMALL === true, 'small-sidebar-avatar-with-avatar': SIDEBAR_IS_SMALL === true && !USER_PHOTO_PROFILE_EXIST}">
|
|
13
|
+
|
|
14
|
+
<img *ngIf="USER_PHOTO_PROFILE_EXIST" id="sidebaravatar-img" class="sidebar-avatar" [src]="photo_profile_URL"
|
|
15
|
+
onerror="this.src='assets/images/no_image_user.png'" />
|
|
16
|
+
|
|
17
|
+
<div *ngIf="!USER_PHOTO_PROFILE_EXIST" id="sidebaravatar-no-img" class="sidebar-avatar"
|
|
18
|
+
[ngStyle]="{'background': 'linear-gradient(rgb(255,255,255) -125%,' + currentUser?.fillColour + ')'}">
|
|
19
|
+
<span id="sidebaravatar-altenative-user-avatar" class="sidebar-altenative-user-avatar">
|
|
20
|
+
{{ currentUser?.fullname_initial }}
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<!-- matTooltipClass="custom-mat-tooltip" matTooltip="{{ tooltip_text_for_availability_status}}" #tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" -->
|
|
25
|
+
<!-- (click)="changeAvailabilityState(IS_AVAILABLE = !IS_AVAILABLE)" -->
|
|
26
|
+
<div id="sidebaravatar-status-icon" class="status-icon"
|
|
27
|
+
[ngClass]="{'is-user-online' : IS_AVAILABLE === true, 'is-user-offline' : IS_AVAILABLE === false, 'small-sidebar-status-icon' : SIDEBAR_IS_SMALL === true }">
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<!-- matTooltipClass="custom-mat-tooltip" matTooltip="{{ 'Busy' | translate }}" #tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" -->
|
|
31
|
+
<div id="sidebaravatar-isbusy-icon-wpr" class="sidebar--isBusy-icon-wpr" [ngClass]="{'sidebar--isBusy-icon-wpr-with-image': USER_PHOTO_PROFILE_EXIST}" *ngIf="IS_BUSY === true"
|
|
32
|
+
style="cursor:pointer">
|
|
33
|
+
<span id="sidebaravatar-isbusy-icon" class="material-icons sidebar-is-busy-icon">
|
|
34
|
+
access_time
|
|
35
|
+
</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="sidebar-wrapper">
|
|
42
|
+
|
|
43
|
+
<div class="nav-container">
|
|
44
|
+
<!-- [ngClass]="{'is-desktop-menu' : IS_MOBILE_MENU === false, 'is-mobile-menu' : IS_MOBILE_MENU === true }" -->
|
|
45
|
+
<!-- padding-bottom: 65px; -->
|
|
46
|
+
<ul style="margin-top: 0px;" class="nav">
|
|
47
|
+
|
|
48
|
+
<!-- ------------------------------------------- -->
|
|
49
|
+
<!-- CHAT -->
|
|
50
|
+
<!-- ------------------------------------------- -->
|
|
51
|
+
<li class="item-active" style="cursor: unset;" matTooltipClass="custom-mat-tooltip" matTooltip="Chat"
|
|
52
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center; ">
|
|
53
|
+
<a class="customAncor" style="margin-right: 0px !important">
|
|
54
|
+
<!-- <i class="material-icons sidebar-icons">chat</i> -->
|
|
55
|
+
<span id="openchat-span" style="position: relative;top: 9px;vertical-align: middle;">
|
|
56
|
+
<svg id="openchat-svg" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
|
57
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 23 21"
|
|
58
|
+
style="enable-background:new 0 0 23 21;" xml:space="preserve"
|
|
59
|
+
style="width:20px;height:20px; vertical-align: middle;">
|
|
60
|
+
<style type="text/css">
|
|
61
|
+
.chat21-icon {
|
|
62
|
+
fill: #fff;
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
65
|
+
<path id="openchat-path" class="chat21-icon" d="M11.5,0.5C5.8,0.5,1.3,5,1.3,10.5c0,1.8,0.5,3.5,1.4,5l-0.8,4.3l4.4-0.8c1.5,0.9,3.3,1.4,5.3,1.4
|
|
66
|
+
c5.7,0,10.2-4.5,10.2-10S17.2,0.5,11.5,0.5z M11.5,17.2c-2.5,0-4.6-1.3-5.7-2.6c0.6-0.2,0.8-0.8,1.4-1c0.7,0.9,2.5,2.1,4.4,2.1
|
|
67
|
+
c1.9,0,3.6-1.2,4.2-2.1c0.5,0.2,0.9,0.6,1.4,0.9C16.1,15.8,14,17.2,11.5,17.2z" />
|
|
68
|
+
</svg>
|
|
69
|
+
</span>
|
|
70
|
+
</a>
|
|
71
|
+
</li>
|
|
72
|
+
|
|
73
|
+
<!-- ------------------------------------------- -->
|
|
74
|
+
<!-- HOME target="_self" href="{{ dashboard_home_url }}" -->
|
|
75
|
+
<!-- ------------------------------------------- -->
|
|
76
|
+
|
|
77
|
+
<li (click)="goToHome()" matTooltip="Home" #tooltip="matTooltip" matTooltipPosition='right'
|
|
78
|
+
matTooltipHideDelay="100" matTooltipClass="custom-mat-tooltip">
|
|
79
|
+
<a target="_self" href="{{ dashboard_home_url }}" class="customAncor">
|
|
80
|
+
<i class="material-icons sidebar-icons">
|
|
81
|
+
home
|
|
82
|
+
</i>
|
|
83
|
+
</a>
|
|
84
|
+
</li>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<!-- ---------------------------------- -->
|
|
88
|
+
<!-- Bot -->
|
|
89
|
+
<!-- ---------------------------------- -->
|
|
90
|
+
<ng-container *ngIf="USER_ROLE !== 'agent'">
|
|
91
|
+
<li (click)="goToBots()" id="bot-anchor-wpr" matTooltipClass="custom-mat-tooltip" matTooltip="Bots"
|
|
92
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
93
|
+
<a target="_self" href="{{ dashboard_bots_url }}" id="bot-anchor" #botbtn class="customAncor" style="height: 40px;margin-right: 0px !important;">
|
|
94
|
+
<span class="bot-icon-wpr">
|
|
95
|
+
<svg version="1.1" id="Objects" xmlns="http://www.w3.org/2000/svg"
|
|
96
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30"
|
|
97
|
+
style="enable-background:new 0 0 30 30;" xml:space="preserve" style="width: 25px;height: 25px;margin-top: 7px;">
|
|
98
|
+
<g>
|
|
99
|
+
<g>
|
|
100
|
+
<path class="chat-bot-icon-st0" d="M24.6,12.6c-0.1,0-0.2,0-0.3,0c-1.6-2.9-4.5-5.8-9.2-5.8c-4.7,0-7.6,2.9-9.2,5.8c-0.2,0-0.4-0.1-0.6-0.1
|
|
101
|
+
c-2,0-3.5,2.3-3.5,5c0,2.8,1.6,5,3.5,5c0.1,0,0.3,0,0.4,0c2.3,3.6,7,3.9,9.4,3.9c2.3,0,6.9-0.5,9.2-3.9c0.1,0,0.1,0,0.2,0
|
|
102
|
+
c2,0,3.5-2.3,3.5-5C28.1,14.8,26.6,12.6,24.6,12.6z M22,21.1c0,0-7.8,2.3-14.3-0.1c0,0-0.8-4.1-0.5-7.2c0,0,8.1-3.2,15.6,0.3
|
|
103
|
+
C22.8,14.1,23.3,19.1,22,21.1z" />
|
|
104
|
+
<ellipse class="chat-bot-icon-st0" cx="11.9" cy="17.4" rx="0.7" ry="1.4" />
|
|
105
|
+
<ellipse class="chat-bot-icon-st0" cx="18.1" cy="17.4" rx="0.7" ry="1.4" />
|
|
106
|
+
<path class="chat-bot-icon-st0" d="M14.5,5.3v1.1h1V5.3c0.3-0.2,0.5-0.5,0.5-0.8c0-0.5-0.4-0.9-1-0.9c-0.5,0-0.9,0.4-0.9,0.9
|
|
107
|
+
C14.1,4.8,14.2,5.1,14.5,5.3z" />
|
|
108
|
+
</g>
|
|
109
|
+
<rect class="chat-bot-icon-st1" width="30" height="30" />
|
|
110
|
+
</g>
|
|
111
|
+
</svg>
|
|
112
|
+
</span>
|
|
113
|
+
</a>
|
|
114
|
+
</li>
|
|
115
|
+
</ng-container>
|
|
116
|
+
|
|
117
|
+
<!-- ------------------------------------------- -->
|
|
118
|
+
<!-- Conversations (VISITORS) {{ conversations_lbl }} -->
|
|
119
|
+
<!-- ------------------------------------------- -->
|
|
120
|
+
<ng-container *ngIf="USER_ROLE !== 'agent'">
|
|
121
|
+
<li (click)="goToConversations()" matTooltipClass="custom-mat-tooltip" matTooltip="Monitor"
|
|
122
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
123
|
+
<a target="_self" href="{{ dashboard_convs_url }}" class="customAncor" style="height: 40px;margin-right: 0px !important;">
|
|
124
|
+
<!-- <i class="material-icons sidebar-icons">forum</i> -->
|
|
125
|
+
<span class="realtime-icon-wpr" >
|
|
126
|
+
|
|
127
|
+
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
128
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 30px;height: 30px;margin-top: 5px;">
|
|
129
|
+
|
|
130
|
+
<path class="realtime-icon-st3" d="M17.9,11.6l-1.4,1.9l-3.2-5.6l-1-2l-0.2,0.2l-3.7,6.4l-3-4.8L2.7,9.9v2.4l2.4-1.8L9,16.2l3.3-6.2l4,6.7l2.7-3.3
|
|
131
|
+
l0.9,0c0.5-0.7,1-1.4,1.4-2L17.9,11.6z"/>
|
|
132
|
+
</svg>
|
|
133
|
+
</span>
|
|
134
|
+
|
|
135
|
+
</a>
|
|
136
|
+
</li>
|
|
137
|
+
</ng-container>
|
|
138
|
+
|
|
139
|
+
<!-- ------------------------------------------- -->
|
|
140
|
+
<!-- CONTACTS (LEADS) -->
|
|
141
|
+
<!-- ------------------------------------------- -->
|
|
142
|
+
<li (click)="goToContacts()" matTooltipClass="custom-mat-tooltip" matTooltip="{{ contacts_lbl }}"
|
|
143
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
144
|
+
<a target="_self" href="{{ dashboard_contacts_url }}" class="customAncor">
|
|
145
|
+
<i class="material-icons sidebar-icons">contacts</i>
|
|
146
|
+
</a>
|
|
147
|
+
</li>
|
|
148
|
+
|
|
149
|
+
<!-- ------------------------------------------- -->
|
|
150
|
+
<!-- APPS -->
|
|
151
|
+
<!-- ------------------------------------------- -->
|
|
152
|
+
<ng-container *ngIf="isVisibleAPP && USER_ROLE !== 'agent'">
|
|
153
|
+
<li (click)="goToAppStore()" matTooltipClass="custom-mat-tooltip" matTooltip="{{ apps_lbl }}"
|
|
154
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
155
|
+
<a target="_self" href="{{ dashboard_app_url }}" class="customAncor" style="margin-right: 0px !important;">
|
|
156
|
+
<!-- <i class="material-icons sidebar-icons">apps</i> -->
|
|
157
|
+
<!-- <i class="material-icons sidebar-icons">dashboard_customize</i> -->
|
|
158
|
+
<span class="dashboard-customize-icon-wpr">
|
|
159
|
+
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
160
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 20px;height: 20px;margin-top: 10px;">
|
|
161
|
+
<path class="dashboard_customize-st0" d="M0,0h24v24H0V0z"/>
|
|
162
|
+
<path class="dashboard_customize-st1" d="M3,3h8v8H3V3z M13,3h8v8h-8V3z M3,13h8v8H3V13z M18,13h-2v3h-3v2h3v3h2v-3h3v-2h-3V13z"/>
|
|
163
|
+
</svg>
|
|
164
|
+
</span>
|
|
165
|
+
</a>
|
|
166
|
+
</li>
|
|
167
|
+
</ng-container>
|
|
168
|
+
|
|
169
|
+
<!-- ------------------------------------------- -->
|
|
170
|
+
<!-- ANALYTICS -->
|
|
171
|
+
<!-- ------------------------------------------- -->
|
|
172
|
+
<ng-container *ngIf="isVisibleANA && USER_ROLE !== 'agent'">
|
|
173
|
+
<li (click)="goToAnalytics()" matTooltipClass="custom-mat-tooltip" matTooltip="{{ analytics_lbl }}"
|
|
174
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
175
|
+
<a target="_self" href="{{ dashboard_analytics_url }}" class="customAncor" style="margin-right: 0px !important;">
|
|
176
|
+
<!-- <i class="material-icons sidebar-icons">trending_up</i> -->
|
|
177
|
+
<!-- <i class="material-icons sidebar-icons"> analytics </i> -->
|
|
178
|
+
<!-- <i class="material-icons sidebar-icons"> bar_chart </i> -->
|
|
179
|
+
<span class="bar-chart-icon-wpr">
|
|
180
|
+
<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
181
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve" style="width: 20px;height: 20px;margin-top: 10px;">
|
|
182
|
+
<path class="bar-chart-icon-st0" d="M0,0h24v24H0V0z"/>
|
|
183
|
+
<path class="bar-chart-icon-st1" d="M5,9.2h3V19H5V9.2z M10.6,5h2.8v14h-2.8V5z M16.2,13H19v6h-2.8V13z"/>
|
|
184
|
+
</svg>
|
|
185
|
+
</span>
|
|
186
|
+
</a>
|
|
187
|
+
</li>
|
|
188
|
+
</ng-container>
|
|
189
|
+
|
|
190
|
+
<!-- ------------------------------------------- -->
|
|
191
|
+
<!-- ACTIVITIES -->
|
|
192
|
+
<!-- ------------------------------------------- -->
|
|
193
|
+
<ng-container *ngIf="isVisibleACT">
|
|
194
|
+
<li *ngIf="USER_ROLE !== 'agent'" (click)="goToActivities()" matTooltipClass="custom-mat-tooltip"
|
|
195
|
+
matTooltip="{{ activities_lbl }}" #tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
196
|
+
<a target="_self" href="{{ dashboard_activities_url }}" class="customAncor">
|
|
197
|
+
<i class="material-icons sidebar-icons">assignment</i>
|
|
198
|
+
</a>
|
|
199
|
+
</li>
|
|
200
|
+
</ng-container>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<!-- ------------------------------------------- -->
|
|
204
|
+
<!-- REQUESTS HISTORY -->
|
|
205
|
+
<!-- ------------------------------------------- -->
|
|
206
|
+
<li (click)="goToHistory()" matTooltipClass="custom-mat-tooltip" matTooltip="{{ history_lbl }}"
|
|
207
|
+
#tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
208
|
+
<a target="_self" href="{{ dashboard_history_url }}" class="customAncor">
|
|
209
|
+
<i class="material-icons sidebar-icons">history</i>
|
|
210
|
+
</a>
|
|
211
|
+
</li>
|
|
212
|
+
|
|
213
|
+
<!-- ----------------------------------------------------------------------------------- -->
|
|
214
|
+
<!-- SETTINGS // old: goToSettings_CannedResponses() *ngIf="USER_ROLE !== 'agent'" -->
|
|
215
|
+
<!-- ----------------------------------------------------------------------------------- -->
|
|
216
|
+
<li (click)="goToWidgetSetUpOrToCannedResponses()" matTooltipClass="custom-mat-tooltip"
|
|
217
|
+
matTooltip="{{ settings_lbl }}" #tooltip="matTooltip" matTooltipPosition='right' matTooltipHideDelay="100" style="text-align: center;">
|
|
218
|
+
<a target="_self" href="{{ dashboard_settings_url }}" class="customAncor">
|
|
219
|
+
<i class="material-icons sidebar-icons">settings</i>
|
|
220
|
+
</a>
|
|
221
|
+
</li>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<!-- [_prjct_profile_name]="_prjct_profile_name" [plan_subscription_is_active]="plan_subscription_is_active"
|
|
225
|
+
[plan_name]="plan_name"
|
|
226
|
+
[plan_type]="plan_type"
|
|
227
|
+
[isVisiblePAY]="isVisiblePAY"
|
|
228
|
+
[prjct_name]="prjct_name" -->
|
|
229
|
+
<!-- HAS_CLICKED_OPEN_USER_DETAIL {{ HAS_CLICKED_OPEN_USER_DETAIL }} -->
|
|
230
|
+
<!-- [HAS_CLICKED_OPEN_USER_DETAIL]='HAS_CLICKED_OPEN_USER_DETAIL' -->
|
|
231
|
+
<!-- tabindex="-1" style="z-index: 20001;" -->
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<!-- <app-sidebar-user-details
|
|
235
|
+
(onCloseUserDetailsSidebar)='onCloseUserDetailsSidebar($event)'>
|
|
236
|
+
</app-sidebar-user-details> -->
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
</ul>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
::ng-deep .custom-mat-tooltip {
|
|
2
|
+
background-color: #2d323e !important;
|
|
3
|
+
font-size: 12px !important;
|
|
4
|
+
border-radius: 2px !important;
|
|
5
|
+
font-family: 'Poppins' !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sidebar-is-busy-icon {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
color: #feb92c;
|
|
11
|
+
background-color: #2d323e;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.chat-bot-icon-st0 {
|
|
16
|
+
// fill: #a9afbb;
|
|
17
|
+
fill: #647491
|
|
18
|
+
}
|
|
19
|
+
.chat-bot-icon-st1 {
|
|
20
|
+
fill: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.realtime-icon-st3 {
|
|
24
|
+
fill: #647491
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dashboard_customize-st0{
|
|
28
|
+
fill:none;
|
|
29
|
+
}
|
|
30
|
+
.dashboard_customize-st1{
|
|
31
|
+
fill:#647491;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.bar-chart-icon-st0{
|
|
35
|
+
fill:none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.bar-chart-icon-st1{
|
|
39
|
+
fill:#647491;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#bot-anchor-wpr:hover > #bot-anchor > .bot-icon-wpr > svg > g > g > .chat-bot-icon-st0 {
|
|
43
|
+
fill: #a9afbb ;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
li:hover > a > .realtime-icon-wpr > svg > path {
|
|
47
|
+
fill: #a9afbb;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
li:hover > a > .dashboard-customize-icon-wpr > svg > .dashboard_customize-st1 {
|
|
51
|
+
fill: #a9afbb;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
li:hover > a > .bar-chart-icon-wpr > svg > .bar-chart-icon-st1{
|
|
55
|
+
fill: #a9afbb;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#sidebaravatar-altenative-user-avatar {
|
|
59
|
+
// line-height: 2.9;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-family: "Poppins";
|
|
62
|
+
left: 50%;
|
|
63
|
+
top: 50%;
|
|
64
|
+
-webkit-transform: translate(-50%, -50%);
|
|
65
|
+
transform: translate(-50%, -50%);
|
|
66
|
+
position: absolute;
|
|
67
|
+
font-size:14px
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// #sidebar_wrapper::-webkit-scrollbar {
|
|
71
|
+
// width: 6px;
|
|
72
|
+
// }
|
|
73
|
+
// #sidebar_wrapper::-webkit-scrollbar-track {
|
|
74
|
+
// background-color: #1c2b45;
|
|
75
|
+
// }
|
|
76
|
+
// #sidebar_wrapper::-webkit-scrollbar-thumb {
|
|
77
|
+
// background-color: #3c485b;
|
|
78
|
+
// border-radius: 3px;
|
|
79
|
+
// }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { IonicModule } from '@ionic/angular';
|
|
3
|
+
|
|
4
|
+
import { SidebarComponent } from './sidebar.component';
|
|
5
|
+
|
|
6
|
+
describe('SidebarComponent', () => {
|
|
7
|
+
let component: SidebarComponent;
|
|
8
|
+
let fixture: ComponentFixture<SidebarComponent>;
|
|
9
|
+
|
|
10
|
+
beforeEach(async(() => {
|
|
11
|
+
TestBed.configureTestingModule({
|
|
12
|
+
declarations: [ SidebarComponent ],
|
|
13
|
+
imports: [IonicModule.forRoot()]
|
|
14
|
+
}).compileComponents();
|
|
15
|
+
|
|
16
|
+
fixture = TestBed.createComponent(SidebarComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|