@chat21/chat21-ionic 3.0.107-rc.3 → 3.0.107-rc.5

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/src/app/app.component.ts +73 -29
  4. package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.scss +0 -1
  5. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +9 -9
  6. package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +5 -7
  7. package/src/app/chatlib/conversation-detail/message/options/options.component.scss +2 -2
  8. package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.scss +1 -1
  9. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +1 -1
  10. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +22 -55
  11. package/src/app/components/canned-response/canned-response.component.scss +9 -2
  12. package/src/app/components/contacts-directory/contacts-directory.component.scss +4 -56
  13. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +5 -6
  14. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +16 -5
  15. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +5 -0
  16. package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.html +11 -19
  17. package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.scss +15 -19
  18. package/src/app/components/conversation-info/info-direct/info-direct.component.scss +6 -5
  19. package/src/app/components/conversation-info/info-group/info-group.component.html +2 -2
  20. package/src/app/components/conversation-info/info-group/info-group.component.scss +11 -2
  21. package/src/app/components/conversation-info/info-support-group/info-support-group.component.html +2 -1
  22. package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts +44 -1
  23. package/src/app/components/conversations-list/header-conversations-list/header-conversations-list.component.html +2 -1
  24. package/src/app/components/conversations-list/header-conversations-list/header-conversations-list.component.scss +3 -2
  25. package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +5 -3
  26. package/src/app/components/conversations-list/header-conversations-list-unassigned/header-conversations-list-unassigned.component.scss +5 -3
  27. package/src/app/components/navbar/navbar.component.html +10 -14
  28. package/src/app/components/navbar/navbar.component.scss +33 -17
  29. package/src/app/components/sidebar/sidebar.component.html +49 -67
  30. package/src/app/components/sidebar/sidebar.component.scss +44 -29
  31. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +5 -5
  32. package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +47 -93
  33. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +11 -13
  34. package/src/app/modals/create-canned-response/create-canned-response.page.html +2 -20
  35. package/src/app/modals/create-canned-response/create-canned-response.page.scss +44 -27
  36. package/src/app/modals/create-ticket/create-ticket.page.html +4 -4
  37. package/src/app/modals/create-ticket/create-ticket.page.scss +34 -1
  38. package/src/app/modals/json-message/json-message.page.scss +15 -1
  39. package/src/app/modals/loader-preview/loader-preview.page.html +1 -1
  40. package/src/app/modals/loader-preview/loader-preview.page.scss +19 -1
  41. package/src/app/modals/maps/maps.page.scss +18 -0
  42. package/src/app/modals/send-email/send-email.page.scss +30 -7
  43. package/src/app/modals/send-whatsapp-template/send-whatsapp-template.page.html +1 -1
  44. package/src/app/modals/send-whatsapp-template/send-whatsapp-template.page.scss +18 -0
  45. package/src/app/pages/contacts-directory/contacts-directory.page.html +9 -10
  46. package/src/app/pages/contacts-directory/contacts-directory.page.scss +5 -3
  47. package/src/app/pages/contacts-directory/contacts-directory.page.ts +0 -15
  48. package/src/app/pages/conversation-detail/conversation-detail.page.scss +5 -5
  49. package/src/app/pages/conversation-detail/conversation-detail.page.ts +10 -10
  50. package/src/app/pages/conversations-list/conversations-list.page.html +0 -1
  51. package/src/app/pages/conversations-list/conversations-list.page.scss +6 -17
  52. package/src/app/pages/conversations-list/conversations-list.page.ts +9 -18
  53. package/src/app/pages/profile-info/profile-info.page.html +4 -4
  54. package/src/app/pages/profile-info/profile-info.page.scss +43 -25
  55. package/src/app/pages/profile-info/profile-info.page.ts +2 -1
  56. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +5 -5
  57. package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +2 -2
  58. package/src/assets/customStyle.css +18 -0
  59. package/src/assets/test.html +37 -4
  60. package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +21 -9
  61. package/src/global.scss +52 -137
  62. package/src/index.html +1 -1
  63. package/src/theme/variables.scss +276 -149
  64. package/src/variables.scss +115 -21
@@ -13,6 +13,7 @@ import { EventsService } from 'src/app/services/events-service';
13
13
  import { tranlatedLanguage } from '../../../chat21-core/utils/constants';
14
14
  import { avatarPlaceholder, getColorBck } from 'src/chat21-core/utils/utils-user';
15
15
  import { environment } from 'src/environments/environment';
16
+ import { Project } from 'src/chat21-core/models/projects';
16
17
  @Component({
17
18
  selector: 'app-sidebar-user-details',
18
19
  templateUrl: './sidebar-user-details.component.html',
@@ -36,7 +37,8 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
36
37
  SubscriptionPaymentProblem: string;
37
38
  user: any
38
39
  tiledeskToken: string;
39
- project: { _id: string, name: string, type: string, isActiveSubscription: boolean, plan_name: string}
40
+ // project: { _id: string, name: string, type: string, isActiveSubscription: boolean, plan_name: string}
41
+ project: Project;
40
42
  _prjct_profile_name: string;
41
43
 
42
44
  isVisiblePAY: boolean;
@@ -281,24 +283,21 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
281
283
  this.project = {
282
284
  _id: projectObjct['id_project']['_id'],
283
285
  name: projectObjct['id_project']['name'],
284
- type: projectObjct['id_project']['profile']['type'],
286
+ profile: projectObjct['id_project']['profile'],
285
287
  isActiveSubscription: projectObjct['id_project']['isActiveSubscription'],
286
- plan_name: projectObjct['id_project']['profile']['name']
288
+ trialExpired: projectObjct['id_project']['trialExpired']
287
289
  }
288
-
289
- const trial_expired = projectObjct['id_project']['trialExpired']
290
- const profile_name = projectObjct['id_project']['profile']['name'];
291
290
 
292
- if (this.project.type === 'free') {
291
+ if (this.project.profile.type === 'free') {
293
292
 
294
- if (trial_expired === false) {
293
+ if (this.project.trialExpired === false) {
295
294
  this.getProPlanTrialTranslation();
296
- } else if (trial_expired === true) {
295
+ } else if (this.project.trialExpired === true) {
297
296
  this.getFreePlanTranslation();
298
297
  }
299
- } else if (this.project.type === 'payment' && profile_name === 'pro') {
298
+ } else if (this.project.profile.type === 'payment' && this.project.profile.name === 'pro') {
300
299
  this.getProPlanTranslation();
301
- } else if (this.project.type === 'payment' && profile_name === 'enterprise') {
300
+ } else if (this.project.profile.type === 'payment' && this.project.profile.name === 'enterprise') {
302
301
  this.getEnterprisePlanTranslation();
303
302
  }
304
303
  }
@@ -388,8 +387,7 @@ export class SidebarUserDetailsComponent implements OnInit, OnChanges {
388
387
  profilestatus = 'inactive'
389
388
  }
390
389
 
391
- this.wsService.updateCurrentUserAvailability(this.tiledeskToken, this.project._id, IS_AVAILABLE, profilestatus)
392
- .subscribe((projectUser: any) => {
390
+ this.wsService.updateCurrentUserAvailability(this.tiledeskToken, this.project._id, IS_AVAILABLE, profilestatus).subscribe((projectUser: any) => {
393
391
 
394
392
  this.logger.log('[SIDEBAR-USER-DETAILS] - PROJECT-USER UPDATED ', projectUser)
395
393
 
@@ -18,14 +18,14 @@
18
18
  </ion-header> -->
19
19
  <ion-content>
20
20
  <ion-list>
21
- <ion-item button (click)="addPlaceholdertoMsg('$recipient_name')"
21
+ <ion-item button color="none" (click)="addPlaceholdertoMsg('$recipient_name')"
22
22
  (mouseover)="mouseOverBtnAddRecipientNamePlaceholder = true"
23
23
  (mouseout)="mouseOverBtnAddRecipientNamePlaceholder = false">
24
24
  <ion-label>
25
25
  {{translationsMap?.get('First_name_of_recipient')}}
26
26
  </ion-label>
27
27
  </ion-item>
28
- <ion-item button (click)="addPlaceholdertoMsg('$agent_name')"
28
+ <ion-item button color="none" (click)="addPlaceholdertoMsg('$agent_name')"
29
29
  (mouseover)="mouseOverBtnAddAgentNamePlaceholder = true"
30
30
  (mouseout)="mouseOverBtnAddAgentNamePlaceholder = false">
31
31
  <ion-label>
@@ -99,24 +99,6 @@
99
99
 
100
100
  </div>
101
101
 
102
- <!-- <div class="field-wrapper-email">
103
- <ion-textarea
104
- id="message"
105
- formControlName="message"
106
- autosize="false"
107
- autoGrow="true"
108
- autofocus="true"
109
- (ngModelChange)="cannedResponseMessageChanged($event)"
110
- placeholder="{{translationsMap?.get('WriteMsgToSendToYourVisitors')}}">
111
- </ion-textarea>
112
-
113
-
114
-
115
- <div class="info-wrapper">
116
- <ion-label>Powered by</ion-label>
117
- <img src="https://support-pre.tiledesk.com/dashboard/assets/img/logos/tiledesk-logo_new_gray.svg">
118
- </div>
119
- </div> -->
120
102
 
121
103
  <div class="field-wrapper-submit">
122
104
  <ion-button [disabled]="cannedFormGroup.invalid" ion-button fill="clear" type="submit">{{translationsMap?.get('Add')}}</ion-button>
@@ -1,11 +1,35 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+
18
+ ion-list{
19
+ background: transparent;
20
+ }
21
+
22
+ }
23
+
1
24
  #create-canned-response-content {
25
+
2
26
  .content-container{
3
27
  padding-top: 40px;
4
28
  padding-left: 64px;
5
29
  padding-right: 64px;
6
30
  }
7
31
 
8
- on-label + ion-input:focus {
32
+ ion-label + ion-input:focus {
9
33
  color: rgb(5, 102, 255);
10
34
  font-weight: bold;
11
35
  }
@@ -38,7 +62,7 @@
38
62
  justify-content: flex-end;
39
63
 
40
64
  ion-button{
41
- color: rgb(98, 112, 139);
65
+ color: var(--button-no-background-text-color)
42
66
  }
43
67
  }
44
68
 
@@ -55,9 +79,16 @@
55
79
  border-radius: 4px;
56
80
  width: 100%;
57
81
  }
82
+
83
+ .field-wrapper input:focus-visible,
84
+ .field-wrapper textarea:focus-visible{
85
+ outline: var(--border-focus-color) auto 1px;
86
+ }
87
+
88
+
58
89
 
59
90
  .field-wrapper .field-placeholder{
60
- font-size: 16px;
91
+ font-size: 15px;
61
92
  position: absolute;
62
93
  /* background: #fff; */
63
94
  bottom: 17px;
@@ -75,17 +106,18 @@
75
106
  }
76
107
 
77
108
  .field-wrapper .field-placeholder span{
78
- background: #ffffff;
79
- padding: 0px 8px;
109
+ // background: #ffffff;
110
+ // padding: 0px 8px;
80
111
  }
81
112
 
82
113
  .field-wrapper input:not([disabled]):focus~.field-placeholder,
83
114
  .field-placeholder:target,
84
115
  .field-wrapper.hasValue input:not([disabled])~.field-placeholder{
85
- -webkit-transform: scale(.75) translateY(-35px) translateX(-18px);
86
- transform: scale(.75) translateY(-35px) translateX(-18px);
87
- color:rgb(0,86,192);
116
+ -webkit-transform: scale(.75) translateY(-50px) translateX(-30px);
117
+ transform: scale(.75) translateY(-50px) translateX(-30px);
118
+ color:var(--title-focus-color);
88
119
  font-weight: bold;
120
+ font-size: 18px;
89
121
  }
90
122
 
91
123
  .field-wrapper-email{
@@ -120,23 +152,7 @@
120
152
  font-weight: 400;
121
153
  max-width: 100%
122
154
  }
123
-
124
- .info-wrapper{
125
- display: flex;
126
- flex-direction: column;
127
- -webkit-box-align: center;
128
- align-items: center;
129
- margin-top: 20px;
130
- // padding-bottom: 30px;
131
- position: relative;
132
- text-align: center;
133
- color: rgb(98, 112, 139);
134
- font-size: 13px;
135
-
136
- img{
137
- max-width: 35%;
138
- }
139
- }
155
+
140
156
 
141
157
  .field-wrapper-submit{
142
158
  margin-top: 20px;
@@ -144,8 +160,8 @@
144
160
  justify-content: center;
145
161
 
146
162
  ion-button{
147
- background-color:rgb(0,86,192);
148
- color:#f1f4f7;
163
+ background-color:var(--button-background-color);
164
+ color:var(--button-text-color);
149
165
  border-radius: 4px;
150
166
  font-size: 18px;
151
167
  height: 46px;
@@ -204,6 +220,7 @@
204
220
 
205
221
  .my-custom-menu {
206
222
  --width: 300px;
223
+ --background: var(--modal-content-background);
207
224
  margin-top: 57px;
208
225
 
209
226
  ion-item{
@@ -9,7 +9,7 @@
9
9
  </ion-toolbar>
10
10
  </ion-header>
11
11
 
12
- <ion-content >
12
+ <ion-content>
13
13
 
14
14
  <ion-grid class="ion-grid-custom-padding" [ngClass]="{'center-content': ticketCreationCompleted === true }">
15
15
  <ion-row *ngIf="ticketCreationCompleted === false">
@@ -141,9 +141,9 @@
141
141
  <ion-col size="12" style="text-align: center;">
142
142
 
143
143
  <!-- <ion-icon *ngIf="showSpinnerCreateTicket === false" style="font-size: 1.9em;" slot="start" name="checkmark-outline"></ion-icon> -->
144
- <ion-button style="min-width: 153px;" color="primary" class="submit-btn" type="submit" (click)="createTicket()" [disabled]="ticket_subject === undefined || ticket_message === undefined || ticket_subject?.length === 0 || ticket_message?.length === 0">
145
- <ion-icon *ngIf="showSpinnerCreateTicket === false" style="font-size: 1.9em;" slot="start" name="add-circle-outline"></ion-icon>
146
- <ion-spinner *ngIf="showSpinnerCreateTicket === true" style="color: #fff; margin: 0px 0.3em 0px -0.3em;" name="bubbles" duration="2" ></ion-spinner>
144
+ <ion-button color="primary" class="submit-btn" type="submit" (click)="createTicket()" [disabled]="ticket_subject === undefined || ticket_message === undefined || ticket_subject?.length === 0 || ticket_message?.length === 0">
145
+ <ion-icon *ngIf="showSpinnerCreateTicket === false" slot="start" name="add-circle-outline"></ion-icon>
146
+ <ion-spinner *ngIf="showSpinnerCreateTicket === true" name="bubbles" duration="2" ></ion-spinner>
147
147
  {{'CreateTicket' | translate}}
148
148
  </ion-button>
149
149
  </ion-col>
@@ -1,3 +1,21 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+ }
18
+
1
19
  .requester-role-or-type {
2
20
  font-size: 12px;
3
21
  font-weight: 400;
@@ -23,7 +41,7 @@
23
41
 
24
42
  .custom-create-ticket-label {
25
43
  font-size: 14px;
26
- color: #7695a5;
44
+ color: var(--label-color);
27
45
  font-weight: 500;
28
46
  }
29
47
 
@@ -50,3 +68,18 @@
50
68
  align-items: center;
51
69
  justify-content: center;
52
70
  }
71
+
72
+ .submit-btn{
73
+ min-width: 153px;
74
+ background: var(--button-background-color);
75
+ color: var(--button-text-color);
76
+
77
+ ion-icon{
78
+ color: var(--button-text-color);
79
+ font-size: 1.9em;
80
+ }
81
+ ion-spinner{
82
+ color: var(--button-text-color);
83
+ margin: 0px 0.3em 0px -0.3em;
84
+ }
85
+ }
@@ -1,5 +1,19 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
1
15
  ion-content{
2
-
16
+ --background: var(--modal-content-background);
3
17
  .json{
4
18
  background: #354552;
5
19
  color: #d6e5db;
@@ -24,7 +24,7 @@
24
24
 
25
25
  <div class="messageTextArea" #messageTextArea>
26
26
 
27
- <ion-item>
27
+ <ion-item color="none">
28
28
  <ion-label color="primary" position="floating" floating> {{'AddACaption' | translate}}...</ion-label>
29
29
  <!-- <ion-input clearInput></ion-input> -->
30
30
  <ion-textarea #messageTextArea #imageCaptionTexarea
@@ -1,3 +1,21 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+ }
18
+
1
19
  .center-cropped {
2
20
  width: 50px;
3
21
  height: 50px;
@@ -59,7 +77,7 @@ ion-fab-button{
59
77
  }
60
78
 
61
79
  .thumbnailsPreview {
62
- background-color: #efefef;
80
+ background-color: var(--preview-background);
63
81
  padding: 20px;
64
82
  width: 100%;
65
83
  height: 100px;
@@ -1,3 +1,21 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+ }
18
+
1
19
  .container {
2
20
  width: 100%;
3
21
  height: 100%;
@@ -1,3 +1,20 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+ }
1
18
 
2
19
  .content-container{
3
20
  padding-top: 40px;
@@ -61,6 +78,11 @@ ion-input{
61
78
  width: 100%;
62
79
  }
63
80
 
81
+ .field-wrapper input:focus-visible,
82
+ .field-wrapper textarea:focus-visible{
83
+ outline: var(--border-focus-color) auto 1px;
84
+ }
85
+
64
86
  .field-wrapper .field-placeholder{
65
87
  font-size: 16px;
66
88
  position: absolute;
@@ -80,17 +102,18 @@ ion-input{
80
102
  }
81
103
 
82
104
  .field-wrapper .field-placeholder span{
83
- background: #ffffff;
84
- padding: 0px 8px;
105
+ // background: #ffffff;
106
+ // padding: 0px 8px;
85
107
  }
86
108
 
87
109
  .field-wrapper input:not([disabled]):focus~.field-placeholder,
88
110
  .field-placeholder:target,
89
111
  .field-wrapper.hasValue input:not([disabled])~.field-placeholder{
90
- -webkit-transform: scale(.75) translateY(-35px) translateX(-18px);
91
- transform: scale(.75) translateY(-35px) translateX(-18px);
92
- color:rgb(0,86,192);
112
+ -webkit-transform: scale(.75) translateY(-50px) translateX(-30px);
113
+ transform: scale(.75) translateY(-50px) translateX(-30px);
114
+ color:var(--title-focus-color);
93
115
  font-weight: bold;
116
+ font-size: 18px;
94
117
  }
95
118
 
96
119
  .field-wrapper-email{
@@ -147,8 +170,8 @@ ion-label.message-placeholder{
147
170
  justify-content: center;
148
171
 
149
172
  ion-button{
150
- background-color:rgb(0,86,192);
151
- color:#f1f4f7;
173
+ background-color:var(--button-background-color);
174
+ color:var(--button-text-color);
152
175
  border-radius: 4px;
153
176
  font-size: 18px;
154
177
  height: 46px;
@@ -13,7 +13,7 @@
13
13
  <ion-content *ngIf="selectionView && !displayError" class="content-container">
14
14
 
15
15
 
16
- <ion-list lines="full">
16
+ <ion-list lines="full" color="none">
17
17
  <ion-item *ngFor="let template of templates" button detail="true" (click)="selectTemplate(template.id)">
18
18
  <ion-label>
19
19
  <div class="label-container">
@@ -1,3 +1,21 @@
1
+ ion-toolbar{
2
+ --background: var(--modal-header-background);
3
+ &:not(.mobile){
4
+ // --background: var(--list-bkg-color);
5
+ border: none;
6
+ }
7
+ &.mobile{
8
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
+ }
10
+ ion-button,
11
+ ion-title{
12
+ --color: var(--modal-icon-color);
13
+ }
14
+ }
15
+ ion-content{
16
+ --background: var(--modal-content-background);
17
+ }
18
+
1
19
  .error-container {
2
20
  margin-top: 70px;
3
21
  display: flex;
@@ -1,15 +1,14 @@
1
- <ion-header>
2
- <ion-toolbar [class.mobile]="isMobile">
3
- <ion-title>{{ 'LABEL_NEW_CHAT' | translate }}</ion-title>
1
+ <ion-toolbar [class.mobile]="isMobile">
2
+ <ion-title>{{ 'LABEL_NEW_CHAT' | translate }}</ion-title>
4
3
 
5
- <ion-buttons slot="end">
6
- <ion-button ion-button fill="clear" (click)="onClose()">
7
- <ion-icon slot="icon-only" name="close"></ion-icon>
8
- </ion-button>
9
- </ion-buttons>
4
+ <ion-buttons slot="end">
5
+ <ion-button ion-button fill="clear" (click)="onClose()">
6
+ <ion-icon slot="icon-only" name="close"></ion-icon>
7
+ </ion-button>
8
+ </ion-buttons>
9
+
10
+ </ion-toolbar>
10
11
 
11
- </ion-toolbar>
12
- </ion-header>
13
12
 
14
13
  <ion-content>
15
14
  <component-contacts-directory
@@ -1,15 +1,17 @@
1
1
  ion-toolbar {
2
2
  height: var(--header-height);
3
+ --background: transparent;
3
4
  &:not(.mobile){
4
- --background: var(--list-bkg-color);
5
+ // --background: var(--list-bkg-color);
5
6
  border: none;
6
7
  }
7
8
  &.mobile{
8
9
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
9
10
  }
10
11
 
11
- ion-button{
12
- --color: var(--basic-blue);
12
+ ion-button,
13
+ ion-title{
14
+ --color: var(--icon-color);
13
15
  }
14
16
  }
15
17
 
@@ -83,21 +83,6 @@ export class ContactsDirectoryPage implements OnInit {
83
83
  });
84
84
  }
85
85
 
86
- /** */
87
- getTokenFromLocalStorage() {
88
- let token = localStorage.getItem('tiledeskToken'); // ??? NN CREDO SIA USATO
89
- this.logger.log('[CONTACT-DIRECTORY-PAGE] getTokenFromLocalStorage token ', token);
90
- const user = JSON.parse(localStorage.getItem('user'));
91
- if (user) {
92
- this.logger.log('[CONTACT-DIRECTORY-PAGE] DSHBRD STORED USER: ', user);
93
- if (user.token) {
94
- token = user.token;
95
- this.logger.log('[CONTACTS-DIRECTORY] DSHBRD STORED USER > TOKEN: ', user.token);
96
- }
97
- }
98
- return token;
99
- }
100
-
101
86
  /** */
102
87
  async onClose() {
103
88
  this.logger.log('[CONTACT-DIRECTORY-PAGE] - onClose MODAL')
@@ -60,7 +60,7 @@ ion-content {
60
60
  &#conv-details:not(.mobile){
61
61
  --background: var(--list-bkg-color);
62
62
  }
63
- --background: white;
63
+ --background: transparent;;
64
64
 
65
65
  ion-item {
66
66
  --padding-end: 0px;
@@ -86,7 +86,7 @@ ion-content {
86
86
  position: absolute;
87
87
  top: 0;
88
88
  overflow: hidden;
89
- background-color: white;
89
+ background-color: var(--conversation-detail-background);
90
90
 
91
91
  &:not(.mobile){
92
92
  border-radius: var(--border-radius-content);;
@@ -105,7 +105,6 @@ ion-content {
105
105
  }
106
106
  .row_message_text_area {
107
107
  min-height: 50px;
108
- background-color: white;
109
108
  position: absolute;
110
109
  bottom: 0;
111
110
  width: calc(100% - 0px);
@@ -119,6 +118,7 @@ ion-content {
119
118
  height: 100%;
120
119
  margin: 0;
121
120
  padding: 0;
121
+ background: transparent;
122
122
  &.open {
123
123
  max-width: auto;
124
124
  min-width: calc(100% - 320px);
@@ -136,7 +136,7 @@ ion-content {
136
136
  padding: 0;
137
137
  margin: 0;
138
138
  border-left-style: solid;
139
- border-color: var(--light-gray);
139
+ border-color: var(--border-color-base);
140
140
  border-left-width: thin;
141
141
  display: block;
142
142
  overflow: hidden;
@@ -229,7 +229,7 @@ ion-content {
229
229
 
230
230
  .ionContentChatArea {
231
231
  opacity: 0;
232
- --background: white;
232
+ --background: var(--conversation-detail-background);
233
233
  &.active {
234
234
  opacity: 1;
235
235
  }
@@ -742,16 +742,16 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
742
742
  // .set('buttonTextColor', 'var(--buttonTextColor)')
743
743
  // .set('buttonHoverBackgroundColor', 'var(--buttonHoverBackgroundColor)')
744
744
  // .set('buttonHoverTextColor', 'var(--buttonHoverTextColor)')
745
- this.styleMap.set('themeColor', '#2a69c1')
746
- .set('bubbleReceivedBackground', '#f0f2f7')
747
- .set('bubbleReceivedTextColor', '#06132b')
748
- .set('bubbleSentBackground', '#2a6ac1')
749
- .set('bubbleSentTextColor', '#ffffff')
750
- .set('buttonFontSize', '15px')
751
- .set('buttonBackgroundColor', '#ffffff')
752
- .set('buttonTextColor', '#2a6ac1')
753
- .set('buttonHoverBackgroundColor', '#2a6ac1')
754
- .set('buttonHoverTextColor', ' #ffffff')
745
+ this.styleMap.set('themeColor', 'var(--basic-blue)')
746
+ .set('bubbleReceivedBackground', 'var(--bck-msg-received)')
747
+ .set('bubbleReceivedTextColor', 'var(--col-msg-received)')
748
+ .set('bubbleSentBackground', 'var(--bck-msg-sent)')
749
+ .set('bubbleSentTextColor', 'var(--col-msg-sent)')
750
+ .set('buttonFontSize', 'var(--button-in-msg-font-size)')
751
+ .set('buttonBackgroundColor', 'var(--buttonBackgroundColor)')
752
+ .set('buttonTextColor', 'var(--buttonTextColor)')
753
+ .set('buttonHoverBackgroundColor', 'var(--buttonHoverBackgroundColor)')
754
+ .set('buttonHoverTextColor', 'var(--buttonHoverTextColor)')
755
755
 
756
756
  }
757
757
  // -------------------------------------------------------------------------------------
@@ -39,7 +39,6 @@
39
39
  </ion-note> -->
40
40
 
41
41
  <app-project-item
42
- style="width: 100%; margin: 0px 8px; border-bottom: 1px dashed #d3dbe5;"
43
42
  (openUnsevedConvsEvent)="openUnsevedConversationIframe($event)"
44
43
  (projectIdEvent)="getLastProjectId($event)">
45
44
  </app-project-item>