@chat21/chat21-ionic 3.0.61-rc5 → 3.0.61

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 (115) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +6 -0
  3. package/angular.json +2 -0
  4. package/config.xml +4 -5
  5. package/deploy_pre.sh +10 -10
  6. package/deploy_prod.sh +4 -0
  7. package/env.sample +1 -1
  8. package/package.json +8 -8
  9. package/resources/{Android → android}/icon/drawable-hdpi-icon.png +0 -0
  10. package/resources/{Android → android}/icon/drawable-ldpi-icon.png +0 -0
  11. package/resources/{Android → android}/icon/drawable-mdpi-icon.png +0 -0
  12. package/resources/{Android → android}/icon/drawable-xhdpi-icon.png +0 -0
  13. package/resources/{Android → android}/icon/drawable-xxhdpi-icon.png +0 -0
  14. package/resources/{Android → android}/icon/drawable-xxxhdpi-icon.png +0 -0
  15. package/resources/{Android → android}/icon.png +0 -0
  16. package/resources/{Android → android}/splash/drawable-land-hdpi-screen.png +0 -0
  17. package/resources/{Android → android}/splash/drawable-land-ldpi-screen.png +0 -0
  18. package/resources/{Android → android}/splash/drawable-land-mdpi-screen.png +0 -0
  19. package/resources/{Android → android}/splash/drawable-land-xhdpi-screen.png +0 -0
  20. package/resources/{Android → android}/splash/drawable-land-xxhdpi-screen.png +0 -0
  21. package/resources/{Android → android}/splash/drawable-land-xxxhdpi-screen.png +0 -0
  22. package/resources/{Android → android}/splash/drawable-port-hdpi-screen.png +0 -0
  23. package/resources/{Android → android}/splash/drawable-port-ldpi-screen.png +0 -0
  24. package/resources/{Android → android}/splash/drawable-port-mdpi-screen.png +0 -0
  25. package/resources/{Android → android}/splash/drawable-port-xhdpi-screen.png +0 -0
  26. package/resources/{Android → android}/splash/drawable-port-xxhdpi-screen.png +0 -0
  27. package/resources/{Android → android}/splash/drawable-port-xxxhdpi-screen.png +0 -0
  28. package/resources/{Android → android}/splash.png +0 -0
  29. package/src/app/app-routing.module.ts +15 -0
  30. package/src/app/app.component.html +2 -2
  31. package/src/app/app.component.scss +2 -1
  32. package/src/app/app.component.ts +34 -20
  33. package/src/app/app.module.ts +11 -3
  34. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -25
  35. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +160 -50
  36. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +108 -18
  37. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +21 -36
  38. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +19 -7
  39. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +35 -40
  40. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -1
  41. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +78 -15
  42. package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +13 -10
  43. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +11 -4
  44. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +3 -1
  45. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +142 -71
  46. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +59 -22
  47. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +32 -9
  48. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +107 -23
  49. package/src/app/components/ddp-header/ddp-header.component.html +9 -2
  50. package/src/app/components/ddp-header/ddp-header.component.ts +93 -18
  51. package/src/app/components/project-item/project-item.component.html +1 -1
  52. package/src/app/components/project-item/project-item.component.scss +1 -1
  53. package/src/app/components/project-item/project-item.component.ts +3 -3
  54. package/src/app/components/sidebar/sidebar.component.html +151 -86
  55. package/src/app/components/sidebar/sidebar.component.scss +60 -3
  56. package/src/app/components/sidebar/sidebar.component.ts +173 -47
  57. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +26 -7
  58. package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +44 -19
  59. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +109 -35
  60. package/src/app/pages/conversation-detail/conversation-detail.module.ts +5 -1
  61. package/src/app/pages/conversation-detail/conversation-detail.page.html +19 -9
  62. package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
  63. package/src/app/pages/conversation-detail/conversation-detail.page.ts +1124 -778
  64. package/src/app/pages/conversations-list/conversations-list.page.html +3 -1
  65. package/src/app/pages/conversations-list/conversations-list.page.ts +647 -445
  66. package/src/app/pages/create-canned-response/create-canned-response-routing.module.ts +17 -0
  67. package/src/app/pages/create-canned-response/create-canned-response.module.ts +30 -0
  68. package/src/app/pages/create-canned-response/create-canned-response.page.html +150 -0
  69. package/src/app/pages/create-canned-response/create-canned-response.page.scss +55 -0
  70. package/src/app/pages/create-canned-response/create-canned-response.page.spec.ts +24 -0
  71. package/src/app/pages/create-canned-response/create-canned-response.page.ts +319 -0
  72. package/src/app/pages/create-requester/create-requester-routing.module.ts +17 -0
  73. package/src/app/pages/create-requester/create-requester.module.ts +28 -0
  74. package/src/app/pages/create-requester/create-requester.page.html +67 -0
  75. package/src/app/pages/create-requester/create-requester.page.scss +30 -0
  76. package/src/app/pages/create-requester/create-requester.page.spec.ts +24 -0
  77. package/src/app/pages/create-requester/create-requester.page.ts +138 -0
  78. package/src/app/pages/create-ticket/create-ticket-routing.module.ts +17 -0
  79. package/src/app/pages/create-ticket/create-ticket.module.ts +28 -0
  80. package/src/app/pages/create-ticket/create-ticket.page.html +171 -0
  81. package/src/app/pages/create-ticket/create-ticket.page.scss +52 -0
  82. package/src/app/pages/create-ticket/create-ticket.page.spec.ts +24 -0
  83. package/src/app/pages/create-ticket/create-ticket.page.ts +432 -0
  84. package/src/app/pages/loader-preview/loader-preview.page.ts +226 -166
  85. package/src/app/pages/profile-info/profile-info.page.html +2 -2
  86. package/src/app/pages/profile-info/profile-info.page.scss +13 -2
  87. package/src/app/services/tiledesk/tiledesk.service.ts +209 -0
  88. package/src/app/shared/shared.module.ts +1 -1
  89. package/src/assets/i18n/de.json +45 -7
  90. package/src/assets/i18n/en.json +41 -3
  91. package/src/assets/i18n/es.json +41 -3
  92. package/src/assets/i18n/fr.json +44 -6
  93. package/src/assets/i18n/it.json +41 -3
  94. package/src/assets/i18n/pt.json +41 -3
  95. package/src/assets/i18n/ru.json +42 -4
  96. package/src/assets/i18n/sr.json +265 -0
  97. package/src/assets/i18n/tr.json +41 -4
  98. package/src/assets/images/default-avatar-x-select.png +0 -0
  99. package/src/assets/images/priority_icons/high.svg +3 -0
  100. package/src/assets/images/priority_icons/high_v2.svg +14 -0
  101. package/src/assets/images/priority_icons/low.svg +10 -0
  102. package/src/assets/images/priority_icons/low_v2.svg +14 -0
  103. package/src/assets/images/priority_icons/medium.svg +16 -0
  104. package/src/assets/images/priority_icons/medium_v2.svg +11 -0
  105. package/src/assets/images/priority_icons/urgent.svg +4 -0
  106. package/src/assets/images/priority_icons/urgent_v2.svg +16 -0
  107. package/src/chat-config-mqtt.json +25 -16
  108. package/src/chat-config-template.json +5 -4
  109. package/src/chat-config.json +1 -0
  110. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +8 -3
  111. package/src/chat21-core/utils/constants.ts +6 -1
  112. package/src/chat21-core/utils/utils-message.ts +19 -0
  113. package/src/global.scss +65 -76
  114. package/publish_pre.sh +0 -33
  115. package/publish_prod.sh +0 -33
@@ -85,6 +85,25 @@ export function messageType(msgType: string, message: any) {
85
85
  }
86
86
  }
87
87
 
88
+ export function isEmojii(message: any){
89
+ if (message.length > 2) {
90
+ return false;
91
+ }
92
+ let fistChar = '';
93
+ try {
94
+ fistChar = message.trim(); // .charAt(0);
95
+ } catch (e) {
96
+ return false;
97
+ }
98
+
99
+ const ranges = ['(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])'];
100
+ if (fistChar.match(ranges.join('|'))) {
101
+ return true;
102
+ } else {
103
+ return false;
104
+ }
105
+ }
106
+
88
107
  /** */
89
108
  export function getSizeImg(message: any, maxWidthImage?: number): any {
90
109
  try {
package/src/global.scss CHANGED
@@ -542,6 +542,14 @@ select:-webkit-autofill:focus {
542
542
  color: #f44336;
543
543
  }
544
544
 
545
+ #canned > ion-list > ion-item > div > div.no-canned-available-text {
546
+ color: #1877f2 !important;
547
+ }
548
+
549
+ #canned > ion-list > ion-item > div > div.no-canned-available-text:hover {
550
+ text-decoration: underline;
551
+ }
552
+
545
553
  .highlight-search-string {
546
554
  color: #1877f2 !important;
547
555
  }
@@ -649,9 +657,9 @@ select:-webkit-autofill:focus {
649
657
  }
650
658
 
651
659
  .small-sidebar-tiledesk-nav-user {
652
- height: 40px;
653
- min-height: 40px;
654
- max-height: 40px;
660
+ height: 35px;
661
+ min-height: 35px;
662
+ max-height: 35px;
655
663
  }
656
664
 
657
665
  .user {
@@ -673,41 +681,41 @@ select:-webkit-autofill:focus {
673
681
  display: none;
674
682
  }
675
683
 
676
- .small-sidebar-email {
677
- display: none;
678
- }
684
+
679
685
 
680
686
  .tiledesk-nav-avatar {
681
687
  background-color: #2d323e !important;
682
688
  color: #fff !important;
683
689
  }
684
690
 
685
- .avatar-container {
691
+ .sidebar-avatar-container {
686
692
  text-align: center;
687
693
  cursor: pointer;
688
694
  position: absolute;
689
695
  // top: 80px;
690
696
  border-radius: 50%;
691
- padding: 4px;
697
+ // padding: 4px;
692
698
  -webkit-transform: translateX(-50%);
693
699
  transform: translateX(-50%);
694
700
  left: 50%;
701
+ width: 35px;
702
+ height: 35px;
695
703
  }
696
704
 
697
- .avatar-container .sidebar-avatar {
698
- width: 40px;
699
- height: 40px;
705
+ .sidebar-avatar-container .sidebar-avatar {
706
+ width: 35px;
707
+ height: 35px;
700
708
  margin: 0;
701
709
  border-radius: 50%;
702
710
  -o-object-fit: cover;
703
711
  object-fit: cover;
704
- min-width: 40px;
705
- max-width: 40px;
712
+ min-width: 35px;
713
+ max-width: 35px;
706
714
  }
707
715
 
708
716
  .small-sidebar-status-icon {
709
- left: 33px !important;
710
- bottom: 4px !important;
717
+ left: 26px !important;
718
+ bottom: -1px !important;
711
719
  width: 12px !important;
712
720
  height: 12px !important;
713
721
  }
@@ -739,11 +747,11 @@ select:-webkit-autofill:focus {
739
747
  }
740
748
 
741
749
  .sidebar--isBusy-icon-wpr {
742
- width: 14px;
743
- height: 14px;
750
+ width: 12px;
751
+ height: 12px;
744
752
  position: absolute;
745
- top: 12px;
746
- right: 37px;
753
+ top: -5px;
754
+ right: 25px;
747
755
  }
748
756
 
749
757
  @media (max-width: 991px) {
@@ -753,7 +761,7 @@ select:-webkit-autofill:focus {
753
761
  }
754
762
 
755
763
  .sidebar .nav {
756
- margin-top: 20px;
764
+ margin-top: 0px;
757
765
  }
758
766
 
759
767
  .nav {
@@ -776,8 +784,9 @@ select:-webkit-autofill:focus {
776
784
  margin-bottom: 5px;
777
785
  }
778
786
 
779
- .nav > li:hover {
780
- background-color: #eee;
787
+ .nav > li:hover > a > i {
788
+ // background-color: #eee;
789
+ color: #a9afbb
781
790
  }
782
791
 
783
792
  .sidebar .nav li > a {
@@ -793,7 +802,7 @@ select:-webkit-autofill:focus {
793
802
 
794
803
  .item-active {
795
804
  height: 40px;
796
- background-color: #3ea9f5;
805
+ // background-color: #3ea9f5;
797
806
  color: #fff !important;
798
807
  pointer-events: none;
799
808
  }
@@ -809,7 +818,7 @@ select:-webkit-autofill:focus {
809
818
  }
810
819
 
811
820
  .logo {
812
- background-color: #1e2129 !important;
821
+ background-color: #2d323e !important;
813
822
  padding-bottom: 5px;
814
823
  min-height: 60px;
815
824
  width: 60px; // for SMALL SIDEBAR
@@ -843,45 +852,39 @@ select:-webkit-autofill:focus {
843
852
  display: none;
844
853
  }
845
854
 
846
- .small-sidebar-status-icon {
847
- left: 33px !important;
848
- bottom: 4px !important;
849
- width: 12px !important;
850
- height: 12px !important;
851
- }
852
-
853
- .small-sidebar-status-text {
854
- display: none;
855
- }
856
-
857
- .small-sidebar-userfullname {
858
- display: none;
859
- }
860
-
861
- .small-sidebar-camera-icon {
862
- // top: 86px !important;
863
- top: 19px !important;
864
- }
865
855
 
866
856
  /* OVERWRITE THE DEFAULT STYLE */
867
857
  .nav-mobile-menu {
868
858
  margin-top: 45px !important;
869
859
  }
870
- /* // NK end NEW: AVATAR ON THE SIDEBAR */
871
860
 
872
- /* NK start CUSTOM SCROLL BAR */
873
861
 
874
- ::-webkit-scrollbar {
875
- width: 6px;
862
+ /* CUSTOM SCROLL BAR FOR LEFT SIDEBAR */
863
+ .sidebar-wrapper::-webkit-scrollbar {
864
+ width: 3px;
865
+ }
866
+ .sidebar-wrapper::-webkit-scrollbar-track {
867
+ background-color: #1c2b45;
868
+ }
869
+ .sidebar-wrapper::-webkit-scrollbar-thumb {
870
+ background-color: #3c485b;
871
+ border-radius: 3px;
872
+ }
873
+
874
+ /* CUSTOM SCROLL BAR FOR USER DETAILS DRAWER */
875
+ #user-details::-webkit-scrollbar {
876
+ width: 3px;
876
877
  }
877
- ::-webkit-scrollbar-track {
878
+
879
+ #user-details::-webkit-scrollbar-track {
878
880
  background-color: #1c2b45;
879
881
  }
880
- ::-webkit-scrollbar-thumb {
882
+ #user-details::-webkit-scrollbar-thumb {
881
883
  background-color: #3c485b;
882
884
  border-radius: 3px;
883
885
  }
884
- /* NK end CUSTOM SCROLL BAR */
886
+
887
+ /* end CUSTOM SCROLL BAR */
885
888
 
886
889
  /* SIDEBAR NAV ITEMS */
887
890
 
@@ -901,12 +904,7 @@ select:-webkit-autofill:focus {
901
904
  margin-top: 0px;
902
905
  }
903
906
 
904
- .logo {
905
- background-color: #1e2129 !important;
906
- padding-bottom: 5px;
907
- min-height: 60px;
908
- width: 60px; // for SMALL SIDEBAR
909
- }
907
+
910
908
 
911
909
  /* *** SMALL SIDEBAR STYLE *** */
912
910
  .small-sidebar-tiledesk-nav-user {
@@ -915,32 +913,16 @@ select:-webkit-autofill:focus {
915
913
  max-height: 40px;
916
914
  }
917
915
  .small-sidebar-avatar {
918
- top: 12px;
919
- }
920
-
921
- .small-sidebar-email {
922
- display: none;
916
+ top: 13px;
923
917
  }
924
-
925
- .small-sidebar-status-icon {
926
- left: 33px !important;
927
- bottom: 4px !important;
928
- width: 12px !important;
929
- height: 12px !important;
918
+ .small-sidebar-avatar-with-avatar {
919
+ top: 13px;
930
920
  }
931
921
 
932
922
  .small-sidebar-status-text {
933
923
  display: none;
934
924
  }
935
925
 
936
- .small-sidebar-userfullname {
937
- display: none;
938
- }
939
-
940
- .small-sidebar-camera-icon {
941
- // top: 86px !important;
942
- top: 19px !important;
943
- }
944
926
 
945
927
  /* OVERWRITE THE DEFAULT STYLE */
946
928
  .nav-mobile-menu {
@@ -997,6 +979,13 @@ ul.dropdown-menu > li > a {
997
979
  // line-height: 30px;
998
980
  width: 60px;
999
981
  text-align: center;
1000
- color: #a9afbb;
982
+ // color: #a9afbb;
983
+ color: #647491;
1001
984
  padding-top: 10px;
1002
985
  }
986
+
987
+ // ng-select custom class in Create ticket modal
988
+ .ng-select.create-ticket-custom-select {
989
+ margin-top: 5px !important;
990
+ }
991
+
package/publish_pre.sh DELETED
@@ -1,33 +0,0 @@
1
- npm version patch
2
- version=`node -e 'console.log(require("./package.json").version)'`
3
- echo "version $version"
4
-
5
- URL_VER=${version//[.]//}
6
- echo 'URL_VER: ---->'$URL_VER
7
-
8
- # if [ "$version" != "" ]; then
9
- # git tag -a "$version" -m "`git log -1 --format=%s`"
10
- # echo "Created a new tag, $version"
11
- # git push --tags
12
- # npm publish
13
- # fi
14
-
15
- # sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
16
- sed -i -e "s/$URL_VER/g" src/utils/constants.ts
17
- ionic cordova platform add browser --save
18
- #ionic cordova build --env=prod browser -- --base-href /www/ --prod
19
- ionic cordova build --env=prod browser --prod
20
- cp -p src/firebase-messaging-sw.js platforms/browser/www/
21
- cp -p src/manifest.json platforms/browser/www/
22
- cp -p src/chat-config.json platforms/browser/www/
23
-
24
- cd platforms/browser/www
25
- #aws s3 sync . s3://tiledesk-dashboard/chat/
26
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
27
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
28
- cd ../../../
29
- # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
30
-
31
- # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
32
- echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
33
- echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
package/publish_prod.sh DELETED
@@ -1,33 +0,0 @@
1
- npm version patch
2
- version=`node -e 'console.log(require("./package.json").version)'`
3
- echo "version $version"
4
-
5
- URL_VER=${version//[.]//}
6
- echo 'URL_VER: ---->'$URL_VER
7
-
8
- # if [ "$version" != "" ]; then
9
- # git tag -a "$version" -m "`git log -1 --format=%s`"
10
- # echo "Created a new tag, $version"
11
- # git push --tags
12
- # npm publish
13
- # fi
14
-
15
- # sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
16
- sed -i -e "s/$URL_VER/g" src/utils/constants.ts
17
- ionic cordova platform add browser --save
18
- #ionic cordova build --env=prod browser -- --base-href /www/ --prod
19
- ionic cordova build --env=prod browser --prod
20
- cp -p src/firebase-messaging-sw.js platforms/browser/www/
21
- cp -p src/manifest.json platforms/browser/www/
22
- cp -p src/chat-config.json platforms/browser/www/
23
-
24
- cd platforms/browser/www
25
- #aws s3 sync . s3://tiledesk-dashboard/chat/
26
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
27
- aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
28
- cd ../../../
29
- # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
30
-
31
- # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
32
- echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
33
- echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html