@chat21/chat21-ionic 3.0.101 → 3.0.103-rc.2
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 +20 -0
- package/angular.json +25 -11
- package/config.xml +5 -5
- package/package.json +76 -43
- package/src/app/app-routing.module.ts +21 -16
- package/src/app/app.component.ts +102 -116
- package/src/app/app.module.ts +29 -18
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.html +8 -8
- package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.scss +3 -3
- package/src/app/components/authentication/login/login.component.html +31 -2
- package/src/app/components/authentication/login/login.component.scss +63 -0
- package/src/app/components/authentication/login/login.component.ts +12 -5
- package/src/app/components/canned-response/canned-response.component.html +3 -0
- package/src/app/components/canned-response/canned-response.component.ts +7 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +2 -2
- package/src/app/components/conversation-info/conversation-info.module.ts +23 -1
- package/src/app/directives/marked.pipe.ts +1 -2
- package/src/app/modals/create-canned-response/create-canned-response.page.ts +1 -0
- package/src/app/modals/send-email/send-email.page.ts +4 -4
- package/src/app/modals/send-whatsapp-template/send-whatsapp-template.module.ts +0 -1
- package/src/app/pages/authentication/login/login.page.html +1 -1
- package/src/app/pages/authentication/login/login.page.ts +1 -1
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +55 -18
- package/src/app/pages/conversation-detail/conversation-detail.page.html +1 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +33 -13
- package/src/app/pages/conversations-list/conversations-list.module.ts +24 -4
- package/src/app/services/tiledesk/tiledesk.service.ts +2 -2
- package/src/app/shared/shared.module.ts +92 -69
- package/src/assets/i18n/en.json +30 -30
- package/src/assets/js/chat21client.js +9 -3
- package/src/chat21-core/models/projects.ts +9 -9
- package/src/chat21-core/providers/abstract/conversations-handler.service.ts +0 -1
- package/src/chat21-core/providers/abstract/groups-handler.service.ts +0 -1
- package/src/chat21-core/providers/abstract/notifications.service.ts +1 -1
- package/src/chat21-core/providers/firebase/firebase-notifications.ts +30 -15
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +0 -1
- package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +3 -3
- package/src/chat21-core/providers/mqtt/mqtt-notifications.ts +31 -5
- package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +0 -2
- package/src/chat21-core/utils/constants.ts +6 -0
- package/src/chat21-core/utils/convertRequestToConversation.ts +1 -1
- package/src/chat21-core/utils/utils-message.ts +4 -4
- package/src/chat21-core/utils/utils.ts +0 -16
- package/tsconfig.app.json +0 -1
- package/src/app/shared/shared-conversation-info.module.ts +0 -33
- package/src/models/department.ts +0 -12
|
@@ -654,22 +654,6 @@ export function searchEmailOrUrlInString(item) {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
|
|
658
|
-
export function isURL(str: string) {
|
|
659
|
-
var pattern = new RegExp('^(https?:\/\/)?' + // protocol
|
|
660
|
-
'((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|' + // domain name
|
|
661
|
-
'((\d{1,3}\.){3}\d{1,3}))' + // OR ip (v4) address
|
|
662
|
-
'(\:\d+)?(\/[-a-z\d%_.~+]*)*' + // port and path
|
|
663
|
-
'(\?[;&a-z\d%_.~+=-]*)?' + // query string
|
|
664
|
-
'(\#[-a-z\d_]*)?$', 'i'); // fragment locater
|
|
665
|
-
// console.log('pattern: ', pattern);
|
|
666
|
-
if (!pattern.test(str)) {
|
|
667
|
-
return false;
|
|
668
|
-
} else {
|
|
669
|
-
return true;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
|
|
673
657
|
export function convertColorToRGBA(color, opacity) {
|
|
674
658
|
let result = color;
|
|
675
659
|
// console.log('convertColorToRGBA' + color, opacity);
|
package/tsconfig.app.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { IonicModule } from '@ionic/angular';
|
|
4
|
-
|
|
5
|
-
// import { InfoContentComponent } from 'src/app/components/conversation-info/info-content/info-content.component';
|
|
6
|
-
// import { InfoSupportGroupComponent } from 'src/app/components/conversation-info/info-support-group/info-support-group.component';
|
|
7
|
-
// import { InfoDirectComponent } from 'src/app/components/conversation-info/info-direct/info-direct.component';
|
|
8
|
-
// import { InfoGroupComponent } from 'src/app/components/conversation-info/info-group/info-group.component';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@NgModule({
|
|
12
|
-
declarations: [
|
|
13
|
-
// InfoContentComponent,
|
|
14
|
-
// InfoSupportGroupComponent,
|
|
15
|
-
// InfoDirectComponent,
|
|
16
|
-
// InfoGroupComponent
|
|
17
|
-
],
|
|
18
|
-
exports: [
|
|
19
|
-
// InfoContentComponent,
|
|
20
|
-
// InfoSupportGroupComponent,
|
|
21
|
-
// InfoDirectComponent,
|
|
22
|
-
// InfoGroupComponent
|
|
23
|
-
],
|
|
24
|
-
imports: [
|
|
25
|
-
CommonModule,
|
|
26
|
-
IonicModule
|
|
27
|
-
],
|
|
28
|
-
schemas: [
|
|
29
|
-
CUSTOM_ELEMENTS_SCHEMA,
|
|
30
|
-
NO_ERRORS_SCHEMA
|
|
31
|
-
]
|
|
32
|
-
})
|
|
33
|
-
export class SharedConversationInfoModule { }
|
package/src/models/department.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class DepartmentModel {
|
|
2
|
-
constructor(
|
|
3
|
-
public appId: string,
|
|
4
|
-
public createdAt: string,
|
|
5
|
-
public createdBy: string,
|
|
6
|
-
public name: string,
|
|
7
|
-
public updatedAt: string,
|
|
8
|
-
public _id: string,
|
|
9
|
-
public offline_msg: string,
|
|
10
|
-
public online_msg: string
|
|
11
|
-
) { }
|
|
12
|
-
}
|