@chat21/chat21-ionic 3.0.60 → 3.0.61-rc2

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 (86) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +2 -0
  3. package/angular.json +2 -0
  4. package/env.sample +3 -1
  5. package/package.json +5 -1
  6. package/src/app/app.component.html +11 -2
  7. package/src/app/app.component.scss +13 -1
  8. package/src/app/app.component.ts +26 -3
  9. package/src/app/app.module.ts +2 -1
  10. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +2 -2
  11. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +24 -1
  12. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +2 -3
  13. package/src/app/components/conversation-info/info-content/info-content.component.html +2 -2
  14. package/src/app/components/ddp-header/ddp-header.component.html +14 -7
  15. package/src/app/components/ddp-header/ddp-header.component.scss +4 -0
  16. package/src/app/components/ddp-header/ddp-header.component.ts +21 -2
  17. package/src/app/components/project-item/project-item.component.html +7 -6
  18. package/src/app/components/project-item/project-item.component.scss +6 -1
  19. package/src/app/components/project-item/project-item.component.ts +15 -2
  20. package/src/app/components/sidebar/sidebar.component.html +210 -0
  21. package/src/app/components/sidebar/sidebar.component.scss +11 -0
  22. package/src/app/components/sidebar/sidebar.component.spec.ts +24 -0
  23. package/src/app/components/sidebar/sidebar.component.ts +400 -0
  24. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +102 -0
  25. package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +310 -0
  26. package/src/app/components/sidebar-user-details/sidebar-user-details.component.spec.ts +24 -0
  27. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +423 -0
  28. package/src/app/pages/conversation-detail/conversation-detail.page.ts +21 -20
  29. package/src/app/pages/conversations-list/conversations-list.page.html +11 -5
  30. package/src/app/pages/conversations-list/conversations-list.page.ts +33 -8
  31. package/src/app/pages/profile-info/profile-info.page.html +2 -2
  32. package/src/app/pages/profile-info/profile-info.page.ts +23 -21
  33. package/src/app/shared/shared.module.ts +13 -0
  34. package/src/assets/i18n/de.json +29 -12
  35. package/src/assets/i18n/en.json +21 -4
  36. package/src/assets/i18n/es.json +21 -4
  37. package/src/assets/i18n/fr.json +21 -4
  38. package/src/assets/i18n/it.json +21 -4
  39. package/src/assets/i18n/pt.json +21 -4
  40. package/src/assets/i18n/ru.json +21 -4
  41. package/src/assets/i18n/tr.json +23 -5
  42. package/src/assets/images/language_flag/ar.png +0 -0
  43. package/src/assets/images/language_flag/bg.png +0 -0
  44. package/src/assets/images/language_flag/ca.png +0 -0
  45. package/src/assets/images/language_flag/cs.png +0 -0
  46. package/src/assets/images/language_flag/da.png +0 -0
  47. package/src/assets/images/language_flag/de.png +0 -0
  48. package/src/assets/images/language_flag/el.png +0 -0
  49. package/src/assets/images/language_flag/en.png +0 -0
  50. package/src/assets/images/language_flag/es.png +0 -0
  51. package/src/assets/images/language_flag/fa.png +0 -0
  52. package/src/assets/images/language_flag/fi.png +0 -0
  53. package/src/assets/images/language_flag/fr.png +0 -0
  54. package/src/assets/images/language_flag/he.png +0 -0
  55. package/src/assets/images/language_flag/hi.png +0 -0
  56. package/src/assets/images/language_flag/hu.png +0 -0
  57. package/src/assets/images/language_flag/id.png +0 -0
  58. package/src/assets/images/language_flag/it.png +0 -0
  59. package/src/assets/images/language_flag/ja.png +0 -0
  60. package/src/assets/images/language_flag/ko.png +0 -0
  61. package/src/assets/images/language_flag/ml-IN.png +0 -0
  62. package/src/assets/images/language_flag/ne-NP.png +0 -0
  63. package/src/assets/images/language_flag/nl.png +0 -0
  64. package/src/assets/images/language_flag/no.png +0 -0
  65. package/src/assets/images/language_flag/pl.png +0 -0
  66. package/src/assets/images/language_flag/pt-BR.png +0 -0
  67. package/src/assets/images/language_flag/pt.png +0 -0
  68. package/src/assets/images/language_flag/ro.png +0 -0
  69. package/src/assets/images/language_flag/ru.png +0 -0
  70. package/src/assets/images/language_flag/sk.png +0 -0
  71. package/src/assets/images/language_flag/sl.png +0 -0
  72. package/src/assets/images/language_flag/sv-SE.png +0 -0
  73. package/src/assets/images/language_flag/ta.png +0 -0
  74. package/src/assets/images/language_flag/th.png +0 -0
  75. package/src/assets/images/language_flag/tr.png +0 -0
  76. package/src/assets/images/language_flag/uk.png +0 -0
  77. package/src/assets/images/language_flag/vi.png +0 -0
  78. package/src/assets/images/language_flag/zh-CN.png +0 -0
  79. package/src/assets/images/language_flag/zh-TW.png +0 -0
  80. package/src/assets/images/no_image_user.png +0 -0
  81. package/src/assets/tiledesk-solo-logo.png +0 -0
  82. package/src/chat-config-pre-test.json +3 -1
  83. package/src/chat-config-template.json +3 -1
  84. package/src/chat-config.json +4 -2
  85. package/src/global.scss +451 -3
  86. package/src/index.html +7 -0
package/src/global.scss CHANGED
@@ -48,9 +48,17 @@ body {
48
48
  user-select: text;
49
49
  -webkit-font-smoothing: antialiased;
50
50
  -moz-osx-font-smoothing: grayscale;
51
- font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
51
+ // font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
52
+ font-family: "Roboto", "Helvetica", "Arial", sans-serif;
52
53
  overflow: auto;
53
54
  text-rendering: optimizeLegibility;
55
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
56
+ -webkit-tap-highlight-color: transparent;
57
+ text-size-adjust: 100% !important;
58
+ // -webkit-font-smoothing: subpixel-antialiased !important;
59
+ // text-shadow: 0px 0px 0px !important;
60
+ // -webkit-text-stroke-width: 0.01px !important;
61
+
54
62
  }
55
63
 
56
64
  // Ionic 'Split Pane' styles need to be tweaked to
@@ -407,7 +415,7 @@ select:-webkit-autofill:focus {
407
415
  }
408
416
 
409
417
  .chat-tooltip {
410
- font-family: "Roboto", "Google Sans", Helvetica, Arial, sans-serif;
418
+ font-family: "Roboto", Helvetica, Arial, sans-serif;
411
419
  font-size: 12px;
412
420
  font-style: normal;
413
421
  letter-spacing: normal;
@@ -532,7 +540,7 @@ select:-webkit-autofill:focus {
532
540
  }
533
541
 
534
542
  #canned > ion-list > ion-item > div > div.nocannedTitle {
535
- color: #f44336
543
+ color: #f44336;
536
544
  }
537
545
 
538
546
  .highlight-search-string {
@@ -587,3 +595,443 @@ select:-webkit-autofill:focus {
587
595
  display: flex;
588
596
  align-items: center;
589
597
  }
598
+
599
+ // User details Sidebar
600
+ .user-details-sidebar {
601
+ position: fixed;
602
+ top: 0;
603
+ bottom: 0;
604
+ left: 0;
605
+ z-index: 1;
606
+ }
607
+
608
+ // Sidebar
609
+ .sidebar {
610
+ transition-property: top, bottom, width;
611
+ transition-duration: 0.2s, 0.2s, 0.35s;
612
+ transition-timing-function: linear, linear, ease;
613
+ -webkit-overflow-scrolling: touch;
614
+ }
615
+
616
+ .sidebar {
617
+ position: fixed;
618
+ top: 0;
619
+ bottom: 0;
620
+ left: 0;
621
+ z-index: 2;
622
+ }
623
+
624
+ .sidebar .logo {
625
+ position: relative;
626
+ padding: 13px 15px;
627
+ z-index: 4;
628
+ }
629
+
630
+ .sidebar .sidebar-wrapper {
631
+ position: relative;
632
+ height: calc(100vh - 35px);
633
+ overflow: auto;
634
+ width: 60px;
635
+ z-index: 4;
636
+ }
637
+ .sidebar-wrapper {
638
+ transition-property: top, bottom, width;
639
+ transition-duration: 0.2s, 0.2s, 0.35s;
640
+ transition-timing-function: linear, linear, ease;
641
+ background-color: #2d323e !important;
642
+ }
643
+
644
+ .small-sidebar__logo {
645
+ left: 19px;
646
+ top: 12px !important;
647
+ width: 25px !important;
648
+ margin-left: 3px;
649
+ margin-top: 5px;
650
+ }
651
+
652
+ .small-sidebar-tiledesk-nav-user {
653
+ height: 40px;
654
+ min-height: 40px;
655
+ max-height: 40px;
656
+ }
657
+
658
+ .user {
659
+ position: relative;
660
+ // display: flex;
661
+ align-items: center;
662
+ justify-content: flex-start;
663
+ width: 100%;
664
+ // height: 130px;
665
+ // min-height: 130px;
666
+ // max-height: 130px;
667
+ }
668
+ .tiledesk-nav-user {
669
+ background-color: #1e2129 !important;
670
+ color: #fff !important;
671
+ }
672
+
673
+ .small-sidebar-userfullname {
674
+ display: none;
675
+ }
676
+
677
+ .small-sidebar-email {
678
+ display: none;
679
+ }
680
+
681
+ .tiledesk-nav-avatar {
682
+ background-color: #2d323e !important;
683
+ color: #fff !important;
684
+ }
685
+
686
+ .avatar-container {
687
+ text-align: center;
688
+ cursor: pointer;
689
+ position: absolute;
690
+ // top: 80px;
691
+ border-radius: 50%;
692
+ padding: 4px;
693
+ -webkit-transform: translateX(-50%);
694
+ transform: translateX(-50%);
695
+ left: 50%;
696
+ }
697
+
698
+ .avatar-container .sidebar-avatar {
699
+ width: 40px;
700
+ height: 40px;
701
+ margin: 0;
702
+ border-radius: 50%;
703
+ -o-object-fit: cover;
704
+ object-fit: cover;
705
+ min-width: 40px;
706
+ max-width: 40px;
707
+ }
708
+
709
+ .small-sidebar-status-icon {
710
+ left: 33px !important;
711
+ bottom: 4px !important;
712
+ width: 12px !important;
713
+ height: 12px !important;
714
+ }
715
+
716
+ .status-icon {
717
+ position: absolute;
718
+ // width: 14px;
719
+ // height: 14px;
720
+ // bottom: 8px;
721
+ // left: 61px;
722
+ border: 2px solid #2d323e;
723
+ border-radius: 50%;
724
+ // background-color: #4caf50;
725
+ }
726
+
727
+ .small-sidebar-camera-icon {
728
+ top: 19px !important;
729
+ }
730
+
731
+ .is-over-camera {
732
+ z-index: 5;
733
+ position: relative;
734
+ // top: 20px;
735
+ background-color: rgba(45, 50, 62, 0.7);
736
+ // padding: 15px;
737
+ padding: 6px;
738
+ border-radius: 50%;
739
+ opacity: 0;
740
+ }
741
+
742
+ .sidebar--isBusy-icon-wpr {
743
+ width: 14px;
744
+ height: 14px;
745
+ position: absolute;
746
+ top: 12px;
747
+ right: 37px;
748
+ }
749
+
750
+ @media (max-width: 991px) {
751
+ .nav-container {
752
+ position: relative;
753
+ }
754
+ }
755
+
756
+ .sidebar .nav {
757
+ margin-top: 20px;
758
+ }
759
+
760
+ .nav {
761
+ padding-left: 0;
762
+ margin-bottom: 0;
763
+ list-style: none;
764
+ }
765
+
766
+ .nav:before {
767
+ display: table;
768
+ content: " ";
769
+ }
770
+
771
+ .nav > li {
772
+ position: relative;
773
+ display: block;
774
+ height: 40px;
775
+ cursor: pointer;
776
+ margin-top: 5px;
777
+ margin-bottom: 5px;
778
+ }
779
+
780
+ .nav > li:hover {
781
+ background-color: #eee;
782
+ }
783
+
784
+ .sidebar .nav li > a {
785
+ // margin: 10px 15px;
786
+ // border-radius: 3px;
787
+ transition: all 300ms linear;
788
+ color: #3c4858;
789
+ }
790
+
791
+ .sidebar .nav li.item-active > a > i {
792
+ color: #ffffff;
793
+ }
794
+
795
+ .item-active {
796
+ height: 40px;
797
+ background-color: #3ea9f5;
798
+ color: #fff !important;
799
+ pointer-events: none;
800
+ }
801
+ .is-user-online {
802
+ background-color: #4caf50;
803
+ }
804
+
805
+ .is-desktop-menu {
806
+ margin-top: 40px;
807
+ }
808
+ .is-mobile-menu {
809
+ margin-top: 0px;
810
+ }
811
+
812
+ .logo {
813
+ background-color: #1e2129 !important;
814
+ padding-bottom: 5px;
815
+ min-height: 60px;
816
+ width: 60px; // for SMALL SIDEBAR
817
+ }
818
+
819
+ .sidebar .logo:after {
820
+ content: "";
821
+ position: absolute;
822
+ bottom: 0;
823
+ right: 10%;
824
+ height: 1px;
825
+ width: 80%;
826
+ background-color: rgba(180, 180, 180, 0.3);
827
+ }
828
+
829
+ .logo-img-wpr {
830
+ text-transform: none;
831
+
832
+ min-height: 40px;
833
+ padding-left: 0px !important;
834
+ }
835
+
836
+ /* *** SMALL SIDEBAR STYLE *** */
837
+ .small-sidebar-tiledesk-nav-user {
838
+ height: 40px;
839
+ min-height: 40px;
840
+ max-height: 40px;
841
+ }
842
+
843
+ .small-sidebar-email {
844
+ display: none;
845
+ }
846
+
847
+ .small-sidebar-status-icon {
848
+ left: 33px !important;
849
+ bottom: 4px !important;
850
+ width: 12px !important;
851
+ height: 12px !important;
852
+ }
853
+
854
+ .small-sidebar-status-text {
855
+ display: none;
856
+ }
857
+
858
+ .small-sidebar-userfullname {
859
+ display: none;
860
+ }
861
+
862
+ .small-sidebar-camera-icon {
863
+ // top: 86px !important;
864
+ top: 19px !important;
865
+ }
866
+
867
+ /* OVERWRITE THE DEFAULT STYLE */
868
+ .nav-mobile-menu {
869
+ margin-top: 45px !important;
870
+ }
871
+ /* // NK end NEW: AVATAR ON THE SIDEBAR */
872
+
873
+ /* NK start CUSTOM SCROLL BAR */
874
+ /* width */
875
+ ::-webkit-scrollbar {
876
+ width: 3px;
877
+ }
878
+
879
+ /* Track */
880
+ ::-webkit-scrollbar-track {
881
+ background: #f1f1f1;
882
+ }
883
+
884
+ /* Handle */
885
+ ::-webkit-scrollbar-thumb {
886
+ background: #888;
887
+ /* border-radius: 6px; */
888
+ }
889
+
890
+ /* Handle on hover */
891
+ ::-webkit-scrollbar-thumb:hover {
892
+ background: #555;
893
+ /* width: 10px !important; */
894
+ }
895
+ /* NK end CUSTOM SCROLL BAR */
896
+
897
+ /* SIDEBAR NAV ITEMS */
898
+
899
+ /* SIDEBAR NAV ITEMS */
900
+
901
+ .is-user-online {
902
+ background-color: #4caf50;
903
+ }
904
+ .is-user-offline {
905
+ background-color: #f44336;
906
+ }
907
+
908
+ .is-desktop-menu {
909
+ margin-top: 40px;
910
+ }
911
+ .is-mobile-menu {
912
+ margin-top: 0px;
913
+ }
914
+
915
+ .logo {
916
+ background-color: #1e2129 !important;
917
+ padding-bottom: 5px;
918
+ min-height: 60px;
919
+ width: 60px; // for SMALL SIDEBAR
920
+ }
921
+
922
+ /* *** SMALL SIDEBAR STYLE *** */
923
+ .small-sidebar-tiledesk-nav-user {
924
+ height: 40px;
925
+ min-height: 40px;
926
+ max-height: 40px;
927
+ }
928
+ .small-sidebar-avatar {
929
+ top: 12px;
930
+ }
931
+
932
+ .small-sidebar-email {
933
+ display: none;
934
+ }
935
+
936
+ .small-sidebar-status-icon {
937
+ left: 33px !important;
938
+ bottom: 4px !important;
939
+ width: 12px !important;
940
+ height: 12px !important;
941
+ }
942
+
943
+ .small-sidebar-status-text {
944
+ display: none;
945
+ }
946
+
947
+ .small-sidebar-userfullname {
948
+ display: none;
949
+ }
950
+
951
+ .small-sidebar-camera-icon {
952
+ // top: 86px !important;
953
+ top: 19px !important;
954
+ }
955
+
956
+ /* OVERWRITE THE DEFAULT STYLE */
957
+ .nav-mobile-menu {
958
+ margin-top: 45px !important;
959
+ }
960
+ /* // NK end NEW: AVATAR ON THE SIDEBAR */
961
+
962
+ /* NK start CUSTOM SCROLL BAR */
963
+ /* width */
964
+ ::-webkit-scrollbar {
965
+ width: 8px;
966
+ }
967
+
968
+ /* Track */
969
+ ::-webkit-scrollbar-track {
970
+ background: #f1f1f1;
971
+ }
972
+
973
+ /* Handle */
974
+ ::-webkit-scrollbar-thumb {
975
+ background: #888;
976
+ /* border-radius: 6px; */
977
+ }
978
+
979
+ /* Handle on hover */
980
+ ::-webkit-scrollbar-thumb:hover {
981
+ background: #555;
982
+ /* width: 10px !important; */
983
+ }
984
+ /* NK end CUSTOM SCROLL BAR */
985
+
986
+ /* SIDEBAR NAV ITEMS */
987
+
988
+ .item-active a {
989
+ background-color: transparent !important;
990
+ box-shadow: none !important;
991
+ -webkit-box-shadow: none !important;
992
+ }
993
+
994
+ /* SIDEBAR NAV ITEMS */
995
+
996
+ p.hidden-lg.hidden-md {
997
+ color: rgba(255, 255, 255, 0.6);
998
+ }
999
+ li.item-active p.hidden-lg.hidden-md {
1000
+ color: rgba(25, 25, 25, 1) !important;
1001
+ }
1002
+ .nav .open > a > p.hidden-lg.hidden-md {
1003
+ color: rgba(25, 25, 25, 1) !important;
1004
+ }
1005
+ ul.dropdown-menu > li > a {
1006
+ color: rgba(255, 255, 255, 0.6);
1007
+ }
1008
+ /* end - mobile sidebar USED WITH SIDWBAR WITH BLACK BACKGROUND */
1009
+ /* END - USED WITH SIDWBAR WITH BLACK BACKGROUND */
1010
+
1011
+ /* CUSTOM MARGIN BETWEEN THE MENU ITEM*/
1012
+ .nav li > a.customAncor {
1013
+ /* margin: 5px 15px !important; */
1014
+
1015
+ margin-top: 5px !important;
1016
+ margin-right: 15px !important;
1017
+ margin-bottom: 5px !important;
1018
+ margin-left: 0px !important;
1019
+ width: 60px;
1020
+ border-radius: 0px;
1021
+ }
1022
+
1023
+ .sidebar-icons {
1024
+ font-size: 20px !important;
1025
+ // color: #a9afbb !important;
1026
+ }
1027
+
1028
+ .sidebar .nav i {
1029
+ // font-size: 20px;
1030
+ float: left;
1031
+ // margin-right: 15px;
1032
+ // line-height: 30px;
1033
+ width: 60px;
1034
+ text-align: center;
1035
+ color: #a9afbb;
1036
+ padding-top: 10px;
1037
+ }
package/src/index.html CHANGED
@@ -18,6 +18,13 @@
18
18
 
19
19
  <link rel="icon" type="image/png" href="assets/icon/favicon.ico" />
20
20
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en" />
21
+ <!-- --------------------------------------------------- -->
22
+ <!-- Poppins -->
23
+ <!-- --------------------------------------------------- -->
24
+ <link rel="preconnect" href="https://fonts.googleapis.com">
25
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
26
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap"
27
+ rel="stylesheet">
21
28
 
22
29
  <link rel="manifest" href="./manifest.json">
23
30
  <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->