@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
|
@@ -1,3576 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="no-js" lang="">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
6
|
-
<title>@chat21/chat21-ionic documentation</title>
|
|
7
|
-
<meta name="description" content="">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
|
|
10
|
-
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
|
11
|
-
<link rel="stylesheet" href="../styles/style.css">
|
|
12
|
-
</head>
|
|
13
|
-
<body>
|
|
14
|
-
|
|
15
|
-
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
|
16
|
-
<a href="../" class="navbar-brand">@chat21/chat21-ionic documentation</a>
|
|
17
|
-
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="xs-menu menu" id="mobile-menu">
|
|
21
|
-
<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="container-fluid main">
|
|
25
|
-
<div class="row main">
|
|
26
|
-
<div class="hidden-xs menu">
|
|
27
|
-
<compodoc-menu mode="normal"></compodoc-menu>
|
|
28
|
-
</div>
|
|
29
|
-
<!-- START CONTENT -->
|
|
30
|
-
<div class="content component">
|
|
31
|
-
<div class="content-data">
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<ol class="breadcrumb">
|
|
37
|
-
<li>Components</li>
|
|
38
|
-
<li>ListaConversazioniPage</li>
|
|
39
|
-
</ol>
|
|
40
|
-
|
|
41
|
-
<ul class="nav nav-tabs" role="tablist">
|
|
42
|
-
<li class="active">
|
|
43
|
-
<a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
|
|
44
|
-
</li>
|
|
45
|
-
<li >
|
|
46
|
-
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
|
|
47
|
-
</li>
|
|
48
|
-
<li >
|
|
49
|
-
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
|
|
50
|
-
</li>
|
|
51
|
-
<li >
|
|
52
|
-
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
|
|
53
|
-
</li>
|
|
54
|
-
</ul>
|
|
55
|
-
|
|
56
|
-
<div class="tab-content">
|
|
57
|
-
<div class="tab-pane fade active in" id="c-info"><p class="comment">
|
|
58
|
-
<h3>File</h3>
|
|
59
|
-
</p>
|
|
60
|
-
<p class="comment">
|
|
61
|
-
<code>src/pages/lista-conversazioni/lista-conversazioni.ts</code>
|
|
62
|
-
</p>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<p class="comment">
|
|
66
|
-
<h3>Extends</h3>
|
|
67
|
-
</p>
|
|
68
|
-
<p class="comment">
|
|
69
|
-
<code><a href="../classes/_MasterPage.html" target="_self" >_MasterPage</a></code>
|
|
70
|
-
</p>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<section>
|
|
75
|
-
<h3>Metadata</h3>
|
|
76
|
-
<table class="table table-sm table-hover">
|
|
77
|
-
<tbody>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<tr>
|
|
90
|
-
<td class="col-md-3">selector</td>
|
|
91
|
-
<td class="col-md-9"><code>page-lista-conversazioni</code></td>
|
|
92
|
-
</tr>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
<tr>
|
|
98
|
-
<td class="col-md-3">templateUrl</td>
|
|
99
|
-
<td class="col-md-9"><code>lista-conversazioni.html</code></td>
|
|
100
|
-
</tr>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</tbody>
|
|
110
|
-
</table>
|
|
111
|
-
</section>
|
|
112
|
-
|
|
113
|
-
<section>
|
|
114
|
-
<h3 id="index">Index</h3>
|
|
115
|
-
<table class="table table-sm table-bordered index-table">
|
|
116
|
-
<tbody>
|
|
117
|
-
<tr>
|
|
118
|
-
<td class="col-md-4">
|
|
119
|
-
<h6><b>Properties</b></h6>
|
|
120
|
-
</td>
|
|
121
|
-
</tr>
|
|
122
|
-
<tr>
|
|
123
|
-
<td class="col-md-4">
|
|
124
|
-
<ul class="index-list">
|
|
125
|
-
<li>
|
|
126
|
-
<span class="modifier">Private</span>
|
|
127
|
-
<a href="#archivedConversations">archivedConversations</a>
|
|
128
|
-
</li>
|
|
129
|
-
<li>
|
|
130
|
-
<a href="#archivedConversationsChanged">archivedConversationsChanged</a>
|
|
131
|
-
</li>
|
|
132
|
-
<li>
|
|
133
|
-
<span class="modifier">Private</span>
|
|
134
|
-
<a href="#BUILD_VERSION">BUILD_VERSION</a>
|
|
135
|
-
</li>
|
|
136
|
-
<li>
|
|
137
|
-
<span class="modifier">Public</span>
|
|
138
|
-
<a href="#chatConversationsHandler">chatConversationsHandler</a>
|
|
139
|
-
</li>
|
|
140
|
-
<li>
|
|
141
|
-
<span class="modifier">Public</span>
|
|
142
|
-
<a href="#chatManager">chatManager</a>
|
|
143
|
-
</li>
|
|
144
|
-
<li>
|
|
145
|
-
<span class="modifier">Public</span>
|
|
146
|
-
<a href="#conversationHandler">conversationHandler</a>
|
|
147
|
-
</li>
|
|
148
|
-
<li>
|
|
149
|
-
<span class="modifier">Private</span>
|
|
150
|
-
<a href="#conversations">conversations</a>
|
|
151
|
-
</li>
|
|
152
|
-
<li>
|
|
153
|
-
<a href="#conversationsChanged">conversationsChanged</a>
|
|
154
|
-
</li>
|
|
155
|
-
<li>
|
|
156
|
-
<span class="modifier">Private</span>
|
|
157
|
-
<a href="#conversationsHandler">conversationsHandler</a>
|
|
158
|
-
</li>
|
|
159
|
-
<li>
|
|
160
|
-
<span class="modifier">Private</span>
|
|
161
|
-
<a href="#convertMessage">convertMessage</a>
|
|
162
|
-
</li>
|
|
163
|
-
<li>
|
|
164
|
-
<span class="modifier">Public</span>
|
|
165
|
-
<a href="#databaseProvider">databaseProvider</a>
|
|
166
|
-
</li>
|
|
167
|
-
<li>
|
|
168
|
-
<span class="modifier">Public</span>
|
|
169
|
-
<a href="#events">events</a>
|
|
170
|
-
</li>
|
|
171
|
-
<li>
|
|
172
|
-
<span class="modifier">Private</span>
|
|
173
|
-
<a href="#loadingIsActive">loadingIsActive</a>
|
|
174
|
-
</li>
|
|
175
|
-
<li>
|
|
176
|
-
<span class="modifier">Private</span>
|
|
177
|
-
<a href="#loggedUser">loggedUser</a>
|
|
178
|
-
</li>
|
|
179
|
-
<li>
|
|
180
|
-
<span class="modifier">Public</span>
|
|
181
|
-
<a href="#modalCtrl">modalCtrl</a>
|
|
182
|
-
</li>
|
|
183
|
-
<li>
|
|
184
|
-
<span class="modifier">Public</span>
|
|
185
|
-
<a href="#navCtrl">navCtrl</a>
|
|
186
|
-
</li>
|
|
187
|
-
<li>
|
|
188
|
-
<span class="modifier">Public</span>
|
|
189
|
-
<a href="#navParams">navParams</a>
|
|
190
|
-
</li>
|
|
191
|
-
<li>
|
|
192
|
-
<span class="modifier">Public</span>
|
|
193
|
-
<a href="#navProxy">navProxy</a>
|
|
194
|
-
</li>
|
|
195
|
-
<li>
|
|
196
|
-
<span class="modifier">Private</span>
|
|
197
|
-
<a href="#numberOpenConv">numberOpenConv</a>
|
|
198
|
-
</li>
|
|
199
|
-
<li>
|
|
200
|
-
<span class="modifier">Private</span>
|
|
201
|
-
<a href="#numberTotConv">numberTotConv</a>
|
|
202
|
-
</li>
|
|
203
|
-
<li>
|
|
204
|
-
<span class="modifier">Public</span>
|
|
205
|
-
<a href="#popoverCtrl">popoverCtrl</a>
|
|
206
|
-
</li>
|
|
207
|
-
<li>
|
|
208
|
-
<span class="modifier">Private</span>
|
|
209
|
-
<a href="#profileModal">profileModal</a>
|
|
210
|
-
</li>
|
|
211
|
-
<li>
|
|
212
|
-
<span class="modifier">Private</span>
|
|
213
|
-
<a href="#showPlaceholder">showPlaceholder</a>
|
|
214
|
-
</li>
|
|
215
|
-
<li>
|
|
216
|
-
<a href="#subscribeLoggedUserLogin">subscribeLoggedUserLogin</a>
|
|
217
|
-
</li>
|
|
218
|
-
<li>
|
|
219
|
-
<a href="#subscribeLoggedUserLogout">subscribeLoggedUserLogout</a>
|
|
220
|
-
</li>
|
|
221
|
-
<li>
|
|
222
|
-
<a href="#subscribeUidConvSelectedChanged">subscribeUidConvSelectedChanged</a>
|
|
223
|
-
</li>
|
|
224
|
-
<li>
|
|
225
|
-
<span class="modifier">Private</span>
|
|
226
|
-
<a href="#supportMode">supportMode</a>
|
|
227
|
-
</li>
|
|
228
|
-
<li>
|
|
229
|
-
<span class="modifier">Private</span>
|
|
230
|
-
<a href="#tenant">tenant</a>
|
|
231
|
-
</li>
|
|
232
|
-
<li>
|
|
233
|
-
<span class="modifier">Private</span>
|
|
234
|
-
<a href="#timerIdOpenConversation">timerIdOpenConversation</a>
|
|
235
|
-
</li>
|
|
236
|
-
<li>
|
|
237
|
-
<span class="modifier">Private</span>
|
|
238
|
-
<a href="#uidConvSelected">uidConvSelected</a>
|
|
239
|
-
</li>
|
|
240
|
-
<li>
|
|
241
|
-
<span class="modifier">Private</span>
|
|
242
|
-
<a href="#uidReciverFromUrl">uidReciverFromUrl</a>
|
|
243
|
-
</li>
|
|
244
|
-
<li>
|
|
245
|
-
<span class="modifier">Public</span>
|
|
246
|
-
<a href="#userService">userService</a>
|
|
247
|
-
</li>
|
|
248
|
-
</ul>
|
|
249
|
-
</td>
|
|
250
|
-
</tr>
|
|
251
|
-
|
|
252
|
-
<tr>
|
|
253
|
-
<td class="col-md-4">
|
|
254
|
-
<h6><b>Methods</b></h6>
|
|
255
|
-
</td>
|
|
256
|
-
</tr>
|
|
257
|
-
<tr>
|
|
258
|
-
<td class="col-md-4">
|
|
259
|
-
<ul class="index-list">
|
|
260
|
-
<li>
|
|
261
|
-
<span class="modifier">Private</span>
|
|
262
|
-
<a href="#checkLoadingIsActive">checkLoadingIsActive</a>
|
|
263
|
-
</li>
|
|
264
|
-
<li>
|
|
265
|
-
<a href="#checkMessageListIsOpen">checkMessageListIsOpen</a>
|
|
266
|
-
</li>
|
|
267
|
-
<li>
|
|
268
|
-
<span class="modifier">Private</span>
|
|
269
|
-
<a href="#closeConversation">closeConversation</a>
|
|
270
|
-
</li>
|
|
271
|
-
<li>
|
|
272
|
-
<span class="modifier">Private</span>
|
|
273
|
-
<a href="#closeSupportGroup">closeSupportGroup</a>
|
|
274
|
-
</li>
|
|
275
|
-
<li>
|
|
276
|
-
<span class="modifier">Private</span>
|
|
277
|
-
<a href="#deleteConversation">deleteConversation</a>
|
|
278
|
-
</li>
|
|
279
|
-
<li>
|
|
280
|
-
<a href="#goToChat">goToChat</a>
|
|
281
|
-
</li>
|
|
282
|
-
<li>
|
|
283
|
-
<a href="#initConversationsHandler">initConversationsHandler</a>
|
|
284
|
-
</li>
|
|
285
|
-
<li>
|
|
286
|
-
<a href="#initialize">initialize</a>
|
|
287
|
-
</li>
|
|
288
|
-
<li>
|
|
289
|
-
<a href="#initInterface">initInterface</a>
|
|
290
|
-
</li>
|
|
291
|
-
<li>
|
|
292
|
-
<a href="#initSubscriptions">initSubscriptions</a>
|
|
293
|
-
</li>
|
|
294
|
-
<li>
|
|
295
|
-
<a href="#initVariables">initVariables</a>
|
|
296
|
-
</li>
|
|
297
|
-
<li>
|
|
298
|
-
<a href="#ionViewDidLeave">ionViewDidLeave</a>
|
|
299
|
-
</li>
|
|
300
|
-
<li>
|
|
301
|
-
<span class="modifier">Private</span>
|
|
302
|
-
<a href="#logOut">logOut</a>
|
|
303
|
-
</li>
|
|
304
|
-
<li>
|
|
305
|
-
<span class="modifier">Private</span>
|
|
306
|
-
<a href="#openArchivedConversationsPage">openArchivedConversationsPage</a>
|
|
307
|
-
</li>
|
|
308
|
-
<li>
|
|
309
|
-
<a href="#openMessageList">openMessageList</a>
|
|
310
|
-
</li>
|
|
311
|
-
<li>
|
|
312
|
-
<span class="modifier">Private</span>
|
|
313
|
-
<a href="#openUsersList">openUsersList</a>
|
|
314
|
-
</li>
|
|
315
|
-
<li>
|
|
316
|
-
<span class="modifier">Private</span>
|
|
317
|
-
<a href="#presentPopover">presentPopover</a>
|
|
318
|
-
</li>
|
|
319
|
-
<li>
|
|
320
|
-
<a href="#setUidConvSelected">setUidConvSelected</a>
|
|
321
|
-
</li>
|
|
322
|
-
</ul>
|
|
323
|
-
</td>
|
|
324
|
-
</tr>
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
</tbody>
|
|
331
|
-
</table>
|
|
332
|
-
</section>
|
|
333
|
-
|
|
334
|
-
<section>
|
|
335
|
-
<h3 id="constructor">Constructor</h3>
|
|
336
|
-
<table class="table table-sm table-bordered">
|
|
337
|
-
<tbody>
|
|
338
|
-
<tr>
|
|
339
|
-
<td class="col-md-4">
|
|
340
|
-
<code>constructor(popoverCtrl: PopoverController, modalCtrl: ModalController, navCtrl: NavController, navParams: NavParams, navProxy: <a href="../injectables/NavProxyService.html">NavProxyService</a>, userService: <a href="../injectables/UserService.html">UserService</a>, chatConversationsHandler: <a href="../injectables/ChatConversationsHandler.html">ChatConversationsHandler</a>, conversationHandler: <a href="../injectables/ChatConversationHandler.html">ChatConversationHandler</a>, events: Events, chatManager: <a href="../injectables/ChatManager.html">ChatManager</a>, databaseProvider: <a href="../injectables/DatabaseProvider.html">DatabaseProvider</a>, groupService: <a href="../injectables/GroupService.html">GroupService</a>, tiledeskConversationProvider: <a href="../injectables/TiledeskConversationProvider.html">TiledeskConversationProvider</a>, alertCtrl: AlertController, translate: TranslateService, chatArchivedConversationsHandler: <a href="../injectables/ChatArchivedConversationsHandler.html">ChatArchivedConversationsHandler</a>)</code>
|
|
341
|
-
</td>
|
|
342
|
-
</tr>
|
|
343
|
-
<tr>
|
|
344
|
-
<td class="col-md-4">
|
|
345
|
-
<div class="io-line">Defined in <a href="" data-line="62" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:62</a></div>
|
|
346
|
-
</td>
|
|
347
|
-
</tr>
|
|
348
|
-
|
|
349
|
-
<tr>
|
|
350
|
-
<td class="col-md-4">
|
|
351
|
-
<div>
|
|
352
|
-
<b>Parameters :</b>
|
|
353
|
-
<table class="params">
|
|
354
|
-
<thead>
|
|
355
|
-
<tr>
|
|
356
|
-
<td>Name</td>
|
|
357
|
-
<td>Type</td>
|
|
358
|
-
<td>Optional</td>
|
|
359
|
-
</tr>
|
|
360
|
-
</thead>
|
|
361
|
-
<tbody>
|
|
362
|
-
<tr>
|
|
363
|
-
<td>popoverCtrl</td>
|
|
364
|
-
|
|
365
|
-
<td>
|
|
366
|
-
<code>PopoverController</code>
|
|
367
|
-
</td>
|
|
368
|
-
|
|
369
|
-
<td>
|
|
370
|
-
No
|
|
371
|
-
</td>
|
|
372
|
-
|
|
373
|
-
</tr>
|
|
374
|
-
<tr>
|
|
375
|
-
<td>modalCtrl</td>
|
|
376
|
-
|
|
377
|
-
<td>
|
|
378
|
-
<code>ModalController</code>
|
|
379
|
-
</td>
|
|
380
|
-
|
|
381
|
-
<td>
|
|
382
|
-
No
|
|
383
|
-
</td>
|
|
384
|
-
|
|
385
|
-
</tr>
|
|
386
|
-
<tr>
|
|
387
|
-
<td>navCtrl</td>
|
|
388
|
-
|
|
389
|
-
<td>
|
|
390
|
-
<code>NavController</code>
|
|
391
|
-
</td>
|
|
392
|
-
|
|
393
|
-
<td>
|
|
394
|
-
No
|
|
395
|
-
</td>
|
|
396
|
-
|
|
397
|
-
</tr>
|
|
398
|
-
<tr>
|
|
399
|
-
<td>navParams</td>
|
|
400
|
-
|
|
401
|
-
<td>
|
|
402
|
-
<code>NavParams</code>
|
|
403
|
-
</td>
|
|
404
|
-
|
|
405
|
-
<td>
|
|
406
|
-
No
|
|
407
|
-
</td>
|
|
408
|
-
|
|
409
|
-
</tr>
|
|
410
|
-
<tr>
|
|
411
|
-
<td>navProxy</td>
|
|
412
|
-
|
|
413
|
-
<td>
|
|
414
|
-
<code><a href="../injectables/NavProxyService.html" target="_self" >NavProxyService</a></code>
|
|
415
|
-
</td>
|
|
416
|
-
|
|
417
|
-
<td>
|
|
418
|
-
No
|
|
419
|
-
</td>
|
|
420
|
-
|
|
421
|
-
</tr>
|
|
422
|
-
<tr>
|
|
423
|
-
<td>userService</td>
|
|
424
|
-
|
|
425
|
-
<td>
|
|
426
|
-
<code><a href="../injectables/UserService.html" target="_self" >UserService</a></code>
|
|
427
|
-
</td>
|
|
428
|
-
|
|
429
|
-
<td>
|
|
430
|
-
No
|
|
431
|
-
</td>
|
|
432
|
-
|
|
433
|
-
</tr>
|
|
434
|
-
<tr>
|
|
435
|
-
<td>chatConversationsHandler</td>
|
|
436
|
-
|
|
437
|
-
<td>
|
|
438
|
-
<code><a href="../injectables/ChatConversationsHandler.html" target="_self" >ChatConversationsHandler</a></code>
|
|
439
|
-
</td>
|
|
440
|
-
|
|
441
|
-
<td>
|
|
442
|
-
No
|
|
443
|
-
</td>
|
|
444
|
-
|
|
445
|
-
</tr>
|
|
446
|
-
<tr>
|
|
447
|
-
<td>conversationHandler</td>
|
|
448
|
-
|
|
449
|
-
<td>
|
|
450
|
-
<code><a href="../injectables/ChatConversationHandler.html" target="_self" >ChatConversationHandler</a></code>
|
|
451
|
-
</td>
|
|
452
|
-
|
|
453
|
-
<td>
|
|
454
|
-
No
|
|
455
|
-
</td>
|
|
456
|
-
|
|
457
|
-
</tr>
|
|
458
|
-
<tr>
|
|
459
|
-
<td>events</td>
|
|
460
|
-
|
|
461
|
-
<td>
|
|
462
|
-
<code>Events</code>
|
|
463
|
-
</td>
|
|
464
|
-
|
|
465
|
-
<td>
|
|
466
|
-
No
|
|
467
|
-
</td>
|
|
468
|
-
|
|
469
|
-
</tr>
|
|
470
|
-
<tr>
|
|
471
|
-
<td>chatManager</td>
|
|
472
|
-
|
|
473
|
-
<td>
|
|
474
|
-
<code><a href="../injectables/ChatManager.html" target="_self" >ChatManager</a></code>
|
|
475
|
-
</td>
|
|
476
|
-
|
|
477
|
-
<td>
|
|
478
|
-
No
|
|
479
|
-
</td>
|
|
480
|
-
|
|
481
|
-
</tr>
|
|
482
|
-
<tr>
|
|
483
|
-
<td>databaseProvider</td>
|
|
484
|
-
|
|
485
|
-
<td>
|
|
486
|
-
<code><a href="../injectables/DatabaseProvider.html" target="_self" >DatabaseProvider</a></code>
|
|
487
|
-
</td>
|
|
488
|
-
|
|
489
|
-
<td>
|
|
490
|
-
No
|
|
491
|
-
</td>
|
|
492
|
-
|
|
493
|
-
</tr>
|
|
494
|
-
<tr>
|
|
495
|
-
<td>groupService</td>
|
|
496
|
-
|
|
497
|
-
<td>
|
|
498
|
-
<code><a href="../injectables/GroupService.html" target="_self" >GroupService</a></code>
|
|
499
|
-
</td>
|
|
500
|
-
|
|
501
|
-
<td>
|
|
502
|
-
No
|
|
503
|
-
</td>
|
|
504
|
-
|
|
505
|
-
</tr>
|
|
506
|
-
<tr>
|
|
507
|
-
<td>tiledeskConversationProvider</td>
|
|
508
|
-
|
|
509
|
-
<td>
|
|
510
|
-
<code><a href="../injectables/TiledeskConversationProvider.html" target="_self" >TiledeskConversationProvider</a></code>
|
|
511
|
-
</td>
|
|
512
|
-
|
|
513
|
-
<td>
|
|
514
|
-
No
|
|
515
|
-
</td>
|
|
516
|
-
|
|
517
|
-
</tr>
|
|
518
|
-
<tr>
|
|
519
|
-
<td>alertCtrl</td>
|
|
520
|
-
|
|
521
|
-
<td>
|
|
522
|
-
<code>AlertController</code>
|
|
523
|
-
</td>
|
|
524
|
-
|
|
525
|
-
<td>
|
|
526
|
-
No
|
|
527
|
-
</td>
|
|
528
|
-
|
|
529
|
-
</tr>
|
|
530
|
-
<tr>
|
|
531
|
-
<td>translate</td>
|
|
532
|
-
|
|
533
|
-
<td>
|
|
534
|
-
<code>TranslateService</code>
|
|
535
|
-
</td>
|
|
536
|
-
|
|
537
|
-
<td>
|
|
538
|
-
No
|
|
539
|
-
</td>
|
|
540
|
-
|
|
541
|
-
</tr>
|
|
542
|
-
<tr>
|
|
543
|
-
<td>chatArchivedConversationsHandler</td>
|
|
544
|
-
|
|
545
|
-
<td>
|
|
546
|
-
<code><a href="../injectables/ChatArchivedConversationsHandler.html" target="_self" >ChatArchivedConversationsHandler</a></code>
|
|
547
|
-
</td>
|
|
548
|
-
|
|
549
|
-
<td>
|
|
550
|
-
No
|
|
551
|
-
</td>
|
|
552
|
-
|
|
553
|
-
</tr>
|
|
554
|
-
</tbody>
|
|
555
|
-
</table>
|
|
556
|
-
</div>
|
|
557
|
-
</td>
|
|
558
|
-
</tr>
|
|
559
|
-
</tbody>
|
|
560
|
-
</table>
|
|
561
|
-
</section>
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
<section>
|
|
568
|
-
|
|
569
|
-
<h3 id="methods">
|
|
570
|
-
Methods
|
|
571
|
-
</h3>
|
|
572
|
-
<table class="table table-sm table-bordered">
|
|
573
|
-
<tbody>
|
|
574
|
-
<tr>
|
|
575
|
-
<td class="col-md-4">
|
|
576
|
-
<a name="checkLoadingIsActive"></a>
|
|
577
|
-
<span class="name">
|
|
578
|
-
<b>
|
|
579
|
-
<span class="modifier">Private</span>
|
|
580
|
-
checkLoadingIsActive
|
|
581
|
-
</b>
|
|
582
|
-
<a href="#checkLoadingIsActive"><span class="icon ion-ios-link"></span></a>
|
|
583
|
-
</span>
|
|
584
|
-
</td>
|
|
585
|
-
</tr>
|
|
586
|
-
<tr>
|
|
587
|
-
<td class="col-md-4">
|
|
588
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
589
|
-
<code>checkLoadingIsActive(time: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank">number</a>)</code>
|
|
590
|
-
</td>
|
|
591
|
-
</tr>
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
<tr>
|
|
595
|
-
<td class="col-md-4">
|
|
596
|
-
<div class="io-line">Defined in <a href="" data-line="479"
|
|
597
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:479</a></div>
|
|
598
|
-
</td>
|
|
599
|
-
</tr>
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
<tr>
|
|
603
|
-
<td class="col-md-4">
|
|
604
|
-
<div class="io-description"><p>::: checkLoadingIsActive :::
|
|
605
|
-
metodo mostra un placeholder di benvenuto se non ci sono conversazioni
|
|
606
|
-
ritardato dopo 5 sec per dare il tempo di caricare lo storico delle conversazioni
|
|
607
|
-
dallo storage locale o da remoto
|
|
608
|
-
(metodo richiamato da html) </p>
|
|
609
|
-
</div>
|
|
610
|
-
|
|
611
|
-
<div class="io-description">
|
|
612
|
-
<b>Parameters :</b>
|
|
613
|
-
<table class="params">
|
|
614
|
-
<thead>
|
|
615
|
-
<tr>
|
|
616
|
-
<td>Name</td>
|
|
617
|
-
<td>Type</td>
|
|
618
|
-
<td>Optional</td>
|
|
619
|
-
</tr>
|
|
620
|
-
</thead>
|
|
621
|
-
<tbody>
|
|
622
|
-
<tr>
|
|
623
|
-
<td>time</td>
|
|
624
|
-
<td>
|
|
625
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
626
|
-
</td>
|
|
627
|
-
|
|
628
|
-
<td>
|
|
629
|
-
No
|
|
630
|
-
</td>
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
</tr>
|
|
634
|
-
</tbody>
|
|
635
|
-
</table>
|
|
636
|
-
</div>
|
|
637
|
-
<div>
|
|
638
|
-
</div>
|
|
639
|
-
<div class="io-description">
|
|
640
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
641
|
-
|
|
642
|
-
</div>
|
|
643
|
-
<div class="io-description">
|
|
644
|
-
|
|
645
|
-
</div>
|
|
646
|
-
</td>
|
|
647
|
-
</tr>
|
|
648
|
-
</tbody>
|
|
649
|
-
</table>
|
|
650
|
-
<table class="table table-sm table-bordered">
|
|
651
|
-
<tbody>
|
|
652
|
-
<tr>
|
|
653
|
-
<td class="col-md-4">
|
|
654
|
-
<a name="checkMessageListIsOpen"></a>
|
|
655
|
-
<span class="name">
|
|
656
|
-
<b>
|
|
657
|
-
checkMessageListIsOpen
|
|
658
|
-
</b>
|
|
659
|
-
<a href="#checkMessageListIsOpen"><span class="icon ion-ios-link"></span></a>
|
|
660
|
-
</span>
|
|
661
|
-
</td>
|
|
662
|
-
</tr>
|
|
663
|
-
<tr>
|
|
664
|
-
<td class="col-md-4">
|
|
665
|
-
<code>checkMessageListIsOpen(uidConvSelected, type?)</code>
|
|
666
|
-
</td>
|
|
667
|
-
</tr>
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
<tr>
|
|
671
|
-
<td class="col-md-4">
|
|
672
|
-
<div class="io-line">Defined in <a href="" data-line="337"
|
|
673
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:337</a></div>
|
|
674
|
-
</td>
|
|
675
|
-
</tr>
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
<tr>
|
|
679
|
-
<td class="col-md-4">
|
|
680
|
-
<div class="io-description"><p>::: checkMessageListIsOpen :::
|
|
681
|
-
se la conversazione selezionata NON è già aperta e mi trovo nella versione tablet/desk (>767)
|
|
682
|
-
imposto uidConvSelected
|
|
683
|
-
apro dettaglio conversazione</p>
|
|
684
|
-
</div>
|
|
685
|
-
|
|
686
|
-
<div class="io-description">
|
|
687
|
-
<b>Parameters :</b>
|
|
688
|
-
<table class="params">
|
|
689
|
-
<thead>
|
|
690
|
-
<tr>
|
|
691
|
-
<td>Name</td>
|
|
692
|
-
<td>Optional</td>
|
|
693
|
-
</tr>
|
|
694
|
-
</thead>
|
|
695
|
-
<tbody>
|
|
696
|
-
<tr>
|
|
697
|
-
<td>uidConvSelected</td>
|
|
698
|
-
|
|
699
|
-
<td>
|
|
700
|
-
No
|
|
701
|
-
</td>
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
</tr>
|
|
705
|
-
<tr>
|
|
706
|
-
<td>type</td>
|
|
707
|
-
|
|
708
|
-
<td>
|
|
709
|
-
Yes
|
|
710
|
-
</td>
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
</tr>
|
|
714
|
-
</tbody>
|
|
715
|
-
</table>
|
|
716
|
-
</div>
|
|
717
|
-
<div>
|
|
718
|
-
</div>
|
|
719
|
-
<div class="io-description">
|
|
720
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
721
|
-
|
|
722
|
-
</div>
|
|
723
|
-
<div class="io-description">
|
|
724
|
-
|
|
725
|
-
</div>
|
|
726
|
-
</td>
|
|
727
|
-
</tr>
|
|
728
|
-
</tbody>
|
|
729
|
-
</table>
|
|
730
|
-
<table class="table table-sm table-bordered">
|
|
731
|
-
<tbody>
|
|
732
|
-
<tr>
|
|
733
|
-
<td class="col-md-4">
|
|
734
|
-
<a name="closeConversation"></a>
|
|
735
|
-
<span class="name">
|
|
736
|
-
<b>
|
|
737
|
-
<span class="modifier">Private</span>
|
|
738
|
-
closeConversation
|
|
739
|
-
</b>
|
|
740
|
-
<a href="#closeConversation"><span class="icon ion-ios-link"></span></a>
|
|
741
|
-
</span>
|
|
742
|
-
</td>
|
|
743
|
-
</tr>
|
|
744
|
-
<tr>
|
|
745
|
-
<td class="col-md-4">
|
|
746
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
747
|
-
<code>closeConversation(conversation)</code>
|
|
748
|
-
</td>
|
|
749
|
-
</tr>
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
<tr>
|
|
753
|
-
<td class="col-md-4">
|
|
754
|
-
<div class="io-line">Defined in <a href="" data-line="496"
|
|
755
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:496</a></div>
|
|
756
|
-
</td>
|
|
757
|
-
</tr>
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
<tr>
|
|
761
|
-
<td class="col-md-4">
|
|
762
|
-
<div class="io-description"><p>::: closeConversation :::
|
|
763
|
-
chiudo conversazione
|
|
764
|
-
(metodo richiamato da html)
|
|
765
|
-
the conversationId is:</p>
|
|
766
|
-
<ul>
|
|
767
|
-
<li>se è una conversazione diretta: elimino conversazione </li>
|
|
768
|
-
<li>se è una conversazione di gruppo: chiudo conversazione </li>
|
|
769
|
-
</ul>
|
|
770
|
-
</div>
|
|
771
|
-
|
|
772
|
-
<div class="io-description">
|
|
773
|
-
<b>Parameters :</b>
|
|
774
|
-
<table class="params">
|
|
775
|
-
<thead>
|
|
776
|
-
<tr>
|
|
777
|
-
<td>Name</td>
|
|
778
|
-
<td>Optional</td>
|
|
779
|
-
<td>Description</td>
|
|
780
|
-
</tr>
|
|
781
|
-
</thead>
|
|
782
|
-
<tbody>
|
|
783
|
-
<tr>
|
|
784
|
-
<td>conversation</td>
|
|
785
|
-
|
|
786
|
-
<td>
|
|
787
|
-
No
|
|
788
|
-
</td>
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
<td>
|
|
792
|
-
<p><a href="https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation">https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation</a></p>
|
|
793
|
-
|
|
794
|
-
</td>
|
|
795
|
-
</tr>
|
|
796
|
-
</tbody>
|
|
797
|
-
</table>
|
|
798
|
-
</div>
|
|
799
|
-
<div>
|
|
800
|
-
</div>
|
|
801
|
-
<div class="io-description">
|
|
802
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
803
|
-
|
|
804
|
-
</div>
|
|
805
|
-
<div class="io-description">
|
|
806
|
-
|
|
807
|
-
</div>
|
|
808
|
-
</td>
|
|
809
|
-
</tr>
|
|
810
|
-
</tbody>
|
|
811
|
-
</table>
|
|
812
|
-
<table class="table table-sm table-bordered">
|
|
813
|
-
<tbody>
|
|
814
|
-
<tr>
|
|
815
|
-
<td class="col-md-4">
|
|
816
|
-
<a name="closeSupportGroup"></a>
|
|
817
|
-
<span class="name">
|
|
818
|
-
<b>
|
|
819
|
-
<span class="modifier">Private</span>
|
|
820
|
-
closeSupportGroup
|
|
821
|
-
</b>
|
|
822
|
-
<a href="#closeSupportGroup"><span class="icon ion-ios-link"></span></a>
|
|
823
|
-
</span>
|
|
824
|
-
</td>
|
|
825
|
-
</tr>
|
|
826
|
-
<tr>
|
|
827
|
-
<td class="col-md-4">
|
|
828
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
829
|
-
<code>closeSupportGroup(groupId, callback)</code>
|
|
830
|
-
</td>
|
|
831
|
-
</tr>
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
<tr>
|
|
835
|
-
<td class="col-md-4">
|
|
836
|
-
<div class="io-line">Defined in <a href="" data-line="528"
|
|
837
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:528</a></div>
|
|
838
|
-
</td>
|
|
839
|
-
</tr>
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
<tr>
|
|
843
|
-
<td class="col-md-4">
|
|
844
|
-
<div class="io-description"><p>::: closeSupportGroup :::
|
|
845
|
-
1 - rimuovo l'handler della conversazione
|
|
846
|
-
imposto la conversazione (isConversationClosingMap) come una conversazione in attesa di essere chiusa
|
|
847
|
-
chiudo gruppo</p>
|
|
848
|
-
</div>
|
|
849
|
-
|
|
850
|
-
<div class="io-description">
|
|
851
|
-
<b>Parameters :</b>
|
|
852
|
-
<table class="params">
|
|
853
|
-
<thead>
|
|
854
|
-
<tr>
|
|
855
|
-
<td>Name</td>
|
|
856
|
-
<td>Optional</td>
|
|
857
|
-
<td>Description</td>
|
|
858
|
-
</tr>
|
|
859
|
-
</thead>
|
|
860
|
-
<tbody>
|
|
861
|
-
<tr>
|
|
862
|
-
<td>groupId</td>
|
|
863
|
-
|
|
864
|
-
<td>
|
|
865
|
-
No
|
|
866
|
-
</td>
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
<td>
|
|
870
|
-
</td>
|
|
871
|
-
</tr>
|
|
872
|
-
<tr>
|
|
873
|
-
<td>callback</td>
|
|
874
|
-
|
|
875
|
-
<td>
|
|
876
|
-
No
|
|
877
|
-
</td>
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
<td>
|
|
881
|
-
<p>close the support group
|
|
882
|
-
<a href="https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#close-support-group">https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#close-support-group</a></p>
|
|
883
|
-
|
|
884
|
-
</td>
|
|
885
|
-
</tr>
|
|
886
|
-
</tbody>
|
|
887
|
-
</table>
|
|
888
|
-
</div>
|
|
889
|
-
<div>
|
|
890
|
-
</div>
|
|
891
|
-
<div class="io-description">
|
|
892
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
893
|
-
|
|
894
|
-
</div>
|
|
895
|
-
<div class="io-description">
|
|
896
|
-
|
|
897
|
-
</div>
|
|
898
|
-
</td>
|
|
899
|
-
</tr>
|
|
900
|
-
</tbody>
|
|
901
|
-
</table>
|
|
902
|
-
<table class="table table-sm table-bordered">
|
|
903
|
-
<tbody>
|
|
904
|
-
<tr>
|
|
905
|
-
<td class="col-md-4">
|
|
906
|
-
<a name="deleteConversation"></a>
|
|
907
|
-
<span class="name">
|
|
908
|
-
<b>
|
|
909
|
-
<span class="modifier">Private</span>
|
|
910
|
-
deleteConversation
|
|
911
|
-
</b>
|
|
912
|
-
<a href="#deleteConversation"><span class="icon ion-ios-link"></span></a>
|
|
913
|
-
</span>
|
|
914
|
-
</td>
|
|
915
|
-
</tr>
|
|
916
|
-
<tr>
|
|
917
|
-
<td class="col-md-4">
|
|
918
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
919
|
-
<code>deleteConversation(conversationId, callback)</code>
|
|
920
|
-
</td>
|
|
921
|
-
</tr>
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
<tr>
|
|
925
|
-
<td class="col-md-4">
|
|
926
|
-
<div class="io-line">Defined in <a href="" data-line="565"
|
|
927
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:565</a></div>
|
|
928
|
-
</td>
|
|
929
|
-
</tr>
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
<tr>
|
|
933
|
-
<td class="col-md-4">
|
|
934
|
-
<div class="io-description"><p>::: deleteConversation :::
|
|
935
|
-
1 - rimuovo l'handler della conversazione
|
|
936
|
-
imposto la conversazione (isConversationClosingMap) come una conversazione in attesa di essere chiusa
|
|
937
|
-
cancello la conversazione</p>
|
|
938
|
-
</div>
|
|
939
|
-
|
|
940
|
-
<div class="io-description">
|
|
941
|
-
<b>Parameters :</b>
|
|
942
|
-
<table class="params">
|
|
943
|
-
<thead>
|
|
944
|
-
<tr>
|
|
945
|
-
<td>Name</td>
|
|
946
|
-
<td>Optional</td>
|
|
947
|
-
<td>Description</td>
|
|
948
|
-
</tr>
|
|
949
|
-
</thead>
|
|
950
|
-
<tbody>
|
|
951
|
-
<tr>
|
|
952
|
-
<td>conversationId</td>
|
|
953
|
-
|
|
954
|
-
<td>
|
|
955
|
-
No
|
|
956
|
-
</td>
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
<td>
|
|
960
|
-
</td>
|
|
961
|
-
</tr>
|
|
962
|
-
<tr>
|
|
963
|
-
<td>callback</td>
|
|
964
|
-
|
|
965
|
-
<td>
|
|
966
|
-
No
|
|
967
|
-
</td>
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
<td>
|
|
971
|
-
<p>more details availables at
|
|
972
|
-
<a href="https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation">https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation</a></p>
|
|
973
|
-
|
|
974
|
-
</td>
|
|
975
|
-
</tr>
|
|
976
|
-
</tbody>
|
|
977
|
-
</table>
|
|
978
|
-
</div>
|
|
979
|
-
<div>
|
|
980
|
-
</div>
|
|
981
|
-
<div class="io-description">
|
|
982
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
983
|
-
|
|
984
|
-
</div>
|
|
985
|
-
<div class="io-description">
|
|
986
|
-
|
|
987
|
-
</div>
|
|
988
|
-
</td>
|
|
989
|
-
</tr>
|
|
990
|
-
</tbody>
|
|
991
|
-
</table>
|
|
992
|
-
<table class="table table-sm table-bordered">
|
|
993
|
-
<tbody>
|
|
994
|
-
<tr>
|
|
995
|
-
<td class="col-md-4">
|
|
996
|
-
<a name="goToChat"></a>
|
|
997
|
-
<span class="name">
|
|
998
|
-
<b>
|
|
999
|
-
goToChat
|
|
1000
|
-
</b>
|
|
1001
|
-
<a href="#goToChat"><span class="icon ion-ios-link"></span></a>
|
|
1002
|
-
</span>
|
|
1003
|
-
</td>
|
|
1004
|
-
</tr>
|
|
1005
|
-
<tr>
|
|
1006
|
-
<td class="col-md-4">
|
|
1007
|
-
<code>goToChat(conversationWith: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, conversationWithFullname: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
1008
|
-
</td>
|
|
1009
|
-
</tr>
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
<tr>
|
|
1013
|
-
<td class="col-md-4">
|
|
1014
|
-
<div class="io-line">Defined in <a href="" data-line="404"
|
|
1015
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:404</a></div>
|
|
1016
|
-
</td>
|
|
1017
|
-
</tr>
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
<tr>
|
|
1021
|
-
<td class="col-md-4">
|
|
1022
|
-
<div class="io-description"><p>::: goToChat :::
|
|
1023
|
-
1 - invocato dalla pagina html alla selezione di una conversazione
|
|
1024
|
-
imposta conversazione attiva nella pagina elenco conversazioni e
|
|
1025
|
-
pubblica id della conversazione selezionata</p>
|
|
1026
|
-
</div>
|
|
1027
|
-
|
|
1028
|
-
<div class="io-description">
|
|
1029
|
-
<b>Parameters :</b>
|
|
1030
|
-
<table class="params">
|
|
1031
|
-
<thead>
|
|
1032
|
-
<tr>
|
|
1033
|
-
<td>Name</td>
|
|
1034
|
-
<td>Type</td>
|
|
1035
|
-
<td>Optional</td>
|
|
1036
|
-
</tr>
|
|
1037
|
-
</thead>
|
|
1038
|
-
<tbody>
|
|
1039
|
-
<tr>
|
|
1040
|
-
<td>conversationWith</td>
|
|
1041
|
-
<td>
|
|
1042
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
1043
|
-
</td>
|
|
1044
|
-
|
|
1045
|
-
<td>
|
|
1046
|
-
No
|
|
1047
|
-
</td>
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
</tr>
|
|
1051
|
-
<tr>
|
|
1052
|
-
<td>conversationWithFullname</td>
|
|
1053
|
-
<td>
|
|
1054
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
1055
|
-
</td>
|
|
1056
|
-
|
|
1057
|
-
<td>
|
|
1058
|
-
No
|
|
1059
|
-
</td>
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
</tr>
|
|
1063
|
-
</tbody>
|
|
1064
|
-
</table>
|
|
1065
|
-
</div>
|
|
1066
|
-
<div>
|
|
1067
|
-
</div>
|
|
1068
|
-
<div class="io-description">
|
|
1069
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1070
|
-
|
|
1071
|
-
</div>
|
|
1072
|
-
<div class="io-description">
|
|
1073
|
-
|
|
1074
|
-
</div>
|
|
1075
|
-
</td>
|
|
1076
|
-
</tr>
|
|
1077
|
-
</tbody>
|
|
1078
|
-
</table>
|
|
1079
|
-
<table class="table table-sm table-bordered">
|
|
1080
|
-
<tbody>
|
|
1081
|
-
<tr>
|
|
1082
|
-
<td class="col-md-4">
|
|
1083
|
-
<a name="initConversationsHandler"></a>
|
|
1084
|
-
<span class="name">
|
|
1085
|
-
<b>
|
|
1086
|
-
initConversationsHandler
|
|
1087
|
-
</b>
|
|
1088
|
-
<a href="#initConversationsHandler"><span class="icon ion-ios-link"></span></a>
|
|
1089
|
-
</span>
|
|
1090
|
-
</td>
|
|
1091
|
-
</tr>
|
|
1092
|
-
<tr>
|
|
1093
|
-
<td class="col-md-4">
|
|
1094
|
-
<code>initConversationsHandler()</code>
|
|
1095
|
-
</td>
|
|
1096
|
-
</tr>
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
<tr>
|
|
1100
|
-
<td class="col-md-4">
|
|
1101
|
-
<div class="io-line">Defined in <a href="" data-line="196"
|
|
1102
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:196</a></div>
|
|
1103
|
-
</td>
|
|
1104
|
-
</tr>
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
<tr>
|
|
1108
|
-
<td class="col-md-4">
|
|
1109
|
-
<div class="io-description"><p>::: initConversationsHandler :::
|
|
1110
|
-
inizializzo chatConversationsHandler e archviedConversationsHandler
|
|
1111
|
-
recupero le conversazioni salvate nello storage e pubblico l'evento loadedConversationsStorage
|
|
1112
|
-
imposto uidConvSelected in conversationHandler e chatArchivedConversationsHandler
|
|
1113
|
-
e mi sottoscrivo al nodo conversazioni in conversationHandler e chatArchivedConversationsHandler (connect)
|
|
1114
|
-
salvo conversationHandler in chatManager</p>
|
|
1115
|
-
</div>
|
|
1116
|
-
|
|
1117
|
-
<div class="io-description">
|
|
1118
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1119
|
-
|
|
1120
|
-
</div>
|
|
1121
|
-
</td>
|
|
1122
|
-
</tr>
|
|
1123
|
-
</tbody>
|
|
1124
|
-
</table>
|
|
1125
|
-
<table class="table table-sm table-bordered">
|
|
1126
|
-
<tbody>
|
|
1127
|
-
<tr>
|
|
1128
|
-
<td class="col-md-4">
|
|
1129
|
-
<a name="initialize"></a>
|
|
1130
|
-
<span class="name">
|
|
1131
|
-
<b>
|
|
1132
|
-
initialize
|
|
1133
|
-
</b>
|
|
1134
|
-
<a href="#initialize"><span class="icon ion-ios-link"></span></a>
|
|
1135
|
-
</span>
|
|
1136
|
-
</td>
|
|
1137
|
-
</tr>
|
|
1138
|
-
<tr>
|
|
1139
|
-
<td class="col-md-4">
|
|
1140
|
-
<code>initialize()</code>
|
|
1141
|
-
</td>
|
|
1142
|
-
</tr>
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
<tr>
|
|
1146
|
-
<td class="col-md-4">
|
|
1147
|
-
<div class="io-line">Defined in <a href="" data-line="136"
|
|
1148
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:136</a></div>
|
|
1149
|
-
</td>
|
|
1150
|
-
</tr>
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
<tr>
|
|
1154
|
-
<td class="col-md-4">
|
|
1155
|
-
<div class="io-description"><p>::: initialize :::</p>
|
|
1156
|
-
</div>
|
|
1157
|
-
|
|
1158
|
-
<div class="io-description">
|
|
1159
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1160
|
-
|
|
1161
|
-
</div>
|
|
1162
|
-
</td>
|
|
1163
|
-
</tr>
|
|
1164
|
-
</tbody>
|
|
1165
|
-
</table>
|
|
1166
|
-
<table class="table table-sm table-bordered">
|
|
1167
|
-
<tbody>
|
|
1168
|
-
<tr>
|
|
1169
|
-
<td class="col-md-4">
|
|
1170
|
-
<a name="initInterface"></a>
|
|
1171
|
-
<span class="name">
|
|
1172
|
-
<b>
|
|
1173
|
-
initInterface
|
|
1174
|
-
</b>
|
|
1175
|
-
<a href="#initInterface"><span class="icon ion-ios-link"></span></a>
|
|
1176
|
-
</span>
|
|
1177
|
-
</td>
|
|
1178
|
-
</tr>
|
|
1179
|
-
<tr>
|
|
1180
|
-
<td class="col-md-4">
|
|
1181
|
-
<code>initInterface()</code>
|
|
1182
|
-
</td>
|
|
1183
|
-
</tr>
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
<tr>
|
|
1187
|
-
<td class="col-md-4">
|
|
1188
|
-
<div class="io-line">Defined in <a href="" data-line="181"
|
|
1189
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:181</a></div>
|
|
1190
|
-
</td>
|
|
1191
|
-
</tr>
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
<tr>
|
|
1195
|
-
<td class="col-md-4">
|
|
1196
|
-
<div class="io-description"><p>::: initInterface :::
|
|
1197
|
-
imposto la pg di login
|
|
1198
|
-
se sono su mobile nella pagina di dettaglio imposto il placeholder</p>
|
|
1199
|
-
</div>
|
|
1200
|
-
|
|
1201
|
-
<div class="io-description">
|
|
1202
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1203
|
-
|
|
1204
|
-
</div>
|
|
1205
|
-
</td>
|
|
1206
|
-
</tr>
|
|
1207
|
-
</tbody>
|
|
1208
|
-
</table>
|
|
1209
|
-
<table class="table table-sm table-bordered">
|
|
1210
|
-
<tbody>
|
|
1211
|
-
<tr>
|
|
1212
|
-
<td class="col-md-4">
|
|
1213
|
-
<a name="initSubscriptions"></a>
|
|
1214
|
-
<span class="name">
|
|
1215
|
-
<b>
|
|
1216
|
-
initSubscriptions
|
|
1217
|
-
</b>
|
|
1218
|
-
<a href="#initSubscriptions"><span class="icon ion-ios-link"></span></a>
|
|
1219
|
-
</span>
|
|
1220
|
-
</td>
|
|
1221
|
-
</tr>
|
|
1222
|
-
<tr>
|
|
1223
|
-
<td class="col-md-4">
|
|
1224
|
-
<code>initSubscriptions()</code>
|
|
1225
|
-
</td>
|
|
1226
|
-
</tr>
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
<tr>
|
|
1230
|
-
<td class="col-md-4">
|
|
1231
|
-
<div class="io-line">Defined in <a href="" data-line="229"
|
|
1232
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:229</a></div>
|
|
1233
|
-
</td>
|
|
1234
|
-
</tr>
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
<tr>
|
|
1238
|
-
<td class="col-md-4">
|
|
1239
|
-
<div class="io-description"><p>::: initSubscriptions :::
|
|
1240
|
-
mi sottoscrivo a:
|
|
1241
|
-
1 - elenco conversazioni
|
|
1242
|
-
2 - elenco conversazioni erchiviate
|
|
1243
|
-
3 - logout
|
|
1244
|
-
4 - conversazione selezionata (attiva)</p>
|
|
1245
|
-
</div>
|
|
1246
|
-
|
|
1247
|
-
<div class="io-description">
|
|
1248
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1249
|
-
|
|
1250
|
-
</div>
|
|
1251
|
-
</td>
|
|
1252
|
-
</tr>
|
|
1253
|
-
</tbody>
|
|
1254
|
-
</table>
|
|
1255
|
-
<table class="table table-sm table-bordered">
|
|
1256
|
-
<tbody>
|
|
1257
|
-
<tr>
|
|
1258
|
-
<td class="col-md-4">
|
|
1259
|
-
<a name="initVariables"></a>
|
|
1260
|
-
<span class="name">
|
|
1261
|
-
<b>
|
|
1262
|
-
initVariables
|
|
1263
|
-
</b>
|
|
1264
|
-
<a href="#initVariables"><span class="icon ion-ios-link"></span></a>
|
|
1265
|
-
</span>
|
|
1266
|
-
</td>
|
|
1267
|
-
</tr>
|
|
1268
|
-
<tr>
|
|
1269
|
-
<td class="col-md-4">
|
|
1270
|
-
<code>initVariables()</code>
|
|
1271
|
-
</td>
|
|
1272
|
-
</tr>
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
<tr>
|
|
1276
|
-
<td class="col-md-4">
|
|
1277
|
-
<div class="io-line">Defined in <a href="" data-line="152"
|
|
1278
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:152</a></div>
|
|
1279
|
-
</td>
|
|
1280
|
-
</tr>
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
<tr>
|
|
1284
|
-
<td class="col-md-4">
|
|
1285
|
-
<div class="io-description"><p>::: initVariables :::
|
|
1286
|
-
al caricamento della pagina:
|
|
1287
|
-
setto BUILD_VERSION prendendo il valore da PACKAGE
|
|
1288
|
-
recupero conversationWith - se vengo da dettaglio conversazione o da users con conversazione attiva ???? sarà sempre undefined da spostare in ionViewDidEnter
|
|
1289
|
-
recupero tenant
|
|
1290
|
-
imposto recipient se esiste nei parametri passati nell'url
|
|
1291
|
-
imposto uidConvSelected recuperando id ultima conversazione aperta dallo storage </p>
|
|
1292
|
-
</div>
|
|
1293
|
-
|
|
1294
|
-
<div class="io-description">
|
|
1295
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1296
|
-
|
|
1297
|
-
</div>
|
|
1298
|
-
</td>
|
|
1299
|
-
</tr>
|
|
1300
|
-
</tbody>
|
|
1301
|
-
</table>
|
|
1302
|
-
<table class="table table-sm table-bordered">
|
|
1303
|
-
<tbody>
|
|
1304
|
-
<tr>
|
|
1305
|
-
<td class="col-md-4">
|
|
1306
|
-
<a name="ionViewDidLeave"></a>
|
|
1307
|
-
<span class="name">
|
|
1308
|
-
<b>
|
|
1309
|
-
ionViewDidLeave
|
|
1310
|
-
</b>
|
|
1311
|
-
<a href="#ionViewDidLeave"><span class="icon ion-ios-link"></span></a>
|
|
1312
|
-
</span>
|
|
1313
|
-
</td>
|
|
1314
|
-
</tr>
|
|
1315
|
-
<tr>
|
|
1316
|
-
<td class="col-md-4">
|
|
1317
|
-
<code>ionViewDidLeave()</code>
|
|
1318
|
-
</td>
|
|
1319
|
-
</tr>
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
<tr>
|
|
1323
|
-
<td class="col-md-4">
|
|
1324
|
-
<div class="io-line">Defined in <a href="" data-line="109"
|
|
1325
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:109</a></div>
|
|
1326
|
-
</td>
|
|
1327
|
-
</tr>
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
<tr>
|
|
1331
|
-
<td class="col-md-4">
|
|
1332
|
-
|
|
1333
|
-
<div class="io-description">
|
|
1334
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1335
|
-
|
|
1336
|
-
</div>
|
|
1337
|
-
</td>
|
|
1338
|
-
</tr>
|
|
1339
|
-
</tbody>
|
|
1340
|
-
</table>
|
|
1341
|
-
<table class="table table-sm table-bordered">
|
|
1342
|
-
<tbody>
|
|
1343
|
-
<tr>
|
|
1344
|
-
<td class="col-md-4">
|
|
1345
|
-
<a name="logOut"></a>
|
|
1346
|
-
<span class="name">
|
|
1347
|
-
<b>
|
|
1348
|
-
<span class="modifier">Private</span>
|
|
1349
|
-
logOut
|
|
1350
|
-
</b>
|
|
1351
|
-
<a href="#logOut"><span class="icon ion-ios-link"></span></a>
|
|
1352
|
-
</span>
|
|
1353
|
-
</td>
|
|
1354
|
-
</tr>
|
|
1355
|
-
<tr>
|
|
1356
|
-
<td class="col-md-4">
|
|
1357
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
1358
|
-
<code>logOut()</code>
|
|
1359
|
-
</td>
|
|
1360
|
-
</tr>
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
<tr>
|
|
1364
|
-
<td class="col-md-4">
|
|
1365
|
-
<div class="io-line">Defined in <a href="" data-line="467"
|
|
1366
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:467</a></div>
|
|
1367
|
-
</td>
|
|
1368
|
-
</tr>
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
<tr>
|
|
1372
|
-
<td class="col-md-4">
|
|
1373
|
-
<div class="io-description"><p>::: logOut :::
|
|
1374
|
-
modulo richiamato se premo su logout
|
|
1375
|
-
1 - aggiungo placeholderPage
|
|
1376
|
-
2 - richiamo il logout di firebase</p>
|
|
1377
|
-
</div>
|
|
1378
|
-
|
|
1379
|
-
<div class="io-description">
|
|
1380
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1381
|
-
|
|
1382
|
-
</div>
|
|
1383
|
-
</td>
|
|
1384
|
-
</tr>
|
|
1385
|
-
</tbody>
|
|
1386
|
-
</table>
|
|
1387
|
-
<table class="table table-sm table-bordered">
|
|
1388
|
-
<tbody>
|
|
1389
|
-
<tr>
|
|
1390
|
-
<td class="col-md-4">
|
|
1391
|
-
<a name="openArchivedConversationsPage"></a>
|
|
1392
|
-
<span class="name">
|
|
1393
|
-
<b>
|
|
1394
|
-
<span class="modifier">Private</span>
|
|
1395
|
-
openArchivedConversationsPage
|
|
1396
|
-
</b>
|
|
1397
|
-
<a href="#openArchivedConversationsPage"><span class="icon ion-ios-link"></span></a>
|
|
1398
|
-
</span>
|
|
1399
|
-
</td>
|
|
1400
|
-
</tr>
|
|
1401
|
-
<tr>
|
|
1402
|
-
<td class="col-md-4">
|
|
1403
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
1404
|
-
<code>openArchivedConversationsPage()</code>
|
|
1405
|
-
</td>
|
|
1406
|
-
</tr>
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
<tr>
|
|
1410
|
-
<td class="col-md-4">
|
|
1411
|
-
<div class="io-line">Defined in <a href="" data-line="453"
|
|
1412
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:453</a></div>
|
|
1413
|
-
</td>
|
|
1414
|
-
</tr>
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
<tr>
|
|
1418
|
-
<td class="col-md-4">
|
|
1419
|
-
<div class="io-description"><p>::: openArchivedConversationsPage :::
|
|
1420
|
-
Open the archived conversations page
|
|
1421
|
-
(metodo richiamato da html) </p>
|
|
1422
|
-
</div>
|
|
1423
|
-
|
|
1424
|
-
<div class="io-description">
|
|
1425
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1426
|
-
|
|
1427
|
-
</div>
|
|
1428
|
-
</td>
|
|
1429
|
-
</tr>
|
|
1430
|
-
</tbody>
|
|
1431
|
-
</table>
|
|
1432
|
-
<table class="table table-sm table-bordered">
|
|
1433
|
-
<tbody>
|
|
1434
|
-
<tr>
|
|
1435
|
-
<td class="col-md-4">
|
|
1436
|
-
<a name="openMessageList"></a>
|
|
1437
|
-
<span class="name">
|
|
1438
|
-
<b>
|
|
1439
|
-
openMessageList
|
|
1440
|
-
</b>
|
|
1441
|
-
<a href="#openMessageList"><span class="icon ion-ios-link"></span></a>
|
|
1442
|
-
</span>
|
|
1443
|
-
</td>
|
|
1444
|
-
</tr>
|
|
1445
|
-
<tr>
|
|
1446
|
-
<td class="col-md-4">
|
|
1447
|
-
<code>openMessageList(type?: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
1448
|
-
</td>
|
|
1449
|
-
</tr>
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
<tr>
|
|
1453
|
-
<td class="col-md-4">
|
|
1454
|
-
<div class="io-line">Defined in <a href="" data-line="364"
|
|
1455
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:364</a></div>
|
|
1456
|
-
</td>
|
|
1457
|
-
</tr>
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
<tr>
|
|
1461
|
-
<td class="col-md-4">
|
|
1462
|
-
<div class="io-description"><p>::: openMessageList :::
|
|
1463
|
-
1 - cerco conv con id == this.uidConvSelected e imposto select a FALSE
|
|
1464
|
-
2 - cerco conv con id == nw uidConvSelected se esiste:<br>2.1 - imposto status a 0 come letto
|
|
1465
|
-
2.2 - seleziono conv selected == TRUE
|
|
1466
|
-
2.3 - imposto nw uidConvSelected come this.uidConvSelected
|
|
1467
|
-
2.4 - apro conv
|
|
1468
|
-
3 salvo id conv nello storage</p>
|
|
1469
|
-
</div>
|
|
1470
|
-
|
|
1471
|
-
<div class="io-description">
|
|
1472
|
-
<b>Parameters :</b>
|
|
1473
|
-
<table class="params">
|
|
1474
|
-
<thead>
|
|
1475
|
-
<tr>
|
|
1476
|
-
<td>Name</td>
|
|
1477
|
-
<td>Type</td>
|
|
1478
|
-
<td>Optional</td>
|
|
1479
|
-
</tr>
|
|
1480
|
-
</thead>
|
|
1481
|
-
<tbody>
|
|
1482
|
-
<tr>
|
|
1483
|
-
<td>type</td>
|
|
1484
|
-
<td>
|
|
1485
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
1486
|
-
</td>
|
|
1487
|
-
|
|
1488
|
-
<td>
|
|
1489
|
-
Yes
|
|
1490
|
-
</td>
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
</tr>
|
|
1494
|
-
</tbody>
|
|
1495
|
-
</table>
|
|
1496
|
-
</div>
|
|
1497
|
-
<div>
|
|
1498
|
-
</div>
|
|
1499
|
-
<div class="io-description">
|
|
1500
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1501
|
-
|
|
1502
|
-
</div>
|
|
1503
|
-
<div class="io-description">
|
|
1504
|
-
|
|
1505
|
-
</div>
|
|
1506
|
-
</td>
|
|
1507
|
-
</tr>
|
|
1508
|
-
</tbody>
|
|
1509
|
-
</table>
|
|
1510
|
-
<table class="table table-sm table-bordered">
|
|
1511
|
-
<tbody>
|
|
1512
|
-
<tr>
|
|
1513
|
-
<td class="col-md-4">
|
|
1514
|
-
<a name="openUsersList"></a>
|
|
1515
|
-
<span class="name">
|
|
1516
|
-
<b>
|
|
1517
|
-
<span class="modifier">Private</span>
|
|
1518
|
-
openUsersList
|
|
1519
|
-
</b>
|
|
1520
|
-
<a href="#openUsersList"><span class="icon ion-ios-link"></span></a>
|
|
1521
|
-
</span>
|
|
1522
|
-
</td>
|
|
1523
|
-
</tr>
|
|
1524
|
-
<tr>
|
|
1525
|
-
<td class="col-md-4">
|
|
1526
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
1527
|
-
<code>openUsersList(event: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
1528
|
-
</td>
|
|
1529
|
-
</tr>
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
<tr>
|
|
1533
|
-
<td class="col-md-4">
|
|
1534
|
-
<div class="io-line">Defined in <a href="" data-line="414"
|
|
1535
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:414</a></div>
|
|
1536
|
-
</td>
|
|
1537
|
-
</tr>
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
<tr>
|
|
1541
|
-
<td class="col-md-4">
|
|
1542
|
-
<div class="io-description"><p>::: openUsersList :::
|
|
1543
|
-
apro pagina elenco users
|
|
1544
|
-
(metodo richiamato da html) </p>
|
|
1545
|
-
</div>
|
|
1546
|
-
|
|
1547
|
-
<div class="io-description">
|
|
1548
|
-
<b>Parameters :</b>
|
|
1549
|
-
<table class="params">
|
|
1550
|
-
<thead>
|
|
1551
|
-
<tr>
|
|
1552
|
-
<td>Name</td>
|
|
1553
|
-
<td>Type</td>
|
|
1554
|
-
<td>Optional</td>
|
|
1555
|
-
</tr>
|
|
1556
|
-
</thead>
|
|
1557
|
-
<tbody>
|
|
1558
|
-
<tr>
|
|
1559
|
-
<td>event</td>
|
|
1560
|
-
<td>
|
|
1561
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
1562
|
-
</td>
|
|
1563
|
-
|
|
1564
|
-
<td>
|
|
1565
|
-
No
|
|
1566
|
-
</td>
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
</tr>
|
|
1570
|
-
</tbody>
|
|
1571
|
-
</table>
|
|
1572
|
-
</div>
|
|
1573
|
-
<div>
|
|
1574
|
-
</div>
|
|
1575
|
-
<div class="io-description">
|
|
1576
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1577
|
-
|
|
1578
|
-
</div>
|
|
1579
|
-
<div class="io-description">
|
|
1580
|
-
|
|
1581
|
-
</div>
|
|
1582
|
-
</td>
|
|
1583
|
-
</tr>
|
|
1584
|
-
</tbody>
|
|
1585
|
-
</table>
|
|
1586
|
-
<table class="table table-sm table-bordered">
|
|
1587
|
-
<tbody>
|
|
1588
|
-
<tr>
|
|
1589
|
-
<td class="col-md-4">
|
|
1590
|
-
<a name="presentPopover"></a>
|
|
1591
|
-
<span class="name">
|
|
1592
|
-
<b>
|
|
1593
|
-
<span class="modifier">Private</span>
|
|
1594
|
-
presentPopover
|
|
1595
|
-
</b>
|
|
1596
|
-
<a href="#presentPopover"><span class="icon ion-ios-link"></span></a>
|
|
1597
|
-
</span>
|
|
1598
|
-
</td>
|
|
1599
|
-
</tr>
|
|
1600
|
-
<tr>
|
|
1601
|
-
<td class="col-md-4">
|
|
1602
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
1603
|
-
<code>presentPopover(event)</code>
|
|
1604
|
-
</td>
|
|
1605
|
-
</tr>
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
<tr>
|
|
1609
|
-
<td class="col-md-4">
|
|
1610
|
-
<div class="io-line">Defined in <a href="" data-line="428"
|
|
1611
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:428</a></div>
|
|
1612
|
-
</td>
|
|
1613
|
-
</tr>
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
<tr>
|
|
1617
|
-
<td class="col-md-4">
|
|
1618
|
-
<div class="io-description"><p>::: presentPopover :::
|
|
1619
|
-
apro il menu delle opzioni
|
|
1620
|
-
(metodo richiamato da html)
|
|
1621
|
-
alla chiusura controllo su quale opzione ho premuto e attivo l'azione corrispondete</p>
|
|
1622
|
-
</div>
|
|
1623
|
-
|
|
1624
|
-
<div class="io-description">
|
|
1625
|
-
<b>Parameters :</b>
|
|
1626
|
-
<table class="params">
|
|
1627
|
-
<thead>
|
|
1628
|
-
<tr>
|
|
1629
|
-
<td>Name</td>
|
|
1630
|
-
<td>Optional</td>
|
|
1631
|
-
</tr>
|
|
1632
|
-
</thead>
|
|
1633
|
-
<tbody>
|
|
1634
|
-
<tr>
|
|
1635
|
-
<td>event</td>
|
|
1636
|
-
|
|
1637
|
-
<td>
|
|
1638
|
-
No
|
|
1639
|
-
</td>
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
</tr>
|
|
1643
|
-
</tbody>
|
|
1644
|
-
</table>
|
|
1645
|
-
</div>
|
|
1646
|
-
<div>
|
|
1647
|
-
</div>
|
|
1648
|
-
<div class="io-description">
|
|
1649
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1650
|
-
|
|
1651
|
-
</div>
|
|
1652
|
-
<div class="io-description">
|
|
1653
|
-
|
|
1654
|
-
</div>
|
|
1655
|
-
</td>
|
|
1656
|
-
</tr>
|
|
1657
|
-
</tbody>
|
|
1658
|
-
</table>
|
|
1659
|
-
<table class="table table-sm table-bordered">
|
|
1660
|
-
<tbody>
|
|
1661
|
-
<tr>
|
|
1662
|
-
<td class="col-md-4">
|
|
1663
|
-
<a name="setUidConvSelected"></a>
|
|
1664
|
-
<span class="name">
|
|
1665
|
-
<b>
|
|
1666
|
-
setUidConvSelected
|
|
1667
|
-
</b>
|
|
1668
|
-
<a href="#setUidConvSelected"><span class="icon ion-ios-link"></span></a>
|
|
1669
|
-
</span>
|
|
1670
|
-
</td>
|
|
1671
|
-
</tr>
|
|
1672
|
-
<tr>
|
|
1673
|
-
<td class="col-md-4">
|
|
1674
|
-
<code>setUidConvSelected(uidConvSelected?: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
|
|
1675
|
-
</td>
|
|
1676
|
-
</tr>
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
<tr>
|
|
1680
|
-
<td class="col-md-4">
|
|
1681
|
-
<div class="io-line">Defined in <a href="" data-line="348"
|
|
1682
|
-
class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:348</a></div>
|
|
1683
|
-
</td>
|
|
1684
|
-
</tr>
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
<tr>
|
|
1688
|
-
<td class="col-md-4">
|
|
1689
|
-
<div class="io-description"><p>::: setUidConvSelected :::</p>
|
|
1690
|
-
</div>
|
|
1691
|
-
|
|
1692
|
-
<div class="io-description">
|
|
1693
|
-
<b>Parameters :</b>
|
|
1694
|
-
<table class="params">
|
|
1695
|
-
<thead>
|
|
1696
|
-
<tr>
|
|
1697
|
-
<td>Name</td>
|
|
1698
|
-
<td>Type</td>
|
|
1699
|
-
<td>Optional</td>
|
|
1700
|
-
</tr>
|
|
1701
|
-
</thead>
|
|
1702
|
-
<tbody>
|
|
1703
|
-
<tr>
|
|
1704
|
-
<td>uidConvSelected</td>
|
|
1705
|
-
<td>
|
|
1706
|
-
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
1707
|
-
</td>
|
|
1708
|
-
|
|
1709
|
-
<td>
|
|
1710
|
-
Yes
|
|
1711
|
-
</td>
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
</tr>
|
|
1715
|
-
</tbody>
|
|
1716
|
-
</table>
|
|
1717
|
-
</div>
|
|
1718
|
-
<div>
|
|
1719
|
-
</div>
|
|
1720
|
-
<div class="io-description">
|
|
1721
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1722
|
-
|
|
1723
|
-
</div>
|
|
1724
|
-
<div class="io-description">
|
|
1725
|
-
|
|
1726
|
-
</div>
|
|
1727
|
-
</td>
|
|
1728
|
-
</tr>
|
|
1729
|
-
</tbody>
|
|
1730
|
-
</table>
|
|
1731
|
-
</section>
|
|
1732
|
-
<section>
|
|
1733
|
-
|
|
1734
|
-
<h3 id="inputs">
|
|
1735
|
-
Properties
|
|
1736
|
-
</h3>
|
|
1737
|
-
<table class="table table-sm table-bordered">
|
|
1738
|
-
<tbody>
|
|
1739
|
-
<tr>
|
|
1740
|
-
<td class="col-md-4">
|
|
1741
|
-
<a name="archivedConversations"></a>
|
|
1742
|
-
<span class="name">
|
|
1743
|
-
<b>
|
|
1744
|
-
<span class="modifier">Private</span>
|
|
1745
|
-
archivedConversations</b>
|
|
1746
|
-
<a href="#archivedConversations"><span class="icon ion-ios-link"></span></a>
|
|
1747
|
-
</span>
|
|
1748
|
-
</td>
|
|
1749
|
-
</tr>
|
|
1750
|
-
<tr>
|
|
1751
|
-
<td class="col-md-4">
|
|
1752
|
-
<i>Type : </i> <code><a href="../classes/ConversationModel.html" target="_self" >ConversationModel[]</a></code>
|
|
1753
|
-
|
|
1754
|
-
</td>
|
|
1755
|
-
</tr>
|
|
1756
|
-
<tr>
|
|
1757
|
-
<td class="col-md-4">
|
|
1758
|
-
<div class="io-line">Defined in <a href="" data-line="45" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:45</a></div>
|
|
1759
|
-
</td>
|
|
1760
|
-
</tr>
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
</tbody>
|
|
1764
|
-
</table>
|
|
1765
|
-
<table class="table table-sm table-bordered">
|
|
1766
|
-
<tbody>
|
|
1767
|
-
<tr>
|
|
1768
|
-
<td class="col-md-4">
|
|
1769
|
-
<a name="archivedConversationsChanged"></a>
|
|
1770
|
-
<span class="name">
|
|
1771
|
-
<b>
|
|
1772
|
-
archivedConversationsChanged</b>
|
|
1773
|
-
<a href="#archivedConversationsChanged"><span class="icon ion-ios-link"></span></a>
|
|
1774
|
-
</span>
|
|
1775
|
-
</td>
|
|
1776
|
-
</tr>
|
|
1777
|
-
<tr>
|
|
1778
|
-
<td class="col-md-4">
|
|
1779
|
-
<i>Default value : </i><code>() => {...}</code>
|
|
1780
|
-
</td>
|
|
1781
|
-
</tr>
|
|
1782
|
-
<tr>
|
|
1783
|
-
<td class="col-md-4">
|
|
1784
|
-
<div class="io-line">Defined in <a href="" data-line="297" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:297</a></div>
|
|
1785
|
-
</td>
|
|
1786
|
-
</tr>
|
|
1787
|
-
|
|
1788
|
-
<tr>
|
|
1789
|
-
<td class="col-md-4">
|
|
1790
|
-
<div class="io-description"><p>::: archivedConversationsChanged :::
|
|
1791
|
-
evento richiamato su add, change, remove dell'elenco delle conversazioni archiviate</p>
|
|
1792
|
-
</div>
|
|
1793
|
-
</td>
|
|
1794
|
-
</tr>
|
|
1795
|
-
|
|
1796
|
-
</tbody>
|
|
1797
|
-
</table>
|
|
1798
|
-
<table class="table table-sm table-bordered">
|
|
1799
|
-
<tbody>
|
|
1800
|
-
<tr>
|
|
1801
|
-
<td class="col-md-4">
|
|
1802
|
-
<a name="BUILD_VERSION"></a>
|
|
1803
|
-
<span class="name">
|
|
1804
|
-
<b>
|
|
1805
|
-
<span class="modifier">Private</span>
|
|
1806
|
-
BUILD_VERSION</b>
|
|
1807
|
-
<a href="#BUILD_VERSION"><span class="icon ion-ios-link"></span></a>
|
|
1808
|
-
</span>
|
|
1809
|
-
</td>
|
|
1810
|
-
</tr>
|
|
1811
|
-
<tr>
|
|
1812
|
-
<td class="col-md-4">
|
|
1813
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
1814
|
-
|
|
1815
|
-
</td>
|
|
1816
|
-
</tr>
|
|
1817
|
-
<tr>
|
|
1818
|
-
<td class="col-md-4">
|
|
1819
|
-
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:55</a></div>
|
|
1820
|
-
</td>
|
|
1821
|
-
</tr>
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
</tbody>
|
|
1825
|
-
</table>
|
|
1826
|
-
<table class="table table-sm table-bordered">
|
|
1827
|
-
<tbody>
|
|
1828
|
-
<tr>
|
|
1829
|
-
<td class="col-md-4">
|
|
1830
|
-
<a name="chatConversationsHandler"></a>
|
|
1831
|
-
<span class="name">
|
|
1832
|
-
<b>
|
|
1833
|
-
<span class="modifier">Public</span>
|
|
1834
|
-
chatConversationsHandler</b>
|
|
1835
|
-
<a href="#chatConversationsHandler"><span class="icon ion-ios-link"></span></a>
|
|
1836
|
-
</span>
|
|
1837
|
-
</td>
|
|
1838
|
-
</tr>
|
|
1839
|
-
<tr>
|
|
1840
|
-
<td class="col-md-4">
|
|
1841
|
-
<i>Type : </i> <code><a href="../injectables/ChatConversationsHandler.html" target="_self" >ChatConversationsHandler</a></code>
|
|
1842
|
-
|
|
1843
|
-
</td>
|
|
1844
|
-
</tr>
|
|
1845
|
-
<tr>
|
|
1846
|
-
<td class="col-md-4">
|
|
1847
|
-
<div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:71</a></div>
|
|
1848
|
-
</td>
|
|
1849
|
-
</tr>
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
</tbody>
|
|
1853
|
-
</table>
|
|
1854
|
-
<table class="table table-sm table-bordered">
|
|
1855
|
-
<tbody>
|
|
1856
|
-
<tr>
|
|
1857
|
-
<td class="col-md-4">
|
|
1858
|
-
<a name="chatManager"></a>
|
|
1859
|
-
<span class="name">
|
|
1860
|
-
<b>
|
|
1861
|
-
<span class="modifier">Public</span>
|
|
1862
|
-
chatManager</b>
|
|
1863
|
-
<a href="#chatManager"><span class="icon ion-ios-link"></span></a>
|
|
1864
|
-
</span>
|
|
1865
|
-
</td>
|
|
1866
|
-
</tr>
|
|
1867
|
-
<tr>
|
|
1868
|
-
<td class="col-md-4">
|
|
1869
|
-
<i>Type : </i> <code><a href="../injectables/ChatManager.html" target="_self" >ChatManager</a></code>
|
|
1870
|
-
|
|
1871
|
-
</td>
|
|
1872
|
-
</tr>
|
|
1873
|
-
<tr>
|
|
1874
|
-
<td class="col-md-4">
|
|
1875
|
-
<div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:74</a></div>
|
|
1876
|
-
</td>
|
|
1877
|
-
</tr>
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
</tbody>
|
|
1881
|
-
</table>
|
|
1882
|
-
<table class="table table-sm table-bordered">
|
|
1883
|
-
<tbody>
|
|
1884
|
-
<tr>
|
|
1885
|
-
<td class="col-md-4">
|
|
1886
|
-
<a name="conversationHandler"></a>
|
|
1887
|
-
<span class="name">
|
|
1888
|
-
<b>
|
|
1889
|
-
<span class="modifier">Public</span>
|
|
1890
|
-
conversationHandler</b>
|
|
1891
|
-
<a href="#conversationHandler"><span class="icon ion-ios-link"></span></a>
|
|
1892
|
-
</span>
|
|
1893
|
-
</td>
|
|
1894
|
-
</tr>
|
|
1895
|
-
<tr>
|
|
1896
|
-
<td class="col-md-4">
|
|
1897
|
-
<i>Type : </i> <code><a href="../injectables/ChatConversationHandler.html" target="_self" >ChatConversationHandler</a></code>
|
|
1898
|
-
|
|
1899
|
-
</td>
|
|
1900
|
-
</tr>
|
|
1901
|
-
<tr>
|
|
1902
|
-
<td class="col-md-4">
|
|
1903
|
-
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:72</a></div>
|
|
1904
|
-
</td>
|
|
1905
|
-
</tr>
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
</tbody>
|
|
1909
|
-
</table>
|
|
1910
|
-
<table class="table table-sm table-bordered">
|
|
1911
|
-
<tbody>
|
|
1912
|
-
<tr>
|
|
1913
|
-
<td class="col-md-4">
|
|
1914
|
-
<a name="conversations"></a>
|
|
1915
|
-
<span class="name">
|
|
1916
|
-
<b>
|
|
1917
|
-
<span class="modifier">Private</span>
|
|
1918
|
-
conversations</b>
|
|
1919
|
-
<a href="#conversations"><span class="icon ion-ios-link"></span></a>
|
|
1920
|
-
</span>
|
|
1921
|
-
</td>
|
|
1922
|
-
</tr>
|
|
1923
|
-
<tr>
|
|
1924
|
-
<td class="col-md-4">
|
|
1925
|
-
<i>Type : </i> <code><a href="../classes/ConversationModel.html" target="_self" >Array<ConversationModel></a></code>
|
|
1926
|
-
|
|
1927
|
-
</td>
|
|
1928
|
-
</tr>
|
|
1929
|
-
<tr>
|
|
1930
|
-
<td class="col-md-4">
|
|
1931
|
-
<i>Default value : </i><code>[]</code>
|
|
1932
|
-
</td>
|
|
1933
|
-
</tr>
|
|
1934
|
-
<tr>
|
|
1935
|
-
<td class="col-md-4">
|
|
1936
|
-
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:44</a></div>
|
|
1937
|
-
</td>
|
|
1938
|
-
</tr>
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
</tbody>
|
|
1942
|
-
</table>
|
|
1943
|
-
<table class="table table-sm table-bordered">
|
|
1944
|
-
<tbody>
|
|
1945
|
-
<tr>
|
|
1946
|
-
<td class="col-md-4">
|
|
1947
|
-
<a name="conversationsChanged"></a>
|
|
1948
|
-
<span class="name">
|
|
1949
|
-
<b>
|
|
1950
|
-
conversationsChanged</b>
|
|
1951
|
-
<a href="#conversationsChanged"><span class="icon ion-ios-link"></span></a>
|
|
1952
|
-
</span>
|
|
1953
|
-
</td>
|
|
1954
|
-
</tr>
|
|
1955
|
-
<tr>
|
|
1956
|
-
<td class="col-md-4">
|
|
1957
|
-
<i>Default value : </i><code>() => {...}</code>
|
|
1958
|
-
</td>
|
|
1959
|
-
</tr>
|
|
1960
|
-
<tr>
|
|
1961
|
-
<td class="col-md-4">
|
|
1962
|
-
<div class="io-line">Defined in <a href="" data-line="265" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:265</a></div>
|
|
1963
|
-
</td>
|
|
1964
|
-
</tr>
|
|
1965
|
-
|
|
1966
|
-
<tr>
|
|
1967
|
-
<td class="col-md-4">
|
|
1968
|
-
<div class="io-description"><p>evento richiamato quando ho finito di caricare le conversazioni dallo storage</p>
|
|
1969
|
-
</div>
|
|
1970
|
-
</td>
|
|
1971
|
-
</tr>
|
|
1972
|
-
|
|
1973
|
-
</tbody>
|
|
1974
|
-
</table>
|
|
1975
|
-
<table class="table table-sm table-bordered">
|
|
1976
|
-
<tbody>
|
|
1977
|
-
<tr>
|
|
1978
|
-
<td class="col-md-4">
|
|
1979
|
-
<a name="conversationsHandler"></a>
|
|
1980
|
-
<span class="name">
|
|
1981
|
-
<b>
|
|
1982
|
-
<span class="modifier">Private</span>
|
|
1983
|
-
conversationsHandler</b>
|
|
1984
|
-
<a href="#conversationsHandler"><span class="icon ion-ios-link"></span></a>
|
|
1985
|
-
</span>
|
|
1986
|
-
</td>
|
|
1987
|
-
</tr>
|
|
1988
|
-
<tr>
|
|
1989
|
-
<td class="col-md-4">
|
|
1990
|
-
<i>Type : </i> <code><a href="../injectables/ChatConversationsHandler.html" target="_self" >ChatConversationsHandler</a></code>
|
|
1991
|
-
|
|
1992
|
-
</td>
|
|
1993
|
-
</tr>
|
|
1994
|
-
<tr>
|
|
1995
|
-
<td class="col-md-4">
|
|
1996
|
-
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:52</a></div>
|
|
1997
|
-
</td>
|
|
1998
|
-
</tr>
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
</tbody>
|
|
2002
|
-
</table>
|
|
2003
|
-
<table class="table table-sm table-bordered">
|
|
2004
|
-
<tbody>
|
|
2005
|
-
<tr>
|
|
2006
|
-
<td class="col-md-4">
|
|
2007
|
-
<a name="convertMessage"></a>
|
|
2008
|
-
<span class="name">
|
|
2009
|
-
<b>
|
|
2010
|
-
<span class="modifier">Private</span>
|
|
2011
|
-
convertMessage</b>
|
|
2012
|
-
<a href="#convertMessage"><span class="icon ion-ios-link"></span></a>
|
|
2013
|
-
</span>
|
|
2014
|
-
</td>
|
|
2015
|
-
</tr>
|
|
2016
|
-
<tr>
|
|
2017
|
-
<td class="col-md-4">
|
|
2018
|
-
<i>Default value : </i><code>convertMessage</code>
|
|
2019
|
-
</td>
|
|
2020
|
-
</tr>
|
|
2021
|
-
<tr>
|
|
2022
|
-
<td class="col-md-4">
|
|
2023
|
-
<div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:60</a></div>
|
|
2024
|
-
</td>
|
|
2025
|
-
</tr>
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
</tbody>
|
|
2029
|
-
</table>
|
|
2030
|
-
<table class="table table-sm table-bordered">
|
|
2031
|
-
<tbody>
|
|
2032
|
-
<tr>
|
|
2033
|
-
<td class="col-md-4">
|
|
2034
|
-
<a name="databaseProvider"></a>
|
|
2035
|
-
<span class="name">
|
|
2036
|
-
<b>
|
|
2037
|
-
<span class="modifier">Public</span>
|
|
2038
|
-
databaseProvider</b>
|
|
2039
|
-
<a href="#databaseProvider"><span class="icon ion-ios-link"></span></a>
|
|
2040
|
-
</span>
|
|
2041
|
-
</td>
|
|
2042
|
-
</tr>
|
|
2043
|
-
<tr>
|
|
2044
|
-
<td class="col-md-4">
|
|
2045
|
-
<i>Type : </i> <code><a href="../injectables/DatabaseProvider.html" target="_self" >DatabaseProvider</a></code>
|
|
2046
|
-
|
|
2047
|
-
</td>
|
|
2048
|
-
</tr>
|
|
2049
|
-
<tr>
|
|
2050
|
-
<td class="col-md-4">
|
|
2051
|
-
<div class="io-line">Defined in <a href="" data-line="75" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:75</a></div>
|
|
2052
|
-
</td>
|
|
2053
|
-
</tr>
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
</tbody>
|
|
2057
|
-
</table>
|
|
2058
|
-
<table class="table table-sm table-bordered">
|
|
2059
|
-
<tbody>
|
|
2060
|
-
<tr>
|
|
2061
|
-
<td class="col-md-4">
|
|
2062
|
-
<a name="events"></a>
|
|
2063
|
-
<span class="name">
|
|
2064
|
-
<b>
|
|
2065
|
-
<span class="modifier">Public</span>
|
|
2066
|
-
events</b>
|
|
2067
|
-
<a href="#events"><span class="icon ion-ios-link"></span></a>
|
|
2068
|
-
</span>
|
|
2069
|
-
</td>
|
|
2070
|
-
</tr>
|
|
2071
|
-
<tr>
|
|
2072
|
-
<td class="col-md-4">
|
|
2073
|
-
<i>Type : </i> <code>Events</code>
|
|
2074
|
-
|
|
2075
|
-
</td>
|
|
2076
|
-
</tr>
|
|
2077
|
-
<tr>
|
|
2078
|
-
<td class="col-md-4">
|
|
2079
|
-
<div class="io-line">Defined in <a href="" data-line="73" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:73</a></div>
|
|
2080
|
-
</td>
|
|
2081
|
-
</tr>
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
</tbody>
|
|
2085
|
-
</table>
|
|
2086
|
-
<table class="table table-sm table-bordered">
|
|
2087
|
-
<tbody>
|
|
2088
|
-
<tr>
|
|
2089
|
-
<td class="col-md-4">
|
|
2090
|
-
<a name="loadingIsActive"></a>
|
|
2091
|
-
<span class="name">
|
|
2092
|
-
<b>
|
|
2093
|
-
<span class="modifier">Private</span>
|
|
2094
|
-
loadingIsActive</b>
|
|
2095
|
-
<a href="#loadingIsActive"><span class="icon ion-ios-link"></span></a>
|
|
2096
|
-
</span>
|
|
2097
|
-
</td>
|
|
2098
|
-
</tr>
|
|
2099
|
-
<tr>
|
|
2100
|
-
<td class="col-md-4">
|
|
2101
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
2102
|
-
|
|
2103
|
-
</td>
|
|
2104
|
-
</tr>
|
|
2105
|
-
<tr>
|
|
2106
|
-
<td class="col-md-4">
|
|
2107
|
-
<i>Default value : </i><code>true</code>
|
|
2108
|
-
</td>
|
|
2109
|
-
</tr>
|
|
2110
|
-
<tr>
|
|
2111
|
-
<td class="col-md-4">
|
|
2112
|
-
<div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:48</a></div>
|
|
2113
|
-
</td>
|
|
2114
|
-
</tr>
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
</tbody>
|
|
2118
|
-
</table>
|
|
2119
|
-
<table class="table table-sm table-bordered">
|
|
2120
|
-
<tbody>
|
|
2121
|
-
<tr>
|
|
2122
|
-
<td class="col-md-4">
|
|
2123
|
-
<a name="loggedUser"></a>
|
|
2124
|
-
<span class="name">
|
|
2125
|
-
<b>
|
|
2126
|
-
<span class="modifier">Private</span>
|
|
2127
|
-
loggedUser</b>
|
|
2128
|
-
<a href="#loggedUser"><span class="icon ion-ios-link"></span></a>
|
|
2129
|
-
</span>
|
|
2130
|
-
</td>
|
|
2131
|
-
</tr>
|
|
2132
|
-
<tr>
|
|
2133
|
-
<td class="col-md-4">
|
|
2134
|
-
<i>Type : </i> <code><a href="../classes/UserModel.html" target="_self" >UserModel</a></code>
|
|
2135
|
-
|
|
2136
|
-
</td>
|
|
2137
|
-
</tr>
|
|
2138
|
-
<tr>
|
|
2139
|
-
<td class="col-md-4">
|
|
2140
|
-
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:43</a></div>
|
|
2141
|
-
</td>
|
|
2142
|
-
</tr>
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
</tbody>
|
|
2146
|
-
</table>
|
|
2147
|
-
<table class="table table-sm table-bordered">
|
|
2148
|
-
<tbody>
|
|
2149
|
-
<tr>
|
|
2150
|
-
<td class="col-md-4">
|
|
2151
|
-
<a name="modalCtrl"></a>
|
|
2152
|
-
<span class="name">
|
|
2153
|
-
<b>
|
|
2154
|
-
<span class="modifier">Public</span>
|
|
2155
|
-
modalCtrl</b>
|
|
2156
|
-
<a href="#modalCtrl"><span class="icon ion-ios-link"></span></a>
|
|
2157
|
-
</span>
|
|
2158
|
-
</td>
|
|
2159
|
-
</tr>
|
|
2160
|
-
<tr>
|
|
2161
|
-
<td class="col-md-4">
|
|
2162
|
-
<i>Type : </i> <code>ModalController</code>
|
|
2163
|
-
|
|
2164
|
-
</td>
|
|
2165
|
-
</tr>
|
|
2166
|
-
<tr>
|
|
2167
|
-
<td class="col-md-4">
|
|
2168
|
-
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:66</a></div>
|
|
2169
|
-
</td>
|
|
2170
|
-
</tr>
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
</tbody>
|
|
2174
|
-
</table>
|
|
2175
|
-
<table class="table table-sm table-bordered">
|
|
2176
|
-
<tbody>
|
|
2177
|
-
<tr>
|
|
2178
|
-
<td class="col-md-4">
|
|
2179
|
-
<a name="navCtrl"></a>
|
|
2180
|
-
<span class="name">
|
|
2181
|
-
<b>
|
|
2182
|
-
<span class="modifier">Public</span>
|
|
2183
|
-
navCtrl</b>
|
|
2184
|
-
<a href="#navCtrl"><span class="icon ion-ios-link"></span></a>
|
|
2185
|
-
</span>
|
|
2186
|
-
</td>
|
|
2187
|
-
</tr>
|
|
2188
|
-
<tr>
|
|
2189
|
-
<td class="col-md-4">
|
|
2190
|
-
<i>Type : </i> <code>NavController</code>
|
|
2191
|
-
|
|
2192
|
-
</td>
|
|
2193
|
-
</tr>
|
|
2194
|
-
<tr>
|
|
2195
|
-
<td class="col-md-4">
|
|
2196
|
-
<div class="io-line">Defined in <a href="" data-line="67" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:67</a></div>
|
|
2197
|
-
</td>
|
|
2198
|
-
</tr>
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
</tbody>
|
|
2202
|
-
</table>
|
|
2203
|
-
<table class="table table-sm table-bordered">
|
|
2204
|
-
<tbody>
|
|
2205
|
-
<tr>
|
|
2206
|
-
<td class="col-md-4">
|
|
2207
|
-
<a name="navParams"></a>
|
|
2208
|
-
<span class="name">
|
|
2209
|
-
<b>
|
|
2210
|
-
<span class="modifier">Public</span>
|
|
2211
|
-
navParams</b>
|
|
2212
|
-
<a href="#navParams"><span class="icon ion-ios-link"></span></a>
|
|
2213
|
-
</span>
|
|
2214
|
-
</td>
|
|
2215
|
-
</tr>
|
|
2216
|
-
<tr>
|
|
2217
|
-
<td class="col-md-4">
|
|
2218
|
-
<i>Type : </i> <code>NavParams</code>
|
|
2219
|
-
|
|
2220
|
-
</td>
|
|
2221
|
-
</tr>
|
|
2222
|
-
<tr>
|
|
2223
|
-
<td class="col-md-4">
|
|
2224
|
-
<div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:68</a></div>
|
|
2225
|
-
</td>
|
|
2226
|
-
</tr>
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
</tbody>
|
|
2230
|
-
</table>
|
|
2231
|
-
<table class="table table-sm table-bordered">
|
|
2232
|
-
<tbody>
|
|
2233
|
-
<tr>
|
|
2234
|
-
<td class="col-md-4">
|
|
2235
|
-
<a name="navProxy"></a>
|
|
2236
|
-
<span class="name">
|
|
2237
|
-
<b>
|
|
2238
|
-
<span class="modifier">Public</span>
|
|
2239
|
-
navProxy</b>
|
|
2240
|
-
<a href="#navProxy"><span class="icon ion-ios-link"></span></a>
|
|
2241
|
-
</span>
|
|
2242
|
-
</td>
|
|
2243
|
-
</tr>
|
|
2244
|
-
<tr>
|
|
2245
|
-
<td class="col-md-4">
|
|
2246
|
-
<i>Type : </i> <code><a href="../injectables/NavProxyService.html" target="_self" >NavProxyService</a></code>
|
|
2247
|
-
|
|
2248
|
-
</td>
|
|
2249
|
-
</tr>
|
|
2250
|
-
<tr>
|
|
2251
|
-
<td class="col-md-4">
|
|
2252
|
-
<div class="io-line">Defined in <a href="" data-line="69" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:69</a></div>
|
|
2253
|
-
</td>
|
|
2254
|
-
</tr>
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
</tbody>
|
|
2258
|
-
</table>
|
|
2259
|
-
<table class="table table-sm table-bordered">
|
|
2260
|
-
<tbody>
|
|
2261
|
-
<tr>
|
|
2262
|
-
<td class="col-md-4">
|
|
2263
|
-
<a name="numberOpenConv"></a>
|
|
2264
|
-
<span class="name">
|
|
2265
|
-
<b>
|
|
2266
|
-
<span class="modifier">Private</span>
|
|
2267
|
-
numberOpenConv</b>
|
|
2268
|
-
<a href="#numberOpenConv"><span class="icon ion-ios-link"></span></a>
|
|
2269
|
-
</span>
|
|
2270
|
-
</td>
|
|
2271
|
-
</tr>
|
|
2272
|
-
<tr>
|
|
2273
|
-
<td class="col-md-4">
|
|
2274
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
2275
|
-
|
|
2276
|
-
</td>
|
|
2277
|
-
</tr>
|
|
2278
|
-
<tr>
|
|
2279
|
-
<td class="col-md-4">
|
|
2280
|
-
<i>Default value : </i><code>0</code>
|
|
2281
|
-
</td>
|
|
2282
|
-
</tr>
|
|
2283
|
-
<tr>
|
|
2284
|
-
<td class="col-md-4">
|
|
2285
|
-
<div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:47</a></div>
|
|
2286
|
-
</td>
|
|
2287
|
-
</tr>
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
</tbody>
|
|
2291
|
-
</table>
|
|
2292
|
-
<table class="table table-sm table-bordered">
|
|
2293
|
-
<tbody>
|
|
2294
|
-
<tr>
|
|
2295
|
-
<td class="col-md-4">
|
|
2296
|
-
<a name="numberTotConv"></a>
|
|
2297
|
-
<span class="name">
|
|
2298
|
-
<b>
|
|
2299
|
-
<span class="modifier">Private</span>
|
|
2300
|
-
numberTotConv</b>
|
|
2301
|
-
<a href="#numberTotConv"><span class="icon ion-ios-link"></span></a>
|
|
2302
|
-
</span>
|
|
2303
|
-
</td>
|
|
2304
|
-
</tr>
|
|
2305
|
-
<tr>
|
|
2306
|
-
<td class="col-md-4">
|
|
2307
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
2308
|
-
|
|
2309
|
-
</td>
|
|
2310
|
-
</tr>
|
|
2311
|
-
<tr>
|
|
2312
|
-
<td class="col-md-4">
|
|
2313
|
-
<i>Default value : </i><code>0</code>
|
|
2314
|
-
</td>
|
|
2315
|
-
</tr>
|
|
2316
|
-
<tr>
|
|
2317
|
-
<td class="col-md-4">
|
|
2318
|
-
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:49</a></div>
|
|
2319
|
-
</td>
|
|
2320
|
-
</tr>
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
</tbody>
|
|
2324
|
-
</table>
|
|
2325
|
-
<table class="table table-sm table-bordered">
|
|
2326
|
-
<tbody>
|
|
2327
|
-
<tr>
|
|
2328
|
-
<td class="col-md-4">
|
|
2329
|
-
<a name="popoverCtrl"></a>
|
|
2330
|
-
<span class="name">
|
|
2331
|
-
<b>
|
|
2332
|
-
<span class="modifier">Public</span>
|
|
2333
|
-
popoverCtrl</b>
|
|
2334
|
-
<a href="#popoverCtrl"><span class="icon ion-ios-link"></span></a>
|
|
2335
|
-
</span>
|
|
2336
|
-
</td>
|
|
2337
|
-
</tr>
|
|
2338
|
-
<tr>
|
|
2339
|
-
<td class="col-md-4">
|
|
2340
|
-
<i>Type : </i> <code>PopoverController</code>
|
|
2341
|
-
|
|
2342
|
-
</td>
|
|
2343
|
-
</tr>
|
|
2344
|
-
<tr>
|
|
2345
|
-
<td class="col-md-4">
|
|
2346
|
-
<div class="io-line">Defined in <a href="" data-line="65" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:65</a></div>
|
|
2347
|
-
</td>
|
|
2348
|
-
</tr>
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
</tbody>
|
|
2352
|
-
</table>
|
|
2353
|
-
<table class="table table-sm table-bordered">
|
|
2354
|
-
<tbody>
|
|
2355
|
-
<tr>
|
|
2356
|
-
<td class="col-md-4">
|
|
2357
|
-
<a name="profileModal"></a>
|
|
2358
|
-
<span class="name">
|
|
2359
|
-
<b>
|
|
2360
|
-
<span class="modifier">Private</span>
|
|
2361
|
-
profileModal</b>
|
|
2362
|
-
<a href="#profileModal"><span class="icon ion-ios-link"></span></a>
|
|
2363
|
-
</span>
|
|
2364
|
-
</td>
|
|
2365
|
-
</tr>
|
|
2366
|
-
<tr>
|
|
2367
|
-
<td class="col-md-4">
|
|
2368
|
-
<i>Type : </i> <code>Modal</code>
|
|
2369
|
-
|
|
2370
|
-
</td>
|
|
2371
|
-
</tr>
|
|
2372
|
-
<tr>
|
|
2373
|
-
<td class="col-md-4">
|
|
2374
|
-
<div class="io-line">Defined in <a href="" data-line="54" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:54</a></div>
|
|
2375
|
-
</td>
|
|
2376
|
-
</tr>
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
</tbody>
|
|
2380
|
-
</table>
|
|
2381
|
-
<table class="table table-sm table-bordered">
|
|
2382
|
-
<tbody>
|
|
2383
|
-
<tr>
|
|
2384
|
-
<td class="col-md-4">
|
|
2385
|
-
<a name="showPlaceholder"></a>
|
|
2386
|
-
<span class="name">
|
|
2387
|
-
<b>
|
|
2388
|
-
<span class="modifier">Private</span>
|
|
2389
|
-
showPlaceholder</b>
|
|
2390
|
-
<a href="#showPlaceholder"><span class="icon ion-ios-link"></span></a>
|
|
2391
|
-
</span>
|
|
2392
|
-
</td>
|
|
2393
|
-
</tr>
|
|
2394
|
-
<tr>
|
|
2395
|
-
<td class="col-md-4">
|
|
2396
|
-
<i>Default value : </i><code>true</code>
|
|
2397
|
-
</td>
|
|
2398
|
-
</tr>
|
|
2399
|
-
<tr>
|
|
2400
|
-
<td class="col-md-4">
|
|
2401
|
-
<div class="io-line">Defined in <a href="" data-line="62" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:62</a></div>
|
|
2402
|
-
</td>
|
|
2403
|
-
</tr>
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
</tbody>
|
|
2407
|
-
</table>
|
|
2408
|
-
<table class="table table-sm table-bordered">
|
|
2409
|
-
<tbody>
|
|
2410
|
-
<tr>
|
|
2411
|
-
<td class="col-md-4">
|
|
2412
|
-
<a name="subscribeLoggedUserLogin"></a>
|
|
2413
|
-
<span class="name">
|
|
2414
|
-
<b>
|
|
2415
|
-
subscribeLoggedUserLogin</b>
|
|
2416
|
-
<a href="#subscribeLoggedUserLogin"><span class="icon ion-ios-link"></span></a>
|
|
2417
|
-
</span>
|
|
2418
|
-
</td>
|
|
2419
|
-
</tr>
|
|
2420
|
-
<tr>
|
|
2421
|
-
<td class="col-md-4">
|
|
2422
|
-
<i>Default value : </i><code>() => {...}</code>
|
|
2423
|
-
</td>
|
|
2424
|
-
</tr>
|
|
2425
|
-
<tr>
|
|
2426
|
-
<td class="col-md-4">
|
|
2427
|
-
<div class="io-line">Defined in <a href="" data-line="121" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:121</a></div>
|
|
2428
|
-
</td>
|
|
2429
|
-
</tr>
|
|
2430
|
-
|
|
2431
|
-
<tr>
|
|
2432
|
-
<td class="col-md-4">
|
|
2433
|
-
<div class="io-description"><p>::: subscribeLoggedUserLogin :::
|
|
2434
|
-
effettuato il login:
|
|
2435
|
-
1 - imposto loggedUser
|
|
2436
|
-
2 - dismetto modale
|
|
2437
|
-
3 - inizializzo elenco conversazioni</p>
|
|
2438
|
-
</div>
|
|
2439
|
-
</td>
|
|
2440
|
-
</tr>
|
|
2441
|
-
|
|
2442
|
-
</tbody>
|
|
2443
|
-
</table>
|
|
2444
|
-
<table class="table table-sm table-bordered">
|
|
2445
|
-
<tbody>
|
|
2446
|
-
<tr>
|
|
2447
|
-
<td class="col-md-4">
|
|
2448
|
-
<a name="subscribeLoggedUserLogout"></a>
|
|
2449
|
-
<span class="name">
|
|
2450
|
-
<b>
|
|
2451
|
-
subscribeLoggedUserLogout</b>
|
|
2452
|
-
<a href="#subscribeLoggedUserLogout"><span class="icon ion-ios-link"></span></a>
|
|
2453
|
-
</span>
|
|
2454
|
-
</td>
|
|
2455
|
-
</tr>
|
|
2456
|
-
<tr>
|
|
2457
|
-
<td class="col-md-4">
|
|
2458
|
-
<i>Default value : </i><code>() => {...}</code>
|
|
2459
|
-
</td>
|
|
2460
|
-
</tr>
|
|
2461
|
-
<tr>
|
|
2462
|
-
<td class="col-md-4">
|
|
2463
|
-
<div class="io-line">Defined in <a href="" data-line="318" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:318</a></div>
|
|
2464
|
-
</td>
|
|
2465
|
-
</tr>
|
|
2466
|
-
|
|
2467
|
-
<tr>
|
|
2468
|
-
<td class="col-md-4">
|
|
2469
|
-
<div class="io-description"><p>::: subscribeLoggedUserLogout :::
|
|
2470
|
-
effettuato il logout:
|
|
2471
|
-
1 - mostro placeholder
|
|
2472
|
-
2 - resetto array conversazioni
|
|
2473
|
-
3 - mostro modale login
|
|
2474
|
-
4 - resetto conversationWith</p>
|
|
2475
|
-
</div>
|
|
2476
|
-
</td>
|
|
2477
|
-
</tr>
|
|
2478
|
-
|
|
2479
|
-
</tbody>
|
|
2480
|
-
</table>
|
|
2481
|
-
<table class="table table-sm table-bordered">
|
|
2482
|
-
<tbody>
|
|
2483
|
-
<tr>
|
|
2484
|
-
<td class="col-md-4">
|
|
2485
|
-
<a name="subscribeUidConvSelectedChanged"></a>
|
|
2486
|
-
<span class="name">
|
|
2487
|
-
<b>
|
|
2488
|
-
subscribeUidConvSelectedChanged</b>
|
|
2489
|
-
<a href="#subscribeUidConvSelectedChanged"><span class="icon ion-ios-link"></span></a>
|
|
2490
|
-
</span>
|
|
2491
|
-
</td>
|
|
2492
|
-
</tr>
|
|
2493
|
-
<tr>
|
|
2494
|
-
<td class="col-md-4">
|
|
2495
|
-
<i>Default value : </i><code>() => {...}</code>
|
|
2496
|
-
</td>
|
|
2497
|
-
</tr>
|
|
2498
|
-
<tr>
|
|
2499
|
-
<td class="col-md-4">
|
|
2500
|
-
<div class="io-line">Defined in <a href="" data-line="306" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:306</a></div>
|
|
2501
|
-
</td>
|
|
2502
|
-
</tr>
|
|
2503
|
-
|
|
2504
|
-
<tr>
|
|
2505
|
-
<td class="col-md-4">
|
|
2506
|
-
<div class="io-description"><p>::: subscribeUidConvSelectedChanged :::
|
|
2507
|
-
evento richiamato quando si seleziona un utente nell'elenco degli user
|
|
2508
|
-
apro dettaglio conversazione </p>
|
|
2509
|
-
</div>
|
|
2510
|
-
</td>
|
|
2511
|
-
</tr>
|
|
2512
|
-
|
|
2513
|
-
</tbody>
|
|
2514
|
-
</table>
|
|
2515
|
-
<table class="table table-sm table-bordered">
|
|
2516
|
-
<tbody>
|
|
2517
|
-
<tr>
|
|
2518
|
-
<td class="col-md-4">
|
|
2519
|
-
<a name="supportMode"></a>
|
|
2520
|
-
<span class="name">
|
|
2521
|
-
<b>
|
|
2522
|
-
<span class="modifier">Private</span>
|
|
2523
|
-
supportMode</b>
|
|
2524
|
-
<a href="#supportMode"><span class="icon ion-ios-link"></span></a>
|
|
2525
|
-
</span>
|
|
2526
|
-
</td>
|
|
2527
|
-
</tr>
|
|
2528
|
-
<tr>
|
|
2529
|
-
<td class="col-md-4">
|
|
2530
|
-
<i>Default value : </i><code>environment.supportMode</code>
|
|
2531
|
-
</td>
|
|
2532
|
-
</tr>
|
|
2533
|
-
<tr>
|
|
2534
|
-
<td class="col-md-4">
|
|
2535
|
-
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:61</a></div>
|
|
2536
|
-
</td>
|
|
2537
|
-
</tr>
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
</tbody>
|
|
2541
|
-
</table>
|
|
2542
|
-
<table class="table table-sm table-bordered">
|
|
2543
|
-
<tbody>
|
|
2544
|
-
<tr>
|
|
2545
|
-
<td class="col-md-4">
|
|
2546
|
-
<a name="tenant"></a>
|
|
2547
|
-
<span class="name">
|
|
2548
|
-
<b>
|
|
2549
|
-
<span class="modifier">Private</span>
|
|
2550
|
-
tenant</b>
|
|
2551
|
-
<a href="#tenant"><span class="icon ion-ios-link"></span></a>
|
|
2552
|
-
</span>
|
|
2553
|
-
</td>
|
|
2554
|
-
</tr>
|
|
2555
|
-
<tr>
|
|
2556
|
-
<td class="col-md-4">
|
|
2557
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
2558
|
-
|
|
2559
|
-
</td>
|
|
2560
|
-
</tr>
|
|
2561
|
-
<tr>
|
|
2562
|
-
<td class="col-md-4">
|
|
2563
|
-
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:46</a></div>
|
|
2564
|
-
</td>
|
|
2565
|
-
</tr>
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
</tbody>
|
|
2569
|
-
</table>
|
|
2570
|
-
<table class="table table-sm table-bordered">
|
|
2571
|
-
<tbody>
|
|
2572
|
-
<tr>
|
|
2573
|
-
<td class="col-md-4">
|
|
2574
|
-
<a name="timerIdOpenConversation"></a>
|
|
2575
|
-
<span class="name">
|
|
2576
|
-
<b>
|
|
2577
|
-
<span class="modifier">Private</span>
|
|
2578
|
-
timerIdOpenConversation</b>
|
|
2579
|
-
<a href="#timerIdOpenConversation"><span class="icon ion-ios-link"></span></a>
|
|
2580
|
-
</span>
|
|
2581
|
-
</td>
|
|
2582
|
-
</tr>
|
|
2583
|
-
<tr>
|
|
2584
|
-
<td class="col-md-4">
|
|
2585
|
-
<i>Type : </i> <code>NodeJS.Timer</code>
|
|
2586
|
-
|
|
2587
|
-
</td>
|
|
2588
|
-
</tr>
|
|
2589
|
-
<tr>
|
|
2590
|
-
<td class="col-md-4">
|
|
2591
|
-
<div class="io-line">Defined in <a href="" data-line="57" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:57</a></div>
|
|
2592
|
-
</td>
|
|
2593
|
-
</tr>
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
</tbody>
|
|
2597
|
-
</table>
|
|
2598
|
-
<table class="table table-sm table-bordered">
|
|
2599
|
-
<tbody>
|
|
2600
|
-
<tr>
|
|
2601
|
-
<td class="col-md-4">
|
|
2602
|
-
<a name="uidConvSelected"></a>
|
|
2603
|
-
<span class="name">
|
|
2604
|
-
<b>
|
|
2605
|
-
<span class="modifier">Private</span>
|
|
2606
|
-
uidConvSelected</b>
|
|
2607
|
-
<a href="#uidConvSelected"><span class="icon ion-ios-link"></span></a>
|
|
2608
|
-
</span>
|
|
2609
|
-
</td>
|
|
2610
|
-
</tr>
|
|
2611
|
-
<tr>
|
|
2612
|
-
<td class="col-md-4">
|
|
2613
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
2614
|
-
|
|
2615
|
-
</td>
|
|
2616
|
-
</tr>
|
|
2617
|
-
<tr>
|
|
2618
|
-
<td class="col-md-4">
|
|
2619
|
-
<div class="io-line">Defined in <a href="" data-line="53" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:53</a></div>
|
|
2620
|
-
</td>
|
|
2621
|
-
</tr>
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
</tbody>
|
|
2625
|
-
</table>
|
|
2626
|
-
<table class="table table-sm table-bordered">
|
|
2627
|
-
<tbody>
|
|
2628
|
-
<tr>
|
|
2629
|
-
<td class="col-md-4">
|
|
2630
|
-
<a name="uidReciverFromUrl"></a>
|
|
2631
|
-
<span class="name">
|
|
2632
|
-
<b>
|
|
2633
|
-
<span class="modifier">Private</span>
|
|
2634
|
-
uidReciverFromUrl</b>
|
|
2635
|
-
<a href="#uidReciverFromUrl"><span class="icon ion-ios-link"></span></a>
|
|
2636
|
-
</span>
|
|
2637
|
-
</td>
|
|
2638
|
-
</tr>
|
|
2639
|
-
<tr>
|
|
2640
|
-
<td class="col-md-4">
|
|
2641
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
2642
|
-
|
|
2643
|
-
</td>
|
|
2644
|
-
</tr>
|
|
2645
|
-
<tr>
|
|
2646
|
-
<td class="col-md-4">
|
|
2647
|
-
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:51</a></div>
|
|
2648
|
-
</td>
|
|
2649
|
-
</tr>
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
</tbody>
|
|
2653
|
-
</table>
|
|
2654
|
-
<table class="table table-sm table-bordered">
|
|
2655
|
-
<tbody>
|
|
2656
|
-
<tr>
|
|
2657
|
-
<td class="col-md-4">
|
|
2658
|
-
<a name="userService"></a>
|
|
2659
|
-
<span class="name">
|
|
2660
|
-
<b>
|
|
2661
|
-
<span class="modifier">Public</span>
|
|
2662
|
-
userService</b>
|
|
2663
|
-
<a href="#userService"><span class="icon ion-ios-link"></span></a>
|
|
2664
|
-
</span>
|
|
2665
|
-
</td>
|
|
2666
|
-
</tr>
|
|
2667
|
-
<tr>
|
|
2668
|
-
<td class="col-md-4">
|
|
2669
|
-
<i>Type : </i> <code><a href="../injectables/UserService.html" target="_self" >UserService</a></code>
|
|
2670
|
-
|
|
2671
|
-
</td>
|
|
2672
|
-
</tr>
|
|
2673
|
-
<tr>
|
|
2674
|
-
<td class="col-md-4">
|
|
2675
|
-
<div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/pages/lista-conversazioni/lista-conversazioni.ts:70</a></div>
|
|
2676
|
-
</td>
|
|
2677
|
-
</tr>
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
</tbody>
|
|
2681
|
-
</table>
|
|
2682
|
-
</section>
|
|
2683
|
-
|
|
2684
|
-
</div>
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
<div class="tab-pane fade tab-source-code" id="c-source">
|
|
2688
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, NgZone } from '@angular/core';
|
|
2689
|
-
import { Events, PopoverController, IonicPage, NavController, NavParams, ModalController, Modal, AlertController } from 'ionic-angular';
|
|
2690
|
-
// models
|
|
2691
|
-
import { ConversationModel } from '../../models/conversation';
|
|
2692
|
-
import { UserModel } from '../../models/user';
|
|
2693
|
-
|
|
2694
|
-
// pages
|
|
2695
|
-
import { LoginPage } from '../authentication/login/login';
|
|
2696
|
-
import { PlaceholderPage } from '../placeholder/placeholder';
|
|
2697
|
-
import { DettaglioConversazionePage } from '../dettaglio-conversazione/dettaglio-conversazione';
|
|
2698
|
-
import { UsersPage } from '../users/users';
|
|
2699
|
-
import { _MasterPage } from '../_MasterPage';
|
|
2700
|
-
import { PopoverPage } from '../popover/popover';
|
|
2701
|
-
import { ProfilePage } from '../profile/profile';
|
|
2702
|
-
// utils
|
|
2703
|
-
import { getParameterByName, convertMessage, windowsMatchMedia } from '../../utils/utils';
|
|
2704
|
-
import { TYPE_POPUP_LIST_CONVERSATIONS } from '../../utils/constants';
|
|
2705
|
-
import * as PACKAGE from '../../../package.json';
|
|
2706
|
-
// services
|
|
2707
|
-
import { ChatManager } from '../../providers/chat-manager/chat-manager';
|
|
2708
|
-
import { NavProxyService } from '../../providers/nav-proxy';
|
|
2709
|
-
import { UserService } from '../../providers/user/user';
|
|
2710
|
-
import { ChatConversationsHandler } from '../../providers/chat-conversations-handler';
|
|
2711
|
-
import { ChatConversationHandler } from '../../providers/chat-conversation-handler';
|
|
2712
|
-
import { DatabaseProvider } from '../../providers/database/database';
|
|
2713
|
-
import { GroupService } from '../../providers/group/group';
|
|
2714
|
-
|
|
2715
|
-
import { TiledeskConversationProvider } from '../../providers/tiledesk-conversation/tiledesk-conversation';
|
|
2716
|
-
|
|
2717
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2718
|
-
import { ArchivedConversationsPage } from '../archived-conversations/archived-conversations';
|
|
2719
|
-
import { ChatArchivedConversationsHandler } from '../../providers/chat-archived-conversations-handler';
|
|
2720
|
-
import { isGeneratedFile } from '@angular/compiler/src/aot/util';
|
|
2721
|
-
import { User } from 'firebase';
|
|
2722
|
-
import { environment } from '../../environments/environment';
|
|
2723
|
-
|
|
2724
|
-
@IonicPage()
|
|
2725
|
-
@Component({
|
|
2726
|
-
selector: 'page-lista-conversazioni',
|
|
2727
|
-
templateUrl: 'lista-conversazioni.html',
|
|
2728
|
-
})
|
|
2729
|
-
export class ListaConversazioniPage extends _MasterPage {
|
|
2730
|
-
private loggedUser: UserModel;
|
|
2731
|
-
private conversations: Array<ConversationModel> = [];
|
|
2732
|
-
private archivedConversations: ConversationModel[];
|
|
2733
|
-
private tenant: string;
|
|
2734
|
-
private numberOpenConv: number = 0;
|
|
2735
|
-
private loadingIsActive: boolean = true;
|
|
2736
|
-
private numberTotConv: number = 0;
|
|
2737
|
-
|
|
2738
|
-
private uidReciverFromUrl: string;
|
|
2739
|
-
private conversationsHandler: ChatConversationsHandler;
|
|
2740
|
-
private uidConvSelected: string;
|
|
2741
|
-
private profileModal: Modal;
|
|
2742
|
-
private BUILD_VERSION: string;
|
|
2743
|
-
// private isHostname: boolean;
|
|
2744
|
-
private timerIdOpenConversation: NodeJS.Timer;
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
private convertMessage = convertMessage;
|
|
2748
|
-
private supportMode = environment.supportMode;
|
|
2749
|
-
private showPlaceholder = true;
|
|
2750
|
-
|
|
2751
|
-
constructor(
|
|
2752
|
-
public popoverCtrl: PopoverController,
|
|
2753
|
-
public modalCtrl: ModalController,
|
|
2754
|
-
public navCtrl: NavController,
|
|
2755
|
-
public navParams: NavParams,
|
|
2756
|
-
public navProxy: NavProxyService,
|
|
2757
|
-
public userService: UserService,
|
|
2758
|
-
public chatConversationsHandler: ChatConversationsHandler,
|
|
2759
|
-
public conversationHandler: ChatConversationHandler,
|
|
2760
|
-
public events: Events,
|
|
2761
|
-
public chatManager: ChatManager,
|
|
2762
|
-
public databaseProvider: DatabaseProvider,
|
|
2763
|
-
private groupService: GroupService,
|
|
2764
|
-
private tiledeskConversationProvider: TiledeskConversationProvider,
|
|
2765
|
-
private alertCtrl: AlertController,
|
|
2766
|
-
private translate: TranslateService,
|
|
2767
|
-
private chatArchivedConversationsHandler: ChatArchivedConversationsHandler
|
|
2768
|
-
) {
|
|
2769
|
-
super();
|
|
2770
|
-
this.events.subscribe('loggedUser:login', this.subscribeLoggedUserLogin);
|
|
2771
|
-
/**
|
|
2772
|
-
* RECUPERO ID CONVERSAZIONE
|
|
2773
|
-
* se vengo da dettaglio conversazione
|
|
2774
|
-
* o da users con conversazione attiva recupero conversationWith
|
|
2775
|
-
*/
|
|
2776
|
-
//this.uidConvSelected = navParams.get('conversationWith');
|
|
2777
|
-
//this.getUidReciverFromUrl();
|
|
2778
|
-
//this.openConversationInPageDetail();
|
|
2779
|
-
|
|
2780
|
-
/** SUBSCRIBE USER LOGGED
|
|
2781
|
-
* sul LOGIN:
|
|
2782
|
-
* 1 - dismetto modale login se è visibile
|
|
2783
|
-
* 2 - carico elenco conversazioni
|
|
2784
|
-
* sul LOGOUT
|
|
2785
|
-
* 1 - aggiungo placeholder alla pg delle conversazioni
|
|
2786
|
-
* 2 - resetto array conversazioni
|
|
2787
|
-
* 3 - visualizzo la pg di login
|
|
2788
|
-
* 4 - resetto conversationWith
|
|
2789
|
-
*/
|
|
2790
|
-
//this.profileModal = this.modalCtrl.create(LoginPage, { tenant: this.tenant }, { enableBackdropDismiss: false });
|
|
2791
|
-
//this.checkLoadingIsActive(5000);
|
|
2792
|
-
//this.openDetailConversation();
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
ionViewDidLeave() {
|
|
2797
|
-
//clearTimeout(this.timerIdOpenConversation);
|
|
2798
|
-
}
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
/**
|
|
2802
|
-
* ::: subscribeLoggedUserLogin :::
|
|
2803
|
-
* effettuato il login:
|
|
2804
|
-
* 1 - imposto loggedUser
|
|
2805
|
-
* 2 - dismetto modale
|
|
2806
|
-
* 3 - inizializzo elenco conversazioni
|
|
2807
|
-
*/
|
|
2808
|
-
subscribeLoggedUserLogin = (user: any) => {
|
|
2809
|
-
// console.log('************** subscribeLoggedUserLogin', user);
|
|
2810
|
-
this.loggedUser = user;
|
|
2811
|
-
try {
|
|
2812
|
-
this.profileModal.dismiss({ animate: false, duration: 0 });
|
|
2813
|
-
} catch (err) {
|
|
2814
|
-
console.error("-> error:", err)
|
|
2815
|
-
}
|
|
2816
|
-
this.initialize();
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
/**
|
|
2821
|
-
* ::: initialize :::
|
|
2822
|
-
*/
|
|
2823
|
-
initialize(){
|
|
2824
|
-
this.initVariables();
|
|
2825
|
-
this.initInterface();
|
|
2826
|
-
this.initConversationsHandler();
|
|
2827
|
-
this.initSubscriptions();
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
/**
|
|
2831
|
-
* ::: initVariables :::
|
|
2832
|
-
* al caricamento della pagina:
|
|
2833
|
-
* setto BUILD_VERSION prendendo il valore da PACKAGE
|
|
2834
|
-
* recupero conversationWith - se vengo da dettaglio conversazione o da users con conversazione attiva ???? sarà sempre undefined da spostare in ionViewDidEnter
|
|
2835
|
-
* recupero tenant
|
|
2836
|
-
* imposto recipient se esiste nei parametri passati nell'url
|
|
2837
|
-
* imposto uidConvSelected recuperando id ultima conversazione aperta dallo storage
|
|
2838
|
-
*/
|
|
2839
|
-
initVariables(){
|
|
2840
|
-
var that = this;
|
|
2841
|
-
this.BUILD_VERSION = 'v.' + PACKAGE.version;
|
|
2842
|
-
this.tenant = this.chatManager.getTenant();
|
|
2843
|
-
let TEMP = getParameterByName('recipient');
|
|
2844
|
-
if (TEMP) {
|
|
2845
|
-
this.uidReciverFromUrl = TEMP;
|
|
2846
|
-
}
|
|
2847
|
-
this.databaseProvider.initialize(this.loggedUser, this.tenant);
|
|
2848
|
-
this.databaseProvider.getUidLastOpenConversation()
|
|
2849
|
-
.then(function (uid: string) {
|
|
2850
|
-
//console.log('getUidLastOpenConversation:: ' + uid);
|
|
2851
|
-
that.setUidConvSelected(uid);
|
|
2852
|
-
})
|
|
2853
|
-
.catch((error) => {
|
|
2854
|
-
that.setUidConvSelected();
|
|
2855
|
-
console.log("error::: ", error);
|
|
2856
|
-
});
|
|
2857
|
-
// console.log('::::BUILD_VERSION:::: ',this.BUILD_VERSION);
|
|
2858
|
-
// console.log('::::uidConvSelected:::: ',this.uidConvSelected);
|
|
2859
|
-
// console.log('::::tenant:::: ',this.tenant);
|
|
2860
|
-
// console.log('::::uidReciverFromUrl:::: ',this.uidReciverFromUrl);
|
|
2861
|
-
}
|
|
2862
|
-
|
|
2863
|
-
/**
|
|
2864
|
-
* ::: initInterface :::
|
|
2865
|
-
* imposto la pg di login
|
|
2866
|
-
* se sono su mobile nella pagina di dettaglio imposto il placeholder
|
|
2867
|
-
*/
|
|
2868
|
-
initInterface(){
|
|
2869
|
-
this.profileModal = this.modalCtrl.create(LoginPage, { tenant: this.tenant }, { enableBackdropDismiss: false });
|
|
2870
|
-
if (windowsMatchMedia()) {
|
|
2871
|
-
this.navProxy.pushDetail(PlaceholderPage, {});
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
|
-
/**
|
|
2876
|
-
* ::: initConversationsHandler :::
|
|
2877
|
-
* inizializzo chatConversationsHandler e archviedConversationsHandler
|
|
2878
|
-
* recupero le conversazioni salvate nello storage e pubblico l'evento loadedConversationsStorage
|
|
2879
|
-
* imposto uidConvSelected in conversationHandler e chatArchivedConversationsHandler
|
|
2880
|
-
* e mi sottoscrivo al nodo conversazioni in conversationHandler e chatArchivedConversationsHandler (connect)
|
|
2881
|
-
* salvo conversationHandler in chatManager
|
|
2882
|
-
*/
|
|
2883
|
-
initConversationsHandler() {
|
|
2884
|
-
console.log('initConversationsHandler -------------> initConversationsHandler');
|
|
2885
|
-
///const tenant = this.chatManager.getTenant();
|
|
2886
|
-
///const loggedUser = this.chatManager.getLoggedUser();
|
|
2887
|
-
|
|
2888
|
-
// 1 - init chatConversationsHandler and archviedConversationsHandler
|
|
2889
|
-
this.conversationsHandler = this.chatConversationsHandler.initWithTenant(this.tenant, this.loggedUser);
|
|
2890
|
-
this.chatArchivedConversationsHandler = this.chatArchivedConversationsHandler.initWithTenant(this.tenant, this.loggedUser);
|
|
2891
|
-
|
|
2892
|
-
// 2 - get conversations from storage
|
|
2893
|
-
this.chatConversationsHandler.getConversationsFromStorage();
|
|
2894
|
-
|
|
2895
|
-
// 3 - set uidConvSelected in conversationHandler
|
|
2896
|
-
this.conversationsHandler.uidConvSelected = this.uidConvSelected
|
|
2897
|
-
this.chatArchivedConversationsHandler.uidConvSelected = this.uidConvSelected
|
|
2898
|
-
|
|
2899
|
-
// 5 - connect conversationHandler and archviedConversationsHandler to firebase event (add, change, remove)
|
|
2900
|
-
this.conversationsHandler.connect();
|
|
2901
|
-
this.chatArchivedConversationsHandler.connect();
|
|
2902
|
-
|
|
2903
|
-
// 6 - save conversationHandler in chatManager
|
|
2904
|
-
this.chatManager.setConversationsHandler(this.conversationsHandler);
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
/**
|
|
2908
|
-
* ::: initSubscriptions :::
|
|
2909
|
-
* mi sottoscrivo a:
|
|
2910
|
-
* 1 - elenco conversazioni
|
|
2911
|
-
* 2 - elenco conversazioni erchiviate
|
|
2912
|
-
* 3 - logout
|
|
2913
|
-
* 4 - conversazione selezionata (attiva)
|
|
2914
|
-
*
|
|
2915
|
-
*/
|
|
2916
|
-
initSubscriptions() {
|
|
2917
|
-
//this.events.subscribe('loadedConversationsStorage', this.loadedConversationsStorage);
|
|
2918
|
-
this.events.subscribe('conversationsChanged', this.conversationsChanged);
|
|
2919
|
-
this.events.subscribe('archivedConversationsChanged', this.archivedConversationsChanged);
|
|
2920
|
-
this.events.subscribe('loggedUser:logout', this.subscribeLoggedUserLogout);
|
|
2921
|
-
this.events.subscribe('uidConvSelected:changed', this.subscribeUidConvSelectedChanged);
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
|
-
//------------------------------------------------------------------//
|
|
2925
|
-
// CALLBACKS SOTTOSCRIZIONI
|
|
2926
|
-
//------------------------------------------------------------------//
|
|
2927
|
-
/**
|
|
2928
|
-
* evento richiamato quando ho finito di caricare le conversazioni dallo storage
|
|
2929
|
-
*/
|
|
2930
|
-
// loadedConversationsStorage: any = conversations => {
|
|
2931
|
-
// console.log('************** loadedConversationsStorage');
|
|
2932
|
-
// if(conversations && conversations.length > 0 ){
|
|
2933
|
-
// this.conversations = conversations;
|
|
2934
|
-
// this.numberOpenConv = this.conversationsHandler.countIsNew();
|
|
2935
|
-
// }
|
|
2936
|
-
// this.showDetailConversation();
|
|
2937
|
-
// }
|
|
2938
|
-
|
|
2939
|
-
/**
|
|
2940
|
-
* ::: conversationsChanged :::
|
|
2941
|
-
* evento richiamato su add, change, remove dell'elenco delle conversazioni
|
|
2942
|
-
* 1 - aggiorno elenco conversazioni
|
|
2943
|
-
* 2 - aggiorno il conto delle nuove conversazioni
|
|
2944
|
-
* 4 - se esiste un uidReciverFromUrl (passato nell'url)
|
|
2945
|
-
* e se esiste una conversazione con lo stesso id di uidReciverFromUrl
|
|
2946
|
-
* imposto questa come conversazione attiva (operazione da fare una sola volta al caricamento delle conversazioni)
|
|
2947
|
-
* e la carico nella pagina di dettaglio e azzero la variabile uidReciverFromUrl!!!
|
|
2948
|
-
* 5 - altrimenti se esiste una conversazione con lo stesso id della conversazione attiva
|
|
2949
|
-
* e la pagina di dettaglio è vuota (placeholder), carico la conversazione attiva (uidConvSelected) nella pagina di dettaglio
|
|
2950
|
-
* (operazione da fare una sola volta al caricamento delle conversazioni)
|
|
2951
|
-
*/
|
|
2952
|
-
conversationsChanged = (conversations: ConversationModel[]) => {
|
|
2953
|
-
//console.log('LISTA CONVERSAZIONI »»»»»»»»» conversationsChanged - CONVERSATIONS: ', this.conversations);
|
|
2954
|
-
var that = this;
|
|
2955
|
-
this.conversations = conversations;
|
|
2956
|
-
this.numberOpenConv = this.conversationsHandler.countIsNew();
|
|
2957
|
-
if (that.uidReciverFromUrl) {
|
|
2958
|
-
if (conversations.findIndex(i => i.uid === that.uidReciverFromUrl)) {
|
|
2959
|
-
let TEMP = getParameterByName('recipientFullname');
|
|
2960
|
-
if (!TEMP) {
|
|
2961
|
-
TEMP = that.uidReciverFromUrl;
|
|
2962
|
-
}
|
|
2963
|
-
that.setUidConvSelected(that.uidReciverFromUrl);
|
|
2964
|
-
that.openMessageList();
|
|
2965
|
-
that.uidReciverFromUrl = null;
|
|
2966
|
-
that.showPlaceholder = false;
|
|
2967
|
-
}
|
|
2968
|
-
} else {
|
|
2969
|
-
if (that.uidConvSelected && that.showPlaceholder === true) {
|
|
2970
|
-
const conversationSelected = that.conversations.find(item => item.uid === that.uidConvSelected);
|
|
2971
|
-
if (conversationSelected) {
|
|
2972
|
-
that.setUidConvSelected(that.uidConvSelected);
|
|
2973
|
-
that.openMessageList();
|
|
2974
|
-
that.showPlaceholder = false;
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
/**
|
|
2981
|
-
* ::: archivedConversationsChanged :::
|
|
2982
|
-
* evento richiamato su add, change, remove dell'elenco delle conversazioni archiviate
|
|
2983
|
-
*/
|
|
2984
|
-
archivedConversationsChanged = (conversations: ConversationModel[]) => {
|
|
2985
|
-
this.archivedConversations = conversations;
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
/**
|
|
2989
|
-
* ::: subscribeUidConvSelectedChanged :::
|
|
2990
|
-
* evento richiamato quando si seleziona un utente nell'elenco degli user
|
|
2991
|
-
* apro dettaglio conversazione
|
|
2992
|
-
*/
|
|
2993
|
-
subscribeUidConvSelectedChanged = (uidConvSelected: string, type: string) => {
|
|
2994
|
-
this.checkMessageListIsOpen(uidConvSelected, type);
|
|
2995
|
-
}
|
|
2996
|
-
|
|
2997
|
-
/**
|
|
2998
|
-
* ::: subscribeLoggedUserLogout :::
|
|
2999
|
-
* effettuato il logout:
|
|
3000
|
-
* 1 - mostro placeholder
|
|
3001
|
-
* 2 - resetto array conversazioni
|
|
3002
|
-
* 3 - mostro modale login
|
|
3003
|
-
* 4 - resetto conversationWith
|
|
3004
|
-
*/
|
|
3005
|
-
subscribeLoggedUserLogout = (user: any) => {
|
|
3006
|
-
console.log('************** subscribeLoggedUserLogout', user);
|
|
3007
|
-
this.conversations = [];
|
|
3008
|
-
this.profileModal.present();
|
|
3009
|
-
this.uidConvSelected = null;
|
|
3010
|
-
}
|
|
3011
|
-
//------------------------------------------------------------------//
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
//------------------------------------------------------------------//
|
|
3015
|
-
// BEGIN FUNCTIONS
|
|
3016
|
-
//------------------------------------------------------------------//
|
|
3017
|
-
/**
|
|
3018
|
-
* ::: checkMessageListIsOpen :::
|
|
3019
|
-
* se la conversazione selezionata NON è già aperta e mi trovo nella versione tablet/desk (>767)
|
|
3020
|
-
* imposto uidConvSelected
|
|
3021
|
-
* apro dettaglio conversazione
|
|
3022
|
-
* @param uidConvSelected
|
|
3023
|
-
*/
|
|
3024
|
-
checkMessageListIsOpen(uidConvSelected, type?) {
|
|
3025
|
-
if (uidConvSelected !== this.uidConvSelected && windowsMatchMedia()) {
|
|
3026
|
-
this.setUidConvSelected(uidConvSelected);
|
|
3027
|
-
this.openMessageList(type);
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* ::: setUidConvSelected :::
|
|
3033
|
-
* @param uidConvSelected
|
|
3034
|
-
*/
|
|
3035
|
-
setUidConvSelected(uidConvSelected?: string) {
|
|
3036
|
-
this.uidConvSelected = uidConvSelected;
|
|
3037
|
-
this.chatConversationsHandler.uidConvSelected = uidConvSelected;
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
/**
|
|
3041
|
-
* ::: openMessageList :::
|
|
3042
|
-
* 1 - cerco conv con id == this.uidConvSelected e imposto select a FALSE
|
|
3043
|
-
* 2 - cerco conv con id == nw uidConvSelected se esiste:
|
|
3044
|
-
* 2.1 - imposto status a 0 come letto
|
|
3045
|
-
* 2.2 - seleziono conv selected == TRUE
|
|
3046
|
-
* 2.3 - imposto nw uidConvSelected come this.uidConvSelected
|
|
3047
|
-
* 2.4 - apro conv
|
|
3048
|
-
* 3 salvo id conv nello storage
|
|
3049
|
-
* @param uidConvSelected
|
|
3050
|
-
*/
|
|
3051
|
-
openMessageList(type?: string) {
|
|
3052
|
-
const that = this;
|
|
3053
|
-
console.log('openMessageList:: >>>> conversationSelected ', that.uidConvSelected);
|
|
3054
|
-
setTimeout(function () {
|
|
3055
|
-
const conversationSelected = that.conversations.find(item => item.uid === that.uidConvSelected);
|
|
3056
|
-
if (conversationSelected) {
|
|
3057
|
-
conversationSelected.is_new = false;
|
|
3058
|
-
conversationSelected.status = '0';
|
|
3059
|
-
conversationSelected.selected = true;
|
|
3060
|
-
that.navProxy.pushDetail(DettaglioConversazionePage, {
|
|
3061
|
-
conversationSelected: conversationSelected,
|
|
3062
|
-
conversationWith: that.uidConvSelected,
|
|
3063
|
-
conversationWithFullname: conversationSelected.conversation_with_fullname,
|
|
3064
|
-
channel_type: conversationSelected.channel_type
|
|
3065
|
-
});
|
|
3066
|
-
that.conversationsHandler.setConversationRead(conversationSelected.uid);
|
|
3067
|
-
that.databaseProvider.setUidLastOpenConversation(that.uidConvSelected);
|
|
3068
|
-
} else if (!type) {
|
|
3069
|
-
if (windowsMatchMedia()) {
|
|
3070
|
-
that.navProxy.pushDetail(PlaceholderPage, {});
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
|
-
}, 0);
|
|
3074
|
-
// if the conversation from the isConversationClosingMap is waiting to be closed
|
|
3075
|
-
// deny the click on the conversation
|
|
3076
|
-
if (this.tiledeskConversationProvider.getClosingConversation(this.uidConvSelected)) return;
|
|
3077
|
-
}
|
|
3078
|
-
//------------------------------------------------------------------//
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
//------------------------------------------------------------------//
|
|
3082
|
-
// BEGIN ACTIONS
|
|
3083
|
-
//------------------------------------------------------------------//
|
|
3084
|
-
/**
|
|
3085
|
-
* ::: goToChat :::
|
|
3086
|
-
* 1 - invocato dalla pagina html alla selezione di una conversazione
|
|
3087
|
-
* imposta conversazione attiva nella pagina elenco conversazioni e
|
|
3088
|
-
* pubblica id della conversazione selezionata
|
|
3089
|
-
* @param conversationWith
|
|
3090
|
-
*/
|
|
3091
|
-
goToChat(conversationWith: string, conversationWithFullname: string) {
|
|
3092
|
-
console.log('**************** goToChat conversationWith:: ', conversationWith);
|
|
3093
|
-
this.events.publish('uidConvSelected:changed', conversationWith, 'new');
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
/**
|
|
3097
|
-
* ::: openUsersList :::
|
|
3098
|
-
* apro pagina elenco users
|
|
3099
|
-
* (metodo richiamato da html)
|
|
3100
|
-
*/
|
|
3101
|
-
private openUsersList(event: any) {
|
|
3102
|
-
this.navCtrl.push(UsersPage, {
|
|
3103
|
-
contacts: "",
|
|
3104
|
-
'tenant': this.tenant,
|
|
3105
|
-
'loggedUser': this.loggedUser
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* ::: presentPopover :::
|
|
3111
|
-
* apro il menu delle opzioni
|
|
3112
|
-
* (metodo richiamato da html)
|
|
3113
|
-
* alla chiusura controllo su quale opzione ho premuto e attivo l'azione corrispondete
|
|
3114
|
-
*/
|
|
3115
|
-
private presentPopover(event) {
|
|
3116
|
-
const that = this;
|
|
3117
|
-
let popover = this.popoverCtrl.create(PopoverPage, { typePopup: TYPE_POPUP_LIST_CONVERSATIONS });
|
|
3118
|
-
popover.present({
|
|
3119
|
-
ev: event
|
|
3120
|
-
});
|
|
3121
|
-
popover.onDidDismiss((data: string) => {
|
|
3122
|
-
console.log(" ********* data::: ", data);
|
|
3123
|
-
if (data == 'logOut') {
|
|
3124
|
-
that.logOut();
|
|
3125
|
-
} else if (data == 'ProfilePage') {
|
|
3126
|
-
if (this.chatManager.getLoggedUser()) {
|
|
3127
|
-
this.navCtrl.push(ProfilePage);
|
|
3128
|
-
}
|
|
3129
|
-
} else if (data == "ArchivedConversationsPage") {
|
|
3130
|
-
that.openArchivedConversationsPage();
|
|
3131
|
-
}
|
|
3132
|
-
});
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3135
|
-
/**
|
|
3136
|
-
* ::: openArchivedConversationsPage :::
|
|
3137
|
-
* Open the archived conversations page
|
|
3138
|
-
* (metodo richiamato da html)
|
|
3139
|
-
*/
|
|
3140
|
-
private openArchivedConversationsPage() {
|
|
3141
|
-
this.navCtrl.push(ArchivedConversationsPage, {
|
|
3142
|
-
'archivedConversations': this.archivedConversations,
|
|
3143
|
-
'tenant': this.tenant,
|
|
3144
|
-
'loggedUser': this.loggedUser
|
|
3145
|
-
});
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* ::: logOut :::
|
|
3150
|
-
* modulo richiamato se premo su logout
|
|
3151
|
-
* 1 - aggiungo placeholderPage
|
|
3152
|
-
* 2 - richiamo il logout di firebase
|
|
3153
|
-
*/
|
|
3154
|
-
private logOut() {
|
|
3155
|
-
//this.navProxy.pushDetail(PlaceholderPage,{});
|
|
3156
|
-
this.userService.logoutUser();
|
|
3157
|
-
}
|
|
3158
|
-
|
|
3159
|
-
/**
|
|
3160
|
-
* ::: checkLoadingIsActive :::
|
|
3161
|
-
* metodo mostra un placeholder di benvenuto se non ci sono conversazioni
|
|
3162
|
-
* ritardato dopo 5 sec per dare il tempo di caricare lo storico delle conversazioni
|
|
3163
|
-
* dallo storage locale o da remoto
|
|
3164
|
-
* (metodo richiamato da html)
|
|
3165
|
-
*/
|
|
3166
|
-
private checkLoadingIsActive(time: number) {
|
|
3167
|
-
const that = this;
|
|
3168
|
-
setTimeout(function () {
|
|
3169
|
-
that.loadingIsActive = false;
|
|
3170
|
-
}, time);
|
|
3171
|
-
}
|
|
3172
|
-
|
|
3173
|
-
/**
|
|
3174
|
-
* ::: closeConversation :::
|
|
3175
|
-
* chiudo conversazione
|
|
3176
|
-
* (metodo richiamato da html)
|
|
3177
|
-
* the conversationId is:
|
|
3178
|
-
* - se è una conversazione diretta: elimino conversazione
|
|
3179
|
-
* - se è una conversazione di gruppo: chiudo conversazione
|
|
3180
|
-
* @param conversation
|
|
3181
|
-
* https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation
|
|
3182
|
-
*/
|
|
3183
|
-
private closeConversation(conversation) {
|
|
3184
|
-
var conversationId = conversation.uid;
|
|
3185
|
-
var isSupportConversation = conversationId.startsWith("support-group");
|
|
3186
|
-
if (!isSupportConversation) {
|
|
3187
|
-
this.deleteConversation(conversationId, function (result, data) {
|
|
3188
|
-
if (result === 'success') {
|
|
3189
|
-
console.log("ListaConversazioniPage::closeConversation::deleteConversation::response", data);
|
|
3190
|
-
} else if (result === 'error') {
|
|
3191
|
-
console.error("ListaConversazioniPage::closeConversation::deleteConversation::error", data);
|
|
3192
|
-
}
|
|
3193
|
-
});
|
|
3194
|
-
} else {
|
|
3195
|
-
this.closeSupportGroup(conversationId, function (result: string, data: any) {
|
|
3196
|
-
if (result === 'success') {
|
|
3197
|
-
console.log("ListaConversazioniPage::closeConversation::closeSupportGroup::response", data);
|
|
3198
|
-
} else if (result === 'error') {
|
|
3199
|
-
console.error("ListaConversazioniPage::closeConversation::closeSupportGroup::error", data);
|
|
3200
|
-
}
|
|
3201
|
-
});
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
/**
|
|
3206
|
-
* ::: closeSupportGroup :::
|
|
3207
|
-
* 1 - rimuovo l'handler della conversazione
|
|
3208
|
-
* imposto la conversazione (isConversationClosingMap) come una conversazione in attesa di essere chiusa
|
|
3209
|
-
* chiudo gruppo
|
|
3210
|
-
* @param groupId
|
|
3211
|
-
* @param callback
|
|
3212
|
-
* close the support group
|
|
3213
|
-
* https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#close-support-group
|
|
3214
|
-
*/
|
|
3215
|
-
private closeSupportGroup(groupId, callback) {
|
|
3216
|
-
var that = this;
|
|
3217
|
-
// BEGIN - REMOVE FROM LOCAL MEMORY
|
|
3218
|
-
this.conversationsHandler.removeByUid(groupId);
|
|
3219
|
-
// END - REMOVE FROM LOCAL MEMORY
|
|
3220
|
-
|
|
3221
|
-
// BEGIN - REMOVE FROM REMOTE
|
|
3222
|
-
// set the conversation from the isConversationClosingMap that is waiting to be closed
|
|
3223
|
-
this.tiledeskConversationProvider.setClosingConversation(groupId, true);
|
|
3224
|
-
// close group
|
|
3225
|
-
this.groupService.closeGroup(groupId, function (response, error) {
|
|
3226
|
-
if (error) {
|
|
3227
|
-
// the conversation closing failed: restore the conversation with
|
|
3228
|
-
// conversationId status to false within the isConversationClosingMap
|
|
3229
|
-
that.tiledeskConversationProvider.setClosingConversation(groupId, false);
|
|
3230
|
-
callback('error', error);
|
|
3231
|
-
}
|
|
3232
|
-
else {
|
|
3233
|
-
callback('success', response);
|
|
3234
|
-
}
|
|
3235
|
-
});
|
|
3236
|
-
// when a conversations is closed shows a placeholder background
|
|
3237
|
-
if (groupId === that.uidConvSelected) {
|
|
3238
|
-
that.navProxy.pushDetail(PlaceholderPage, {});
|
|
3239
|
-
}
|
|
3240
|
-
}
|
|
3241
|
-
|
|
3242
|
-
/**
|
|
3243
|
-
* ::: deleteConversation :::
|
|
3244
|
-
* 1 - rimuovo l'handler della conversazione
|
|
3245
|
-
* imposto la conversazione (isConversationClosingMap) come una conversazione in attesa di essere chiusa
|
|
3246
|
-
* cancello la conversazione
|
|
3247
|
-
* @param conversationId
|
|
3248
|
-
* @param callback
|
|
3249
|
-
* more details availables at
|
|
3250
|
-
* https://github.com/chat21/chat21-cloud-functions/blob/master/docs/api.md#delete-a-conversation
|
|
3251
|
-
*/
|
|
3252
|
-
private deleteConversation(conversationId, callback) {
|
|
3253
|
-
var that = this;
|
|
3254
|
-
// END - REMOVE FROM LOCAL MEMORY
|
|
3255
|
-
this.conversationsHandler.removeByUid(conversationId); // remove the item
|
|
3256
|
-
// END - REMOVE FROM LOCAL MEMORY
|
|
3257
|
-
|
|
3258
|
-
// BEGIN - REMOVE FROM REMOTE
|
|
3259
|
-
// set the conversation from the isConversationClosingMap that is waiting to be closed
|
|
3260
|
-
this.tiledeskConversationProvider.setClosingConversation(conversationId, true);
|
|
3261
|
-
// delete a conversation form the personal timeline
|
|
3262
|
-
this.tiledeskConversationProvider.deleteConversation(conversationId, function (response, error) {
|
|
3263
|
-
if (error) {
|
|
3264
|
-
that.tiledeskConversationProvider.setClosingConversation(conversationId, false);
|
|
3265
|
-
callback('error', error);
|
|
3266
|
-
}
|
|
3267
|
-
else {
|
|
3268
|
-
callback('success', response);
|
|
3269
|
-
}
|
|
3270
|
-
});
|
|
3271
|
-
// when a conversations is closed shows a placeholder background
|
|
3272
|
-
if (conversationId === this.uidConvSelected) {
|
|
3273
|
-
that.navProxy.pushDetail(PlaceholderPage, {});
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
//------------------------------------------------------------------//
|
|
3277
|
-
|
|
3278
|
-
}
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
/** RECUPERO IL RECIPIENTID
|
|
3285
|
-
* nel caso in cui viene pasato nell'url della pagina
|
|
3286
|
-
* per aprire una conversazione
|
|
3287
|
-
* USARE getParameterByName(name) del widget
|
|
3288
|
-
*/
|
|
3289
|
-
// getUidReciverFromUrl(){
|
|
3290
|
-
// try{
|
|
3291
|
-
// let TEMP = getParameterByName('recipient');
|
|
3292
|
-
// if (TEMP) {
|
|
3293
|
-
// this.uidReciverFromUrl = TEMP;
|
|
3294
|
-
// }
|
|
3295
|
-
// TEMP = getParameterByName('recipientFullname');
|
|
3296
|
-
// if (TEMP) {
|
|
3297
|
-
// this.uidReciverFromUrl = TEMP;
|
|
3298
|
-
// }
|
|
3299
|
-
// } catch (err) {
|
|
3300
|
-
// console.error("-> error:", err)
|
|
3301
|
-
// }
|
|
3302
|
-
// }
|
|
3303
|
-
|
|
3304
|
-
// openDetailConversation(){
|
|
3305
|
-
// const that = this;
|
|
3306
|
-
// /** RECUPERO IL RECIPIENTID dall'url */
|
|
3307
|
-
// if(!this.loggedUser){
|
|
3308
|
-
// this.loadingIsActive = false;
|
|
3309
|
-
// return;
|
|
3310
|
-
// }
|
|
3311
|
-
// try {
|
|
3312
|
-
// let TEMP = location.search.split('recipient=')[1];
|
|
3313
|
-
// if (TEMP) {
|
|
3314
|
-
// this.uidReciverFromUrl = TEMP.split('&')[0];
|
|
3315
|
-
// this.setUidConvSelected(this.uidReciverFromUrl);
|
|
3316
|
-
// //this.goToChat(this.uidReciverFromUrl, this.uidReciverFromUrl);
|
|
3317
|
-
// } else {
|
|
3318
|
-
// this.loadingIsActive = false;
|
|
3319
|
-
// }
|
|
3320
|
-
// } catch (err) {
|
|
3321
|
-
// console.error("-> error:", err)
|
|
3322
|
-
// this.loadingIsActive = false;
|
|
3323
|
-
// }
|
|
3324
|
-
// this.showDetailConversation();
|
|
3325
|
-
// }
|
|
3326
|
-
|
|
3327
|
-
/**
|
|
3328
|
-
* imposto un setInterval di 3 sec
|
|
3329
|
-
* verifico se il num delle conversazioni è aumentato
|
|
3330
|
-
* se sono cambiate aggiorno numberTotConv per rifare il controllo
|
|
3331
|
-
* altrimenti se esiste già una conversazione con l'utente passato nell'url (uidReciverFromUrl):
|
|
3332
|
-
* - apro dettaglio conversazione
|
|
3333
|
-
* - altrimenti creo una nuova conversazione
|
|
3334
|
-
* cancello intervallo;
|
|
3335
|
-
* NOTA: da spostare nella classe di service delle conversazioni e utilizzare con una sottoscrizione
|
|
3336
|
-
*/
|
|
3337
|
-
// openConversationInPageDetail() {
|
|
3338
|
-
// var that = this;
|
|
3339
|
-
// let uidReciverFromUrlTEMP = getParameterByName('recipient');
|
|
3340
|
-
// if (uidReciverFromUrlTEMP) {
|
|
3341
|
-
// that.uidReciverFromUrl = uidReciverFromUrlTEMP;
|
|
3342
|
-
// console.log('LISTA CONVERSAZIONI »»»»»»»»» openConversationInPageDetail - uidReciverFromUrl: ', that.uidReciverFromUrl);
|
|
3343
|
-
// }
|
|
3344
|
-
// let recipientFullnameTEMP = getParameterByName('recipientFullname');
|
|
3345
|
-
// if (!recipientFullnameTEMP) {
|
|
3346
|
-
// recipientFullnameTEMP = uidReciverFromUrlTEMP;
|
|
3347
|
-
// }
|
|
3348
|
-
// if (that.uidReciverFromUrl && windowsMatchMedia()) {
|
|
3349
|
-
// this.events.subscribe('loggedUser:login', (user) => {
|
|
3350
|
-
// // user and time are the same arguments passed in `events.publish(user, time)`
|
|
3351
|
-
// console.log('LISTA CONVERSAZIONI Welcome user: ', user );
|
|
3352
|
-
// that.goToChat(uidReciverFromUrlTEMP, recipientFullnameTEMP);
|
|
3353
|
-
// });
|
|
3354
|
-
// }
|
|
3355
|
-
// }
|
|
3356
|
-
|
|
3357
|
-
/**
|
|
3358
|
-
* se mi trovo in visualizzazione desktop (dettaglio conversazione aperto sulla dx)
|
|
3359
|
-
* - se esite uidConvSelected apro il dettaglio conversazione
|
|
3360
|
-
* - altrimenti setto uidConvSelected alla prima conversazione ed apro il dettaglio conversazione
|
|
3361
|
-
*/
|
|
3362
|
-
// showDetailConversation(){
|
|
3363
|
-
// if (this.uidConvSelected) {
|
|
3364
|
-
// console.log('openMessageList 1 ::', this.uidConvSelected);
|
|
3365
|
-
// // se visualizzazione è desktop
|
|
3366
|
-
// if (windowsMatchMedia()) {
|
|
3367
|
-
// this.setUidConvSelected(this.uidConvSelected);
|
|
3368
|
-
// this.openMessageList();
|
|
3369
|
-
// }
|
|
3370
|
-
// } else if (this.conversations.length > 0) {
|
|
3371
|
-
// console.log('openMessageList 2 ::');
|
|
3372
|
-
// // this.uidConvSelected = this.conversations[0].uid;
|
|
3373
|
-
// // se visualizzazione è desktop
|
|
3374
|
-
// if (windowsMatchMedia()) {
|
|
3375
|
-
// //this.setUidConvSelected(this.uidConvSelected);
|
|
3376
|
-
// this.openMessageList();
|
|
3377
|
-
// }
|
|
3378
|
-
// } else {
|
|
3379
|
-
// console.log('openMessageList 3 ::');
|
|
3380
|
-
// // se visualizzazione è desktop
|
|
3381
|
-
// if (windowsMatchMedia()) {
|
|
3382
|
-
// this.navProxy.pushDetail(PlaceholderPage, {});
|
|
3383
|
-
// }
|
|
3384
|
-
// }
|
|
3385
|
-
// }</code></pre>
|
|
3386
|
-
</div>
|
|
3387
|
-
|
|
3388
|
-
<div class="tab-pane fade " id="c-templateData">
|
|
3389
|
-
<pre class="line-numbers"><code class="language-html"><ion-header no-border>
|
|
3390
|
-
<ion-navbar class="toolbar-md-navbarLightColor">
|
|
3391
|
-
<button ion-button menuToggle>
|
|
3392
|
-
<ion-icon name="menu"></ion-icon>
|
|
3393
|
-
</button>
|
|
3394
|
-
<ion-title>
|
|
3395
|
-
<img src="assets/chat21-logo.svg" alt="{{this.tenant}}">
|
|
3396
|
-
<div *ngIf="numberOpenConv > 0" class="c21-number-open-conv">({{numberOpenConv}})</div>
|
|
3397
|
-
</ion-title>
|
|
3398
|
-
<ion-buttons end>
|
|
3399
|
-
|
|
3400
|
-
<!-- <button *ngIf="!isHostname" ion-button icon-only (click)="openUsersList($event)"> -->
|
|
3401
|
-
<button *ngIf="!supportMode" ion-button icon-only (click)="openUsersList($event)">
|
|
3402
|
-
|
|
3403
|
-
<ion-icon name="create"></ion-icon>
|
|
3404
|
-
</button>
|
|
3405
|
-
|
|
3406
|
-
<button ion-button icon-only (click)="openArchivedConversationsPage($event)">
|
|
3407
|
-
<ion-icon class="material-icons">history</ion-icon>
|
|
3408
|
-
</button>
|
|
3409
|
-
<button ion-button icon-only (click)="presentPopover($event)">
|
|
3410
|
-
<ion-icon name="more"></ion-icon>
|
|
3411
|
-
</button>
|
|
3412
|
-
</ion-buttons>
|
|
3413
|
-
</ion-navbar>
|
|
3414
|
-
</ion-header>
|
|
3415
|
-
|
|
3416
|
-
<ion-content class="list-avatar-page">
|
|
3417
|
-
<ion-list>
|
|
3418
|
-
<span *ngIf="conversations.length > 0;then contentConversations else contentMessageWelcome">here is ignored</span>
|
|
3419
|
-
|
|
3420
|
-
<ng-template #contentConversations>
|
|
3421
|
-
<ion-item no-lines ion-item [class.selected]="conversation.uid === uidConvSelected" *ngFor="let conversation of conversations"
|
|
3422
|
-
(mousedown)="setUidConvSelected(conversation.uid)" (mouseup)="openMessageList()">
|
|
3423
|
-
<ion-avatar item-start>
|
|
3424
|
-
<div #avatarPlaceholder class="avatar-placeholder" [style.background-color]="conversation.color" [innerHTML]="conversation.avatar"></div>
|
|
3425
|
-
<div #avatarImage class="chat21-avatar" [style.background-image]="'url(' + conversation.image + ')'"></div>
|
|
3426
|
-
</ion-avatar>
|
|
3427
|
-
<div class="truncate" [innerHTML]="conversation.conversation_with_fullname"></div>
|
|
3428
|
-
<div>
|
|
3429
|
-
<p [class.not-read]="conversation.is_new" class="truncate" [innerHTML]="convertMessage(conversation.last_message_text)"></p>
|
|
3430
|
-
</div>
|
|
3431
|
-
<ion-note item-end>{{conversation.time_last_message}}</ion-note>
|
|
3432
|
-
<button id="{{ 'close_conversation_button' + conversation.uid }}" class="close-conversation-button" ion-button clear item-end (click)="closeConversation(conversation);$event.stopPropagation();" padding>
|
|
3433
|
-
<ion-icon class="close-conversation-button-icon" style="display:block;" id="{{ 'close_button_icon' + conversation.uid }}" color="close-conversation" name="close" item-end></ion-icon>
|
|
3434
|
-
</button>
|
|
3435
|
-
<div item-end class="c21-point" *ngIf="conversation.is_new">&nbsp;</div>
|
|
3436
|
-
</ion-item>
|
|
3437
|
-
</ng-template>
|
|
3438
|
-
|
|
3439
|
-
<ng-template #contentMessageWelcome>
|
|
3440
|
-
<div [class.active]="loadingIsActive" class="chat21-spinner" id="chat21-spinner">
|
|
3441
|
-
<div class="chat21-bounce1"></div>
|
|
3442
|
-
<div class="chat21-bounce2"></div>
|
|
3443
|
-
<div class="chat21-bounce3"></div>
|
|
3444
|
-
<span>loading</span>
|
|
3445
|
-
</div>
|
|
3446
|
-
<div *ngIf="!loadingIsActive && conversations.length == 0" id="content_message_wellcome">
|
|
3447
|
-
<div class="messaggio">{{ 'LABEL_MSG_PUSH_START_CHAT' | translate }}</div>
|
|
3448
|
-
<!-- <div class="pulsanti">
|
|
3449
|
-
<button ion-button icon-start color="273e53" (click)="openUsersList($event)">
|
|
3450
|
-
{{ 'LABEL_MSG_START_CHAT' | translate }}
|
|
3451
|
-
</button>
|
|
3452
|
-
</div> -->
|
|
3453
|
-
</div>
|
|
3454
|
-
</ng-template>
|
|
3455
|
-
|
|
3456
|
-
</ion-list>
|
|
3457
|
-
</ion-content>
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
<!--<ion-content padding>
|
|
3463
|
-
<ion-searchbar (input)="search($event)"></ion-searchbar>
|
|
3464
|
-
<ion-list>
|
|
3465
|
-
<button ion-item *ngFor="let conversazione of conversations | async" (click)="goToDetails(conversazione)">
|
|
3466
|
-
<ion-avatar item-start>
|
|
3467
|
-
<img src= {{conversazione.image}} alt="user" onError="this.src='assets/img/no_image.svg';">
|
|
3468
|
-
</ion-avatar>
|
|
3469
|
-
<h2>{{conversazione.convers_with_fullname}}</h2>
|
|
3470
|
-
<span *ngIf="conversazione.status == 1;then content else other_content">here is ignored</span>
|
|
3471
|
-
<ng-template #content><p style="font-weight: bold;">{{conversazione.last_message_text}}</p></ng-template>
|
|
3472
|
-
<ng-template #other_content><p>{{conversazione.last_message_text}}</p></ng-template>
|
|
3473
|
-
<ion-note item-end class="date-right">{{getTimeLastMessage(conversazione.timestamp)}}</ion-note>
|
|
3474
|
-
</button>
|
|
3475
|
-
</ion-list>
|
|
3476
|
-
|
|
3477
|
-
</ion-content>--></code></pre>
|
|
3478
|
-
</div>
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
<div class="tab-pane fade " id="c-tree">
|
|
3482
|
-
<div id="tree-container"></div>
|
|
3483
|
-
<div class="tree-legend">
|
|
3484
|
-
<div class="title">
|
|
3485
|
-
<b>Legend</b>
|
|
3486
|
-
</div>
|
|
3487
|
-
<div>
|
|
3488
|
-
<div class="color htmlelement"></div><span>Html element</span>
|
|
3489
|
-
</div>
|
|
3490
|
-
<div>
|
|
3491
|
-
<div class="color component"></div><span>Component</span>
|
|
3492
|
-
</div>
|
|
3493
|
-
<div>
|
|
3494
|
-
<div class="color directive"></div><span>Html element with directive</span>
|
|
3495
|
-
</div>
|
|
3496
|
-
</div>
|
|
3497
|
-
</div>
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
</div>
|
|
3501
|
-
|
|
3502
|
-
<script src="../js/libs/vis.min.js"></script>
|
|
3503
|
-
<script src="../js/libs/htmlparser.js"></script>
|
|
3504
|
-
<script src="../js/libs/deep-iterator.js"></script>
|
|
3505
|
-
<script>
|
|
3506
|
-
var COMPONENT_TEMPLATE = '<div><ion-header no-border> <ion-navbar class="toolbar-md-navbarLightColor"> <button ion-button menuToggle> <ion-icon name="menu"></ion-icon> </button> <ion-title> <img src="assets/chat21-logo.svg" alt="{{this.tenant}}"> <div *ngIf="numberOpenConv > 0" class="c21-number-open-conv">({{numberOpenConv}})</div> </ion-title> <ion-buttons end> <!-- <button *ngIf="!isHostname" ion-button icon-only (click)="openUsersList($event)"> --> <button *ngIf="!supportMode" ion-button icon-only (click)="openUsersList($event)"> <ion-icon name="create"></ion-icon> </button> <button ion-button icon-only (click)="openArchivedConversationsPage($event)"> <ion-icon class="material-icons">history</ion-icon> </button> <button ion-button icon-only (click)="presentPopover($event)"> <ion-icon name="more"></ion-icon> </button> </ion-buttons> </ion-navbar></ion-header><ion-content class="list-avatar-page"> <ion-list> <span *ngIf="conversations.length > 0;then contentConversations else contentMessageWelcome">here is ignored</span> <ng-template #contentConversations> <ion-item no-lines ion-item [class.selected]="conversation.uid === uidConvSelected" *ngFor="let conversation of conversations" (mousedown)="setUidConvSelected(conversation.uid)" (mouseup)="openMessageList()"> <ion-avatar item-start> <div #avatarPlaceholder class="avatar-placeholder" [style.background-color]="conversation.color" [innerHTML]="conversation.avatar"></div> <div #avatarImage class="chat21-avatar" [style.background-image]="\'url(\' + conversation.image + \')\'"></div> </ion-avatar> <div class="truncate" [innerHTML]="conversation.conversation_with_fullname"></div> <div> <p [class.not-read]="conversation.is_new" class="truncate" [innerHTML]="convertMessage(conversation.last_message_text)"></p> </div> <ion-note item-end>{{conversation.time_last_message}}</ion-note> <button id="{{ \'close_conversation_button\' + conversation.uid }}" class="close-conversation-button" ion-button clear item-end (click)="closeConversation(conversation);$event.stopPropagation();" padding> <ion-icon class="close-conversation-button-icon" style="display:block;" id="{{ \'close_button_icon\' + conversation.uid }}" color="close-conversation" name="close" item-end></ion-icon> </button> <div item-end class="c21-point" *ngIf="conversation.is_new"> </div> </ion-item> </ng-template> <ng-template #contentMessageWelcome> <div [class.active]="loadingIsActive" class="chat21-spinner" id="chat21-spinner"> <div class="chat21-bounce1"></div> <div class="chat21-bounce2"></div> <div class="chat21-bounce3"></div> <span>loading</span> </div> <div *ngIf="!loadingIsActive && conversations.length == 0" id="content_message_wellcome"> <div class="messaggio">{{ \'LABEL_MSG_PUSH_START_CHAT\' | translate }}</div> <!-- <div class="pulsanti"> <button ion-button icon-start color="273e53" (click)="openUsersList($event)"> {{ \'LABEL_MSG_START_CHAT\' | translate }} </button> </div> --> </div> </ng-template> </ion-list></ion-content><!--<ion-content padding> <ion-searchbar (input)="search($event)"></ion-searchbar> <ion-list> <button ion-item *ngFor="let conversazione of conversations | async" (click)="goToDetails(conversazione)"> <ion-avatar item-start> <img src= {{conversazione.image}} alt="user" onError="this.src=\'assets/img/no_image.svg\';"> </ion-avatar> <h2>{{conversazione.convers_with_fullname}}</h2> <span *ngIf="conversazione.status == 1;then content else other_content">here is ignored</span> <ng-template #content><p style="font-weight: bold;">{{conversazione.last_message_text}}</p></ng-template> <ng-template #other_content><p>{{conversazione.last_message_text}}</p></ng-template> <ion-note item-end class="date-right">{{getTimeLastMessage(conversazione.timestamp)}}</ion-note> </button> </ion-list></ion-content>--></div>'
|
|
3507
|
-
var COMPONENTS = [{'name': 'ArchivedConversationsPage', 'selector': 'page-archived-conversations'},{'name': 'ChatBubble', 'selector': 'chat-bubble'},{'name': 'DettaglioConversazionePage', 'selector': 'page-dettaglio-conversazione'},{'name': 'ElasticTextarea', 'selector': 'elastic-textarea'},{'name': 'InfoAdvancedPage', 'selector': 'page-info-advanced'},{'name': 'InfoConversationPage', 'selector': 'page-info-conversation'},{'name': 'InfoMessagePage', 'selector': 'page-info-message'},{'name': 'InfoUserPage', 'selector': 'page-info-user'},{'name': 'ListaConversazioniPage', 'selector': 'page-lista-conversazioni'},{'name': 'LoginPage', 'selector': 'page-login'},{'name': 'MyApp', 'selector': ''},{'name': 'PlaceholderPage', 'selector': 'page-placeholder'},{'name': 'PopoverPage', 'selector': 'page-popover'},{'name': 'PopoverProfilePage', 'selector': 'page-popover-profile'},{'name': 'ProfilePage', 'selector': 'page-profile'},{'name': 'RegisterPage', 'selector': 'page-register'},{'name': 'ResetpwdPage', 'selector': 'page-resetpwd'},{'name': 'UpdateImageProfilePage', 'selector': 'page-update-image-profile'},{'name': 'UsersPage', 'selector': 'page-users'}];
|
|
3508
|
-
var DIRECTIVES = [{'name': 'AutosizeDirective', 'selector': 'ion-textarea[autosize]'}];
|
|
3509
|
-
var ACTUAL_COMPONENT = {'name': 'ListaConversazioniPage'};
|
|
3510
|
-
</script>
|
|
3511
|
-
<script src="../js/tree.js"></script>
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
</div><div class="search-results">
|
|
3528
|
-
<div class="has-results">
|
|
3529
|
-
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
|
|
3530
|
-
<ul class="search-results-list"></ul>
|
|
3531
|
-
</div>
|
|
3532
|
-
<div class="no-results">
|
|
3533
|
-
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
|
3534
|
-
</div>
|
|
3535
|
-
</div>
|
|
3536
|
-
</div>
|
|
3537
|
-
<!-- END CONTENT -->
|
|
3538
|
-
</div>
|
|
3539
|
-
</div>
|
|
3540
|
-
|
|
3541
|
-
<script>
|
|
3542
|
-
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
|
|
3543
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
|
|
3544
|
-
var COMPODOC_CURRENT_PAGE_URL = 'ListaConversazioniPage.html';
|
|
3545
|
-
var MAX_SEARCH_RESULTS = 15;
|
|
3546
|
-
</script>
|
|
3547
|
-
|
|
3548
|
-
<script src="../js/libs/custom-elements.min.js"></script>
|
|
3549
|
-
<script src="../js/libs/lit-html.js"></script>
|
|
3550
|
-
<!-- Required to polyfill modern browsers as code is ES5 for IE... -->
|
|
3551
|
-
<script src="../js/libs/custom-elements-es5-adapter.js" charset="utf-8" defer></script>
|
|
3552
|
-
<script src="../js/menu-wc.js" defer></script>
|
|
3553
|
-
|
|
3554
|
-
<script src="../js/libs/bootstrap-native.js"></script>
|
|
3555
|
-
|
|
3556
|
-
<script src="../js/libs/es6-shim.min.js"></script>
|
|
3557
|
-
<script src="../js/libs/EventDispatcher.js"></script>
|
|
3558
|
-
<script src="../js/libs/promise.min.js"></script>
|
|
3559
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
3560
|
-
|
|
3561
|
-
<script src="../js/compodoc.js"></script>
|
|
3562
|
-
|
|
3563
|
-
<script src="../js/tabs.js"></script>
|
|
3564
|
-
<script src="../js/menu.js"></script>
|
|
3565
|
-
<script src="../js/libs/clipboard.min.js"></script>
|
|
3566
|
-
<script src="../js/libs/prism.js"></script>
|
|
3567
|
-
<script src="../js/sourceCode.js"></script>
|
|
3568
|
-
<script src="../js/search/search.js"></script>
|
|
3569
|
-
<script src="../js/search/lunr.min.js"></script>
|
|
3570
|
-
<script src="../js/search/search-lunr.js"></script>
|
|
3571
|
-
<script src="../js/search/search_index.js"></script>
|
|
3572
|
-
<script src="../js/lazy-load-graphs.js"></script>
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
</body>
|
|
3576
|
-
</html>
|