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,264 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
import '../Dialog-Drawer/confirm.js';
|
|
3
|
+
import'../Dialog-Drawer/deletemessage.js'
|
|
4
|
+
import'../../../components/ChatUIComponent/AddMember.tsx'
|
|
5
|
+
import'../SharePopup/SharePopup.js'
|
|
6
|
+
import'../../../components/ChatUIComponent/ForwardMessageList.tsx'
|
|
7
|
+
class DrawerDialogService extends LitElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.activeDialogs = [];
|
|
11
|
+
this.activeDrawers = [];
|
|
12
|
+
this.isMobile = window.innerWidth <= 768;
|
|
13
|
+
|
|
14
|
+
// Add resize listener to update mobile status
|
|
15
|
+
this.resizeHandler = () => {
|
|
16
|
+
this.isMobile = window.innerWidth <= 768;
|
|
17
|
+
this.requestUpdate();
|
|
18
|
+
};
|
|
19
|
+
window.addEventListener('resize', this.resizeHandler);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static get styles() {
|
|
23
|
+
return css`
|
|
24
|
+
.dialog {
|
|
25
|
+
position: fixed;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
background: var(--popup-overlay);
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
z-index: 999999;
|
|
35
|
+
backdrop-filter: blur(10px);
|
|
36
|
+
-webkit-backdrop-filter: blur(10px); /* for Safari support */
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.dialog-container {
|
|
41
|
+
position: relative;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dialog-wrapper {
|
|
50
|
+
background: var( --bg-primary-color);
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
box-shadow: 0px 2px 25px 0px #FFFFFF1A;
|
|
53
|
+
text-align: center;
|
|
54
|
+
position: relative;
|
|
55
|
+
transition: all 0.3s ease;
|
|
56
|
+
padding: 15px;
|
|
57
|
+
max-width: 400px;
|
|
58
|
+
width: 100%;
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (max-width: 768px) {
|
|
63
|
+
.dialog-wrapper {
|
|
64
|
+
position: absolute;
|
|
65
|
+
bottom: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
width: 100%;
|
|
68
|
+
max-width: none;
|
|
69
|
+
border-radius: 16px 16px 0 0;
|
|
70
|
+
max-height: 80vh;
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
animation: slide-up 0.3s ease;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes slide-up {
|
|
77
|
+
from {
|
|
78
|
+
transform: translateY(100%);
|
|
79
|
+
}
|
|
80
|
+
to {
|
|
81
|
+
transform: translateY(0);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.close-button {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 10px;
|
|
89
|
+
right: 10px;
|
|
90
|
+
background: none;
|
|
91
|
+
border: none;
|
|
92
|
+
font-size: 40px;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
color: var(--bg-grey-color);
|
|
95
|
+
padding: 5px;
|
|
96
|
+
line-height: 1;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static get properties() {
|
|
102
|
+
return {
|
|
103
|
+
activeDialogs: { type: Array },
|
|
104
|
+
activeDrawers: { type: Array },
|
|
105
|
+
isMobile: { type: Boolean }
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
// Remove resize listener when component is removed
|
|
111
|
+
window.removeEventListener('resize', this.resizeHandler);
|
|
112
|
+
super.disconnectedCallback();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
openDialog(name, data = {}, options = {}) {
|
|
116
|
+
const dialogConfig = {
|
|
117
|
+
id: options.id || `${name}-${Date.now()}`,
|
|
118
|
+
name,
|
|
119
|
+
data,
|
|
120
|
+
type: 'dialog'
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
this.activeDialogs.push(dialogConfig);
|
|
124
|
+
this.requestUpdate();
|
|
125
|
+
return dialogConfig.id;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
openDrawer(name, data = {}, options = {}) {
|
|
129
|
+
const drawerConfig = {
|
|
130
|
+
id: options.id || `${name}-${Date.now()}`,
|
|
131
|
+
name,
|
|
132
|
+
data,
|
|
133
|
+
type: 'drawer'
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
this.activeDrawers.push(drawerConfig);
|
|
137
|
+
this.requestUpdate();
|
|
138
|
+
return drawerConfig.id;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
closeDialog(name) {
|
|
142
|
+
if(name){
|
|
143
|
+
this.activeDialogs = this.activeDialogs.filter(dialog => dialog.name !== name);
|
|
144
|
+
}else{
|
|
145
|
+
this.activeDialogs = [];
|
|
146
|
+
}
|
|
147
|
+
this.requestUpdate();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
closeDrawer(name) {
|
|
151
|
+
if(name){
|
|
152
|
+
this.activeDrawers = this.activeDrawers.filter(drawer => drawer.name !== name);
|
|
153
|
+
}else{
|
|
154
|
+
this.activeDrawers = [];
|
|
155
|
+
}
|
|
156
|
+
this.requestUpdate();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
renderDialogComponent(dialog) {
|
|
160
|
+
switch(dialog.name) {
|
|
161
|
+
case 'confirm-dialog':
|
|
162
|
+
return html`
|
|
163
|
+
<confirm-dialog
|
|
164
|
+
.dialogData=${dialog.data}
|
|
165
|
+
.onClose=${() => this.closeDialog(dialog.name)}
|
|
166
|
+
.isMobile=${this.isMobile}
|
|
167
|
+
></confirm-dialog>
|
|
168
|
+
`;
|
|
169
|
+
case 'delete-message':
|
|
170
|
+
return html`
|
|
171
|
+
<delete-message
|
|
172
|
+
.dialogData=${dialog.data}
|
|
173
|
+
.onClose=${() => this.closeDialog(dialog.name)}
|
|
174
|
+
.isMobile=${this.isMobile}
|
|
175
|
+
></delete-message>
|
|
176
|
+
`;
|
|
177
|
+
case 'member-add':
|
|
178
|
+
return html`
|
|
179
|
+
<member-add
|
|
180
|
+
.dialogData=${dialog.data}
|
|
181
|
+
.onClose=${() => this.closeDialog(dialog.name)}
|
|
182
|
+
.isMobile=${this.isMobile}
|
|
183
|
+
></member-add>
|
|
184
|
+
`
|
|
185
|
+
case 'share-popup':
|
|
186
|
+
return html`
|
|
187
|
+
<share-popup
|
|
188
|
+
.dialogData=${dialog.data}
|
|
189
|
+
.onClose=${() => this.closeDialog(dialog.name)}
|
|
190
|
+
.isMobile=${this.isMobile}
|
|
191
|
+
></share-popup>
|
|
192
|
+
`
|
|
193
|
+
case 'forward-memebers':
|
|
194
|
+
return html`
|
|
195
|
+
<forward-memebers
|
|
196
|
+
.dialogData=${dialog.data}
|
|
197
|
+
.onClose=${() => this.closeDialog(dialog.name)}
|
|
198
|
+
.isMobile=${this.isMobile}
|
|
199
|
+
></forward-memebers>
|
|
200
|
+
`
|
|
201
|
+
default:
|
|
202
|
+
console.error(`No render method for dialog: ${dialog.name}`);
|
|
203
|
+
return html``;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
closeAll(){
|
|
209
|
+
this.closeDialog();
|
|
210
|
+
this.closeDrawer();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
render() {
|
|
214
|
+
const renderItems = [...this.activeDialogs, ...this.activeDrawers];
|
|
215
|
+
if (renderItems.length === 0) return html``;
|
|
216
|
+
|
|
217
|
+
return html`
|
|
218
|
+
<div class='dialog' >
|
|
219
|
+
<div
|
|
220
|
+
class="dialog-container"
|
|
221
|
+
@click=${() => this.closeAll()}
|
|
222
|
+
>
|
|
223
|
+
${renderItems.map(item => html`
|
|
224
|
+
<div
|
|
225
|
+
class="dialog-wrapper"
|
|
226
|
+
@click=${this.stopPropagation}
|
|
227
|
+
>
|
|
228
|
+
<button
|
|
229
|
+
class="close-button"
|
|
230
|
+
@click=${() => this.closeDialog(item.name)}
|
|
231
|
+
>
|
|
232
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor">
|
|
233
|
+
<path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z" />
|
|
234
|
+
</svg>
|
|
235
|
+
</button>
|
|
236
|
+
${item.type === 'dialog'
|
|
237
|
+
? this.renderDialogComponent(item)
|
|
238
|
+
: this.renderDrawerComponent(item)
|
|
239
|
+
}
|
|
240
|
+
</div>
|
|
241
|
+
`)}
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
`;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
stopPropagation(e) {
|
|
248
|
+
e.stopPropagation();
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Define the custom element for the service
|
|
253
|
+
if (!customElements.get('drawer-dialog-service')) {
|
|
254
|
+
customElements.define('drawer-dialog-service', DrawerDialogService);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Create and export singleton instance
|
|
258
|
+
export const drawerDialogService =
|
|
259
|
+
document.querySelector('drawer-dialog-service') ||
|
|
260
|
+
(() => {
|
|
261
|
+
const el = document.createElement('drawer-dialog-service');
|
|
262
|
+
document.body.appendChild(el);
|
|
263
|
+
return el;
|
|
264
|
+
})();
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { LitElement, html, css } from 'lit';
|
|
2
|
+
|
|
3
|
+
class EmojiReactions extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
isOpen: { type: Boolean },
|
|
6
|
+
onEmojiSelect: { type: Function },
|
|
7
|
+
selectedEmojis: { type: Array },
|
|
8
|
+
currentPage: { type: Number },
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
static styles = css`
|
|
12
|
+
.emoji-container {
|
|
13
|
+
position: absolute;
|
|
14
|
+
background: var(--bg-primary-color);
|
|
15
|
+
border-radius: 8px;
|
|
16
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
17
|
+
padding: 8px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
z-index: 100;
|
|
22
|
+
bottom: 100%;
|
|
23
|
+
margin-bottom: 8px;
|
|
24
|
+
width: max-content;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
.emoji-grid {
|
|
29
|
+
display: grid;
|
|
30
|
+
grid-template-columns: repeat(5, 1fr);
|
|
31
|
+
gap: 8px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.emoji-button {
|
|
35
|
+
background: none;
|
|
36
|
+
border: none;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
padding: 8px;
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
transition: background-color 0.2s;
|
|
41
|
+
font-size: 24px; /* Increased emoji size */
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nav-button {
|
|
45
|
+
background: var(--bg-secondary-color);
|
|
46
|
+
border: none;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
padding: 4px;
|
|
49
|
+
color: var(--text-primary-color);
|
|
50
|
+
font-size: 20px;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nav-button:hover {
|
|
56
|
+
background: var(--bg-secondary-color);
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.emoji-button img {
|
|
61
|
+
width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.emoji-button:hover {
|
|
66
|
+
background: var(--bg-secondary-color);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.selected-emojis {
|
|
70
|
+
display: flex;
|
|
71
|
+
gap: 4px;
|
|
72
|
+
margin-top: 4px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.emoji-count {
|
|
76
|
+
background: var(--bg-secondary-color);
|
|
77
|
+
padding: 2px 6px;
|
|
78
|
+
border-radius: 12px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.emoji-count img {
|
|
83
|
+
width: 24px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
constructor() {
|
|
89
|
+
super();
|
|
90
|
+
this.isOpen = false;
|
|
91
|
+
this.selectedEmojis = [];
|
|
92
|
+
this.currentPage = 0;
|
|
93
|
+
this.emojis = [
|
|
94
|
+
{ id: 'star', src: '⭐' },
|
|
95
|
+
{ id: 'crying_with_laughter', src: '😂' },
|
|
96
|
+
{ id: 'yes', src: '👍' },
|
|
97
|
+
{ id: 'no', src: '❌' },
|
|
98
|
+
{ id: 'party', src: '🥳' },
|
|
99
|
+
{ id: 'high_five', src: '✋' },
|
|
100
|
+
{ id: 'rock', src: '🪨' },
|
|
101
|
+
{ id: 'facepal', src: '🤦' },
|
|
102
|
+
{ id: 'sarcastic', src: '🙄' },
|
|
103
|
+
{ id: 'talking_too_much', src: '🤫' },
|
|
104
|
+
{ id: 'crying', src: '😭' },
|
|
105
|
+
{ id: 'heart', src: '❤️' },
|
|
106
|
+
{ id: 'surprised', src: '😮' },
|
|
107
|
+
{ id: 'bowing', src: '🙇' },
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get visibleEmojis() {
|
|
112
|
+
const start = this.currentPage * 5;
|
|
113
|
+
return this.emojis.slice(start, start + 5);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
nextPage() {
|
|
117
|
+
if ((this.currentPage + 1) * 5 < this.emojis.length) {
|
|
118
|
+
this.currentPage++;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
prevPage() {
|
|
123
|
+
if (this.currentPage > 0) {
|
|
124
|
+
this.currentPage--;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
render() {
|
|
129
|
+
return html`
|
|
130
|
+
${this.isOpen
|
|
131
|
+
? html`
|
|
132
|
+
<div class="emoji-container">
|
|
133
|
+
${this.currentPage > 0 ? html`<button class="nav-button" @click=${() => this.prevPage()}>
|
|
134
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M6.3508 12.7499L11.2096 17.4615L10.1654 18.5383L3.42264 11.9999L10.1654 5.46148L11.2096 6.53833L6.3508 11.2499L21 11.2499L21 12.7499L6.3508 12.7499Z" fill="#080341"></path> </g></svg>
|
|
135
|
+
</button>` : ''}
|
|
136
|
+
<div class="emoji-grid">
|
|
137
|
+
${this.visibleEmojis.map(
|
|
138
|
+
emoji => html`
|
|
139
|
+
<button class="emoji-button" @click=${() => this.handleEmojiClick(emoji)}>
|
|
140
|
+
<span>${emoji.src}</span>
|
|
141
|
+
</button>
|
|
142
|
+
`,
|
|
143
|
+
)}
|
|
144
|
+
</div>
|
|
145
|
+
${(this.currentPage + 1) * 5 < this.emojis.length ? html`<button class="nav-button" @click=${() => this.nextPage()}>
|
|
146
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.6492 11.2501L12.7904 6.53852L13.8346 5.46167L20.5774 12.0001L13.8346 18.5385L12.7904 17.4617L17.6492 12.7501H3V11.2501H17.6492Z" fill="#080341"></path> </g></svg>
|
|
147
|
+
</button>` : ''}
|
|
148
|
+
</div>
|
|
149
|
+
`
|
|
150
|
+
: ''}
|
|
151
|
+
${this.selectedEmojis.length > 0
|
|
152
|
+
? html`
|
|
153
|
+
<div class="selected-emojis">
|
|
154
|
+
${this.selectedEmojis.map(
|
|
155
|
+
({ emoji, count }) => html`
|
|
156
|
+
<span class="emoji-count">
|
|
157
|
+
<span>${emoji.src}</span>
|
|
158
|
+
</span>
|
|
159
|
+
`,
|
|
160
|
+
)}
|
|
161
|
+
</div>
|
|
162
|
+
`
|
|
163
|
+
: ''}
|
|
164
|
+
`;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
handleEmojiClick(emoji) {
|
|
168
|
+
this.dispatchEvent(
|
|
169
|
+
new CustomEvent('emoji-selected', {
|
|
170
|
+
detail: { emojiId: emoji.id, emojiSrc: emoji.src },
|
|
171
|
+
bubbles: true,
|
|
172
|
+
composed: true,
|
|
173
|
+
}),
|
|
174
|
+
);
|
|
175
|
+
this.onEmojiSelect(emoji);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
customElements.define('emoji-reactions', EmojiReactions);
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './Footer.css';
|
|
3
|
+
import '../Inputbox/Input';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Molecules/Footer',
|
|
7
|
+
component: 'my-input',
|
|
8
|
+
tags: ['autodocs'],
|
|
9
|
+
render: (args) => html`
|
|
10
|
+
<div class="input-with-svg">
|
|
11
|
+
<!-- Hidden file input -->
|
|
12
|
+
<input
|
|
13
|
+
type="file"
|
|
14
|
+
id="file-input"
|
|
15
|
+
style="display: none;"
|
|
16
|
+
@change="${(event) => handleFileSelect(event)}"
|
|
17
|
+
/>
|
|
18
|
+
<!-- SVG that triggers file input -->
|
|
19
|
+
<svg
|
|
20
|
+
class="inside-svg"
|
|
21
|
+
width="18"
|
|
22
|
+
height="19"
|
|
23
|
+
viewBox="0 0 18 19"
|
|
24
|
+
fill="none"
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
@click="${() => {
|
|
27
|
+
const fileInput = document.getElementById('file-input');
|
|
28
|
+
if (fileInput) {
|
|
29
|
+
fileInput.click();
|
|
30
|
+
} else {
|
|
31
|
+
console.error('File input element not found');
|
|
32
|
+
}
|
|
33
|
+
}}"
|
|
34
|
+
>
|
|
35
|
+
<path d="M6.75 8C7.57843 8 8.25 7.32843 8.25 6.5C8.25 5.67157 7.57843 5 6.75 5C5.92157 5 5.25 5.67157 5.25 6.5C5.25 7.32843 5.92157 8 6.75 8Z" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
36
|
+
<path d="M9.75 2H6.75C3 2 1.5 3.5 1.5 7.25V11.75C1.5 15.5 3 17 6.75 17H11.25C15 17 16.5 15.5 16.5 11.75V8" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
37
|
+
<path d="M11.8125 4.25H15.9375" stroke="black" stroke-width="1.125" stroke-linecap="round"/>
|
|
38
|
+
<path d="M13.875 6.3125V2.1875" stroke="black" stroke-width="1.125" stroke-linecap="round"/>
|
|
39
|
+
<path d="M2 14.7124L5.6975 12.2299C6.29 11.8324 7.145 11.8774 7.6775 12.3349L7.925 12.5524C8.51 13.0549 9.455 13.0549 10.04 12.5524L13.16 9.87492C13.745 9.37242 14.69 9.37242 15.275 9.87492L16.4975 10.9249" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
|
+
</svg>
|
|
41
|
+
|
|
42
|
+
<!-- Use the custom element as a tag -->
|
|
43
|
+
<my-input
|
|
44
|
+
.value="${args.value}"
|
|
45
|
+
.placeholder="${args.placeholder}"
|
|
46
|
+
.width="${args.width}"
|
|
47
|
+
.height="${args.height}"
|
|
48
|
+
.borderColor="${args.borderColor}"
|
|
49
|
+
.borderRadius="${args.borderRadius}"
|
|
50
|
+
.backgroundColor="${args.backgroundColor}"
|
|
51
|
+
.fontSize="${args.fontSize}"
|
|
52
|
+
.padding="${args.padding}"
|
|
53
|
+
.color="${args.color}"
|
|
54
|
+
.placeholderColor="${args.placeholderColor}"
|
|
55
|
+
.borderWidth="${args.borderWidth}" <!-- New attribute -->
|
|
56
|
+
></my-input>
|
|
57
|
+
|
|
58
|
+
<svg class="outside-svg" width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
59
|
+
<rect width="45" height="45" rx="22.5" fill="black"/>
|
|
60
|
+
<path d="M29.3165 19.1561L21.1131 15.0544C15.6027 12.2944 13.3411 14.5561 16.1011 20.0665L16.9348 21.734C17.1744 22.2228 17.1744 22.7882 16.9348 23.2769L16.1011 24.9348C13.3411 30.4453 15.5931 32.7069 21.1131 29.9469L29.3165 25.8453C32.9965 24.0053 32.9965 20.9961 29.3165 19.1561ZM26.2211 23.2194H21.0461C20.6531 23.2194 20.3273 22.8936 20.3273 22.5007C20.3273 22.1078 20.6531 21.7819 21.0461 21.7819H26.2211C26.614 21.7819 26.9398 22.1078 26.9398 22.5007C26.9398 22.8936 26.614 23.2194 26.2211 23.2194Z" fill="white"/>
|
|
61
|
+
</svg>
|
|
62
|
+
</div>
|
|
63
|
+
`,
|
|
64
|
+
argTypes: {
|
|
65
|
+
value: { control: 'text' },
|
|
66
|
+
placeholder: { control: 'text' },
|
|
67
|
+
width: { control: 'text' },
|
|
68
|
+
height: { control: 'text' },
|
|
69
|
+
borderColor: { control: 'color' },
|
|
70
|
+
borderRadius: { control: 'text' },
|
|
71
|
+
backgroundColor: { control: 'color' },
|
|
72
|
+
fontSize: { control: 'text' },
|
|
73
|
+
padding: { control: 'text' },
|
|
74
|
+
color: { control: 'color' },
|
|
75
|
+
placeholderColor: { control: 'color' },
|
|
76
|
+
borderWidth: { control: 'text' }
|
|
77
|
+
},
|
|
78
|
+
args: {
|
|
79
|
+
value: '',
|
|
80
|
+
placeholder: 'Type in your message',
|
|
81
|
+
width: '230px',
|
|
82
|
+
height: '45px',
|
|
83
|
+
borderColor: '#D4D8EB',
|
|
84
|
+
borderRadius: '4px',
|
|
85
|
+
backgroundColor: 'white',
|
|
86
|
+
fontSize: '16px',
|
|
87
|
+
padding: '0 40px',
|
|
88
|
+
color: 'black',
|
|
89
|
+
placeholderColor: '#aaa',
|
|
90
|
+
borderWidth: '1px'
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
function handleFileSelect(event) {
|
|
95
|
+
const file = event.target.files[0];
|
|
96
|
+
if (file) {
|
|
97
|
+
console.log(`File selected: ${file.name}`);
|
|
98
|
+
} else {
|
|
99
|
+
console.log('No file selected');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const Default = (args) => html`
|
|
104
|
+
<div class="input-with-svg">
|
|
105
|
+
<input
|
|
106
|
+
type="file"
|
|
107
|
+
id="file-input"
|
|
108
|
+
style="display: none;"
|
|
109
|
+
@change="${(event) => handleFileSelect(event)}"
|
|
110
|
+
/>
|
|
111
|
+
<svg
|
|
112
|
+
class="inside-svg"
|
|
113
|
+
width="18"
|
|
114
|
+
height="19"
|
|
115
|
+
viewBox="0 0 18 19"
|
|
116
|
+
fill="none"
|
|
117
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
118
|
+
@click="${() => {
|
|
119
|
+
const fileInput = document.getElementById('file-input');
|
|
120
|
+
if (fileInput) {
|
|
121
|
+
fileInput.click();
|
|
122
|
+
} else {
|
|
123
|
+
console.error('File input element not found');
|
|
124
|
+
}
|
|
125
|
+
}}"
|
|
126
|
+
>
|
|
127
|
+
<path d="M6.75 8C7.57843 8 8.25 7.32843 8.25 6.5C8.25 5.67157 7.57843 5 6.75 5C5.92157 5 5.25 5.67157 5.25 6.5C5.25 7.32843 5.92157 8 6.75 8Z" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
128
|
+
<path d="M9.75 2H6.75C3 2 1.5 3.5 1.5 7.25V11.75C1.5 15.5 3 17 6.75 17H11.25C15 17 16.5 15.5 16.5 11.75V8" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
129
|
+
<path d="M11.8125 4.25H15.9375" stroke="black" stroke-width="1.125" stroke-linecap="round"/>
|
|
130
|
+
<path d="M13.875 6.3125V2.1875" stroke="black" stroke-width="1.125" stroke-linecap="round"/>
|
|
131
|
+
<path d="M2 14.7124L5.6975 12.2299C6.29 11.8324 7.145 11.8774 7.6775 12.3349L7.925 12.5524C8.51 13.0549 9.455 13.0549 10.04 12.5524L13.16 9.87492C13.745 9.37242 14.69 9.37242 15.275 9.87492L16.4975 10.9249" stroke="black" stroke-width="1.125" stroke-linecap="round" stroke-linejoin="round"/>
|
|
132
|
+
</svg>
|
|
133
|
+
|
|
134
|
+
<!-- Render the custom input component -->
|
|
135
|
+
<my-input
|
|
136
|
+
.value="${args.value}"
|
|
137
|
+
.placeholder="${args.placeholder}"
|
|
138
|
+
.width="${args.width}"
|
|
139
|
+
.height="${args.height}"
|
|
140
|
+
.borderColor="${args.borderColor}"
|
|
141
|
+
.borderRadius="${args.borderRadius}"
|
|
142
|
+
.backgroundColor="${args.backgroundColor}"
|
|
143
|
+
.fontSize="${args.fontSize}"
|
|
144
|
+
.padding="${args.padding}"
|
|
145
|
+
.color="${args.color}"
|
|
146
|
+
.placeholderColor="${args.placeholderColor}"
|
|
147
|
+
.borderWidth="${args.borderWidth}" <!-- New attribute -->
|
|
148
|
+
></my-input>
|
|
149
|
+
|
|
150
|
+
<svg class="outside-svg" width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
151
|
+
<rect width="45" height="45" rx="22.5" fill="black"/>
|
|
152
|
+
<path d="M29.3165 19.1561L21.1131 15.0544C15.6027 12.2944 13.3411 14.5561 16.1011 20.0665L16.9348 21.734C17.1744 22.2228 17.1744 22.7882 16.9348 23.2769L16.1011 24.9348C13.3411 30.4453 15.5931 32.7069 21.1131 29.9469L29.3165 25.8453C32.9965 24.0053 32.9965 20.9961 29.3165 19.1561ZM26.2211 23.2194H21.0461C20.6531 23.2194 20.3273 22.8936 20.3273 22.5007C20.3273 22.1078 20.6531 21.7819 21.0461 21.7819H26.2211C26.614 21.7819 26.9398 22.1078 26.9398 22.5007C26.9398 22.8936 26.614 23.2194 26.2211 23.2194Z" fill="white"/>
|
|
153
|
+
</svg>
|
|
154
|
+
</div>
|
|
155
|
+
`;
|