@chat21/chat21-ionic 2.0.13 → 3.0.5-9.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/.github/workflows/docker-community-push-latest.yml +22 -0
- package/.github/workflows/docker-image-tag-community-tag-push.yml +21 -0
- package/CHANGELOG.md +637 -212
- package/Dockerfile +1 -2
- package/LICENSE +21 -661
- package/README.md +40 -9
- package/angular.json +230 -0
- package/browserslist +12 -0
- package/config.xml +60 -47
- package/deploy_pre.sh +14 -12
- package/deploy_prod.sh +26 -6
- package/env.sample +28 -9
- package/ionic.config.json +2 -2
- package/karma.conf.js +31 -0
- package/nginx.conf +1 -1
- package/package.json +91 -105
- package/publish_pre.sh +33 -0
- package/publish_prod.sh +33 -0
- package/resources/Android/icon/drawable-hdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-ldpi-icon.png +0 -0
- package/resources/Android/icon/drawable-mdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xhdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xxhdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/resources/Android/icon.png +0 -0
- package/resources/Android/splash/drawable-land-hdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-ldpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-mdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-hdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-ldpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-mdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/resources/Android/splash.png +0 -0
- package/src/app/app-routing.module.ts +90 -0
- package/src/app/app.component.html +26 -0
- package/src/app/app.component.scss +11 -0
- package/src/app/app.component.spec.ts +47 -0
- package/src/app/app.component.ts +1154 -128
- package/src/app/app.module.ts +314 -135
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.html +143 -0
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.scss +335 -0
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.spec.ts +179 -0
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +303 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +149 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +199 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.spec.ts +24 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +97 -0
- package/src/app/chatlib/conversation-detail/message/avatar/avatar.component.html +17 -0
- package/src/app/chatlib/conversation-detail/message/avatar/avatar.component.scss +83 -0
- package/src/app/chatlib/conversation-detail/message/avatar/avatar.component.spec.ts +27 -0
- package/src/app/chatlib/conversation-detail/message/avatar/avatar.component.ts +43 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +76 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +51 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +84 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +215 -0
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +3 -0
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +83 -0
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +37 -0
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +24 -0
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +61 -0
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +30 -0
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +3 -0
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +47 -0
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +29 -0
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.html +3 -0
- package/{bin/chat21-ionic → src/app/chatlib/conversation-detail/message/frame/frame.component.scss} +0 -0
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/frame/frame.component.ts +33 -0
- package/src/app/chatlib/conversation-detail/message/image/image.component.html +10 -0
- package/src/app/chatlib/conversation-detail/message/image/image.component.scss +34 -0
- package/src/app/chatlib/conversation-detail/message/image/image.component.spec.ts +35 -0
- package/src/app/chatlib/conversation-detail/message/image/image.component.ts +78 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.html +2 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +15 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.spec.ts +27 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.ts +35 -0
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +56 -0
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +169 -0
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.spec.ts +33 -0
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +80 -0
- package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.html +18 -0
- package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.scss +27 -0
- package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/return-receipt/return-receipt.component.ts +24 -0
- package/src/app/chatlib/conversation-detail/message/text/text.component.html +5 -0
- package/src/app/chatlib/conversation-detail/message/text/text.component.scss +26 -0
- package/src/app/chatlib/conversation-detail/message/text/text.component.spec.ts +33 -0
- package/src/app/chatlib/conversation-detail/message/text/text.component.ts +56 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +154 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +222 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.spec.ts +24 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +113 -0
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.html +46 -0
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.scss +200 -0
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.spec.ts +27 -0
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +135 -0
- package/src/app/components/authentication/login/login.component.html +65 -0
- package/src/app/components/authentication/login/login.component.scss +85 -0
- package/src/app/components/authentication/login/login.component.spec.ts +24 -0
- package/src/app/components/authentication/login/login.component.ts +174 -0
- package/src/app/components/contacts-directory/contacts-directory.component.html +22 -0
- package/src/app/components/contacts-directory/contacts-directory.component.scss +123 -0
- package/src/app/components/contacts-directory/contacts-directory.component.spec.ts +24 -0
- package/src/app/components/contacts-directory/contacts-directory.component.ts +109 -0
- 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/conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts +24 -0
- 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 +71 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +161 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +133 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +64 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +124 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.spec.ts +25 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +685 -0
- 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/conversation-detail/option-header/option-header.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/option-header/option-header.component.ts +24 -0
- package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.html +64 -0
- package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.scss +135 -0
- package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.spec.ts +24 -0
- package/src/app/components/conversation-info/advanced-info-accordion/advanced-info-accordion.component.ts +53 -0
- package/src/app/components/conversation-info/conversation-info.module.ts +13 -0
- package/src/app/components/conversation-info/info-content/info-content.component.html +18 -0
- package/src/app/components/conversation-info/info-content/info-content.component.scss +5 -0
- package/src/app/components/conversation-info/info-content/info-content.component.spec.ts +24 -0
- package/src/app/components/conversation-info/info-content/info-content.component.ts +395 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +57 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.scss +62 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.spec.ts +24 -0
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +67 -0
- package/src/app/components/conversation-info/info-group/info-group.component.html +115 -0
- package/src/app/components/conversation-info/info-group/info-group.component.scss +80 -0
- package/src/app/components/conversation-info/info-group/info-group.component.spec.ts +24 -0
- package/src/app/components/conversation-info/info-group/info-group.component.ts +218 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.html +6 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.scss +0 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.spec.ts +24 -0
- package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts +29 -0
- package/src/app/components/ddp-header/ddp-header.component.html +31 -0
- package/src/app/components/ddp-header/ddp-header.component.scss +26 -0
- package/src/app/components/ddp-header/ddp-header.component.spec.ts +24 -0
- package/src/app/components/ddp-header/ddp-header.component.ts +33 -0
- package/src/app/components/image-viewer/image-viewer.component.html +23 -0
- package/src/app/components/image-viewer/image-viewer.component.scss +107 -0
- package/src/app/components/image-viewer/image-viewer.component.spec.ts +24 -0
- package/src/app/components/image-viewer/image-viewer.component.ts +38 -0
- package/src/app/components/project-item/project-item.component.html +147 -0
- package/src/app/components/project-item/project-item.component.scss +669 -0
- package/src/app/components/project-item/project-item.component.spec.ts +24 -0
- package/src/app/components/project-item/project-item.component.ts +350 -0
- package/src/app/components/utils/avatar-profile/avatar-profile.component.html +12 -0
- package/src/app/components/utils/avatar-profile/avatar-profile.component.scss +29 -0
- package/src/app/components/utils/avatar-profile/avatar-profile.component.spec.ts +24 -0
- package/src/app/components/utils/avatar-profile/avatar-profile.component.ts +41 -0
- package/src/app/components/utils/user-presence/user-presence.component.html +2 -0
- package/src/app/components/utils/user-presence/user-presence.component.scss +24 -0
- package/src/app/components/utils/user-presence/user-presence.component.spec.ts +24 -0
- package/src/app/components/utils/user-presence/user-presence.component.ts +159 -0
- package/src/app/directives/autofocus.directive.ts +41 -0
- package/src/app/directives/html-entities-encode.pipe.spec.ts +8 -0
- package/src/app/directives/html-entities-encode.pipe.ts +17 -0
- package/src/app/directives/marked.pipe.spec.ts +8 -0
- package/src/app/directives/marked.pipe.ts +27 -0
- package/src/app/directives/safe-html.pipe.ts +16 -0
- package/src/app/pages/authentication/login/login-routing.module.ts +17 -0
- package/src/app/pages/authentication/login/login.module.ts +39 -0
- package/src/app/pages/authentication/login/login.page.html +7 -0
- package/src/app/pages/authentication/login/login.page.scss +5 -0
- package/src/app/pages/authentication/login/login.page.spec.ts +24 -0
- package/src/app/pages/authentication/login/login.page.ts +187 -0
- package/src/app/pages/contacts-directory/contacts-directory-routing.module.ts +17 -0
- package/src/app/pages/contacts-directory/contacts-directory.module.ts +42 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.html +19 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +0 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.spec.ts +24 -0
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +125 -0
- package/src/app/pages/conversation-detail/conversation-detail-routing.module.ts +17 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +69 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.html +191 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +492 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.spec.ts +24 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1525 -0
- package/src/app/pages/conversations-list/conversations-list-routing.module.ts +17 -0
- package/src/app/pages/conversations-list/conversations-list.module.ts +43 -0
- package/src/app/pages/conversations-list/conversations-list.page.html +112 -0
- package/src/app/pages/conversations-list/conversations-list.page.scss +302 -0
- package/src/app/pages/conversations-list/conversations-list.page.spec.ts +24 -0
- package/src/app/pages/conversations-list/conversations-list.page.ts +1032 -0
- package/src/app/pages/details/details-routing.module.ts +17 -0
- package/src/app/pages/details/details.module.ts +21 -0
- package/src/app/pages/details/details.page.html +28 -0
- package/src/app/pages/details/details.page.scss +23 -0
- package/src/app/pages/details/details.page.spec.ts +24 -0
- package/src/app/pages/details/details.page.ts +65 -0
- package/src/app/pages/loader-preview/loader-preview-routing.module.ts +17 -0
- package/src/app/pages/loader-preview/loader-preview.module.ts +29 -0
- package/src/app/pages/loader-preview/loader-preview.page.html +62 -0
- package/src/app/pages/loader-preview/loader-preview.page.scss +117 -0
- package/src/app/pages/loader-preview/loader-preview.page.spec.ts +24 -0
- package/src/app/pages/loader-preview/loader-preview.page.ts +353 -0
- package/src/app/pages/profile-info/profile-info-routing.module.ts +17 -0
- package/src/app/pages/profile-info/profile-info.module.ts +41 -0
- package/src/app/pages/profile-info/profile-info.page.html +86 -0
- package/src/app/pages/profile-info/profile-info.page.scss +264 -0
- package/src/app/pages/profile-info/profile-info.page.spec.ts +24 -0
- package/src/app/pages/profile-info/profile-info.page.ts +223 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations-routing.module.ts +17 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.module.ts +22 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +22 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +79 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.spec.ts +24 -0
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +116 -0
- package/src/app/services/app-config.ts +107 -0
- package/src/app/services/canned-responses/canned-responses.service.spec.ts +12 -0
- package/src/app/services/canned-responses/canned-responses.service.ts +49 -0
- package/src/app/services/contacts/contacts.service.spec.ts +12 -0
- package/src/app/services/contacts/contacts.service.ts +172 -0
- package/src/app/services/events-service.ts +79 -0
- package/src/app/services/nav-proxy.service.spec.ts +12 -0
- package/src/app/services/nav-proxy.service.ts +80 -0
- package/src/app/services/network-service/network.service.spec.ts +12 -0
- package/src/app/services/network-service/network.service.ts +46 -0
- package/src/app/services/tiledesk/tiledesk.service.spec.ts +12 -0
- package/src/app/services/tiledesk/tiledesk.service.ts +99 -0
- package/src/app/services/websocket/websocket-js.ts +560 -0
- package/src/app/services/websocket/websocket.service.spec.ts +12 -0
- package/src/app/services/websocket/websocket.service.ts +292 -0
- package/src/app/shared/shared-conversation-info.module.ts +33 -0
- package/src/app/shared/shared.module.ts +130 -0
- package/src/{utils → app/utils}/constants.ts-e +0 -0
- package/src/app/utils/scrollbar-theme.directive.ts +63 -0
- package/src/assets/i18n/en.json +122 -38
- package/src/assets/i18n/it.json +101 -10
- package/src/assets/icon/favicon.ico +0 -0
- package/src/assets/icon/ionic_favicon.png +0 -0
- package/src/assets/images/f21ico-done.svg +1 -0
- package/src/assets/images/f21ico-done_all.svg +1 -0
- package/src/assets/images/f21ico-schedule.svg +1 -0
- package/src/assets/images/file-alt-solid.png +0 -0
- package/src/assets/images/no_conversation.jpg +0 -0
- package/src/assets/{img → images}/no_image.png +0 -0
- package/src/assets/js/chat21client.js +1027 -0
- package/src/assets/js/mqtt/4.1.0/mqtt.min.js +1 -0
- package/src/assets/js/mqtt/4.2.6/mqtt.min.js +1 -0
- package/src/assets/js/mqtt/4.2.8/mqtt.min.js +1 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/shapes.svg +1 -0
- package/src/assets/sounds/pling.mp3 +0 -0
- package/src/assets/transparent.png +0 -0
- package/src/chat-config-mqtt-ver-uploaded.json +22 -0
- package/src/chat-config-mqtt.json +26 -0
- package/src/chat-config-pre-test.json +32 -0
- package/src/chat-config-pre.json +23 -0
- package/src/chat-config-template.json +20 -6
- package/src/chat-config.json +30 -0
- package/src/{models → chat21-core/models}/conversation.ts +6 -2
- package/src/{models → chat21-core/models}/group.ts +7 -5
- package/src/{models → chat21-core/models}/message.ts +8 -8
- package/src/{models → chat21-core/models}/upload.ts +5 -5
- package/src/{models → chat21-core/models}/user.ts +2 -1
- package/src/chat21-core/providers/abstract/app-storage.service.spec.ts +15 -0
- package/src/chat21-core/providers/abstract/app-storage.service.ts +17 -0
- package/src/chat21-core/providers/abstract/archivedconversations-handler.service.spec.ts +13 -0
- package/src/chat21-core/providers/abstract/archivedconversations-handler.service.ts +34 -0
- package/src/chat21-core/providers/abstract/conversation-handler-builder.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/conversation-handler-builder.service.ts +11 -0
- package/src/chat21-core/providers/abstract/conversation-handler.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/conversation-handler.service.ts +43 -0
- package/src/chat21-core/providers/abstract/conversations-handler.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/conversations-handler.service.ts +42 -0
- package/src/chat21-core/providers/abstract/groups-handler.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/groups-handler.service.ts +28 -0
- package/src/chat21-core/providers/abstract/image-repo.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/image-repo.service.ts +26 -0
- package/src/chat21-core/providers/abstract/logger.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/logger.service.ts +16 -0
- package/src/chat21-core/providers/abstract/messagingAuth.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/messagingAuth.service.ts +54 -0
- package/src/chat21-core/providers/abstract/notifications.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/notifications.service.ts +31 -0
- package/src/chat21-core/providers/abstract/presence.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/presence.service.ts +34 -0
- package/src/chat21-core/providers/abstract/typing.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/typing.service.ts +31 -0
- package/src/chat21-core/providers/abstract/upload.service.spec.ts +12 -0
- package/src/chat21-core/providers/abstract/upload.service.ts +39 -0
- package/src/chat21-core/providers/chat-manager.ts +282 -0
- package/src/chat21-core/providers/custom-translate.service.spec.ts +12 -0
- package/src/chat21-core/providers/custom-translate.service.ts +42 -0
- package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +476 -0
- package/src/chat21-core/providers/firebase/firebase-auth-service.ts +376 -0
- package/src/chat21-core/providers/firebase/firebase-conversation-handler-builder.service.ts +19 -0
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +416 -0
- package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +570 -0
- package/src/chat21-core/providers/firebase/firebase-groups-handler.ts +303 -0
- package/src/chat21-core/providers/firebase/firebase-image-repo.ts +40 -0
- package/src/chat21-core/providers/firebase/firebase-init-service.ts +31 -0
- package/src/chat21-core/providers/firebase/firebase-notifications.ts +246 -0
- package/src/chat21-core/providers/firebase/firebase-presence.service.ts +190 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +93 -0
- package/src/chat21-core/providers/firebase/firebase-upload.service.ts +106 -0
- package/src/chat21-core/providers/localSessionStorage.ts +215 -0
- package/src/chat21-core/providers/logger/customLogger.ts +70 -0
- package/src/chat21-core/providers/logger/loggerInstance.ts +20 -0
- package/src/chat21-core/providers/mqtt/chat-service.ts +44 -0
- package/src/chat21-core/providers/mqtt/mqtt-archivedconversations-handler.ts +707 -0
- package/src/chat21-core/providers/mqtt/mqtt-auth-service.ts +313 -0
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler-builder.service.ts +25 -0
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +446 -0
- package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +601 -0
- package/src/chat21-core/providers/mqtt/mqtt-groups-handler.ts +139 -0
- package/src/chat21-core/providers/mqtt/mqtt-notifications.ts +122 -0
- package/src/chat21-core/providers/mqtt/mqtt-presence.service.ts +229 -0
- package/src/chat21-core/providers/mqtt/mqtt-typing.service.ts +93 -0
- package/src/chat21-core/providers/native/native-image-repo.ts +30 -0
- package/src/chat21-core/providers/native/native-upload-service.ts +85 -0
- package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.spec.ts +12 -0
- package/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +211 -0
- package/src/chat21-core/utils/constants.ts +109 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.html +6 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +62 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.spec.ts +24 -0
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +114 -0
- package/src/chat21-core/utils/utils-message.ts +117 -0
- package/src/chat21-core/utils/utils-user.ts +46 -0
- package/src/chat21-core/utils/utils.ts +893 -0
- package/src/firebase-messaging-sw-template.js +1 -1
- package/src/global.scss +585 -0
- package/src/index.html +71 -42
- package/src/main.ts +12 -0
- package/src/manifest.json +0 -11
- package/src/models/department.ts +12 -0
- package/src/polyfills.ts +73 -0
- package/src/test.ts +21 -0
- package/src/theme/variables.scss +236 -93
- package/src/variables.scss +30 -0
- package/src/zone-flags.ts +5 -0
- package/tsconfig.app.json +14 -0
- package/tsconfig.json +23 -18
- package/tsconfig.spec.json +19 -0
- package/tslint.json +84 -7
- package/app.json +0 -7
- package/curl +0 -1
- package/deploy_dev.sh +0 -28
- package/docs/changelog.html +0 -227
- package/docs/classes/ConversationModel.html +0 -1022
- package/docs/classes/GroupModel.html +0 -527
- package/docs/classes/MessageModel.html +0 -843
- package/docs/classes/UploadModel.html +0 -417
- package/docs/classes/UserModel.html +0 -728
- package/docs/classes/_DetailPage.html +0 -144
- package/docs/classes/_MasterPage.html +0 -144
- package/docs/components/ArchivedConversationsPage.html +0 -1024
- package/docs/components/ChatBubble.html +0 -327
- package/docs/components/DettaglioConversazionePage.html +0 -6060
- package/docs/components/ElasticTextarea.html +0 -619
- package/docs/components/InfoAdvancedPage.html +0 -656
- package/docs/components/InfoConversationPage.html +0 -5681
- package/docs/components/InfoMessagePage.html +0 -993
- package/docs/components/InfoUserPage.html +0 -1420
- package/docs/components/ListaConversazioniPage.html +0 -3576
- package/docs/components/LoginPage.html +0 -1457
- package/docs/components/MyApp.html +0 -1388
- package/docs/components/PlaceholderPage.html +0 -397
- package/docs/components/PopoverPage.html +0 -986
- package/docs/components/PopoverProfilePage.html +0 -639
- package/docs/components/ProfilePage.html +0 -1187
- package/docs/components/RegisterPage.html +0 -1271
- package/docs/components/ResetpwdPage.html +0 -1039
- package/docs/components/UpdateImageProfilePage.html +0 -997
- package/docs/components/UsersPage.html +0 -1297
- package/docs/coverage.html +0 -1421
- package/docs/dependencies.html +0 -210
- package/docs/directives/AutosizeDirective.html +0 -556
- package/docs/fonts/FontAwesome.otf +0 -0
- package/docs/fonts/fontawesome-webfont.eot +0 -0
- package/docs/fonts/fontawesome-webfont.svg +0 -685
- package/docs/fonts/fontawesome-webfont.ttf +0 -0
- package/docs/fonts/fontawesome-webfont.woff +0 -0
- package/docs/fonts/fontawesome-webfont.woff2 +0 -0
- package/docs/fonts/ionicons.eot +0 -0
- package/docs/fonts/ionicons.svg +0 -2090
- package/docs/fonts/ionicons.ttf +0 -0
- package/docs/fonts/ionicons.woff +0 -0
- package/docs/fonts/ionicons.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-300.eot +0 -0
- package/docs/fonts/roboto-v15-latin-300.svg +0 -314
- package/docs/fonts/roboto-v15-latin-300.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff +0 -0
- package/docs/fonts/roboto-v15-latin-300.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-700.eot +0 -0
- package/docs/fonts/roboto-v15-latin-700.svg +0 -310
- package/docs/fonts/roboto-v15-latin-700.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff +0 -0
- package/docs/fonts/roboto-v15-latin-700.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-italic.eot +0 -0
- package/docs/fonts/roboto-v15-latin-italic.svg +0 -323
- package/docs/fonts/roboto-v15-latin-italic.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-italic.woff +0 -0
- package/docs/fonts/roboto-v15-latin-italic.woff2 +0 -0
- package/docs/fonts/roboto-v15-latin-regular.eot +0 -0
- package/docs/fonts/roboto-v15-latin-regular.svg +0 -308
- package/docs/fonts/roboto-v15-latin-regular.ttf +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff +0 -0
- package/docs/fonts/roboto-v15-latin-regular.woff2 +0 -0
- package/docs/graph/dependencies.svg +0 -870
- package/docs/images/compodoc-vectorise-inverted.png +0 -0
- package/docs/images/compodoc-vectorise-inverted.svg +0 -201
- package/docs/images/compodoc-vectorise.png +0 -0
- package/docs/images/compodoc-vectorise.svg +0 -201
- package/docs/images/coverage-badge-documentation.svg +0 -9
- package/docs/images/coverage-badge.svg +0 -9
- package/docs/images/favicon.ico +0 -0
- package/docs/index.html +0 -233
- package/docs/injectables/AppConfigProvider.html +0 -411
- package/docs/injectables/AuthService.html +0 -1016
- package/docs/injectables/ChatArchivedConversationsHandler.html +0 -1832
- package/docs/injectables/ChatContactsSynchronizer.html +0 -841
- package/docs/injectables/ChatConversationHandler.html +0 -1960
- package/docs/injectables/ChatConversationsHandler.html +0 -2584
- package/docs/injectables/ChatManager.html +0 -1779
- package/docs/injectables/ChatPresenceHandler.html +0 -1187
- package/docs/injectables/CustomTranslateService.html +0 -496
- package/docs/injectables/DatabaseProvider.html +0 -1444
- package/docs/injectables/GroupService.html +0 -1458
- package/docs/injectables/MessagingService.html +0 -1165
- package/docs/injectables/NavProxyService.html +0 -1028
- package/docs/injectables/TiledeskConversationProvider.html +0 -945
- package/docs/injectables/UploadService.html +0 -791
- package/docs/injectables/UserService.html +0 -1612
- package/docs/js/compodoc.js +0 -14
- package/docs/js/lazy-load-graphs.js +0 -44
- package/docs/js/libs/EventDispatcher.js +0 -5
- package/docs/js/libs/bootstrap-native.js +0 -2
- package/docs/js/libs/clipboard.min.js +0 -7
- package/docs/js/libs/custom-elements-es5-adapter.js +0 -15
- package/docs/js/libs/custom-elements.min.js +0 -38
- package/docs/js/libs/d3.v3.min.js +0 -2
- package/docs/js/libs/deep-iterator.js +0 -2
- package/docs/js/libs/es6-shim.min.js +0 -11
- package/docs/js/libs/htmlparser.js +0 -23
- package/docs/js/libs/innersvg.js +0 -9
- package/docs/js/libs/lit-html.js +0 -1
- package/docs/js/libs/prism.js +0 -14
- package/docs/js/libs/promise.min.js +0 -6
- package/docs/js/libs/svg-pan-zoom.min.js +0 -3
- package/docs/js/libs/tablesort.min.js +0 -6
- package/docs/js/libs/tablesort.number.min.js +0 -6
- package/docs/js/libs/vis.min.js +0 -46
- package/docs/js/libs/zepto.min.js +0 -2
- package/docs/js/menu-wc.js +0 -594
- package/docs/js/menu.js +0 -261
- package/docs/js/routes.js +0 -280
- package/docs/js/search/lunr.min.js +0 -6
- package/docs/js/search/search-lunr.js +0 -67
- package/docs/js/search/search.js +0 -268
- package/docs/js/search/search_index.js +0 -4
- package/docs/js/sourceCode.js +0 -58
- package/docs/js/svg-pan-zoom.controls.js +0 -53
- package/docs/js/tabs.js +0 -21
- package/docs/js/tree.js +0 -147
- package/docs/license.html +0 -664
- package/docs/miscellaneous/functions.html +0 -2417
- package/docs/miscellaneous/variables.html +0 -994
- package/docs/modules/AppModule/dependencies.svg +0 -454
- package/docs/modules/AppModule.html +0 -967
- package/docs/modules/ArchivedConversationsPageModule/dependencies.svg +0 -50
- package/docs/modules/ArchivedConversationsPageModule.html +0 -225
- package/docs/modules/DettaglioConversazionePageModule/dependencies.svg +0 -66
- package/docs/modules/DettaglioConversazionePageModule.html +0 -256
- package/docs/modules/InfoAdvancedPageModule/dependencies.svg +0 -50
- package/docs/modules/InfoAdvancedPageModule.html +0 -225
- package/docs/modules/InfoConversationPageModule/dependencies.svg +0 -50
- package/docs/modules/InfoConversationPageModule.html +0 -227
- package/docs/modules/InfoUserPageModule/dependencies.svg +0 -50
- package/docs/modules/InfoUserPageModule.html +0 -225
- package/docs/modules/ListaConversazioniPageModule/dependencies.svg +0 -66
- package/docs/modules/ListaConversazioniPageModule.html +0 -255
- package/docs/modules/LoginModule/dependencies.svg +0 -66
- package/docs/modules/LoginModule.html +0 -253
- package/docs/modules/PlaceholderPageModule/dependencies.svg +0 -66
- package/docs/modules/PlaceholderPageModule.html +0 -253
- package/docs/modules/PopoverPageModule/dependencies.svg +0 -66
- package/docs/modules/PopoverPageModule.html +0 -253
- package/docs/modules/PopoverProfilePageModule/dependencies.svg +0 -66
- package/docs/modules/PopoverProfilePageModule.html +0 -253
- package/docs/modules/ProfilePageModule/dependencies.svg +0 -66
- package/docs/modules/ProfilePageModule.html +0 -253
- package/docs/modules/RegisterModule/dependencies.svg +0 -66
- package/docs/modules/RegisterModule.html +0 -253
- package/docs/modules/ResetpwdModule/dependencies.svg +0 -66
- package/docs/modules/ResetpwdModule.html +0 -253
- package/docs/modules/UpdateImageProfilePageModule/dependencies.svg +0 -66
- package/docs/modules/UpdateImageProfilePageModule.html +0 -253
- package/docs/modules/UsersModule/dependencies.svg +0 -66
- package/docs/modules/UsersModule.html +0 -253
- package/docs/modules.html +0 -379
- package/docs/overview.html +0 -1033
- package/docs/styles/bootstrap-card.css +0 -219
- package/docs/styles/bootstrap.min.css +0 -5
- package/docs/styles/compodoc.css +0 -996
- package/docs/styles/font-awesome.min.css +0 -4
- package/docs/styles/ionicons.min.css +0 -11
- package/docs/styles/laravel.css +0 -69
- package/docs/styles/material.css +0 -109
- package/docs/styles/original.css +0 -47
- package/docs/styles/postmark.css +0 -224
- package/docs/styles/prism.css +0 -267
- package/docs/styles/readthedocs.css +0 -108
- package/docs/styles/reset.css +0 -48
- package/docs/styles/stripe.css +0 -65
- package/docs/styles/style.css +0 -7
- package/docs/styles/tablesort.css +0 -33
- package/docs/styles/vagrant.css +0 -96
- package/firebase-functions/.firebaserc +0 -5
- package/firebase-functions/firebase.json +0 -1
- package/firebase-functions/functions/index.js +0 -208
- package/firebase-functions/functions/package.json +0 -9
- package/google-services.json +0 -42
- package/hooks/README.md +0 -196
- package/resources/android/icon/drawable-hdpi-icon.png +0 -0
- package/resources/android/icon/drawable-ldpi-icon.png +0 -0
- package/resources/android/icon/drawable-mdpi-icon.png +0 -0
- package/resources/android/icon/drawable-xhdpi-icon.png +0 -0
- package/resources/android/icon/drawable-xxhdpi-icon.png +0 -0
- package/resources/android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/resources/android/splash/drawable-land-hdpi-screen.png +0 -0
- package/resources/android/splash/drawable-land-ldpi-screen.png +0 -0
- package/resources/android/splash/drawable-land-mdpi-screen.png +0 -0
- package/resources/android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/resources/android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/resources/android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-hdpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-ldpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-mdpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/resources/android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/resources/icon.png +0 -0
- package/resources/icon.png.md5 +0 -1
- package/resources/ios/icon/icon-1024.png +0 -0
- package/resources/ios/icon/icon-40.png +0 -0
- package/resources/ios/icon/icon-40@2x.png +0 -0
- package/resources/ios/icon/icon-40@3x.png +0 -0
- package/resources/ios/icon/icon-50.png +0 -0
- package/resources/ios/icon/icon-50@2x.png +0 -0
- package/resources/ios/icon/icon-60.png +0 -0
- package/resources/ios/icon/icon-60@2x.png +0 -0
- package/resources/ios/icon/icon-60@3x.png +0 -0
- package/resources/ios/icon/icon-72.png +0 -0
- package/resources/ios/icon/icon-72@2x.png +0 -0
- package/resources/ios/icon/icon-76.png +0 -0
- package/resources/ios/icon/icon-76@2x.png +0 -0
- package/resources/ios/icon/icon-83.5@2x.png +0 -0
- package/resources/ios/icon/icon-small.png +0 -0
- package/resources/ios/icon/icon-small@2x.png +0 -0
- package/resources/ios/icon/icon-small@3x.png +0 -0
- package/resources/ios/icon/icon.png +0 -0
- package/resources/ios/icon/icon@2x.png +0 -0
- package/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
- package/resources/ios/splash/Default-667h.png +0 -0
- package/resources/ios/splash/Default-736h.png +0 -0
- package/resources/ios/splash/Default-Landscape-736h.png +0 -0
- package/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
- package/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
- package/resources/ios/splash/Default-Landscape~ipad.png +0 -0
- package/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
- package/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
- package/resources/ios/splash/Default-Portrait~ipad.png +0 -0
- package/resources/ios/splash/Default@2x~iphone.png +0 -0
- package/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
- package/resources/ios/splash/Default~iphone.png +0 -0
- package/resources/splash.png +0 -0
- package/resources/splash.png.md5 +0 -1
- package/server.js +0 -7
- package/src/app/app.html +0 -56
- package/src/app/app.scss +0 -236
- package/src/app/main.ts +0 -9
- package/src/assets/chat-background.jpg +0 -0
- package/src/assets/chat21-ionic-pattern-2.svg +0 -5110
- package/src/assets/chat21-ionic-pattern.png +0 -0
- package/src/assets/chat21-ionic-pattern.svg +0 -1
- package/src/assets/download.svg +0 -1
- package/src/assets/dummyDump.sql +0 -1
- package/src/assets/icon/favicon_old.ico +0 -0
- package/src/assets/img/c21-down-gray.svg +0 -1
- package/src/assets/img/chat21-icon.png +0 -0
- package/src/assets/img/f21ico-attached.svg +0 -1
- package/src/assets/img/f21ico-close.svg +0 -1
- package/src/assets/img/f21ico-photo.svg +0 -1
- package/src/assets/img/ic_keyboard_arrow_down_black_24px.svg +0 -4
- package/src/assets/img/ic_keyboard_arrow_down_white_24px.svg +0 -4
- package/src/assets/img/icon.png +0 -0
- package/src/assets/message-mine.png +0 -0
- package/src/assets/message-other.png +0 -0
- package/src/assets/pling.mp3 +0 -0
- package/src/assets/splash.png +0 -0
- package/src/declarations.d.ts +0 -14
- package/src/directives/autosize/autosize.ts +0 -82
- package/src/environments/environment.pre.ts +0 -22
- package/src/environments/environment.prod.ts +0 -22
- package/src/environments/environment.ts +0 -21
- package/src/pages/_DetailPage.ts +0 -1
- package/src/pages/_MasterPage.ts +0 -1
- package/src/pages/archived-conversations/archived-conversations.html +0 -32
- package/src/pages/archived-conversations/archived-conversations.module.ts +0 -13
- package/src/pages/archived-conversations/archived-conversations.scss +0 -153
- package/src/pages/archived-conversations/archived-conversations.ts +0 -121
- package/src/pages/authentication/login/login.html +0 -58
- package/src/pages/authentication/login/login.module.ts +0 -16
- package/src/pages/authentication/login/login.scss +0 -121
- package/src/pages/authentication/login/login.ts +0 -221
- package/src/pages/authentication/register/register.html +0 -88
- package/src/pages/authentication/register/register.module.ts +0 -16
- package/src/pages/authentication/register/register.scss +0 -95
- package/src/pages/authentication/register/register.ts +0 -122
- package/src/pages/authentication/resetpwd/resetpwd.html +0 -40
- package/src/pages/authentication/resetpwd/resetpwd.module.ts +0 -16
- package/src/pages/authentication/resetpwd/resetpwd.scss +0 -102
- package/src/pages/authentication/resetpwd/resetpwd.ts +0 -93
- package/src/pages/components/chatBubble_old/chatBubble.scss +0 -83
- package/src/pages/components/chatBubble_old/chatBubble.ts +0 -30
- package/src/pages/components/elasticTextarea_old.ts +0 -46
- package/src/pages/dettaglio-conversazione/dettaglio-conversazione.html +0 -261
- package/src/pages/dettaglio-conversazione/dettaglio-conversazione.module.ts +0 -19
- package/src/pages/dettaglio-conversazione/dettaglio-conversazione.scss +0 -701
- package/src/pages/dettaglio-conversazione/dettaglio-conversazione.ts +0 -1395
- package/src/pages/index.ts +0 -5
- package/src/pages/info-advanced/info-advanced.html +0 -90
- package/src/pages/info-advanced/info-advanced.module.ts +0 -13
- package/src/pages/info-advanced/info-advanced.scss +0 -196
- package/src/pages/info-advanced/info-advanced.ts +0 -44
- package/src/pages/info-conversation/info-conversation.html +0 -225
- package/src/pages/info-conversation/info-conversation.module.ts +0 -15
- package/src/pages/info-conversation/info-conversation.scss +0 -444
- package/src/pages/info-conversation/info-conversation.ts +0 -1233
- package/src/pages/info-message/info-message.html +0 -74
- package/src/pages/info-message/info-message.module.ts +0 -13
- package/src/pages/info-message/info-message.scss +0 -216
- package/src/pages/info-message/info-message.ts +0 -89
- package/src/pages/info-user/info-user.html +0 -89
- package/src/pages/info-user/info-user.module.ts +0 -13
- package/src/pages/info-user/info-user.scss +0 -187
- package/src/pages/info-user/info-user.ts +0 -177
- package/src/pages/lista-conversazioni/lista-conversazioni.html +0 -88
- package/src/pages/lista-conversazioni/lista-conversazioni.module.ts +0 -18
- package/src/pages/lista-conversazioni/lista-conversazioni.scss +0 -245
- package/src/pages/lista-conversazioni/lista-conversazioni.ts +0 -736
- package/src/pages/placeholder/placeholder.html +0 -3
- package/src/pages/placeholder/placeholder.module.ts +0 -16
- package/src/pages/placeholder/placeholder.scss +0 -23
- package/src/pages/placeholder/placeholder.ts +0 -18
- package/src/pages/popover/popover.html +0 -27
- package/src/pages/popover/popover.module.ts +0 -16
- package/src/pages/popover/popover.scss +0 -23
- package/src/pages/popover/popover.ts +0 -95
- package/src/pages/popover-profile/popover-profile.html +0 -20
- package/src/pages/popover-profile/popover-profile.module.ts +0 -16
- package/src/pages/popover-profile/popover-profile.scss +0 -10
- package/src/pages/popover-profile/popover-profile.ts +0 -40
- package/src/pages/profile/profile.html +0 -54
- package/src/pages/profile/profile.module.ts +0 -16
- package/src/pages/profile/profile.scss +0 -45
- package/src/pages/profile/profile.ts +0 -108
- package/src/pages/update-image-profile/update-image-profile.html +0 -39
- package/src/pages/update-image-profile/update-image-profile.module.ts +0 -16
- package/src/pages/update-image-profile/update-image-profile.scss +0 -50
- package/src/pages/update-image-profile/update-image-profile.ts +0 -111
- package/src/pages/users/users.html +0 -55
- package/src/pages/users/users.module.ts +0 -16
- package/src/pages/users/users.scss +0 -10
- package/src/pages/users/users.ts +0 -222
- package/src/providers/app-config/app-config.ts +0 -33
- package/src/providers/auth-service.ts +0 -140
- package/src/providers/canned-responses-service/canned-responses-service.ts +0 -57
- package/src/providers/chat-archived-conversations-handler.ts +0 -283
- package/src/providers/chat-contacts-synchronizer.ts +0 -179
- package/src/providers/chat-conversation-handler.ts +0 -547
- package/src/providers/chat-conversations-handler.ts +0 -519
- package/src/providers/chat-manager/chat-manager.ts +0 -246
- package/src/providers/chat-presence-handler.ts +0 -188
- package/src/providers/database/database.ts +0 -214
- package/src/providers/group/group.ts +0 -243
- package/src/providers/messaging-service.ts +0 -267
- package/src/providers/nav-proxy.ts +0 -104
- package/src/providers/tiledesk-conversation/tiledesk-conversation.ts +0 -134
- package/src/providers/translate-service.ts +0 -61
- package/src/providers/upload-service/upload-service.ts +0 -117
- package/src/providers/user/user.ts +0 -320
- package/src/service-worker.js +0 -30
- package/src/utils/constants.ts +0 -73
- package/src/utils/utils.ts +0 -548
- package/src/videochat.php +0 -20
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<!-- <pre style="font-size: 12px;"> {{ groupDetail | json }} </pre> -->
|
|
2
|
+
|
|
3
|
+
<ion-content class="group-profile">
|
|
4
|
+
<ion-card class="first-card">
|
|
5
|
+
<div class="chat21-box-profile chat21-box">
|
|
6
|
+
<div class="chat21-content">
|
|
7
|
+
<div class="image-profile">
|
|
8
|
+
<app-avatar-profile [itemAvatar]="groupDetail"></app-avatar-profile>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="info-profile">
|
|
12
|
+
<div class="name">
|
|
13
|
+
<span class="read">{{groupDetail?.name}}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<!-- <div class="member-email">
|
|
17
|
+
<a [href]="'mailto:' + member.email + '?Subject='">
|
|
18
|
+
{{member.email}}
|
|
19
|
+
</a>
|
|
20
|
+
</div> -->
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
</ion-card>
|
|
25
|
+
|
|
26
|
+
<ion-list id="fake-members-list" *ngIf="displaySkeletonScreen">
|
|
27
|
+
<ion-item lines="none" *ngFor="let fake of generateFake(membersObjectLength)" style="margin-left:-3px">
|
|
28
|
+
<ion-avatar slot="start">
|
|
29
|
+
<ion-skeleton-text animated style="width: 44px; height: 44px;"></ion-skeleton-text>
|
|
30
|
+
</ion-avatar>
|
|
31
|
+
<ion-label>
|
|
32
|
+
<h3>
|
|
33
|
+
<ion-skeleton-text animated style="width: 60%;position: relative;top: 2px;height: 16px;"></ion-skeleton-text>
|
|
34
|
+
</h3>
|
|
35
|
+
</ion-label>
|
|
36
|
+
</ion-item>
|
|
37
|
+
</ion-list>
|
|
38
|
+
|
|
39
|
+
<!-- <pre style="font-size: 8px;"> {{member_array | json }} </pre> <pre style="font-size: 8px;"> {{displaySkeletonScreen}} </pre> -->
|
|
40
|
+
<ion-list id="members-list" *ngIf="groupDetail?.member_array?.length > 0 && !displaySkeletonScreen">
|
|
41
|
+
<ion-item lines="none" *ngFor='let member of groupDetail?.member_array'>
|
|
42
|
+
<ion-avatar slot="start" style="margin-right: 12px;">
|
|
43
|
+
<app-avatar-profile [itemAvatar]=member></app-avatar-profile>
|
|
44
|
+
<div class="user-online" [ngStyle]="{ 'background-color':(member?.userOnline)?'#24d066':'#db4437' }"></div>
|
|
45
|
+
</ion-avatar>
|
|
46
|
+
<ion-label>
|
|
47
|
+
<h3>
|
|
48
|
+
{{ member.fullname }}
|
|
49
|
+
</h3>
|
|
50
|
+
</ion-label>
|
|
51
|
+
</ion-item>
|
|
52
|
+
</ion-list>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<div *ngIf="groupDetail" style="display:none">
|
|
58
|
+
<div *ngFor='let member of groupDetail?.member_array'>
|
|
59
|
+
<ion-grid>
|
|
60
|
+
<ion-row class="ion-align-items-center">
|
|
61
|
+
<ion-col size="3">
|
|
62
|
+
<div class="member-profile">
|
|
63
|
+
<!-- (click)="copyLoggedUserUID({member.userid)" -->
|
|
64
|
+
<!-- <div class="avatar-container" [tooltip]="useruidTooltip" [options]="tooltipOptions" placement="top"
|
|
65
|
+
content-type="template" > -->
|
|
66
|
+
<app-avatar-profile [itemAvatar]=member></app-avatar-profile>
|
|
67
|
+
<!-- </div> -->
|
|
68
|
+
<!-- <ng-template #useruidTooltip>
|
|
69
|
+
<span> {{member.userid}}</span>
|
|
70
|
+
</ng-template> -->
|
|
71
|
+
|
|
72
|
+
<div class="user-online" [ngStyle]="{ 'background-color':(member?.userOnline)?'#24d066':'#db4437' }">
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</ion-col>
|
|
78
|
+
<ion-col>
|
|
79
|
+
<ion-label>
|
|
80
|
+
{{ member.fullname }}
|
|
81
|
+
</ion-label>
|
|
82
|
+
|
|
83
|
+
<!-- <div class="info-group-member-email">
|
|
84
|
+
<a [href]="'mailto:' + member.email + '?Subject='">
|
|
85
|
+
{{member.email}}
|
|
86
|
+
</a>
|
|
87
|
+
</div> -->
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</ion-col>
|
|
91
|
+
</ion-row>
|
|
92
|
+
</ion-grid>
|
|
93
|
+
<!-- </ion-avatar>
|
|
94
|
+
</ion-item> -->
|
|
95
|
+
<!-- {{member | json}}
|
|
96
|
+
|
|
97
|
+
>>> {{member?.avatar}} -->
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<!-- <ion-list>
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</ion-list> -->
|
|
105
|
+
|
|
106
|
+
<!-- </div> -->
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<!-- <app-advanced-info-accordion
|
|
110
|
+
[advancedAttributes]="advancedAttributes"
|
|
111
|
+
[translationMap]="translationMap">
|
|
112
|
+
|
|
113
|
+
</app-advanced-info-accordion> -->
|
|
114
|
+
|
|
115
|
+
</ion-content>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.group-profile {
|
|
2
|
+
ion-card {
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 10px 20px;
|
|
5
|
+
margin: 0px 0 1px 0;
|
|
6
|
+
border-radius: 0;
|
|
7
|
+
-webkit-box-shadow: none;
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
border-bottom: 1px solid rgba(169, 169, 169, 0.2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.image-profile {
|
|
13
|
+
padding: 0 0 0 0;
|
|
14
|
+
width: 100px;
|
|
15
|
+
height: 100px;
|
|
16
|
+
margin: auto;
|
|
17
|
+
line-height: 100px;
|
|
18
|
+
font-size: 40px;
|
|
19
|
+
color: white;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.member-profile {
|
|
23
|
+
padding: 0 0 0 0;
|
|
24
|
+
width: 55px;
|
|
25
|
+
height: 55px;
|
|
26
|
+
margin: auto;
|
|
27
|
+
line-height: 57px;
|
|
28
|
+
font-size: 25px;
|
|
29
|
+
color: white;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.user-online {
|
|
34
|
+
height: 11px;
|
|
35
|
+
width: 11px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 44px;
|
|
39
|
+
left: 40px;
|
|
40
|
+
border: 0.5px solid #fff;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.user-presence {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 88px;
|
|
46
|
+
height: 12px;
|
|
47
|
+
left: calc(50% + 30px);
|
|
48
|
+
width: 100px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.info-profile {
|
|
52
|
+
padding: 10px 0 0 0;
|
|
53
|
+
text-align: center;
|
|
54
|
+
.name {
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
text-rendering: optimizeLegibility;
|
|
57
|
+
text-size-adjust: none;
|
|
58
|
+
user-select: text;
|
|
59
|
+
font-family: "Roboto", "Helvetica Neue", sans-serif;
|
|
60
|
+
-webkit-box-direction: normal;
|
|
61
|
+
color: #333333;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
font-size: 17px;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
-webkit-tap-highlight-color: transparent;
|
|
66
|
+
display: block;
|
|
67
|
+
font-size: large;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.info-group-member-email {
|
|
73
|
+
font-size: 13px;
|
|
74
|
+
margin-top: 2px;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
width: 205px;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { IonicModule } from '@ionic/angular';
|
|
3
|
+
|
|
4
|
+
import { InfoGroupComponent } from './info-group.component';
|
|
5
|
+
|
|
6
|
+
describe('InfoGroupComponent', () => {
|
|
7
|
+
let component: InfoGroupComponent;
|
|
8
|
+
let fixture: ComponentFixture<InfoGroupComponent>;
|
|
9
|
+
|
|
10
|
+
beforeEach(async(() => {
|
|
11
|
+
TestBed.configureTestingModule({
|
|
12
|
+
declarations: [ InfoGroupComponent ],
|
|
13
|
+
imports: [IonicModule.forRoot()]
|
|
14
|
+
}).compileComponents();
|
|
15
|
+
|
|
16
|
+
fixture = TestBed.createComponent(InfoGroupComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { TiledeskAuthService } from './../../../../chat21-core/providers/tiledesk/tiledesk-auth.service';
|
|
2
|
+
import { Component, OnInit, AfterViewInit, Input, OnChanges, Renderer2, EventEmitter, Output, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ImageRepoService } from 'src/chat21-core/providers/abstract/image-repo.service';
|
|
4
|
+
import { PresenceService } from 'src/chat21-core/providers/abstract/presence.service';
|
|
5
|
+
import { ContactsService } from 'src/app/services/contacts/contacts.service';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { takeUntil } from 'rxjs/operators';
|
|
8
|
+
import { filter } from 'rxjs/operators';
|
|
9
|
+
|
|
10
|
+
// Logger
|
|
11
|
+
import { LoggerService } from 'src/chat21-core/providers/abstract/logger.service';
|
|
12
|
+
import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
|
|
13
|
+
import { NavigationEnd, NavigationStart, Router } from '@angular/router';
|
|
14
|
+
import { Location, LocationStrategy, PathLocationStrategy, PopStateEvent } from '@angular/common';
|
|
15
|
+
|
|
16
|
+
// import {avatarPlaceholder, getColorBck} from 'src/chat21-core/utils/utils-user';
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'app-info-group',
|
|
19
|
+
templateUrl: './info-group.component.html',
|
|
20
|
+
styleUrls: ['./info-group.component.scss'],
|
|
21
|
+
})
|
|
22
|
+
export class InfoGroupComponent implements OnInit, AfterViewInit, OnChanges {
|
|
23
|
+
// objectKeys = Object.keys;
|
|
24
|
+
|
|
25
|
+
@Input() groupDetail: any;
|
|
26
|
+
// @Input() member_array: any;
|
|
27
|
+
public displaySkeletonScreen: boolean = true;
|
|
28
|
+
public member_array: any
|
|
29
|
+
private unsubscribe$: Subject<any> = new Subject<any>();
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
tooltip: HTMLElement;
|
|
33
|
+
tooltipOptions = {
|
|
34
|
+
'show-delay': 100,
|
|
35
|
+
'tooltip-class': 'chat-tooltip',
|
|
36
|
+
'theme': 'light',
|
|
37
|
+
'shadow': false,
|
|
38
|
+
'hide-delay-mobile': 0,
|
|
39
|
+
'hideDelayAfterClick': 3000,
|
|
40
|
+
'hide-delay': 200
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
private logger: LoggerService = LoggerInstance.getInstance();
|
|
44
|
+
route: string;
|
|
45
|
+
previousUrl: string;
|
|
46
|
+
membersObjectLength: number;
|
|
47
|
+
// @Output() pleaseDeleteMeEvent = new EventEmitter();
|
|
48
|
+
constructor(
|
|
49
|
+
public imageRepoService: ImageRepoService,
|
|
50
|
+
public presenceService: PresenceService,
|
|
51
|
+
public tiledeskAuthService: TiledeskAuthService,
|
|
52
|
+
public contactsService: ContactsService,
|
|
53
|
+
public renderer: Renderer2,
|
|
54
|
+
private router: Router,
|
|
55
|
+
public location: Location,
|
|
56
|
+
) {
|
|
57
|
+
|
|
58
|
+
this.logger.log('InfoGroupComponent >>> constructor HELLO !!!');
|
|
59
|
+
// this.router.events.subscribe((val) => {
|
|
60
|
+
// if (this.location.path() !== '') {
|
|
61
|
+
// this.route = this.location.path();
|
|
62
|
+
// this.logger.log('InfoGroupComponent - route ', this.route);
|
|
63
|
+
// }
|
|
64
|
+
// })
|
|
65
|
+
|
|
66
|
+
// const currentUrl = this.router.url;
|
|
67
|
+
// this.logger.log('InfoGroupComponent current_url ', currentUrl);
|
|
68
|
+
// .pipe(takeUntil(this.unsubscribe$))
|
|
69
|
+
router.events
|
|
70
|
+
.pipe(filter(event => event instanceof NavigationEnd))
|
|
71
|
+
|
|
72
|
+
.subscribe((event: NavigationEnd) => {
|
|
73
|
+
// console.log('InfoGroupComponent - router.events prev url :', event.url);
|
|
74
|
+
this.previousUrl = event.url;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
this.unsubscribe$.next();
|
|
78
|
+
this.unsubscribe$.complete();
|
|
79
|
+
this.member_array = []
|
|
80
|
+
// console.log('InfoGroupComponent - router.events member_array :', this.member_array);
|
|
81
|
+
// this.pleaseDeleteMeEvent.emit();
|
|
82
|
+
|
|
83
|
+
if (this.groupDetail && this.groupDetail.hasOwnProperty("member_array")) {
|
|
84
|
+
// console.log('InfoGroupComponent - router.events has Property member_array :', this.groupDetail.hasOwnProperty("member_array"));
|
|
85
|
+
delete this.groupDetail['member_array'];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// if (currentUrl !== this.previousUrl) {
|
|
90
|
+
|
|
91
|
+
// }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
ngOnInit() {
|
|
96
|
+
this.logger.log(' InfoGroupComponent - ngOnInit');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
ngAfterViewInit() {
|
|
100
|
+
this.logger.log('InfoGroupComponent - ngAfterViewInit ');
|
|
101
|
+
// this.logger.log('InfoGroupComponent conversationWith', this.conversationWith);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ngOnDestroy() {
|
|
105
|
+
// this.logger.log('ngOnDestroy ConversationDetailPage: ');
|
|
106
|
+
this.logger.log('InfoGroupComponent > ngOnDestroy');
|
|
107
|
+
this.displaySkeletonScreen = true
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public generateFake(count: number): Array<number> {
|
|
112
|
+
const indexes = [];
|
|
113
|
+
for (let i = 0; i < count; i++) {
|
|
114
|
+
indexes.push(i);
|
|
115
|
+
}
|
|
116
|
+
return indexes;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
ngOnChanges() {
|
|
121
|
+
this.displaySkeletonScreen = true
|
|
122
|
+
this.logger.log('InfoGroupComponent >>> ngOnChanges member_array', this.member_array);
|
|
123
|
+
// this.displaySkeletonScreen = true
|
|
124
|
+
this.logger.log('InfoGroupComponent ngOnChanges displaySkeletonScreen', this.displaySkeletonScreen);
|
|
125
|
+
|
|
126
|
+
this.logger.log('InfoGroupComponent ngOnChanges groupDetail', this.groupDetail);
|
|
127
|
+
this.membersObjectLength = null
|
|
128
|
+
if (this.groupDetail) {
|
|
129
|
+
this.membersObjectLength = Object.keys(this.groupDetail.members).length;
|
|
130
|
+
this.logger.log('InfoGroupComponent ngOnChanges groupDetail membersObjectLength', this.membersObjectLength);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (this.groupDetail) {
|
|
134
|
+
if (this.groupDetail.uid.startsWith('group-')) {
|
|
135
|
+
const tiledeskToken = this.tiledeskAuthService.getTiledeskToken();
|
|
136
|
+
|
|
137
|
+
this.member_array = []
|
|
138
|
+
const members_isonline_array = []
|
|
139
|
+
|
|
140
|
+
for (const [key, value] of Object.entries(this.groupDetail.members)) {
|
|
141
|
+
this.logger.log('CONVERSATION-DETAIL group detail Key:', key, ' -Value: ', value);
|
|
142
|
+
members_isonline_array[key] = {};
|
|
143
|
+
members_isonline_array[key]['isSignin'] = false
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// for (const [key, value] of Object.entries(this.groupDetail.membersinfo)) {
|
|
147
|
+
let count = 0
|
|
148
|
+
for (const [key, value] of Object.entries(this.groupDetail.members)) {
|
|
149
|
+
this.logger.log('CONVERSATION-DETAIL group detail Key:', key, ' -Value: ', value);
|
|
150
|
+
|
|
151
|
+
this.presenceService.userIsOnline(key)
|
|
152
|
+
.pipe(takeUntil(this.unsubscribe$))
|
|
153
|
+
.pipe(filter((isOnline) => isOnline !== null))
|
|
154
|
+
.subscribe((isOnline: any) => {
|
|
155
|
+
this.logger.log('InfoGroupComponent group detail BSIsOnline isOnline', isOnline)
|
|
156
|
+
members_isonline_array[key]['isSignin'] = isOnline.isOnline
|
|
157
|
+
if (this.member_array.length > 0) {
|
|
158
|
+
this.logger.log('InfoGroupComponent group detail BSIsOnline HERE YES')
|
|
159
|
+
// this.member_array.find(x => x.userid == isOnline.uid)['userOnline'] = isOnline.isOnline
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
this.logger.log('InfoGroupComponent group detail BSIsOnline this.groupDetail 2', this.groupDetail)
|
|
164
|
+
this.logger.log('InfoGroupComponent group detail BSIsOnline isOnline member_array', this.member_array)
|
|
165
|
+
}, (error) => {
|
|
166
|
+
this.logger.error('InfoGroupComponent group detail BSIsOnline - ERROR ', error);
|
|
167
|
+
}, () => {
|
|
168
|
+
this.logger.log('InfoGroupComponent group detail BSIsOnline /* COMPLETE */');
|
|
169
|
+
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
this.contactsService.loadContactDetail(tiledeskToken, key)
|
|
173
|
+
.pipe(takeUntil(this.unsubscribe$))
|
|
174
|
+
.subscribe(user => {
|
|
175
|
+
this.logger.log('InfoGroupComponent group detail loadContactDetail RES', user);
|
|
176
|
+
// this.logger.log('InfoGroupComponent group detail this.presenceService.BSIsOnline.value()', this.presenceService.BSIsOnline.getValue);
|
|
177
|
+
|
|
178
|
+
user.imageurl = this.imageRepoService.getImagePhotoUrl(key)
|
|
179
|
+
// this.member_array.push({ userid: user.uid, avatar: user.avatar, color: user.color, email: user.email, fullname: user.fullname, imageurl: user.imageurl, userOnline: isOnline })
|
|
180
|
+
var index = this.member_array.findIndex(m => m.userid === user.uid);
|
|
181
|
+
this.logger.log('InfoGroupComponent member_array first of push index', index);
|
|
182
|
+
this.logger.log('InfoGroupComponent member_array first of push', this.member_array);
|
|
183
|
+
if (index === -1) {
|
|
184
|
+
this.member_array.push(
|
|
185
|
+
{
|
|
186
|
+
userid: user.uid,
|
|
187
|
+
avatar: user.avatar,
|
|
188
|
+
color: user.color,
|
|
189
|
+
email: user.email,
|
|
190
|
+
fullname: user.fullname,
|
|
191
|
+
imageurl: user.imageurl,
|
|
192
|
+
userOnline: members_isonline_array[user.uid]['isSignin']
|
|
193
|
+
})
|
|
194
|
+
} else {
|
|
195
|
+
this.logger.log('InfoGroupComponent member already exist in member_array');
|
|
196
|
+
}
|
|
197
|
+
}, (error) => {
|
|
198
|
+
this.logger.error('InfoGroupComponent group detail loadContactDetail - ERROR ', error);
|
|
199
|
+
}, () => {
|
|
200
|
+
count = count + 1;
|
|
201
|
+
this.logger.log('InfoGroupComponent group detail loadContactDetail * COMPLETE * COUNT ', count);
|
|
202
|
+
this.logger.log('InfoGroupComponent group detail loadContactDetail * COMPLETE * membersObjectLength ', this.membersObjectLength);
|
|
203
|
+
if (count === this.membersObjectLength) {
|
|
204
|
+
this.displaySkeletonScreen = false
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
this.groupDetail['member_array'] = this.member_array
|
|
211
|
+
this.logger.log('InfoGroupComponent group detail after at the end', this.member_array);
|
|
212
|
+
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
} // ./ ngOnChanges
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
}
|
package/src/app/components/conversation-info/info-support-group/info-support-group.component.scss
ADDED
|
File without changes
|
package/src/app/components/conversation-info/info-support-group/info-support-group.component.spec.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { IonicModule } from '@ionic/angular';
|
|
3
|
+
|
|
4
|
+
import { InfoSupportGroupComponent } from './info-support-group.component';
|
|
5
|
+
|
|
6
|
+
describe('InfoSupportGroupComponent', () => {
|
|
7
|
+
let component: InfoSupportGroupComponent;
|
|
8
|
+
let fixture: ComponentFixture<InfoSupportGroupComponent>;
|
|
9
|
+
|
|
10
|
+
beforeEach(async(() => {
|
|
11
|
+
TestBed.configureTestingModule({
|
|
12
|
+
declarations: [ InfoSupportGroupComponent ],
|
|
13
|
+
imports: [IonicModule.forRoot()]
|
|
14
|
+
}).compileComponents();
|
|
15
|
+
|
|
16
|
+
fixture = TestBed.createComponent(InfoSupportGroupComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
package/src/app/components/conversation-info/info-support-group/info-support-group.component.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
// Logger
|
|
4
|
+
import { LoggerService } from 'src/chat21-core/providers/abstract/logger.service';
|
|
5
|
+
import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-info-support-group',
|
|
8
|
+
templateUrl: './info-support-group.component.html',
|
|
9
|
+
styleUrls: ['./info-support-group.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class InfoSupportGroupComponent implements OnInit {
|
|
12
|
+
|
|
13
|
+
@Input() urlConversationSupportGroup: any;
|
|
14
|
+
|
|
15
|
+
private logger: LoggerService = LoggerInstance.getInstance();
|
|
16
|
+
constructor() { }
|
|
17
|
+
|
|
18
|
+
ngOnInit() {
|
|
19
|
+
this.logger.log('InfoSupportGroupComponent - urlConversationSupportGroup: ', this.urlConversationSupportGroup);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ngOnDestroy() {
|
|
23
|
+
// this.logger.log('ngOnDestroy ConversationDetailPage: ');
|
|
24
|
+
this.logger.log('InfoSupportGroupComponent - ngOnDestroy ');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
<ion-toolbar>
|
|
3
|
+
|
|
4
|
+
<ion-buttons slot="start">
|
|
5
|
+
<ion-button ion-button icon-only fill="clear" (click)="onOpenProfileInfo($event)">
|
|
6
|
+
<ion-icon slot="icon-only" name="reorder-three-outline"></ion-icon>
|
|
7
|
+
</ion-button>
|
|
8
|
+
</ion-buttons>
|
|
9
|
+
|
|
10
|
+
<ion-title>
|
|
11
|
+
<img src="assets/chat21-logo.svg" class="header-logo" alt="header-logo">
|
|
12
|
+
<div *ngIf="numberOpenConv > 0" class="number-open-conv">({{numberOpenConv}})</div>
|
|
13
|
+
</ion-title>
|
|
14
|
+
|
|
15
|
+
<ion-buttons slot="end">
|
|
16
|
+
|
|
17
|
+
<ion-button *ngIf="supportMode" ion-button fill="clear" (click)="onOpenContactsDirectory($event)">
|
|
18
|
+
<ion-icon slot="icon-only" name="create-outline"></ion-icon>
|
|
19
|
+
</ion-button>
|
|
20
|
+
|
|
21
|
+
<!-- <button ion-button icon-only (click)="onOpenArchivedConversationsPage()">
|
|
22
|
+
<span class="material-icons">history</span>
|
|
23
|
+
</button>
|
|
24
|
+
|
|
25
|
+
<button ion-button icon-only >
|
|
26
|
+
<span class="material-icons">more_vert</span>
|
|
27
|
+
</button> -->
|
|
28
|
+
|
|
29
|
+
</ion-buttons>
|
|
30
|
+
|
|
31
|
+
</ion-toolbar>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
ion-title img {
|
|
2
|
+
height: 30px;
|
|
3
|
+
}
|
|
4
|
+
.number-open-conv {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
line-height: 14px;
|
|
8
|
+
height: 14px;
|
|
9
|
+
margin: auto;
|
|
10
|
+
padding: 0px 4px;
|
|
11
|
+
vertical-align: super;
|
|
12
|
+
color: rgba(153, 153, 153, 1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.material-icons {
|
|
16
|
+
padding: 0;
|
|
17
|
+
min-width: 20px;
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
color: #666666;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.header-logo {
|
|
25
|
+
margin-top: 5px;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { IonicModule } from '@ionic/angular';
|
|
3
|
+
|
|
4
|
+
import { DdpHeaderComponent } from './ddp-header.component';
|
|
5
|
+
|
|
6
|
+
describe('DdpHeaderComponent', () => {
|
|
7
|
+
let component: DdpHeaderComponent;
|
|
8
|
+
let fixture: ComponentFixture<DdpHeaderComponent>;
|
|
9
|
+
|
|
10
|
+
beforeEach(async(() => {
|
|
11
|
+
TestBed.configureTestingModule({
|
|
12
|
+
declarations: [ DdpHeaderComponent ],
|
|
13
|
+
imports: [IonicModule.forRoot()]
|
|
14
|
+
}).compileComponents();
|
|
15
|
+
|
|
16
|
+
fixture = TestBed.createComponent(DdpHeaderComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-ddp-header',
|
|
5
|
+
templateUrl: './ddp-header.component.html',
|
|
6
|
+
styleUrls: ['./ddp-header.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class DdpHeaderComponent implements OnInit {
|
|
9
|
+
@Input() numberOpenConv: number;
|
|
10
|
+
@Input() supportMode: boolean;
|
|
11
|
+
@Output() openContactsDirectory = new EventEmitter();
|
|
12
|
+
@Output() openProfileInfo = new EventEmitter();
|
|
13
|
+
|
|
14
|
+
constructor(
|
|
15
|
+
) { }
|
|
16
|
+
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
// console.log('DDP HEADER SUPPORT MODE ', this.supportMode)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// START @Output() //
|
|
22
|
+
/** */
|
|
23
|
+
onOpenProfileInfo(e: any) {
|
|
24
|
+
this.openProfileInfo.emit(e);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** */
|
|
28
|
+
onOpenContactsDirectory(e: any) {
|
|
29
|
+
this.openContactsDirectory.emit(e);
|
|
30
|
+
}
|
|
31
|
+
// END @Output() //
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div id="image-viewer-modal" class="modal">
|
|
2
|
+
|
|
3
|
+
<!-- The Close Button -->
|
|
4
|
+
<span class="close" (click)="closeImageViewerModal()">
|
|
5
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
|
|
6
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
7
|
+
<path
|
|
8
|
+
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
|
|
9
|
+
</svg>
|
|
10
|
+
</span>
|
|
11
|
+
<span class="download-image" (click)="downloadImage()">
|
|
12
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
|
|
13
|
+
<path d="M0 0h24v24H0z" fill="none" />
|
|
14
|
+
<path
|
|
15
|
+
d="M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z" />
|
|
16
|
+
</svg>
|
|
17
|
+
</span>
|
|
18
|
+
<!-- Modal Content (The Image) [src]="metadata.src"-->
|
|
19
|
+
<img class="modal-content" id="image-viewer-img">
|
|
20
|
+
|
|
21
|
+
<!-- Modal Caption (Image Text) -->
|
|
22
|
+
<div id="caption"></div>
|
|
23
|
+
</div>
|