@chat21/chat21-ionic 3.0.5-9.2 → 3.0.6-2.3
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 +202 -0
- package/LICENSE +661 -21
- package/README.md +13 -1
- package/angular.json +4 -0
- package/config.xml +4 -5
- package/deploy_pre.sh +44 -5
- package/deploy_prod.sh +36 -7
- package/env.sample +4 -2
- package/package.json +12 -8
- 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 +98 -37
- package/src/app/app.module.ts +14 -5
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -25
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +160 -50
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +108 -18
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +21 -36
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +19 -7
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +63 -42
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -1
- 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 +141 -21
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +13 -10
- 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 +101 -39
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +73 -2
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +168 -98
- 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/image-viewer/image-viewer.component.scss +2 -2
- package/src/app/components/project-item/project-item.component.html +141 -118
- package/src/app/components/project-item/project-item.component.scss +173 -91
- package/src/app/components/project-item/project-item.component.ts +59 -25
- 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 +541 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +137 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +389 -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 +530 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +9 -2
- package/src/app/pages/conversation-detail/conversation-detail.page.html +53 -49
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1254 -753
- package/src/app/pages/conversations-list/conversations-list.module.ts +2 -1
- package/src/app/pages/conversations-list/conversations-list.page.html +24 -11
- package/src/app/pages/conversations-list/conversations-list.page.scss +20 -1
- package/src/app/pages/conversations-list/conversations-list.page.ts +687 -420
- 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/pages/unassigned-conversations/unassigned-conversations.page.html +16 -11
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +157 -63
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +51 -16
- package/src/app/services/app-config.ts +14 -14
- package/src/app/services/tiledesk/tiledesk.service.ts +209 -0
- package/src/app/shared/shared.module.ts +21 -7
- package/src/app/utils/scrollbar-theme.directive.ts +58 -24
- package/src/assets/i18n/de.json +266 -0
- package/src/assets/i18n/en.json +85 -10
- package/src/assets/i18n/es.json +266 -0
- package/src/assets/i18n/fr.json +266 -0
- package/src/assets/i18n/it.json +104 -37
- package/src/assets/i18n/pt.json +266 -0
- package/src/assets/i18n/ru.json +266 -0
- package/src/assets/i18n/sr.json +266 -0
- package/src/assets/i18n/tr.json +266 -0
- 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/js/chat21client.js +16 -3
- package/src/assets/tiledesk-solo-logo.png +0 -0
- package/src/chat-config-mqtt.json +27 -17
- package/src/chat-config-pre-test.json +5 -1
- package/src/chat-config-pre.json +15 -3
- package/src/chat-config-template.json +6 -2
- package/src/chat-config.json +5 -1
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +61 -45
- package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +23 -0
- package/src/chat21-core/providers/mqtt/mqtt-archivedconversations-handler.ts +1 -1
- package/src/chat21-core/utils/constants.ts +8 -1
- package/src/chat21-core/utils/utils-message.ts +19 -0
- package/src/chat21-core/utils/utils.ts +12 -1
- package/src/global.scss +408 -2
- package/src/index.html +7 -0
- package/publish_pre.sh +0 -33
- package/publish_prod.sh +0 -33
|
@@ -91,9 +91,218 @@ export class TiledeskService {
|
|
|
91
91
|
}))
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
|
|
95
|
+
public getProjectById( token: string , id: string) {
|
|
96
|
+
const url = this.apiUrl + 'projects/' + id;
|
|
97
|
+
this.logger.log('[TILEDESK-SERVICE] - GET PROJECT BY ID URL', url);
|
|
98
|
+
|
|
99
|
+
const httpOptions = {
|
|
100
|
+
headers: new HttpHeaders({
|
|
101
|
+
'Content-Type': 'application/json',
|
|
102
|
+
Authorization: token
|
|
103
|
+
})
|
|
104
|
+
};
|
|
105
|
+
return this.http
|
|
106
|
+
.get(url, httpOptions)
|
|
107
|
+
.pipe(map((res: any) => {
|
|
108
|
+
this.logger.log('[TILEDESK-SERVICE] GET PROJECT BY ID URL - RES ', res);
|
|
109
|
+
return res
|
|
110
|
+
}))
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
public getProjectUsersByProjectId(project_id: string, token: string) {
|
|
115
|
+
const url = this.apiUrl + project_id + '/project_users/';
|
|
116
|
+
this.logger.log('[TILEDESK-SERVICE] - GET PROJECT-USER URL', url);
|
|
117
|
+
|
|
118
|
+
const httpOptions = {
|
|
119
|
+
headers: new HttpHeaders({
|
|
120
|
+
'Content-Type': 'application/json',
|
|
121
|
+
Authorization: token
|
|
122
|
+
})
|
|
123
|
+
};
|
|
124
|
+
return this.http
|
|
125
|
+
.get(url, httpOptions)
|
|
126
|
+
.pipe(map((res: any) => {
|
|
127
|
+
this.logger.log('[TILEDESK-SERVICE] - GET PROJECT-USER RES ', res);
|
|
128
|
+
return res
|
|
129
|
+
}))
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public getAllLeadsActiveWithLimit(project_id: string, token: string, limit: number) {
|
|
133
|
+
const url = this.apiUrl + project_id + '/leads?limit=' + limit + '&with_fullname=true';
|
|
134
|
+
this.logger.log('[TILEDESK-SERVICE] - GET ALL ACTIVE LEADS (LIMIT 10000) - URL', url);
|
|
135
|
+
|
|
136
|
+
const httpOptions = {
|
|
137
|
+
headers: new HttpHeaders({
|
|
138
|
+
'Content-Type': 'application/json',
|
|
139
|
+
Authorization: token
|
|
140
|
+
})
|
|
141
|
+
};
|
|
142
|
+
return this.http
|
|
143
|
+
.get(url, httpOptions)
|
|
144
|
+
.pipe(map((res: any) => {
|
|
145
|
+
this.logger.log('[TILEDESK-SERVICE] - GET ALL ACTIVE LEADS (LIMIT 10000) ', res);
|
|
146
|
+
return res
|
|
147
|
+
}))
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
// ---------------------------------------------
|
|
152
|
+
// @ Create new project user to get new lead ID
|
|
153
|
+
// ---------------------------------------------
|
|
154
|
+
public createNewProjectUserToGetNewLeadID(project_id: string, token: string) {
|
|
155
|
+
const url = this.apiUrl + project_id + '/project_users/'
|
|
156
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW PROJECT USER TO GET NEW LEAD ID url ', url);
|
|
157
|
+
const httpOptions = {
|
|
158
|
+
headers: new HttpHeaders({
|
|
159
|
+
'Content-Type': 'application/json',
|
|
160
|
+
Authorization: token
|
|
161
|
+
})
|
|
162
|
+
};
|
|
163
|
+
const body = {};
|
|
164
|
+
return this.http
|
|
165
|
+
.post(url, body, httpOptions)
|
|
166
|
+
.pipe(map((res: any) => {
|
|
167
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW PROJECT USER TO GET NEW LEAD ID url ', res);
|
|
168
|
+
return res
|
|
169
|
+
}))
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// ---------------------------------------------
|
|
173
|
+
// @ Create new lead
|
|
174
|
+
// ---------------------------------------------
|
|
175
|
+
public createNewLead(leadid: string, fullname: string, leademail: string, project_id: string, token: string) {
|
|
176
|
+
const url = this.apiUrl + project_id + '/leads/'
|
|
177
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW LEAD url ', url);
|
|
178
|
+
|
|
179
|
+
const httpOptions = {
|
|
180
|
+
headers: new HttpHeaders({
|
|
181
|
+
'Content-Type': 'application/json',
|
|
182
|
+
Authorization: token
|
|
183
|
+
})
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const body = { 'lead_id': leadid, 'fullname': fullname, 'email': leademail };
|
|
187
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW LEAD ', body);
|
|
188
|
+
|
|
189
|
+
return this.http
|
|
190
|
+
.post(url, body, httpOptions)
|
|
191
|
+
.pipe(map((res: any) => {
|
|
192
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW LEAD RES ', res);
|
|
193
|
+
return res
|
|
194
|
+
}))
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// -------------------------------------------------------------------------------------
|
|
198
|
+
// @ Get all bots of the project (with all=true the response return also the identity bot)
|
|
199
|
+
// -------------------------------------------------------------------------------------
|
|
200
|
+
public getAllBotByProjectId(project_id: string, token: string) {
|
|
201
|
+
|
|
202
|
+
const url = this.apiUrl + project_id + '/faq_kb?all=true'
|
|
203
|
+
this.logger.log('[TILEDESK-SERVICE] - GET ALL BOTS BY PROJECT ID - URL', url);
|
|
204
|
+
|
|
205
|
+
const httpOptions = {
|
|
206
|
+
headers: new HttpHeaders({
|
|
207
|
+
'Content-Type': 'application/json',
|
|
208
|
+
Authorization: token
|
|
209
|
+
})
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
return this.http
|
|
213
|
+
.get(url, httpOptions)
|
|
214
|
+
.pipe(map((res: any) => {
|
|
215
|
+
this.logger.log('[TILEDESK-SERVICE] - GET ALL BOTS BY PROJECT ID - RES ', res);
|
|
216
|
+
return res
|
|
217
|
+
}))
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// -------------------------------------------------------------------------------------
|
|
221
|
+
// @ Get all DEPTS of the project
|
|
222
|
+
// -------------------------------------------------------------------------------------
|
|
223
|
+
public getDeptsByProjectId(project_id: string, token: string) {
|
|
224
|
+
|
|
225
|
+
const url = this.apiUrl + project_id + '/departments/allstatus';
|
|
226
|
+
this.logger.log('[TILEDESK-SERVICE] - GET DEPTS (ALL STATUS) - URL', url);
|
|
227
|
+
|
|
228
|
+
const httpOptions = {
|
|
229
|
+
headers: new HttpHeaders({
|
|
230
|
+
'Content-Type': 'application/json',
|
|
231
|
+
Authorization: token
|
|
232
|
+
})
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
return this.http
|
|
236
|
+
.get(url, httpOptions)
|
|
237
|
+
.pipe(map((res: any) => {
|
|
238
|
+
this.logger.log('[TILEDESK-SERVICE] - GET DEPTS (ALL STATUS) - RES ', res);
|
|
239
|
+
return res
|
|
240
|
+
}))
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// -----------------------------------------------------------------------------------------
|
|
244
|
+
// @ Create ticket
|
|
245
|
+
// -----------------------------------------------------------------------------------------
|
|
246
|
+
createInternalRequest(requester_id: string, request_id: string, subject: string, message: string, departmentid: string, participantid: string, ticketpriority: string, project_id: string, token: string) {
|
|
247
|
+
|
|
248
|
+
const url = this.apiUrl + project_id + '/requests/' + request_id + '/messages'
|
|
249
|
+
this.logger.log('[WS-REQUESTS-SERV] - CREATE INTERNAL REQUEST URL ', url)
|
|
250
|
+
|
|
251
|
+
const httpOptions = {
|
|
252
|
+
headers: new HttpHeaders({
|
|
253
|
+
'Content-Type': 'application/json',
|
|
254
|
+
Authorization: token
|
|
255
|
+
})
|
|
256
|
+
};
|
|
257
|
+
// this.logger.log('JOIN FUNCT OPTIONS ', options);
|
|
258
|
+
let body = {}
|
|
259
|
+
body = { 'sender': requester_id, 'subject': subject, 'text': message, 'departmentid': departmentid, 'channel': { 'name': 'form' }, 'priority': ticketpriority };
|
|
260
|
+
if (participantid !== undefined) {
|
|
261
|
+
body['participants'] = [participantid]
|
|
262
|
+
} else {
|
|
263
|
+
body['participants'] = participantid
|
|
264
|
+
}
|
|
265
|
+
// , 'participants': [participantid]
|
|
266
|
+
|
|
267
|
+
this.logger.log('[WS-REQUESTS-SERV] - CREATE INTERNAL REQUEST body ', body);
|
|
268
|
+
return this.http
|
|
269
|
+
.post(url, body, httpOptions)
|
|
270
|
+
.pipe(map((res: any) => {
|
|
271
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE NEW LEAD RES ', res);
|
|
272
|
+
return res
|
|
273
|
+
}))
|
|
274
|
+
}
|
|
94
275
|
|
|
95
276
|
|
|
277
|
+
// -------------------------------------------------------------------------------------
|
|
278
|
+
// @ Create - Save (POST) new canned response
|
|
279
|
+
// -------------------------------------------------------------------------------------
|
|
280
|
+
public createCannedResponse(message: string, title: string, project_id: string, token: string) {
|
|
281
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE CANNED-RES - token', token);
|
|
282
|
+
const url = this.apiUrl + project_id + '/canned/'
|
|
283
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE CANNED-RES - URL', url);
|
|
284
|
+
|
|
285
|
+
const httpOptions = {
|
|
286
|
+
headers: new HttpHeaders({
|
|
287
|
+
'Content-Type': 'application/json',
|
|
288
|
+
Authorization: token
|
|
289
|
+
})
|
|
290
|
+
};
|
|
96
291
|
|
|
292
|
+
const body = { 'text': message, 'title': title };
|
|
293
|
+
|
|
294
|
+
this.logger.log('[TILEDESK-SERVICE] CREATE CANNED-RES - BODY ', body);
|
|
295
|
+
|
|
296
|
+
return this.http
|
|
297
|
+
.post(url, JSON.stringify(body), httpOptions)
|
|
298
|
+
.pipe(map((res: any) => {
|
|
299
|
+
this.logger.log('[TILEDESK-SERVICE] - CREATE CANNED-RES - RES ', res);
|
|
300
|
+
return res
|
|
301
|
+
}))
|
|
302
|
+
|
|
303
|
+
}
|
|
97
304
|
|
|
305
|
+
// .post(url, JSON.stringify(body), options)
|
|
306
|
+
// .map((res) => res.json());
|
|
98
307
|
|
|
99
308
|
}
|
|
@@ -35,14 +35,23 @@ import { InfoSupportGroupComponent } from '../components/conversation-info/info-
|
|
|
35
35
|
import { InfoDirectComponent } from '../components/conversation-info/info-direct/info-direct.component';
|
|
36
36
|
import { AdvancedInfoAccordionComponent } from '../components/conversation-info/advanced-info-accordion/advanced-info-accordion.component';
|
|
37
37
|
import { InfoGroupComponent } from '../components/conversation-info/info-group/info-group.component';
|
|
38
|
-
import { TooltipModule } from 'ng2-tooltip-directive';
|
|
38
|
+
import { TooltipModule, TooltipOptions } from 'ng2-tooltip-directive';
|
|
39
39
|
import { OptionHeaderComponent } from '../components/conversation-detail/option-header/option-header.component';
|
|
40
40
|
import { MessageAttachmentComponent } from '../chatlib/conversation-detail/message/message-attachment/message-attachment.component';
|
|
41
41
|
import { ImageViewerComponent } from '../components/image-viewer/image-viewer.component';
|
|
42
|
+
import { SidebarComponent } from '../components/sidebar/sidebar.component';
|
|
43
|
+
import { SidebarUserDetailsComponent } from '../components/sidebar-user-details/sidebar-user-details.component';
|
|
42
44
|
import { ProjectItemComponent } from '../components/project-item/project-item.component';
|
|
45
|
+
import { DefaultTooltipOptions } from 'src/chat21-core/utils/utils';
|
|
46
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
47
|
+
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
48
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
49
|
+
|
|
50
|
+
// import { MessageTextAreaComponent } from '../components/conversation-detail/message-text-area/message-text-area.component'; // MessageTextAreaComponent is part of the declarations ConversationDetailPageModule
|
|
43
51
|
|
|
44
52
|
@NgModule({
|
|
45
53
|
declarations: [
|
|
54
|
+
// MessageTextAreaComponent,
|
|
46
55
|
AvatarProfileComponent,
|
|
47
56
|
DdpHeaderComponent,
|
|
48
57
|
UserPresenceComponent,
|
|
@@ -50,6 +59,8 @@ import { ProjectItemComponent } from '../components/project-item/project-item.co
|
|
|
50
59
|
ListConversationsComponent,
|
|
51
60
|
IonListConversationsComponent,
|
|
52
61
|
ImageViewerComponent,
|
|
62
|
+
SidebarComponent,
|
|
63
|
+
SidebarUserDetailsComponent,
|
|
53
64
|
ProjectItemComponent,
|
|
54
65
|
IonConversationDetailComponent,
|
|
55
66
|
ConversationContentComponent,
|
|
@@ -64,8 +75,7 @@ import { ProjectItemComponent } from '../components/project-item/project-item.co
|
|
|
64
75
|
InfoMessageComponent,
|
|
65
76
|
ReturnReceiptComponent,
|
|
66
77
|
TextComponent,
|
|
67
|
-
|
|
68
|
-
BubbleDayMessageComponent,
|
|
78
|
+
BubbleDayMessageComponent,
|
|
69
79
|
BubbleSystemMessageComponent,
|
|
70
80
|
BubbleMyMessageComponent,
|
|
71
81
|
BubbleOthersMessageComponent,
|
|
@@ -80,16 +90,18 @@ import { ProjectItemComponent } from '../components/project-item/project-item.co
|
|
|
80
90
|
OptionHeaderComponent
|
|
81
91
|
],
|
|
82
92
|
exports: [
|
|
93
|
+
// MessageTextAreaComponent,
|
|
83
94
|
AutofocusDirective,
|
|
84
95
|
AvatarProfileComponent,
|
|
85
96
|
DdpHeaderComponent,
|
|
86
97
|
ImageViewerComponent,
|
|
98
|
+
SidebarComponent,
|
|
99
|
+
SidebarUserDetailsComponent,
|
|
87
100
|
ProjectItemComponent,
|
|
88
101
|
UserPresenceComponent,
|
|
89
102
|
UserTypingComponent,
|
|
90
103
|
ListConversationsComponent,
|
|
91
104
|
IonListConversationsComponent,
|
|
92
|
-
|
|
93
105
|
IonConversationDetailComponent,
|
|
94
106
|
ConversationContentComponent,
|
|
95
107
|
AvatarComponent,
|
|
@@ -102,7 +114,6 @@ import { ProjectItemComponent } from '../components/project-item/project-item.co
|
|
|
102
114
|
InfoMessageComponent,
|
|
103
115
|
ReturnReceiptComponent,
|
|
104
116
|
TextComponent,
|
|
105
|
-
|
|
106
117
|
BubbleDayMessageComponent,
|
|
107
118
|
BubbleSystemMessageComponent,
|
|
108
119
|
BubbleMyMessageComponent,
|
|
@@ -116,11 +127,14 @@ import { ProjectItemComponent } from '../components/project-item/project-item.co
|
|
|
116
127
|
|
|
117
128
|
],
|
|
118
129
|
imports: [
|
|
130
|
+
MatTooltipModule,
|
|
131
|
+
MatSlideToggleModule,
|
|
132
|
+
MatSnackBarModule,
|
|
119
133
|
CommonModule,
|
|
120
134
|
IonicModule,
|
|
121
135
|
MomentModule,
|
|
122
|
-
TooltipModule
|
|
123
|
-
|
|
136
|
+
TooltipModule.forRoot(DefaultTooltipOptions as TooltipOptions)
|
|
137
|
+
|
|
124
138
|
],
|
|
125
139
|
schemas: [
|
|
126
140
|
CUSTOM_ELEMENTS_SCHEMA,
|
|
@@ -4,42 +4,76 @@ import { NgModule, Directive, ElementRef } from '@angular/core';
|
|
|
4
4
|
})
|
|
5
5
|
export class ScrollbarThemeDirective {
|
|
6
6
|
constructor(el: ElementRef) {
|
|
7
|
+
// ::-webkit-scrollbar {
|
|
8
|
+
// width: 6px;
|
|
9
|
+
// height: 8px;
|
|
10
|
+
// }
|
|
11
|
+
// ::-webkit-scrollbar-track {
|
|
12
|
+
// background-color: #f9f9f9;
|
|
13
|
+
// }
|
|
14
|
+
// ::-webkit-scrollbar-thumb {
|
|
15
|
+
// background-color: #b9b9b9;
|
|
16
|
+
// border-radius: 0px;
|
|
17
|
+
// }
|
|
18
|
+
|
|
19
|
+
// ::-webkit-scrollbar-thumb:hover {
|
|
20
|
+
// background-color: #727272;
|
|
21
|
+
// }
|
|
22
|
+
|
|
7
23
|
const stylesheet = `
|
|
8
24
|
::-webkit-scrollbar {
|
|
9
|
-
|
|
25
|
+
width: 6px;
|
|
26
|
+
height: 8px;
|
|
10
27
|
}
|
|
11
28
|
::-webkit-scrollbar-track {
|
|
12
|
-
background: #
|
|
29
|
+
background: #f9f9f9;
|
|
13
30
|
}
|
|
14
31
|
::-webkit-scrollbar-thumb {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
border: 4px solid #020202;
|
|
32
|
+
background-color: #b9b9b9;
|
|
33
|
+
border-radius: 0px;
|
|
18
34
|
}
|
|
19
35
|
::-webkit-scrollbar-thumb:hover {
|
|
36
|
+
background-color: #727272;
|
|
20
37
|
}
|
|
38
|
+
`;
|
|
21
39
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
40
|
+
|
|
41
|
+
// const stylesheet = `
|
|
42
|
+
// ::-webkit-scrollbar {
|
|
43
|
+
// width: 10px;
|
|
44
|
+
// }
|
|
45
|
+
// ::-webkit-scrollbar-track {
|
|
46
|
+
// background: #0f0f0f;
|
|
47
|
+
// }
|
|
48
|
+
// ::-webkit-scrollbar-thumb {
|
|
49
|
+
// border-radius: 1rem;
|
|
50
|
+
// background: linear-gradient(var(--ion-color-light-tint), var(--ion-color-light));
|
|
51
|
+
// border: 4px solid #020202;
|
|
52
|
+
// }
|
|
53
|
+
// ::-webkit-scrollbar-thumb:hover {
|
|
54
|
+
// }
|
|
55
|
+
|
|
56
|
+
// ::-webkit-scrollbar {
|
|
57
|
+
// width: 20px;
|
|
58
|
+
// }
|
|
25
59
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
60
|
+
// /* Track */
|
|
61
|
+
// ::-webkit-scrollbar-track {
|
|
62
|
+
// box-shadow: inset 0 0 5px grey;
|
|
63
|
+
// border-radius: 10px;
|
|
64
|
+
// }
|
|
31
65
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
66
|
+
// /* Handle */
|
|
67
|
+
// ::-webkit-scrollbar-thumb {
|
|
68
|
+
// background: red;
|
|
69
|
+
// border-radius: 10px;
|
|
70
|
+
// }
|
|
37
71
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
`;
|
|
72
|
+
// /* Handle on hover */
|
|
73
|
+
// ::-webkit-scrollbar-thumb:hover {
|
|
74
|
+
// background: #b30000;
|
|
75
|
+
// }
|
|
76
|
+
// `;
|
|
43
77
|
|
|
44
78
|
setTimeout(() => {
|
|
45
79
|
const styleElmt = el.nativeElement.shadowRoot.querySelector('style');
|
|
@@ -50,7 +84,7 @@ export class ScrollbarThemeDirective {
|
|
|
50
84
|
barStyle.append(stylesheet);
|
|
51
85
|
el.nativeElement.shadowRoot.appendChild(barStyle);
|
|
52
86
|
}
|
|
53
|
-
},
|
|
87
|
+
}, 0);
|
|
54
88
|
|
|
55
89
|
}
|
|
56
90
|
}
|