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,523 @@
|
|
|
1
|
+
import { LitElement, css, html } from 'lit';
|
|
2
|
+
import { Image } from '../Image/Image';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import '../Inputbox/Input';
|
|
5
|
+
import '../NewChatSidebar/NewChatSidebar';
|
|
6
|
+
import { clearAll, generateProfileImageByInitials } from '../../../lib/helpers';
|
|
7
|
+
import { drawerDialogService } from '../Dialog-Drawer/dialog-drawer';
|
|
8
|
+
class SearchBar extends LitElement {
|
|
9
|
+
static properties = {
|
|
10
|
+
label: { type: String },
|
|
11
|
+
labelColor: { type: String },
|
|
12
|
+
labelFontFamily: { type: String },
|
|
13
|
+
labelFontWeight: { type: String },
|
|
14
|
+
labelFontSize: { type: String },
|
|
15
|
+
labelFontStyle: { type: String },
|
|
16
|
+
labelLineHeight: { type: String },
|
|
17
|
+
searchBarIcon: { type: String },
|
|
18
|
+
searchBarIconAlt: { type: String },
|
|
19
|
+
searchBarIconWidth: { type: String },
|
|
20
|
+
searchBarIconHeight: { type: String },
|
|
21
|
+
height: { type: String },
|
|
22
|
+
width: { type: String },
|
|
23
|
+
borderRadius: { type: String },
|
|
24
|
+
borderWidth: { type: String },
|
|
25
|
+
borderColor: { type: String },
|
|
26
|
+
borderStyle: { type: String },
|
|
27
|
+
padding: { type: String },
|
|
28
|
+
margin: { type: String },
|
|
29
|
+
inputBgColor: { type: String },
|
|
30
|
+
inputPlaceholderColor: { type: String },
|
|
31
|
+
inputPlaceholder: { type: String },
|
|
32
|
+
isSearchBar: { type: Boolean },
|
|
33
|
+
inputFontColor: { type: String },
|
|
34
|
+
showPopup: { type: Boolean },
|
|
35
|
+
nonBlockedContacts: { type: Array },
|
|
36
|
+
isNoContactsFound: { type: Boolean },
|
|
37
|
+
isLoading: { type: Boolean },
|
|
38
|
+
showLogoutPopup: { type: Boolean },
|
|
39
|
+
inputValue: { type: String },
|
|
40
|
+
isMqttConnected: { type: Boolean },
|
|
41
|
+
handleNewChatClick: { type: Function },
|
|
42
|
+
userMetaData: { type: Object },
|
|
43
|
+
isSearchBarIcons: {type: Boolean}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
static styles = css`
|
|
47
|
+
:host {
|
|
48
|
+
display: block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.search-bar-container {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: start;
|
|
57
|
+
width: 100%;
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
height: 100%;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 10px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.label-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 10px;
|
|
69
|
+
letter-spacing: -0.04em;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.search-bar-icons {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
gap: 6px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.new-chat-btn,
|
|
80
|
+
.menu-btn {
|
|
81
|
+
width: 32px;
|
|
82
|
+
height: 32px;
|
|
83
|
+
padding: 0;
|
|
84
|
+
border: none;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
background: transparent;
|
|
90
|
+
color: var(--text-primary-color);
|
|
91
|
+
border-radius: var(--radius-sm, 8px);
|
|
92
|
+
transition: background-color 160ms ease, transform 120ms ease, filter 160ms ease;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.new-chat-btn {
|
|
96
|
+
background: var(--primary, #000000);
|
|
97
|
+
color: var(--primary-foreground, #ffffff);
|
|
98
|
+
border-radius: var(--radius-pill, 999px);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.new-chat-btn:hover {
|
|
102
|
+
filter: brightness(1.06);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.menu-btn:hover {
|
|
106
|
+
background: var(--bg-secondary-color);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.new-chat-btn:active,
|
|
110
|
+
.menu-btn:active {
|
|
111
|
+
transform: scale(0.96);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.search-bar-input {
|
|
115
|
+
position: relative;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
width: 100%;
|
|
119
|
+
max-width: 100%;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
height: 40px;
|
|
122
|
+
min-height: 40px;
|
|
123
|
+
background: var(--bg-primary-color, #ffffff);
|
|
124
|
+
border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
|
|
125
|
+
border-radius: var(--radius-sm, 8px);
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
transition: border-color 160ms ease, background-color 160ms ease;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.search-bar-input my-input {
|
|
131
|
+
flex: 1;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.search-bar-input:focus-within {
|
|
139
|
+
border-color: color-mix(in srgb, var(--primary) 45%, transparent);
|
|
140
|
+
background: var(--bg-primary-color, #ffffff);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.icon-wrapper {
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: 12px;
|
|
146
|
+
top: 0;
|
|
147
|
+
bottom: 0;
|
|
148
|
+
width: 20px;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
color: var(--text-secondary-color);
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
z-index: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.icon-wrapper .search-icon,
|
|
158
|
+
.icon-wrapper .clear-icon {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
line-height: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.icon-wrapper .clear-icon {
|
|
166
|
+
pointer-events: auto;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.icon-wrapper svg {
|
|
171
|
+
display: block;
|
|
172
|
+
width: 16px;
|
|
173
|
+
height: 16px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
my-input {
|
|
177
|
+
flex-grow: 1;
|
|
178
|
+
font-family: var(--font-sans);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
my-input:focus {
|
|
182
|
+
outline: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.popup-overlay {
|
|
186
|
+
position: fixed;
|
|
187
|
+
top: 0;
|
|
188
|
+
left: 0;
|
|
189
|
+
width: 25%;
|
|
190
|
+
min-width: var(--sidebar-width);
|
|
191
|
+
height: 100%;
|
|
192
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
193
|
+
display: flex;
|
|
194
|
+
z-index: 1000;
|
|
195
|
+
transition: transform 0.3s ease;
|
|
196
|
+
transform: translateX(-100%);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
new-chat-sidebar {
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 100%;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.popup-overlay.show {
|
|
205
|
+
transform: translateX(0);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.popup-overlay.hide {
|
|
209
|
+
transform: translateX(-100%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.logout-popup {
|
|
213
|
+
position: absolute;
|
|
214
|
+
top: 40px;
|
|
215
|
+
right: 0;
|
|
216
|
+
background-color: var(--bg-primary-color);
|
|
217
|
+
border-radius: 8px;
|
|
218
|
+
box-shadow: var(--menu-shadow);
|
|
219
|
+
padding: 8px;
|
|
220
|
+
z-index: 1001;
|
|
221
|
+
min-width: 120px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.popup-menu-item {
|
|
225
|
+
display: block;
|
|
226
|
+
width: 100%;
|
|
227
|
+
padding: 8px 12px;
|
|
228
|
+
text-align: left;
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
background-color: transparent;
|
|
231
|
+
border: none;
|
|
232
|
+
color: var(--text-primary-color, #333);
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
transition: background-color 0.2s;
|
|
235
|
+
border-radius: 4px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.popup-menu-item:hover {
|
|
239
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
240
|
+
}
|
|
241
|
+
.profile-menu {
|
|
242
|
+
display: none;
|
|
243
|
+
}
|
|
244
|
+
.menuDot {
|
|
245
|
+
displa: block;
|
|
246
|
+
}
|
|
247
|
+
.profile-dot {
|
|
248
|
+
display: none;
|
|
249
|
+
}
|
|
250
|
+
@media (width < 768px) {
|
|
251
|
+
.popup-overlay {
|
|
252
|
+
width: 100%;
|
|
253
|
+
}
|
|
254
|
+
.search-bar-icons {
|
|
255
|
+
gap: 10px;
|
|
256
|
+
}
|
|
257
|
+
.menuDot {
|
|
258
|
+
display: none;
|
|
259
|
+
}
|
|
260
|
+
.profile-dot {
|
|
261
|
+
display: block;
|
|
262
|
+
position: relative;
|
|
263
|
+
}
|
|
264
|
+
.mqtt-indicator {
|
|
265
|
+
position: absolute;
|
|
266
|
+
right: 0px;
|
|
267
|
+
bottom: 7px;
|
|
268
|
+
width: 7px;
|
|
269
|
+
height: 7px;
|
|
270
|
+
border-radius: 50%;
|
|
271
|
+
filter: blur(0.3px);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.mqtt-indicator.connected {
|
|
275
|
+
background-color: var(--text-success-color);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.mqtt-indicator.disconnected {
|
|
279
|
+
background-color: var(--text-danger-color);
|
|
280
|
+
}
|
|
281
|
+
.profile-menu {
|
|
282
|
+
display: block;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
`;
|
|
286
|
+
|
|
287
|
+
constructor() {
|
|
288
|
+
super();
|
|
289
|
+
this.showPopup = false;
|
|
290
|
+
this.isLoading = false;
|
|
291
|
+
this.showLogoutPopup = false;
|
|
292
|
+
this.inputValue = '';
|
|
293
|
+
this.handleClickOutside = this.handleClickOutside.bind(this);
|
|
294
|
+
this.isSearchBarIcons = false
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
connectedCallback() {
|
|
298
|
+
super.connectedCallback();
|
|
299
|
+
this.addEventListener('close-sidebar', this.closePopup);
|
|
300
|
+
document.addEventListener('click', this.handleClickOutside);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
disconnectedCallback() {
|
|
304
|
+
super.disconnectedCallback();
|
|
305
|
+
this.removeEventListener('close-sidebar', this.closePopup);
|
|
306
|
+
document.removeEventListener('click', this.handleClickOutside);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
handleClickOutside(e) {
|
|
310
|
+
const logoutPopup = this.shadowRoot.querySelector('.logout-popup');
|
|
311
|
+
const settingsIcon = this.shadowRoot.querySelector('.settings-icon');
|
|
312
|
+
|
|
313
|
+
if (logoutPopup && !logoutPopup.contains(e.target) && !settingsIcon.contains(e.target)) {
|
|
314
|
+
this.showLogoutPopup = false;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
handleInputChange(e) {
|
|
319
|
+
// Prevent event bubbling
|
|
320
|
+
e.stopPropagation();
|
|
321
|
+
|
|
322
|
+
const inputValue = e.target.value;
|
|
323
|
+
this.inputValue = inputValue;
|
|
324
|
+
this.dispatchEvent(
|
|
325
|
+
new CustomEvent('searchConversation', {
|
|
326
|
+
detail: { value: inputValue },
|
|
327
|
+
bubbles: true,
|
|
328
|
+
composed: true,
|
|
329
|
+
}),
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
handleSvgClick(e) {
|
|
334
|
+
e.stopPropagation();
|
|
335
|
+
this.showLogoutPopup = !this.showLogoutPopup;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
handleLogout(e) {
|
|
339
|
+
e.stopPropagation();
|
|
340
|
+
this.showLogoutPopup = !this.showLogoutPopup;
|
|
341
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
342
|
+
title: 'Logout',
|
|
343
|
+
description: `Are you sure you want to Logout ?`,
|
|
344
|
+
handleConfirm: clearAll,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
handleProfileClick() {
|
|
349
|
+
this.dispatchEvent(
|
|
350
|
+
new CustomEvent('profile-clicked', {
|
|
351
|
+
bubbles: true,
|
|
352
|
+
composed: true,
|
|
353
|
+
}),
|
|
354
|
+
);
|
|
355
|
+
this.showLogoutPopup = false;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
closePopup() {
|
|
359
|
+
const overlay = this.shadowRoot.querySelector('.popup-overlay');
|
|
360
|
+
overlay.classList.add('hide');
|
|
361
|
+
setTimeout(() => {
|
|
362
|
+
this.showPopup = false;
|
|
363
|
+
this.requestUpdate();
|
|
364
|
+
}, 300);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
clearInput() {
|
|
368
|
+
this.inputValue = '';
|
|
369
|
+
const input = this.shadowRoot.querySelector('my-input');
|
|
370
|
+
if (input) {
|
|
371
|
+
input.value = '';
|
|
372
|
+
this.dispatchEvent(
|
|
373
|
+
new CustomEvent('searchConversation', {
|
|
374
|
+
detail: { value: '' },
|
|
375
|
+
bubbles: true,
|
|
376
|
+
composed: true,
|
|
377
|
+
}),
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
render() {
|
|
383
|
+
this.style.setProperty('--label-color', this.labelColor);
|
|
384
|
+
return html`
|
|
385
|
+
<div
|
|
386
|
+
class="search-bar-container"
|
|
387
|
+
style="width: ${this.width}; height: ${this.height};
|
|
388
|
+
padding: ${this.padding};
|
|
389
|
+
margin: ${this.margin};
|
|
390
|
+
"
|
|
391
|
+
>
|
|
392
|
+
<div style="display: flex; align-items: center; justify-content: space-between; width: 100%;">
|
|
393
|
+
<div class="label-container">
|
|
394
|
+
${Text({
|
|
395
|
+
content: this.label,
|
|
396
|
+
color: this.labelColor,
|
|
397
|
+
fontFamily: this.labelFontFamily,
|
|
398
|
+
fontWeight: this.labelFontWeight,
|
|
399
|
+
fontSize: this.labelFontSize,
|
|
400
|
+
fontStyle: this.labelFontStyle,
|
|
401
|
+
lineHeight: this.labelLineHeight,
|
|
402
|
+
})}
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
${this.isSearchBarIcons ? html`
|
|
406
|
+
<div class="search-bar-icons">
|
|
407
|
+
<button class="new-chat-btn" type="button" title="New chat" @click="${this.handleNewChatClick}">
|
|
408
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
409
|
+
<path d="M12 5v14M5 12h14" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
410
|
+
</svg>
|
|
411
|
+
</button>
|
|
412
|
+
|
|
413
|
+
<button class="menu-btn menuDot settings-icon" type="button" title="Menu" @click="${this.handleSvgClick}">
|
|
414
|
+
<svg class="settings-icon" width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
415
|
+
<circle cx="12" cy="5" r="1.7"></circle>
|
|
416
|
+
<circle cx="12" cy="12" r="1.7"></circle>
|
|
417
|
+
<circle cx="12" cy="19" r="1.7"></circle>
|
|
418
|
+
</svg>
|
|
419
|
+
</button>
|
|
420
|
+
<span class="profile-dot" @click="${this.handleSvgClick}">
|
|
421
|
+
${html`
|
|
422
|
+
${Image({
|
|
423
|
+
src: this.userMetaData?.userProfileImageUrl,
|
|
424
|
+
alt: 'profile image',
|
|
425
|
+
width: '30px',
|
|
426
|
+
height: '30px',
|
|
427
|
+
objectFit: 'cover',
|
|
428
|
+
borderRadius: '50%',
|
|
429
|
+
placeholderImage: generateProfileImageByInitials(this.userMetaData?.userName, 90, 90),
|
|
430
|
+
})}
|
|
431
|
+
${this.isMqttConnected ? html`<div class="mqtt-indicator connected"></div>` : html`<div class="mqtt-indicator disconnected"></div>`}
|
|
432
|
+
`}
|
|
433
|
+
</span>
|
|
434
|
+
|
|
435
|
+
${this.showLogoutPopup
|
|
436
|
+
? html`
|
|
437
|
+
<div class="logout-popup">
|
|
438
|
+
<button class="popup-menu-item profile-menu" @click="${this.handleProfileClick}">My Profile</button>
|
|
439
|
+
<button class="popup-menu-item" @click="${e => this.handleLogout(e)}">Log Out</button>
|
|
440
|
+
</div>
|
|
441
|
+
`
|
|
442
|
+
: ''}
|
|
443
|
+
</div>
|
|
444
|
+
` : null}
|
|
445
|
+
</div>
|
|
446
|
+
${this.isSearchBar
|
|
447
|
+
? html`
|
|
448
|
+
<div class="search-bar-input">
|
|
449
|
+
<my-input
|
|
450
|
+
width="100%"
|
|
451
|
+
minHeight="40px"
|
|
452
|
+
maxHeight="40px"
|
|
453
|
+
inputHeight="40px"
|
|
454
|
+
borderRadius="var(--radius-sm)"
|
|
455
|
+
borderWidth=${'0px'}
|
|
456
|
+
borderStyle=${this.borderStyle || 'solid'}
|
|
457
|
+
backgroundColor="transparent"
|
|
458
|
+
fontSize="${this.inputFontSize || 'var(--text-secondary-size)'}"
|
|
459
|
+
padding="0 12px 0 40px"
|
|
460
|
+
lineHeight="40px"
|
|
461
|
+
placeholder="${this.inputPlaceholder || 'Search'}"
|
|
462
|
+
color=${this.inputFontColor || '#000'}
|
|
463
|
+
.placeholderColor=${this.inputPlaceholderColor || '#000'}
|
|
464
|
+
.isSearchSvg=${false}
|
|
465
|
+
@input="${this.handleInputChange}"
|
|
466
|
+
.value="${this.inputValue}"
|
|
467
|
+
></my-input>
|
|
468
|
+
|
|
469
|
+
<div class="icon-wrapper">
|
|
470
|
+
${this.inputValue
|
|
471
|
+
? html`
|
|
472
|
+
<div class="clear-icon" @click="${this.clearInput}">
|
|
473
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none">
|
|
474
|
+
<path
|
|
475
|
+
fill-rule="evenodd"
|
|
476
|
+
clip-rule="evenodd"
|
|
477
|
+
d="M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L12 10.5858L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L13.4142 12L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L12 13.4142L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L10.5858 12L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"
|
|
478
|
+
fill="currentColor"
|
|
479
|
+
/>
|
|
480
|
+
</svg>
|
|
481
|
+
</div>
|
|
482
|
+
`
|
|
483
|
+
: html`
|
|
484
|
+
<div class="search-icon">
|
|
485
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
486
|
+
<path d="M15.5 15.5L19 19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
487
|
+
<path
|
|
488
|
+
d="M5 11C5 14.3137 7.68629 17 11 17C12.6597 17 14.1621 16.3261 15.2483 15.2483C16.3261 14.1621 17 12.6597 17 11C17 7.68629 14.3137 5 11 5C7.68629 5 5 7.68629 5 11Z"
|
|
489
|
+
stroke="currentColor"
|
|
490
|
+
stroke-width="2"
|
|
491
|
+
stroke-linecap="round"
|
|
492
|
+
stroke-linejoin="round"
|
|
493
|
+
/>
|
|
494
|
+
</svg>
|
|
495
|
+
</div>
|
|
496
|
+
`}
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
`
|
|
500
|
+
: ''}
|
|
501
|
+
</div>
|
|
502
|
+
|
|
503
|
+
${this.showPopup
|
|
504
|
+
? html`
|
|
505
|
+
<div class="popup-overlay show">
|
|
506
|
+
<new-chat-sidebar
|
|
507
|
+
.closeNewChatSidebar=${() => this.closePopup()}
|
|
508
|
+
height="100%"
|
|
509
|
+
width=""
|
|
510
|
+
bgColor="var(--bg-primary-color)"
|
|
511
|
+
textColor="var(--text-primary-color)"
|
|
512
|
+
.nonBlockedContacts=${this.nonBlockedContacts}
|
|
513
|
+
.isNoContactsFound=${this.isNoContactsFound}
|
|
514
|
+
.isLoading=${this.isLoading}
|
|
515
|
+
></new-chat-sidebar>
|
|
516
|
+
</div>
|
|
517
|
+
`
|
|
518
|
+
: ''}
|
|
519
|
+
`;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
customElements.define('message-search-bar', SearchBar);
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import "./SearchBar"
|
|
2
|
+
import { html } from "lit"
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Molecules/SearchBar',
|
|
5
|
+
component: 'message-search-bar',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
argTypes: {
|
|
8
|
+
label: { control: 'text' },
|
|
9
|
+
labelColor: { control: 'color' },
|
|
10
|
+
labelFontFamily: { control: 'text' },
|
|
11
|
+
labelFontWeight: { control: 'text' },
|
|
12
|
+
labelFontSize: { control: 'text' },
|
|
13
|
+
labelFontStyle: { control: 'text' },
|
|
14
|
+
labelLineHeight: { control: 'text' },
|
|
15
|
+
searchBarIcon: { control: 'text' },
|
|
16
|
+
searchBarIconAlt: { control: 'text' },
|
|
17
|
+
searchBarIconWidth: { control: 'text' },
|
|
18
|
+
searchBarIconHeight: { control: 'text' },
|
|
19
|
+
height: { control: 'text' },
|
|
20
|
+
width: { control: 'text' },
|
|
21
|
+
borderRadius: { control: 'text' },
|
|
22
|
+
borderWidth: { control: 'text' },
|
|
23
|
+
borderColor: { control: 'color' },
|
|
24
|
+
borderStyle: { control: 'text' },
|
|
25
|
+
padding: { control: 'text' },
|
|
26
|
+
margin: { control: 'text' },
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
render: (args) => html`
|
|
30
|
+
<message-search-bar
|
|
31
|
+
label=${args.label}
|
|
32
|
+
labelColor=${args.labelColor}
|
|
33
|
+
labelFontFamily=${args.labelFontFamily}
|
|
34
|
+
labelFontWeight=${args.labelFontWeight}
|
|
35
|
+
labelFontSize=${args.labelFontSize}
|
|
36
|
+
labelFontStyle=${args.labelFontStyle}
|
|
37
|
+
labelLineHeight=${args.labelLineHeight}
|
|
38
|
+
searchBarIcon=${args.searchBarIcon}
|
|
39
|
+
searchBarIconAlt=${args.searchBarIconAlt}
|
|
40
|
+
searchBarIconWidth=${args.searchBarIconWidth}
|
|
41
|
+
searchBarIconHeight=${args.searchBarIconHeight}
|
|
42
|
+
height=${args.height}
|
|
43
|
+
width=${args.width}
|
|
44
|
+
borderRadius=${args.borderRadius}
|
|
45
|
+
borderWidth=${args.borderWidth}
|
|
46
|
+
borderColor=${args.borderColor}
|
|
47
|
+
borderStyle=${args.borderStyle || "solid"}
|
|
48
|
+
padding=${args.padding}
|
|
49
|
+
margin=${args.margin}
|
|
50
|
+
></message-search-bar>
|
|
51
|
+
`,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const Default = {
|
|
55
|
+
args: {
|
|
56
|
+
label: "Messages",
|
|
57
|
+
labelColor: "#000",
|
|
58
|
+
labelFontFamily: "sans-serif",
|
|
59
|
+
labelFontWeight: "600",
|
|
60
|
+
labelFontSize: "28px",
|
|
61
|
+
labelFontStyle: "normal",
|
|
62
|
+
searchBarIcon: "null",
|
|
63
|
+
searchBarIconAlt: "Search Icon",
|
|
64
|
+
searchBarIconWidth: "24px",
|
|
65
|
+
searchBarIconHeight: "24px",
|
|
66
|
+
borderRadius: "10px",
|
|
67
|
+
borderWidth: "1px",
|
|
68
|
+
borderColor: "#000",
|
|
69
|
+
padding: "10px",
|
|
70
|
+
margin: "0px",
|
|
71
|
+
width: "30%",
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export const FullSearchBar = {
|
|
78
|
+
args: {
|
|
79
|
+
label: "",
|
|
80
|
+
labelColor: "#000",
|
|
81
|
+
labelFontFamily: "sans-serif",
|
|
82
|
+
labelFontWeight: "600",
|
|
83
|
+
labelFontSize: "28px",
|
|
84
|
+
labelFontStyle: "normal",
|
|
85
|
+
searchBarIcon: "null",
|
|
86
|
+
searchBarIconAlt: "Search Icon",
|
|
87
|
+
searchBarIconWidth: "24px",
|
|
88
|
+
searchBarIconHeight: "24px",
|
|
89
|
+
borderRadius: "10px",
|
|
90
|
+
borderWidth: "1px",
|
|
91
|
+
borderColor: "#000",
|
|
92
|
+
padding: "10px",
|
|
93
|
+
margin: "0px",
|
|
94
|
+
width: "30%",
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
3
|
+
|
|
4
|
+
export const MessageUnreadCount = ({
|
|
5
|
+
content = '',
|
|
6
|
+
color = 'black',
|
|
7
|
+
fontSize = '16px',
|
|
8
|
+
textAlign = 'center',
|
|
9
|
+
fontWeight = 'normal',
|
|
10
|
+
fontStyle = 'normal',
|
|
11
|
+
backgroundColor = 'transparent',
|
|
12
|
+
borderColor = 'transparent',
|
|
13
|
+
borderWidth = '',
|
|
14
|
+
borderStyle = '',
|
|
15
|
+
borderRadius = '4px',
|
|
16
|
+
fontFamily = '',
|
|
17
|
+
width = "",
|
|
18
|
+
height = "auto",
|
|
19
|
+
display="flex",
|
|
20
|
+
alignItems="center",
|
|
21
|
+
justifyContent="center",
|
|
22
|
+
padding=""
|
|
23
|
+
|
|
24
|
+
}) => {
|
|
25
|
+
return html`
|
|
26
|
+
<div
|
|
27
|
+
style=${styleMap({
|
|
28
|
+
color,
|
|
29
|
+
fontSize,
|
|
30
|
+
textAlign,
|
|
31
|
+
fontWeight,
|
|
32
|
+
fontStyle,
|
|
33
|
+
backgroundColor,
|
|
34
|
+
borderColor,
|
|
35
|
+
borderWidth,
|
|
36
|
+
borderStyle,
|
|
37
|
+
borderRadius,
|
|
38
|
+
fontFamily,
|
|
39
|
+
width,
|
|
40
|
+
height,
|
|
41
|
+
alignItems,
|
|
42
|
+
justifyContent,
|
|
43
|
+
display,
|
|
44
|
+
padding
|
|
45
|
+
})}
|
|
46
|
+
>
|
|
47
|
+
${content}
|
|
48
|
+
</div>
|
|
49
|
+
`;
|
|
50
|
+
};
|
|
51
|
+
|