isometrik-plugin-chat-sdk 1.0.0
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/LICENSE +21 -0
- package/dist/cjs/BlockChatList-720a703e.js +423 -0
- package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
- package/dist/cjs/Image-67c52acd.js +135 -0
- package/dist/cjs/Image-67c52acd.js.map +1 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
- package/dist/cjs/Text-fedf6eab.js +60 -0
- package/dist/cjs/Text-fedf6eab.js.map +1 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
- package/dist/cjs/WebChat-403e7ab1.js +2884 -0
- package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
- package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
- package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-app.cjs.entry.js +55 -0
- package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
- package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
- package/dist/cjs/chat-creds-f4cbf400.js +38 -0
- package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/content-eca5336c.js +81 -0
- package/dist/cjs/content-eca5336c.js.map +1 -0
- package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
- package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
- package/dist/cjs/group-members-a60fb1cb.js +41 -0
- package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
- package/dist/cjs/groupcast-49dae5ab.js +202 -0
- package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
- package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
- package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
- package/dist/cjs/index-9afe62b6.js +3129 -0
- package/dist/cjs/index-9afe62b6.js.map +1 -0
- package/dist/cjs/index.cjs.js +148 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +54 -0
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/login-page.cjs.entry.js +85 -0
- package/dist/cjs/login-page.cjs.entry.js.map +1 -0
- package/dist/cjs/member-add.cjs.entry.js +122 -0
- package/dist/cjs/member-add.cjs.entry.js.map +1 -0
- package/dist/cjs/message-reaction-976f6261.js +24 -0
- package/dist/cjs/message-reaction-976f6261.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/cjs/my-component.cjs.entry.js.map +1 -0
- package/dist/cjs/reaction-container.cjs.entry.js +52 -0
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
- package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
- package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +143 -0
- package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
- package/dist/cjs/taguser-aca04ed9.js +512 -0
- package/dist/cjs/taguser-aca04ed9.js.map +1 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
- package/dist/cjs/toast-helper-defae4a5.js +84 -0
- package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
- package/dist/cjs/utils-bcad3386.js +9 -0
- package/dist/cjs/utils-bcad3386.js.map +1 -0
- package/dist/collection/api/conversations.js +12 -0
- package/dist/collection/api/group-members.js +36 -0
- package/dist/collection/api/groupcast.js +183 -0
- package/dist/collection/api/membership-control.js +13 -0
- package/dist/collection/api/message-reaction.js +16 -0
- package/dist/collection/api/social-accounts.js +282 -0
- package/dist/collection/app-root.js +51 -0
- package/dist/collection/app-root.js.map +1 -0
- package/dist/collection/assets/images/avatar.svg +1 -0
- package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
- package/dist/collection/assets/images/equalizer.svg +1 -0
- package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
- package/dist/collection/assets/images/link.svg +1 -0
- package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
- package/dist/collection/assets/images/videoThumbnail.svg +1 -0
- package/dist/collection/assets/svg/ExcelDocument.js +2 -0
- package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
- package/dist/collection/assets/svg/Moon.svg +1 -0
- package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
- package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
- package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
- package/dist/collection/assets/svg/PdfDocument.js +2 -0
- package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
- package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
- package/dist/collection/assets/svg/Sun.svg +1 -0
- package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
- package/dist/collection/assets/svg/broadcst-default.svg +4 -0
- package/dist/collection/assets/svg/close.svg +1 -0
- package/dist/collection/assets/svg/group.svg +7 -0
- package/dist/collection/assets/svg/login.svg +3051 -0
- package/dist/collection/assets/svg/message-add.svg +5 -0
- package/dist/collection/assets/svg/message-bold.svg +3 -0
- package/dist/collection/assets/svg/message-outline.svg +5 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
- package/dist/collection/components/Login.js +118 -0
- package/dist/collection/components/Login.js.map +1 -0
- package/dist/collection/components/Signup.js +177 -0
- package/dist/collection/components/Signup.js.map +1 -0
- package/dist/collection/components/chat-main.js +131 -0
- package/dist/collection/components/chat-main.js.map +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +83 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
- package/dist/collection/components/theme-provider.js +182 -0
- package/dist/collection/components/theme-provider.js.map +1 -0
- package/dist/collection/constants/chat-assets.js +12 -0
- package/dist/collection/constants/chat-creds.js +31 -0
- package/dist/collection/constants/content.js +75 -0
- package/dist/collection/constants/urls.js +1 -0
- package/dist/collection/index.js +135 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/lib/helpers.js +205 -0
- package/dist/collection/lib/taguser.js +123 -0
- package/dist/collection/store/conversation.js +25 -0
- package/dist/collection/store/conversation.js.map +1 -0
- package/dist/collection/store/group-members.js +24 -0
- package/dist/collection/store/group-members.js.map +1 -0
- package/dist/collection/store/unread-count.js +18 -0
- package/dist/collection/store/unread-count.js.map +1 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
- package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
- package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
- package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
- package/dist/collection/stories/Components/Body/Body.js +48 -0
- package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
- package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
- package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
- package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
- package/dist/collection/stories/Components/Chip/Chip.js +111 -0
- package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
- package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
- package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
- package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
- package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
- package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
- package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
- package/dist/collection/stories/Components/Footer/Footer.js +4 -0
- package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
- package/dist/collection/stories/Components/Head/Head.js +672 -0
- package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
- package/dist/collection/stories/Components/Icon/Icon.js +115 -0
- package/dist/collection/stories/Components/Image/Image.js +41 -0
- package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
- package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
- package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
- package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
- package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
- package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
- package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
- package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
- package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
- package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
- package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
- package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
- package/dist/collection/stories/Components/Text/Text.js +57 -0
- package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
- package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
- package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
- package/dist/collection/stories/Components/final/final.js +86 -0
- package/dist/collection/stories/Components/final/final.stories.js +30 -0
- package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
- package/dist/collection/types/ConversationDetailsTypes.js +2 -0
- package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
- package/dist/collection/utils/chatSdk.js +14 -0
- package/dist/collection/utils/getFomattedDate.js +34 -0
- package/dist/collection/utils/getFomattedDate.js.map +1 -0
- package/dist/collection/utils/unixTimeConverter.js +28 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
- package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
- package/dist/esm/Image-bb9efda3.js +121 -0
- package/dist/esm/Image-bb9efda3.js.map +1 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
- package/dist/esm/IsometrikLogo-14db76af.js +42 -0
- package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
- package/dist/esm/MessageSearch-4101a627.js +5875 -0
- package/dist/esm/MessageSearch-4101a627.js.map +1 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
- package/dist/esm/Text-3b0b3898.js +58 -0
- package/dist/esm/Text-3b0b3898.js.map +1 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
- package/dist/esm/WebChat-5448d615.js +2882 -0
- package/dist/esm/WebChat-5448d615.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/audio-bubble_8.entry.js +21001 -0
- package/dist/esm/audio-bubble_8.entry.js.map +1 -0
- package/dist/esm/block-chat-list.entry.js +8 -0
- package/dist/esm/block-chat-list.entry.js.map +1 -0
- package/dist/esm/chat-app.entry.js +51 -0
- package/dist/esm/chat-app.entry.js.map +1 -0
- package/dist/esm/chat-assets-bd8778d5.js +6 -0
- package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
- package/dist/esm/chat-creds-ff086f05.js +35 -0
- package/dist/esm/chat-creds-ff086f05.js.map +1 -0
- package/dist/esm/chat-document-message-bubble.entry.js +20 -0
- package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-image-message-bubble.entry.js +22 -0
- package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-video-message-bubble.entry.js +20 -0
- package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
- package/dist/esm/content-5aea5e39.js +79 -0
- package/dist/esm/content-5aea5e39.js.map +1 -0
- package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
- package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +124 -0
- package/dist/esm/forward-memebers.entry.js.map +1 -0
- package/dist/esm/group-members-bb3c8db7.js +37 -0
- package/dist/esm/group-members-bb3c8db7.js.map +1 -0
- package/dist/esm/groupcast-d1c54a27.js +187 -0
- package/dist/esm/groupcast-d1c54a27.js.map +1 -0
- package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
- package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
- package/dist/esm/index-fddf30b7.js +3093 -0
- package/dist/esm/index-fddf30b7.js.map +1 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +49 -0
- package/dist/esm/isometrik-webchat.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/login-page.entry.js +81 -0
- package/dist/esm/login-page.entry.js.map +1 -0
- package/dist/esm/member-add.entry.js +118 -0
- package/dist/esm/member-add.entry.js.map +1 -0
- package/dist/esm/message-reaction-ad47ea1a.js +20 -0
- package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
- package/dist/esm/my-component.entry.js +25 -0
- package/dist/esm/my-component.entry.js.map +1 -0
- package/dist/esm/reaction-container.entry.js +48 -0
- package/dist/esm/reaction-container.entry.js.map +1 -0
- package/dist/esm/shadow-css-7ad5caf8.js +334 -0
- package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/esm/signup-page.entry.js +139 -0
- package/dist/esm/signup-page.entry.js.map +1 -0
- package/dist/esm/taguser-e9032d65.js +510 -0
- package/dist/esm/taguser-e9032d65.js.map +1 -0
- package/dist/esm/theme-provider_2.entry.js +108 -0
- package/dist/esm/theme-provider_2.entry.js.map +1 -0
- package/dist/esm/toast-helper-840fd8dc.js +82 -0
- package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
- package/dist/esm/utils-11fcde98.js +7 -0
- package/dist/esm/utils-11fcde98.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/isometrik-webchat/index.esm.js +2 -0
- package/dist/isometrik-webchat/index.esm.js.map +1 -0
- package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
- package/dist/isometrik-webchat/p-12774661.js +2 -0
- package/dist/isometrik-webchat/p-12774661.js.map +1 -0
- package/dist/isometrik-webchat/p-12e56271.js +549 -0
- package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
- package/dist/isometrik-webchat/p-1415e589.js +2 -0
- package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
- package/dist/isometrik-webchat/p-18f8d210.js +13 -0
- package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
- package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
- package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
- package/dist/isometrik-webchat/p-229095d4.js +2 -0
- package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-3004a123.js +2 -0
- package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
- package/dist/isometrik-webchat/p-3044698a.js +2 -0
- package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
- package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
- package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
- package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
- package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
- package/dist/isometrik-webchat/p-48e1d174.js +45 -0
- package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
- package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
- package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
- package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
- package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
- package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
- package/dist/isometrik-webchat/p-8490e13d.js +192 -0
- package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
- package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
- package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
- package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
- package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b07dd267.js +2 -0
- package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-de8a8642.js +197 -0
- package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
- package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
- package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
- package/dist/isometrik-webchat/p-e1255160.js +2 -0
- package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
- package/dist/isometrik-webchat/p-e3731295.js +274 -0
- package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/app-root.d.ts +0 -0
- package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
- package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
- package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
- package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
- package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
- package/dist/types/components/Login.d.ts +13 -0
- package/dist/types/components/Signup.d.ts +17 -0
- package/dist/types/components/chat-main.d.ts +15 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
- package/dist/types/components/theme-provider.d.ts +44 -0
- package/dist/types/components.d.ts +838 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/store/conversation.d.ts +17 -0
- package/dist/types/store/group-members.d.ts +18 -0
- package/dist/types/store/unread-count.d.ts +10 -0
- package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
- package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
- package/dist/types/utils/getFomattedDate.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +89 -0
- package/readme.md +569 -0
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { html, css } from 'lit';
|
|
3
|
+
import { Image } from '../Image/Image';
|
|
4
|
+
import { Text } from '../Text/Text';
|
|
5
|
+
import { generateProfileImageByInitials } from '../../../lib/helpers';
|
|
6
|
+
import { WEB_CONTENT } from '../../../constants/content';
|
|
7
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
8
|
+
import {getGroupcastUrlQuery} from '../../../lib/helpers';
|
|
9
|
+
|
|
10
|
+
class ContactTile extends LitElement {
|
|
11
|
+
static properties = {
|
|
12
|
+
bgColor: { type: String },
|
|
13
|
+
borderWidth: { type: String },
|
|
14
|
+
borderColor: { type: String },
|
|
15
|
+
borderStyle: { type: String },
|
|
16
|
+
borderRadius: { type: String },
|
|
17
|
+
padding: { type: String },
|
|
18
|
+
height: { type: String },
|
|
19
|
+
width: { type: String },
|
|
20
|
+
time: { type: String },
|
|
21
|
+
alignSelf: { type: String },
|
|
22
|
+
isRead: { type: Boolean },
|
|
23
|
+
isPopupOpen: { type: Boolean },
|
|
24
|
+
fontFamily: { type: String },
|
|
25
|
+
isDelivered: { type: String },
|
|
26
|
+
textColor: { type: String },
|
|
27
|
+
imageSrc: {type: String},
|
|
28
|
+
contactName: {type: String},
|
|
29
|
+
conversationId:{type: String},
|
|
30
|
+
isChecked: {type: Boolean},
|
|
31
|
+
isCheckBox: { type: Boolean },
|
|
32
|
+
userId: {type: String},
|
|
33
|
+
suffix: { type: String },
|
|
34
|
+
suffixColor: { type: String },
|
|
35
|
+
suffixBgColor: { type: String },
|
|
36
|
+
gap:{type: String},
|
|
37
|
+
isAdmin: { type: Boolean },
|
|
38
|
+
showActions: { type: Boolean },
|
|
39
|
+
actionsPopupOpen: { type: Boolean },
|
|
40
|
+
openOwnProfile: { type: Boolean },
|
|
41
|
+
openProfile: {type: Function},
|
|
42
|
+
isGroupcast: {type: Boolean}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
constructor() {
|
|
46
|
+
super();
|
|
47
|
+
this.isChecked = false;
|
|
48
|
+
this.isCheckBox = true;
|
|
49
|
+
this.gap = "10px";
|
|
50
|
+
this._handleClickOutside = this._handleClickOutside.bind(this);
|
|
51
|
+
this.isGroupcast = false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
connectedCallback() {
|
|
55
|
+
super.connectedCallback();
|
|
56
|
+
document.addEventListener('click', this._handleClickOutside);
|
|
57
|
+
document.addEventListener('admin-status-changed', this._handleAdminStatusChange.bind(this));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
super.disconnectedCallback();
|
|
62
|
+
document.removeEventListener('click', this._handleClickOutside);
|
|
63
|
+
document.removeEventListener('admin-status-changed', this._handleAdminStatusChange);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_handleClickOutside(event) {
|
|
67
|
+
const actionsPopup = this.shadowRoot.querySelector('.actions-popup');
|
|
68
|
+
const kebabMenu = this.shadowRoot.querySelector('.kebab-menu');
|
|
69
|
+
|
|
70
|
+
if (this.actionsPopupOpen &&
|
|
71
|
+
actionsPopup &&
|
|
72
|
+
kebabMenu &&
|
|
73
|
+
!actionsPopup.contains(event.target) &&
|
|
74
|
+
!kebabMenu.contains(event.target)) {
|
|
75
|
+
this.actionsPopupOpen = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
_handleAdminStatusChange(event) {
|
|
80
|
+
if (event.detail.userId === this.userId) {
|
|
81
|
+
this.isAdmin = event.detail.isAdmin;
|
|
82
|
+
if (this.isAdmin) {
|
|
83
|
+
this.suffix = 'Admin';
|
|
84
|
+
this.suffixBgColor = 'var(--bg-secondary-color)';
|
|
85
|
+
this.suffixColor = 'var(--text-primary-color)';
|
|
86
|
+
} else {
|
|
87
|
+
this.suffix = '';
|
|
88
|
+
this.suffixBgColor = '';
|
|
89
|
+
this.suffixColor = '';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
this.requestUpdate();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static styles = css`
|
|
97
|
+
.contact-tile-container {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 20px;
|
|
101
|
+
background-color: var(--bg-color);
|
|
102
|
+
transition: background-color 0.3s ease;
|
|
103
|
+
position: relative;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.contact-tile-container:hover {
|
|
107
|
+
background-color: var(--bg-primary-light);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.contact-tile-select {
|
|
112
|
+
input {
|
|
113
|
+
width: 15px;
|
|
114
|
+
height: 15px;
|
|
115
|
+
accent-color: #99e5d9;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.contact-info {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.kebab-menu {
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
margin-left: auto;
|
|
128
|
+
padding: 5px;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.kebab-menu:hover {
|
|
136
|
+
background: var(--bg-primary-light);
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.actions-popup {
|
|
141
|
+
position: absolute;
|
|
142
|
+
right: 30px;
|
|
143
|
+
padding: 10px;
|
|
144
|
+
background: var(--bg-primary-color);
|
|
145
|
+
bottom: 40px;
|
|
146
|
+
color: var(--text-primary-color);
|
|
147
|
+
border-radius: 10px;
|
|
148
|
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
.actions-popup-content button {
|
|
153
|
+
border:none;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
background: transparent;
|
|
156
|
+
color: var(--text-primary-color);
|
|
157
|
+
font-size: var(--text-primary-size);
|
|
158
|
+
padding: 10px;
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.actions-popup-content button:hover {
|
|
163
|
+
background: var(--bg-primary-light);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.suffix-container {
|
|
167
|
+
padding: 3px 10px;
|
|
168
|
+
border-radius: 12px;
|
|
169
|
+
font-size: 14px;
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 30%;
|
|
172
|
+
right: 45px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
.popup-overlay {
|
|
177
|
+
position: fixed;
|
|
178
|
+
top: 0;
|
|
179
|
+
left: 0;
|
|
180
|
+
width: 100%;
|
|
181
|
+
height: 100%;
|
|
182
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
align-items: center;
|
|
186
|
+
z-index: 1000;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.popup-content {
|
|
190
|
+
background: var(--bg-primary-color);
|
|
191
|
+
padding: 14px;
|
|
192
|
+
border-radius: 8px;
|
|
193
|
+
width: 28%;
|
|
194
|
+
max-height: 80vh;
|
|
195
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
196
|
+
text-align: center;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.popup-buttons {
|
|
200
|
+
display: flex;
|
|
201
|
+
margin-top: 10px;
|
|
202
|
+
gap: 10px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.popup-buttons button {
|
|
206
|
+
padding: 10px;
|
|
207
|
+
outline: 0;
|
|
208
|
+
border: none;
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
flex: 1;
|
|
211
|
+
border-radius: 25px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.popup-buttons button:first-child {
|
|
215
|
+
border: 1px solid var(--text-primary-color);
|
|
216
|
+
color: var(--text-primary-color);
|
|
217
|
+
background: transparent;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.popup-buttons button:first-child:hover {
|
|
221
|
+
background: var(--text-primary-color);
|
|
222
|
+
color: var(--bg-primary-color);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.popup-buttons button:last-child {
|
|
226
|
+
background: var(--bg-secondary-color);
|
|
227
|
+
color: var(--text-primary-color);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
`;
|
|
231
|
+
|
|
232
|
+
render() {
|
|
233
|
+
const bgColor = this.bgColor;
|
|
234
|
+
const bgColorLight = this.lightenColor(this.bgColor, 30);
|
|
235
|
+
|
|
236
|
+
return html`
|
|
237
|
+
<style>
|
|
238
|
+
:host {
|
|
239
|
+
--bg-color: ${bgColor};
|
|
240
|
+
--bg-color-light: ${bgColorLight};
|
|
241
|
+
}
|
|
242
|
+
</style>
|
|
243
|
+
<div class="contact-tile-container"
|
|
244
|
+
style="padding: ${this.padding}; border-width: ${this.borderWidth};
|
|
245
|
+
border-color: ${this.borderColor}; border-style: solid;
|
|
246
|
+
width: ${this.width}; height: ${this.height}; color: ${this.textColor}; border-radius: ${this.borderRadius }">
|
|
247
|
+
|
|
248
|
+
${this.suffix ? html`<div class="suffix-container" style=" background-color: ${this.suffixBgColor}; color: ${this.suffixColor}; ">${this.suffix}</div>` : ''}
|
|
249
|
+
|
|
250
|
+
${this.isCheckBox ? html`
|
|
251
|
+
<div class="contact-tile-select">
|
|
252
|
+
<input type="checkbox" @change=${this.handleCheckboxChange} ?checked=${this.isChecked} />
|
|
253
|
+
</div>
|
|
254
|
+
` : ''}
|
|
255
|
+
<div @click=${this._handleNameClick} class="contact-info" style="gap: ${this.gap}">
|
|
256
|
+
${Image({
|
|
257
|
+
src: this.imageSrc,
|
|
258
|
+
alt: 'chat image',
|
|
259
|
+
borderRadius: '50%',
|
|
260
|
+
height: '40px',
|
|
261
|
+
width: '40px',
|
|
262
|
+
objectFit: 'cover',
|
|
263
|
+
placeholderImage: generateProfileImageByInitials(this.contactName)
|
|
264
|
+
})}
|
|
265
|
+
<div style="cursor: pointer;">
|
|
266
|
+
${Text({
|
|
267
|
+
content: this.contactName,
|
|
268
|
+
color: this.textColor,
|
|
269
|
+
maxWidth: '100%',
|
|
270
|
+
textOverflow: 'ellipsis',
|
|
271
|
+
overflow: 'hidden',
|
|
272
|
+
whiteSpace: 'nowrap'
|
|
273
|
+
})}
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
${this.actionsPopupOpen ? html`
|
|
278
|
+
<div class="actions-popup">
|
|
279
|
+
<div class="actions-popup-content">
|
|
280
|
+
${!this.isGroupcast ? html`
|
|
281
|
+
${this.isAdmin ? html`
|
|
282
|
+
<button @click=${ ()=> this.handleConfirmation('remove-admin',WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_ADMIN)}>${WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_ADMIN}</button>
|
|
283
|
+
` : html`
|
|
284
|
+
<button @click=${()=> this.handleConfirmation('make-admin',WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MAKE_ADMIN)}>${WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MAKE_ADMIN}</button>
|
|
285
|
+
`}
|
|
286
|
+
` : null}
|
|
287
|
+
|
|
288
|
+
<button @click=${()=> this.handleConfirmation('remove-memeber',WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_MEMBER)}>${WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE + ' ' + this.contactName}</button>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
` : ''}
|
|
292
|
+
${this.showActions ? html`
|
|
293
|
+
<div class="kebab-menu" @click=${this._handleKebabClick} style="background-color: ${this.actionsPopupOpen ? 'var(--bg-primary-light)' : 'transparent'};">
|
|
294
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="var(--text-primary-color)"><path d="M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"/></svg>
|
|
295
|
+
</div>
|
|
296
|
+
` : ''}
|
|
297
|
+
|
|
298
|
+
</div>
|
|
299
|
+
`;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
lightenColor(color, percent) {
|
|
303
|
+
const num = parseInt(color.replace("#", ""), 16),
|
|
304
|
+
amt = Math.round(2.55 * percent),
|
|
305
|
+
R = (num >> 16) + amt,
|
|
306
|
+
G = (num >> 8 & 0x00FF) + amt,
|
|
307
|
+
B = (num & 0x0000FF) + amt;
|
|
308
|
+
return "#" + (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + (G < 255 ? G < 1 ? 0 : G : 255) * 0x100 + (B < 255 ? B < 1 ? 0 : B : 255)).toString(16).slice(1);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
handleCheckboxChange(event) {
|
|
312
|
+
this.isChecked = event.target.checked;
|
|
313
|
+
this.dispatchEvent(new CustomEvent('contact-selected', {
|
|
314
|
+
detail: {
|
|
315
|
+
contactName: this.contactName,
|
|
316
|
+
isChecked: this.isChecked,
|
|
317
|
+
contactConversationId: this.conversationId,
|
|
318
|
+
userId: this.userId
|
|
319
|
+
},
|
|
320
|
+
bubbles: true,
|
|
321
|
+
composed: true,
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_handleKebabClick(e) {
|
|
326
|
+
e.stopPropagation();
|
|
327
|
+
this.actionsPopupOpen = !this.actionsPopupOpen;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
_handleRemoveAdmin() {
|
|
331
|
+
this.dispatchEvent(new CustomEvent('remove-admin-clicked', {
|
|
332
|
+
detail: {
|
|
333
|
+
username: this.contactName,
|
|
334
|
+
userId: this.userId
|
|
335
|
+
},
|
|
336
|
+
bubbles: true,
|
|
337
|
+
composed: true
|
|
338
|
+
}));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
_handleMakeAdmin() {
|
|
342
|
+
this.dispatchEvent(new CustomEvent('make-admin-clicked', {
|
|
343
|
+
detail: {
|
|
344
|
+
username: this.contactName,
|
|
345
|
+
userId: this.userId
|
|
346
|
+
},
|
|
347
|
+
bubbles: true,
|
|
348
|
+
composed: true
|
|
349
|
+
}));
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
_handleRemoveMember() {
|
|
353
|
+
const {isGroupcast, groupcastId} = getGroupcastUrlQuery()
|
|
354
|
+
this.dispatchEvent(new CustomEvent('remove-member-clicked', {
|
|
355
|
+
detail: {
|
|
356
|
+
username: this.contactName,
|
|
357
|
+
userId: this.userId,
|
|
358
|
+
conversationId: isGroupcast ? groupcastId : this.conversationId,
|
|
359
|
+
isGroupcast: this.isGroupcast,
|
|
360
|
+
imageSrc: this.imageSrc
|
|
361
|
+
},
|
|
362
|
+
bubbles: true,
|
|
363
|
+
composed: true
|
|
364
|
+
}));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
handleConfirmation(action,title) {
|
|
370
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
371
|
+
title: `${title}`,
|
|
372
|
+
description: this.handleDescription(action),
|
|
373
|
+
handleConfirm:() => this.confirmAction(action)
|
|
374
|
+
});
|
|
375
|
+
this.actionsPopupOpen = false;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
handleDescription(action) {
|
|
379
|
+
switch (action){
|
|
380
|
+
case 'remove-memeber':
|
|
381
|
+
return `Are you sure you want to remove ${this.contactName} as member?`
|
|
382
|
+
case'make-admin':
|
|
383
|
+
return `Are you sure you want to make ${this.contactName} admin ?`
|
|
384
|
+
case'remove-admin':
|
|
385
|
+
return `Are you sure you want to remove ${this.contactName} as admin ?`
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
confirmAction(action) {
|
|
390
|
+
switch (action) {
|
|
391
|
+
case 'remove-memeber':
|
|
392
|
+
this._handleRemoveMember();
|
|
393
|
+
break;
|
|
394
|
+
case 'make-admin':
|
|
395
|
+
this._handleMakeAdmin();
|
|
396
|
+
break;
|
|
397
|
+
case 'remove-admin':
|
|
398
|
+
this._handleRemoveAdmin();
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
_handleNameClick(e) {
|
|
404
|
+
e.stopPropagation();
|
|
405
|
+
this.dispatchEvent(new CustomEvent('name-clicked', {
|
|
406
|
+
detail: {
|
|
407
|
+
userId: this.userId,
|
|
408
|
+
userName: this.contactName
|
|
409
|
+
},
|
|
410
|
+
bubbles: true,
|
|
411
|
+
composed: true
|
|
412
|
+
}));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
customElements.define('contact-tile', ContactTile);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import "./ContactTile"
|
|
2
|
+
import { html } from "lit"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Molecules/ContactTile',
|
|
6
|
+
component: 'contact-tile',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
bgColor: { control: 'color' },
|
|
10
|
+
borderWidth: { control: 'text' },
|
|
11
|
+
borderColor: { control: 'color' },
|
|
12
|
+
borderStyle: {
|
|
13
|
+
control: 'select',
|
|
14
|
+
options: ['dashed', 'solid', 'dotted', 'double']
|
|
15
|
+
},
|
|
16
|
+
borderRadius: { control: 'text' },
|
|
17
|
+
padding: { control: 'text' },
|
|
18
|
+
imageSrc: { control: 'text' },
|
|
19
|
+
width: { control: 'text' },
|
|
20
|
+
height: { control: 'text' },
|
|
21
|
+
time: { control: 'text' },
|
|
22
|
+
contactName: { control: 'text' },
|
|
23
|
+
alignSelf: { control: 'text' },
|
|
24
|
+
fontFamily: { control: 'text' }
|
|
25
|
+
},
|
|
26
|
+
render: (args) => html`
|
|
27
|
+
<contact-tile
|
|
28
|
+
.bgColor=${args.bgColor || 'transparent'}
|
|
29
|
+
.borderWidth=${args.borderWidth}
|
|
30
|
+
.borderColor=${args.borderColor}
|
|
31
|
+
.borderStyle=${args.borderStyle}
|
|
32
|
+
.borderRadius=${args.borderRadius}
|
|
33
|
+
.padding=${args.padding}
|
|
34
|
+
.height=${args.height || 'auto'}
|
|
35
|
+
.width=${args.width || '100%'}
|
|
36
|
+
.imageSrc=${args.imageSrc}
|
|
37
|
+
.contactName=${args.contactName || 'John Doe'}
|
|
38
|
+
.time=${args.time || new Date().toISOString()}
|
|
39
|
+
.alignSelf=${args.alignSelf}
|
|
40
|
+
.fontFamily=${args.fontFamily}
|
|
41
|
+
></contact-tile>
|
|
42
|
+
`
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const Default = {
|
|
46
|
+
args: {
|
|
47
|
+
bgColor: "transparent",
|
|
48
|
+
height: "auto",
|
|
49
|
+
padding: "10px 10px 10px 10px",
|
|
50
|
+
borderRadius: "6px",
|
|
51
|
+
time: "",
|
|
52
|
+
contactName: "John Doe",
|
|
53
|
+
borderColor: "#D4D8EB",
|
|
54
|
+
borderWidth: "2px",
|
|
55
|
+
borderStyle: "solid",
|
|
56
|
+
alignSelf: "left",
|
|
57
|
+
imageSrc: "https://via.placeholder.com/150",
|
|
58
|
+
width: "300px"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
|
|
3
|
+
class ConfirmDialog extends LitElement {
|
|
4
|
+
static get properties() {
|
|
5
|
+
return {
|
|
6
|
+
dialogData: { type: Object },
|
|
7
|
+
onClose: { type: Function },
|
|
8
|
+
isMobile: { type: Boolean, reflect: true }
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
static get styles() {
|
|
13
|
+
return css`
|
|
14
|
+
:host {
|
|
15
|
+
display: block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dialog {
|
|
20
|
+
width: 100%;
|
|
21
|
+
text-align: center;
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dialog h2 {
|
|
26
|
+
margin-top: 0;
|
|
27
|
+
margin-bottom: 16px;
|
|
28
|
+
font-size: 1.25rem;
|
|
29
|
+
color: var(--text-primary-color);
|
|
30
|
+
text-transform: capitalize;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dialog p {
|
|
34
|
+
margin-bottom: 24px;
|
|
35
|
+
color: #666;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dialog-actions {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dialog-actions button {
|
|
45
|
+
flex: 1;
|
|
46
|
+
padding: 12px;
|
|
47
|
+
border: none;
|
|
48
|
+
border-radius: 20px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
transition: background-color 0.2s, transform 0.1s;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dialog-actions button:active {
|
|
55
|
+
transform: scale(0.95);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dialog-actions .confirm {
|
|
59
|
+
background-color: var(--base-color);
|
|
60
|
+
color: var( --bg-incoming-message);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.dialog-actions .cancel {
|
|
64
|
+
background-color: var(--bg-primary-color);
|
|
65
|
+
border: 2px solid var(--base-color);
|
|
66
|
+
color: var(--base-color);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Remove the previous fixed positioning and background */
|
|
70
|
+
:host([isMobile]) {
|
|
71
|
+
/* Optional: Add specific mobile-only styles if needed */
|
|
72
|
+
/* For example: */
|
|
73
|
+
.dialog-actions {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dialog-actions button {
|
|
78
|
+
margin-bottom: 8px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor() {
|
|
85
|
+
super();
|
|
86
|
+
this.dialogData = {};
|
|
87
|
+
this.onClose = () => {};
|
|
88
|
+
this.isMobile = false;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
render() {
|
|
92
|
+
return html`
|
|
93
|
+
<div class="dialog">
|
|
94
|
+
<h2>${this.dialogData?.title}</h2>
|
|
95
|
+
${this.dialogData?.description1 ? html`<p>${this.dialogData?.description1}</p>` : null}
|
|
96
|
+
<p>${this.dialogData?.description}</p>
|
|
97
|
+
<div class="dialog-actions">
|
|
98
|
+
<button class="confirm" @click=${this.dialogData.handleConfirm}>
|
|
99
|
+
${this.dialogData.yesText || 'Yes'}
|
|
100
|
+
</button>
|
|
101
|
+
<button class="cancel" @click=${this.onClose}>
|
|
102
|
+
${this.dialogData.noText || 'No'}
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (!customElements.get('confirm-dialog')) {
|
|
111
|
+
customElements.define('confirm-dialog', ConfirmDialog);
|
|
112
|
+
}
|
|
113
|
+
export { ConfirmDialog };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import { WEB_CONTENT } from '../../../constants/content';
|
|
3
|
+
|
|
4
|
+
class DeleteMessage extends LitElement {
|
|
5
|
+
static get properties() {
|
|
6
|
+
return {
|
|
7
|
+
dialogData: { type: Object },
|
|
8
|
+
onClose: { type: Function },
|
|
9
|
+
isMobile: { type: Boolean, reflect: true },
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static get styles() {
|
|
14
|
+
return css`
|
|
15
|
+
:host {
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dialog {
|
|
21
|
+
width: 100%;
|
|
22
|
+
text-align: center;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dialog h2 {
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
margin-bottom: 16px;
|
|
29
|
+
font-size: 1.25rem;
|
|
30
|
+
color: var(--text-primary-color);
|
|
31
|
+
text-transform: capitalize;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dialog-actions {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-end;
|
|
38
|
+
gap: 12px;
|
|
39
|
+
padding: 16px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.deleteText {
|
|
43
|
+
background: var(--bg-primary-light);
|
|
44
|
+
color: var(--text-primary-color);
|
|
45
|
+
border: none;
|
|
46
|
+
padding: 10px 20px;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
border-radius: 20px;
|
|
49
|
+
width: fit-content;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.deleteText:active {
|
|
54
|
+
transform: scale(0.98);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (max-width: 768px) {
|
|
58
|
+
.dialog-actions {
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.deleteText {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
constructor() {
|
|
70
|
+
super();
|
|
71
|
+
this.dialogData = {};
|
|
72
|
+
this.onClose = () => { };
|
|
73
|
+
this.isMobile = false;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
render() {
|
|
77
|
+
return html`
|
|
78
|
+
<div class="dialog">
|
|
79
|
+
<h2>${WEB_CONTENT.POPUP_MESSAGES.DELETE_LABEL}</h2>
|
|
80
|
+
<div class='dialog-actions' >
|
|
81
|
+
<span class="deleteText" @click=${this.dialogData.deleteMessageForSelf} >
|
|
82
|
+
${WEB_CONTENT.MESSAGE_ACTIONS.DELETE_FOR_SELF}
|
|
83
|
+
</span>
|
|
84
|
+
${this.dialogData.isSelf ? html` <span class="deleteText" @click=${this.dialogData.deleteMessageForEveryone} >
|
|
85
|
+
${WEB_CONTENT.MESSAGE_ACTIONS.DELETE_FOR_EVERYONE}
|
|
86
|
+
</span>`:null}
|
|
87
|
+
<span class="deleteText" @click=${this.onClose} >${WEB_CONTENT.CONSENT_MESSAGES.CANCEL}</span>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (!customElements.get('delete-message')) {
|
|
95
|
+
customElements.define('delete-message', DeleteMessage);
|
|
96
|
+
}
|
|
97
|
+
export { DeleteMessage };
|