@chat21/chat21-ionic 3.0.79-rc.4 → 3.0.79
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 +3 -54
- package/README.md +2 -2
- package/deploy_amazon_prod.sh +1 -1
- package/package.json +1 -1
- package/src/app/app.component.html +1 -7
- package/src/app/app.component.scss +2 -18
- package/src/app/app.component.ts +30 -78
- package/src/app/app.module.ts +1 -3
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +1 -8
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +22 -73
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +85 -162
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -39
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +19 -1
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +10 -1
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +23 -4
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +1 -5
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +15 -22
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +5 -25
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +1 -2
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +15 -14
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +5 -24
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +1 -6
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +13 -12
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +5 -26
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +2 -2
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +6 -16
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +3 -1
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +0 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +52 -78
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +20 -62
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -14
- package/src/app/components/canned-response/canned-response.component.html +4 -4
- package/src/app/components/canned-response/canned-response.component.scss +1 -1
- package/src/app/components/canned-response/canned-response.component.ts +0 -1
- package/src/app/components/contacts-directory/contacts-directory.component.html +26 -22
- package/src/app/components/contacts-directory/contacts-directory.component.scss +6 -8
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +21 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +14 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +54 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +98 -0
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.spec.ts → conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts} +6 -6
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +84 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +30 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +83 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +68 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +10 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +14 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +42 -61
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +61 -98
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +25 -9
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +5 -6
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +4 -4
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +82 -3
- package/src/app/components/conversation-detail/option-header/option-header.component.html +13 -0
- package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts → conversation-detail/option-header/option-header.component.spec.ts} +5 -5
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts → conversation-detail/option-header/option-header.component.ts} +4 -5
- package/src/app/components/conversation-info/info-content/info-content.component.html +1 -2
- package/src/app/components/conversation-info/info-content/info-content.component.ts +2 -3
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +9 -1
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +2 -0
- package/src/app/components/conversation-info/info-group/info-group.component.html +108 -44
- package/src/app/components/conversation-info/info-group/info-group.component.scss +61 -101
- package/src/app/components/conversation-info/info-group/info-group.component.ts +0 -1
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.html → ddp-header/ddp-header.component.html} +3 -3
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.scss → ddp-header/ddp-header.component.scss} +4 -16
- package/src/app/components/{navbar/navbar.component.spec.ts → ddp-header/ddp-header.component.spec.ts} +6 -6
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.ts → ddp-header/ddp-header.component.ts} +16 -7
- package/src/app/components/project-item/project-item.component.html +149 -98
- package/src/app/components/project-item/project-item.component.scss +32 -39
- package/src/app/components/project-item/project-item.component.ts +4 -16
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +3 -3
- package/src/app/components/utils/user-presence/user-presence.component.html +2 -7
- package/src/app/components/utils/user-presence/user-presence.component.scss +18 -35
- package/src/app/components/utils/user-presence/user-presence.component.ts +10 -6
- package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +0 -41
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +0 -2
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +8 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.html +23 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +250 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +66 -186
- package/src/app/pages/conversations-list/conversations-list.page.html +8 -11
- package/src/app/pages/conversations-list/conversations-list.page.scss +2 -11
- package/src/app/pages/conversations-list/conversations-list.page.ts +51 -43
- package/src/app/pages/create-canned-response/create-canned-response.page.ts +13 -13
- package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
- package/src/app/pages/loader-preview/loader-preview.page.scss +0 -4
- package/src/app/pages/profile-info/profile-info.page.html +4 -2
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +0 -42
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +0 -1
- package/src/app/services/canned-responses/canned-responses.service.ts +0 -26
- package/src/app/services/tiledesk/tiledesk.service.ts +25 -1
- package/src/app/shared/shared.module.ts +33 -24
- package/src/assets/i18n/ar.json +265 -278
- package/src/assets/i18n/az.json +1 -14
- package/src/assets/i18n/de.json +2 -15
- package/src/assets/i18n/en.json +2 -15
- package/src/assets/i18n/es.json +2 -15
- package/src/assets/i18n/fr.json +1 -14
- package/src/assets/i18n/it.json +1 -14
- package/src/assets/i18n/kk.json +2 -15
- package/src/assets/i18n/pt.json +2 -15
- package/src/assets/i18n/ru.json +1 -14
- package/src/assets/i18n/sr.json +264 -277
- package/src/assets/i18n/sv.json +2 -15
- package/src/assets/i18n/tr.json +2 -15
- package/src/assets/i18n/uk.json +2 -15
- package/src/assets/i18n/uz.json +1 -14
- package/src/chat21-core/models/conversation.ts +1 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +9 -7
- package/src/chat21-core/utils/constants.ts +1 -5
- package/src/chat21-core/utils/user-typing/user-typing.component.html +5 -8
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +17 -87
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +94 -12
- package/src/chat21-core/utils/utils.ts +1 -9
- package/src/global.scss +56 -48
- package/src/index.html +2 -2
- package/src/variables.scss +10 -30
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +0 -12
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +0 -14
- package/src/app/components/navbar/navbar.component.html +0 -103
- package/src/app/components/navbar/navbar.component.scss +0 -249
- package/src/app/components/navbar/navbar.component.ts +0 -189
- package/src/app/services/projects/projects.service.spec.ts +0 -12
- package/src/app/services/projects/projects.service.ts +0 -43
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat21-core/models/projects.ts +0 -27
- package/src/chat21-core/utils/convertRequestToConversation.ts +0 -41
package/src/global.scss
CHANGED
|
@@ -362,7 +362,19 @@ app-message-text-area {
|
|
|
362
362
|
z-index: 99999; // nk
|
|
363
363
|
background: #fff; // nk
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
app-bubble-day-message {
|
|
366
|
+
width: 100%;
|
|
367
|
+
}
|
|
368
|
+
app-bubble-system-message {
|
|
369
|
+
max-width: 80%;
|
|
370
|
+
margin: 0 auto;
|
|
371
|
+
}
|
|
372
|
+
app-bubble-my-message {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
app-bubble-others-message {
|
|
376
|
+
width: 100%;
|
|
377
|
+
}
|
|
366
378
|
app-conversation-info {
|
|
367
379
|
height: calc(100% - 60px);
|
|
368
380
|
}
|
|
@@ -782,70 +794,66 @@ select:-webkit-autofill:focus {
|
|
|
782
794
|
}
|
|
783
795
|
|
|
784
796
|
// select teammate status in user detail drawer
|
|
785
|
-
.teammate-status-in-drawer {
|
|
786
|
-
|
|
787
|
-
&.ng-select {
|
|
797
|
+
.ng-select.teammate-status-in-drawer {
|
|
788
798
|
|
|
799
|
+
.ng-select-container {
|
|
800
|
+
background-color: #2d323e;
|
|
801
|
+
color: #fff;
|
|
802
|
+
border: 1px solid #2d323e;
|
|
803
|
+
}
|
|
804
|
+
&.ng-select-opened{
|
|
789
805
|
.ng-select-container {
|
|
790
806
|
background-color: #2d323e;
|
|
791
|
-
color: #fff;
|
|
792
807
|
border: 1px solid #2d323e;
|
|
793
808
|
}
|
|
794
|
-
&.ng-select-opened{
|
|
795
|
-
.ng-select-container {
|
|
796
|
-
background-color: #2d323e;
|
|
797
|
-
border: 1px solid #2d323e;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
&.ng-select-focused:not(.ng-select-opened){
|
|
802
|
-
>.ng-select-container{
|
|
803
|
-
border: 1px solid #2d323e;
|
|
804
|
-
box-shadow: unset;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
-
.ng-
|
|
812
|
-
|
|
813
|
-
border: 1px solid #2d323e;
|
|
814
|
-
|
|
815
|
-
&.ng-select-bottom {
|
|
811
|
+
&.ng-select-focused:not(.ng-select-opened){
|
|
812
|
+
>.ng-select-container{
|
|
816
813
|
border: 1px solid #2d323e;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
814
|
+
box-shadow: unset;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
821
818
|
|
|
822
|
-
|
|
823
|
-
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.ng-dropdown-panel {
|
|
822
|
+
background-color: #2d323e;
|
|
823
|
+
border: 1px solid #2d323e;
|
|
824
|
+
|
|
825
|
+
&.ng-select-bottom {
|
|
826
|
+
border: 1px solid #2d323e;
|
|
827
|
+
margin-top: 8px;
|
|
828
|
+
border-top-right-radius: 4px;
|
|
829
|
+
border-top-left-radius: 4px;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.ng-dropdown-panel-items {
|
|
833
|
+
.ng-option {
|
|
834
|
+
background-color: #2d323e;
|
|
835
|
+
color: #fff;
|
|
836
|
+
|
|
837
|
+
&.ng-option-marked {
|
|
838
|
+
background-color: rgba(30, 33, 41, 0.3);
|
|
839
|
+
color: #fff;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
&.ng-option-selected {
|
|
824
843
|
background-color: #2d323e;
|
|
825
844
|
color: #fff;
|
|
826
|
-
|
|
827
|
-
&.ng-option-marked {
|
|
828
|
-
background-color: rgba(30, 33, 41, 0.3);
|
|
829
|
-
color: #fff;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
&.ng-option-selected {
|
|
833
|
-
background-color: #2d323e;
|
|
834
|
-
color: #fff;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
&.ng-option-marked.ng-option-selected{
|
|
838
|
-
background-color: rgba(30, 33, 41, 0.3);
|
|
839
|
-
color: #fff;
|
|
840
|
-
}
|
|
841
845
|
}
|
|
842
|
-
|
|
846
|
+
|
|
847
|
+
&.ng-option-marked.ng-option-selected{
|
|
848
|
+
background-color: rgba(30, 33, 41, 0.3);
|
|
849
|
+
color: #fff;
|
|
850
|
+
}
|
|
843
851
|
}
|
|
852
|
+
|
|
844
853
|
}
|
|
845
854
|
}
|
|
846
855
|
|
|
847
856
|
|
|
848
|
-
|
|
849
857
|
/* *** SMALL SIDEBAR STYLE *** */
|
|
850
858
|
.small-sidebar-tiledesk-nav-user {
|
|
851
859
|
height: 40px;
|
package/src/index.html
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<!-- <script src="https://unpkg.com/mqtt@4.1.0/dist/mqtt.min.js"></script> -->
|
|
34
34
|
<!-- <script src="./assets/js/watchToConnectionAtStartUp.js"></script> -->
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
<!-- segment analytics -->
|
|
38
38
|
<script>
|
|
39
39
|
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="qaTU0wG6VH6xPAhOzD2kneI70Txg1fTB";;analytics.SNIPPET_VERSION="4.15.3";
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
analytics.page();
|
|
42
42
|
}}();
|
|
43
43
|
</script>
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
<!-- add to homescreen for ios -->
|
|
46
46
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
47
47
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
package/src/variables.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
:root {
|
|
2
2
|
/* Color palette */
|
|
3
3
|
--white: #ffffff;
|
|
4
4
|
--black: #000000;
|
|
@@ -7,47 +7,27 @@ body {
|
|
|
7
7
|
--basic-green: #0A7D41;
|
|
8
8
|
--dark-green: #005f3b;
|
|
9
9
|
--light-green: #8cc841;
|
|
10
|
+
|
|
10
11
|
--light-gray: #F2F2F2;
|
|
11
12
|
--basic-gray: #666666;
|
|
12
13
|
--dark-gray: #363636;
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
--light-blue: #C9E4F6;
|
|
14
17
|
--basic-blue: #2a69c1;
|
|
15
18
|
--bubble-blue: rgb(0, 153, 255);
|
|
16
|
-
|
|
19
|
+
--bubble-lightyellow: rgb(255, 247, 237);
|
|
20
|
+
--bubble-privateMsg: rgb(254, 214, 168);
|
|
21
|
+
--bubble-privateMsgColor: rgb(47, 57, 65);
|
|
17
22
|
|
|
18
23
|
--basic-yellow: #FFC627;
|
|
19
24
|
--basic-red: #EB1E23;
|
|
20
25
|
|
|
21
|
-
--bck-msg-sent: #
|
|
26
|
+
--bck-msg-sent: #62a8ea;
|
|
22
27
|
--col-msg-sent:#ffffff;
|
|
23
|
-
|
|
24
|
-
--bck-msg-received: #f0f2f7;
|
|
25
|
-
--col-msg-received: #06132b;
|
|
26
|
-
|
|
27
|
-
--bubble-lightyellow: rgb(255, 247, 237);
|
|
28
|
-
--bubble-privateMsg: rgb(254, 214, 168);
|
|
29
|
-
--bubble-privateMsgColor: rgb(47, 57, 65);
|
|
30
|
-
|
|
31
28
|
--light-white: #f7f7f7;
|
|
32
29
|
--black: #1a1a1a;
|
|
33
30
|
--gray: #aaaaaa;
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--list-bkg-color-selected: rgba(24, 119, 242, 0.12); //rgba(24, 119, 242, 0.04);
|
|
38
|
-
|
|
39
|
-
--button-in-msg-font-size: 15px;
|
|
40
|
-
--buttonBackgroundColor: #ffffff;
|
|
41
|
-
--buttonTextColor: #2a6ac1;
|
|
42
|
-
--buttonHoverBackgroundColor: #2a6ac1;
|
|
43
|
-
--buttonHoverTextColor: #ffffff;
|
|
44
|
-
|
|
45
|
-
--padding-conversation-detail: 10px;
|
|
46
|
-
|
|
47
|
-
--border-radius-item: 16px;
|
|
48
|
-
--border-radius-content: 16px;
|
|
49
|
-
|
|
50
|
-
--sidebar-width: 60px;
|
|
51
|
-
--nav-bar-heigth: 60px;
|
|
52
|
-
|
|
53
|
-
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<ion-toolbar [class.mobile]="isMobile">
|
|
2
|
-
|
|
3
|
-
<ion-buttons slot="start">
|
|
4
|
-
<ion-button ion-button (click)="onBackButtonHandler()">
|
|
5
|
-
<ion-icon slot="icon-only" name="arrow-back-outline"></ion-icon>
|
|
6
|
-
</ion-button>
|
|
7
|
-
</ion-buttons>
|
|
8
|
-
|
|
9
|
-
<ion-title> {{headerTitle}}</ion-title>
|
|
10
|
-
|
|
11
|
-
</ion-toolbar>
|
|
12
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
<ion-navbar class="navbar navbar-absolute">
|
|
2
|
-
<div class="container-fluid">
|
|
3
|
-
<!-- <div class="navbar-left">
|
|
4
|
-
left
|
|
5
|
-
</div> -->
|
|
6
|
-
<div class="navbar-right">
|
|
7
|
-
<!-- test site -->
|
|
8
|
-
<ng-container *ngIf="project">
|
|
9
|
-
<button class="btn simulate-visitor-btn btn-success-no-boxshadow " (click)="testWidgetPage()">
|
|
10
|
-
<i class="material-icons" style="padding-top: 0px;font-size: 24px;">play_arrow</i>
|
|
11
|
-
{{translationsMap.get('NAVBAR.SIMULATE_VISITOR')}}
|
|
12
|
-
</button>
|
|
13
|
-
</ng-container>
|
|
14
|
-
|
|
15
|
-
<!-- ------ PROJECTS DROPDOWN ------ -->
|
|
16
|
-
<ng-container *ngIf="project">
|
|
17
|
-
<li>
|
|
18
|
-
<button class="btn dropdown-toggle project-dropdown" (click)="openDropdownProjects = !openDropdownProjects">
|
|
19
|
-
<i class="material-icons" style="margin-right: 3px;">keyboard_arrow_down</i>
|
|
20
|
-
<span style="text-transform: none"> {{ project?.id_project?.name }} </span>
|
|
21
|
-
</button>
|
|
22
|
-
<div class="ripple-container"></div>
|
|
23
|
-
<div id="navbar_dropdown" class="dropdown-menu" [ngClass]="{'open': openDropdownProjects}">
|
|
24
|
-
|
|
25
|
-
<!-- PROJECT SETTINGS -->
|
|
26
|
-
<!-- <li *ngIf="USER_ROLE !== 'agent'">
|
|
27
|
-
<a (click)="onClickDropdownOption('projectSettings')">
|
|
28
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">settings</i>
|
|
29
|
-
{{translationsMap?.get('NAVBAR.PROJECT_SETTINGS')}}
|
|
30
|
-
</a>
|
|
31
|
-
</li> -->
|
|
32
|
-
|
|
33
|
-
<!-- ALL PROJECTS -->
|
|
34
|
-
<li (click)="onClickDropdownOption('allProjects')">
|
|
35
|
-
<a style="cursor: pointer">
|
|
36
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">view_list</i>
|
|
37
|
-
{{translationsMap?.get('NAVBAR.VIEW_ALL_PROJECTS')}}
|
|
38
|
-
</a>
|
|
39
|
-
</li>
|
|
40
|
-
|
|
41
|
-
<!-- ADD PROJECT -->
|
|
42
|
-
<li id="navbar_create_prjct" *ngIf="MT === true" (click)="onClickDropdownOption('addProject')">
|
|
43
|
-
<a style="cursor: pointer">
|
|
44
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">add_circle_outline </i>
|
|
45
|
-
{{translationsMap?.get('NAVBAR.ADD_PROJECT')}}
|
|
46
|
-
</a>
|
|
47
|
-
</li>
|
|
48
|
-
|
|
49
|
-
<li class="divider"></li>
|
|
50
|
-
|
|
51
|
-
<!-- RECENT PROJECTS -->
|
|
52
|
-
<li>
|
|
53
|
-
<span style="padding-left: 24px;font-size: 12px; color: rgb(118,149,165);font-weight: 400">
|
|
54
|
-
{{translationsMap?.get('NAVBAR.RECENT_PROJECTS')}}
|
|
55
|
-
</span>
|
|
56
|
-
</li>
|
|
57
|
-
<!--
|
|
58
|
-
***** ngFor - reverse order of output using the index *****
|
|
59
|
-
Reverse() works in place. It means, it will change the original array.
|
|
60
|
-
Slice without parameters returns a copy of projects, so original array, in this case, stays unchanged.
|
|
61
|
-
let prjct of projects?.reverse()
|
|
62
|
-
-->
|
|
63
|
-
<!-- *ngFor="let prjct of projects?.slice().reverse() | slice:0:5; let i=index" -->
|
|
64
|
-
<li *ngFor="let prjct of projects?.slice() | slice:0:5; let i=index" style="cursor: pointer">
|
|
65
|
-
<a (click)="goToHome(prjct?.id_project?._id, prjct?.id_project?.name)"
|
|
66
|
-
[ngClass]="{'li-selected' : prjct?.id_project?._id === project?.id_project?.id }">
|
|
67
|
-
|
|
68
|
-
<span> {{ prjct?.id_project?.name }} </span>
|
|
69
|
-
</a>
|
|
70
|
-
</li>
|
|
71
|
-
|
|
72
|
-
<ng-container *ngIf="projects?.length > 5">
|
|
73
|
-
<li class="divider"></li>
|
|
74
|
-
<li>
|
|
75
|
-
<span style="padding-left: 24px;font-size: 12px; color: rgb(118,149,165);font-weight: 400">
|
|
76
|
-
{{translationsMap?.get('NAVBAR.OTHER_PROJECTS')}}
|
|
77
|
-
</span>
|
|
78
|
-
</li>
|
|
79
|
-
|
|
80
|
-
<!-- *ngFor="let prjct of projects?.slice().reverse() | slice:5:10; let i=index" -->
|
|
81
|
-
<li *ngFor="let prjct of projects?.slice() | slice:5:10; let i=index" style="cursor: pointer">
|
|
82
|
-
<a (click)="goToHome(prjct?.id_project?._id, prjct?.id_project?.name)">
|
|
83
|
-
{{ prjct?.id_project?.name }}
|
|
84
|
-
</a>
|
|
85
|
-
</li>
|
|
86
|
-
</ng-container>
|
|
87
|
-
|
|
88
|
-
</div>
|
|
89
|
-
</li>
|
|
90
|
-
</ng-container>
|
|
91
|
-
|
|
92
|
-
<!-- Sound on / off -->
|
|
93
|
-
<ng-container *ngIf="project">
|
|
94
|
-
<button class="btn volume" style="cursor: pointer;" *ngIf="isSoundEnabled" (click)="onClickSound('disabled')">
|
|
95
|
-
<i class="material-icons">volume_up</i>
|
|
96
|
-
</button>
|
|
97
|
-
<button class="btn volume" style="cursor: pointer;" *ngIf="!isSoundEnabled" (click)="onClickSound('enabled')">
|
|
98
|
-
<i class="material-icons">volume_off</i>
|
|
99
|
-
</button>
|
|
100
|
-
</ng-container>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</ion-navbar>
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
.navbar-absolute{
|
|
2
|
-
position: absolute;
|
|
3
|
-
width: calc(100% - var(--sidebar-width));
|
|
4
|
-
margin-left: var(--sidebar-width);
|
|
5
|
-
padding-top: 5px;
|
|
6
|
-
z-index: 1;
|
|
7
|
-
padding-bottom: 5px;
|
|
8
|
-
border-bottom: 1px solid #e7e7e7;
|
|
9
|
-
top: 0;
|
|
10
|
-
|
|
11
|
-
-webkit-font-smoothing: auto;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.navbar{
|
|
15
|
-
background-color: #fff;
|
|
16
|
-
color: #555;
|
|
17
|
-
min-height: var(--nav-bar-heigth);
|
|
18
|
-
transition: all 150ms ease 0s;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.container-fluid{
|
|
22
|
-
padding-right: 15px;
|
|
23
|
-
padding-left: 15px;
|
|
24
|
-
margin-right: auto;
|
|
25
|
-
margin-left: auto;
|
|
26
|
-
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ion-navbar{
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.navbar-collapse{
|
|
36
|
-
border-top: none;
|
|
37
|
-
box-shadow: none;
|
|
38
|
-
|
|
39
|
-
padding-right: 15px;
|
|
40
|
-
padding-left: 15px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.navbar-right{
|
|
44
|
-
float: right;
|
|
45
|
-
|
|
46
|
-
display: inline-flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.navbar-left{
|
|
51
|
-
float: left;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.simulate-visitor-btn{
|
|
55
|
-
font-size: 12px;
|
|
56
|
-
padding: 0px 11px 0px 4px !important;
|
|
57
|
-
max-height: 24px;
|
|
58
|
-
border-radius: 30px;
|
|
59
|
-
font-family: 'Poppins';
|
|
60
|
-
|
|
61
|
-
box-shadow: unset!important;
|
|
62
|
-
text-transform: none!important;
|
|
63
|
-
background: #3ecf8e!important;
|
|
64
|
-
color: #fff;
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.btn{
|
|
69
|
-
display: flex;
|
|
70
|
-
position: relative;
|
|
71
|
-
flex-flow: row nowrap;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
|
|
75
|
-
border: 1px solid transparent;
|
|
76
|
-
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.dropdown-toggle, .volume{
|
|
81
|
-
background-color: transparent;
|
|
82
|
-
color: inherit;
|
|
83
|
-
|
|
84
|
-
padding: 0px 15px;
|
|
85
|
-
font-weight: 400;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.project-dropdown {
|
|
89
|
-
max-width: 180px;
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
text-overflow: ellipsis;
|
|
93
|
-
font-size: 12px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
li{
|
|
97
|
-
position: relative;
|
|
98
|
-
display: block
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.dropdown-menu {
|
|
102
|
-
border-radius: 3px;
|
|
103
|
-
box-shadow: 0 2px 5px 0 rgb(0, 0, 0, 0.26);
|
|
104
|
-
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 100%;
|
|
107
|
-
right: 0;
|
|
108
|
-
left: auto;
|
|
109
|
-
z-index: 1000;
|
|
110
|
-
display: none;
|
|
111
|
-
float: left;
|
|
112
|
-
min-width: 160px;
|
|
113
|
-
padding: 5px 0;
|
|
114
|
-
margin: 2px 0 0;
|
|
115
|
-
font-size: 14px;
|
|
116
|
-
text-align: left;
|
|
117
|
-
list-style: none;
|
|
118
|
-
background-color: #fff;
|
|
119
|
-
-webkit-background-clip: padding-box;
|
|
120
|
-
background-clip: padding-box;
|
|
121
|
-
}
|
|
122
|
-
.dropdown-menu{
|
|
123
|
-
max-height: 240px;
|
|
124
|
-
overflow-y: auto;
|
|
125
|
-
}
|
|
126
|
-
.dropdown-menu:not(.open){
|
|
127
|
-
margin-top: -20px;
|
|
128
|
-
opacity: 0;
|
|
129
|
-
visibility: hidden;
|
|
130
|
-
display: block;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.dropdown-menu.open{
|
|
134
|
-
margin-top: 12px; //0;
|
|
135
|
-
opacity: 1;
|
|
136
|
-
visibility: visible;
|
|
137
|
-
display: block;
|
|
138
|
-
transition: all 150ms linear;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.dropdown-menu li {
|
|
142
|
-
position: relative;
|
|
143
|
-
|
|
144
|
-
.li-selected{
|
|
145
|
-
color: #4285f4;
|
|
146
|
-
background-color: #eee;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dropdown-menu .divider{
|
|
151
|
-
background-color: rgba(0,0,0,.12);
|
|
152
|
-
margin: 5px 0;
|
|
153
|
-
|
|
154
|
-
height: 1px;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.dropdown-menu li>a{
|
|
159
|
-
font-size: 13px;
|
|
160
|
-
padding: 10px 20px;
|
|
161
|
-
margin: 0 5px;
|
|
162
|
-
border-radius: 2px;
|
|
163
|
-
transition: all 150ms linear;
|
|
164
|
-
|
|
165
|
-
display: block;
|
|
166
|
-
clear: both;
|
|
167
|
-
font-weight: 400;
|
|
168
|
-
line-height: 1.42857143;
|
|
169
|
-
color: #333;
|
|
170
|
-
white-space: nowrap;
|
|
171
|
-
text-decoration: none;
|
|
172
|
-
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
|
|
175
|
-
.material-icons {
|
|
176
|
-
vertical-align: middle;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&:hover{
|
|
180
|
-
background-color: #3ea9f5;
|
|
181
|
-
color: #fff;
|
|
182
|
-
box-shadow: 0 12px 20px -10px rgba(62, 169, 245, 0.28), 0 4px 20px 0 rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(62, 169, 245, 0.2);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
.material-icons {
|
|
188
|
-
font-family: "Material Icons";
|
|
189
|
-
font-weight: 400;
|
|
190
|
-
font-style: normal;
|
|
191
|
-
font-size: 24px;
|
|
192
|
-
line-height: 1;
|
|
193
|
-
letter-spacing: normal;
|
|
194
|
-
text-transform: none;
|
|
195
|
-
display: inline-block;
|
|
196
|
-
white-space: nowrap;
|
|
197
|
-
word-wrap: normal;
|
|
198
|
-
direction: ltr;
|
|
199
|
-
-webkit-font-smoothing: antialiased;
|
|
200
|
-
-moz-osx-font-smoothing: grayscale;
|
|
201
|
-
text-rendering: optimizeLegibility;
|
|
202
|
-
font-feature-settings: "liga";
|
|
203
|
-
|
|
204
|
-
top: 0;
|
|
205
|
-
position: relative;
|
|
206
|
-
font-size: 20px;
|
|
207
|
-
vertical-align: middle;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.ripple-container {
|
|
211
|
-
position: absolute;
|
|
212
|
-
top: 0;
|
|
213
|
-
left: 0;
|
|
214
|
-
z-index: 1;
|
|
215
|
-
width: 100%;
|
|
216
|
-
height: 100%;
|
|
217
|
-
overflow: hidden;
|
|
218
|
-
border-radius: inherit;
|
|
219
|
-
pointer-events: none;
|
|
220
|
-
|
|
221
|
-
.disabled &{
|
|
222
|
-
display: none;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
.ripple {
|
|
226
|
-
position: absolute;
|
|
227
|
-
width: 20px;
|
|
228
|
-
height: 20px;
|
|
229
|
-
margin-left: -10px;
|
|
230
|
-
margin-top: -10px;
|
|
231
|
-
border-radius: 100%;
|
|
232
|
-
background-color: #000; // fallback color
|
|
233
|
-
background-color: rgba(0,0,0,0.05);
|
|
234
|
-
transform: scale(1);
|
|
235
|
-
transform-origin: 50%;
|
|
236
|
-
opacity: 0;
|
|
237
|
-
pointer-events: none;
|
|
238
|
-
}
|
|
239
|
-
.ripple.ripple-on {
|
|
240
|
-
transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
|
|
241
|
-
opacity: 0.1;
|
|
242
|
-
}
|
|
243
|
-
.ripple.ripple-out {
|
|
244
|
-
transition: opacity 0.1s linear 0s !important;
|
|
245
|
-
opacity: 0;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|