quickblox-react-ui-kit 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +288 -255
- package/dist/Presentation/Views/Dialogs/Dialogs.d.ts +3 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +3 -1
- package/dist/Presentation/{components/UI → assets}/ DefaultThemes/DefaultTheme.d.ts +2 -2
- package/dist/Presentation/assets/DarkTheme.d.ts +2 -2
- package/dist/Presentation/assets/LightTheme.d.ts +2 -2
- package/dist/Presentation/assets/{Theme.d.ts → UiKitTheme.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts +2 -2
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/{useMessagesViewModelWithMockUseCase.d.ts → useMessagesViewModel.d.ts} +1 -1
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/components/layouts/Desktop/{DesktopLayoutForMockModels.d.ts → DesktopLayout.d.ts} +2 -2
- package/dist/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts +7 -0
- package/dist/index-ui.d.ts +6 -5
- package/dist/index-ui.js +49 -93
- package/package.json +9 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -8
- package/dist/MyButton/MyButton.d.ts +0 -9
- package/dist/MyInput/MyInput.d.ts +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.d.ts +0 -4
- package/dist/Presentation/components/layouts/Desktop/Desktop.d.ts +0 -4
- package/dist/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.d.ts +0 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -47
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/quickblox.js +0 -54609
- package/public/robots.txt +0 -3
- package/src/App.scss +0 -0
- package/src/App.tsx +0 -230
- package/src/CommonTypes/FunctionResult.ts +0 -4
- package/src/Data/Stubs.ts +0 -1131
- package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
- package/src/Data/dto/file/LocalFileDTO.ts +0 -26
- package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
- package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
- package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
- package/src/Data/dto/user/LocalUserDTO.ts +0 -37
- package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
- package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
- package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
- package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -776
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
- package/src/Data/mapper/IMapper.ts +0 -14
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -425
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -430
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -128
- package/src/Data/repository/DialogsRepository.ts +0 -422
- package/src/Data/repository/EventMessagesRepository.ts +0 -291
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -288
- package/src/Data/repository/UsersRepository.ts +0 -324
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -19
- package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
- package/src/Data/source/exception/RepositoryException.ts +0 -27
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
- package/src/Data/source/local/ILocalDataSource.ts +0 -45
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -377
- package/src/Data/source/local/LocalFileDataSource.ts +0 -22
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -401
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -399
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1278
- package/src/Domain/entity/Chat.ts +0 -4
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
- package/src/Domain/entity/CustomDataEntity.ts +0 -3
- package/src/Domain/entity/DialogEntity.ts +0 -15
- package/src/Domain/entity/DialogEventInfo.ts +0 -15
- package/src/Domain/entity/DialogTypes.ts +0 -7
- package/src/Domain/entity/EventMessageType.ts +0 -7
- package/src/Domain/entity/FileEntity.ts +0 -11
- package/src/Domain/entity/FileTypes.ts +0 -9
- package/src/Domain/entity/GroupDialogEntity.ts +0 -54
- package/src/Domain/entity/LastMessageEntity.ts +0 -5
- package/src/Domain/entity/MessageEntity.ts +0 -25
- package/src/Domain/entity/NotificationTypes.ts +0 -7
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -72
- package/src/Domain/entity/UserEntity.ts +0 -22
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -40
- package/src/Domain/repository/IFileRepository.ts +0 -9
- package/src/Domain/repository/IMessagesRepository.ts +0 -28
- package/src/Domain/repository/IUsersRepository.ts +0 -13
- package/src/Domain/repository/Pagination.ts +0 -48
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -73
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -45
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -109
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -103
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -141
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -65
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
- package/src/Domain/use_cases/base/IUseCase.ts +0 -5
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -143
- package/src/MyButton/MyButton.scss +0 -11
- package/src/MyButton/MyButton.tsx +0 -25
- package/src/MyInput/MyInput.scss +0 -9
- package/src/MyInput/MyInput.tsx +0 -36
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -66
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -187
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -23
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -66
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -372
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -136
- package/src/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.ts +0 -345
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/Theme.ts +0 -143
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- package/src/Presentation/assets/fonts/.gitkeep +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
- package/src/Presentation/assets/img/bee-img.png +0 -0
- package/src/Presentation/assets/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_reset-styles.scss +0 -435
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
- package/src/Presentation/assets/styles/_theme_light.scss +0 -33
- package/src/Presentation/assets/styles/_variables.scss +0 -2
- package/src/Presentation/components/Button.js +0 -5
- package/src/Presentation/components/Navbar.tsx +0 -45
- package/src/Presentation/components/TextInput.js +0 -10
- package/src/Presentation/components/UI/ DefaultThemes/CustomTheme.ts +0 -13
- package/src/Presentation/components/UI/ DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -127
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -646
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -183
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -262
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -146
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -374
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -87
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -128
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -137
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -327
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -794
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -86
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.ts +0 -452
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -100
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -405
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -46
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/Desktop.tsx +0 -103
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.tsx +0 -31
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -116
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- package/src/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.tsx +0 -209
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
- package/src/Presentation/components/providers/ProviderProps.ts +0 -5
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -255
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +0 -82
- package/src/QBconfig.ts +0 -41
- package/src/index-ui.ts +0 -60
- package/src/index.scss +0 -74
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/qb-api-calls/index.ts +0 -543
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -35
- package/src/utils/parse.ts +0 -74
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI → assets}/ DefaultThemes/CustomTheme.d.ts +0 -0
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.row-layout-main-container{
|
|
2
|
-
// max-width: $row--main-container-max-width;
|
|
3
|
-
// min-width: $row--main-container-max-width;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
flex-wrap: nowrap;
|
|
7
|
-
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
align-items: center;
|
|
10
|
-
margin: 0 auto;
|
|
11
|
-
|
|
12
|
-
gap: 16px;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
&__item-left {
|
|
16
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
17
|
-
flex-grow: 1;
|
|
18
|
-
flex-shrink: 1;
|
|
19
|
-
|
|
20
|
-
//flex-basis: 56px;
|
|
21
|
-
//min-width: 56px;
|
|
22
|
-
//max-width: 56px;
|
|
23
|
-
//min-height: 56px;
|
|
24
|
-
//max-height: 56px;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
&__item-center {
|
|
28
|
-
// flex: 3 2 $row-main-container-item-center-width;
|
|
29
|
-
flex-grow: 3;
|
|
30
|
-
flex-shrink: 2;
|
|
31
|
-
|
|
32
|
-
//flex-basis: 50px;
|
|
33
|
-
//min-height: 50px;
|
|
34
|
-
//max-height: 50px;
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
&__item-right {
|
|
38
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
39
|
-
flex-grow: 1;
|
|
40
|
-
flex-shrink: 1;
|
|
41
|
-
// min-width: calc(100% / 5 );
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './RowCenterContainer.scss';
|
|
3
|
-
|
|
4
|
-
export type RowCenterContainerProps = {
|
|
5
|
-
LeftItem?: React.ReactNode;
|
|
6
|
-
CenterItem?: React.ReactNode;
|
|
7
|
-
RightItem?: React.ReactNode;
|
|
8
|
-
gapBetweenItem?: string;
|
|
9
|
-
minWidthContainer?: string;
|
|
10
|
-
minHeightContainer?: string;
|
|
11
|
-
LeftContainerSize?: {
|
|
12
|
-
flexBasis: string;
|
|
13
|
-
minWidth: string;
|
|
14
|
-
maxWidth: string;
|
|
15
|
-
minHeight: string;
|
|
16
|
-
maxHeight: string;
|
|
17
|
-
};
|
|
18
|
-
CenterContainerSize?: {
|
|
19
|
-
flexBasis: string;
|
|
20
|
-
minWidth?: string;
|
|
21
|
-
maxWidth?: string;
|
|
22
|
-
minHeight: string;
|
|
23
|
-
maxHeight: string;
|
|
24
|
-
};
|
|
25
|
-
RightContainerSize?: {
|
|
26
|
-
flexBasis: string;
|
|
27
|
-
minWidth: string;
|
|
28
|
-
maxWidth: string;
|
|
29
|
-
minHeight: string;
|
|
30
|
-
maxHeight: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line react/function-component-definition
|
|
35
|
-
const RowCenterContainer: React.FC<RowCenterContainerProps> = ({
|
|
36
|
-
LeftItem,
|
|
37
|
-
CenterItem,
|
|
38
|
-
RightItem,
|
|
39
|
-
gapBetweenItem,
|
|
40
|
-
minWidthContainer,
|
|
41
|
-
minHeightContainer,
|
|
42
|
-
LeftContainerSize,
|
|
43
|
-
CenterContainerSize,
|
|
44
|
-
RightContainerSize,
|
|
45
|
-
}: RowCenterContainerProps) => {
|
|
46
|
-
const gapBetweenStyles = gapBetweenItem ? { gap: gapBetweenItem } : {};
|
|
47
|
-
|
|
48
|
-
const widthStyles = minWidthContainer
|
|
49
|
-
? { ...gapBetweenStyles, minWidth: minWidthContainer }
|
|
50
|
-
: gapBetweenStyles;
|
|
51
|
-
|
|
52
|
-
const containerStyles = minHeightContainer
|
|
53
|
-
? { ...widthStyles, minHeight: minHeightContainer }
|
|
54
|
-
: widthStyles;
|
|
55
|
-
|
|
56
|
-
const leftContainerStyles = LeftContainerSize || {};
|
|
57
|
-
|
|
58
|
-
const centerContainerStyles = CenterContainerSize || {};
|
|
59
|
-
|
|
60
|
-
const rightContainerStyles = RightContainerSize || {};
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<div style={containerStyles} className="row-layout-main-container">
|
|
64
|
-
<div
|
|
65
|
-
style={leftContainerStyles}
|
|
66
|
-
className="row-layout-main-container__item-left"
|
|
67
|
-
>
|
|
68
|
-
{LeftItem}
|
|
69
|
-
</div>
|
|
70
|
-
<div
|
|
71
|
-
style={centerContainerStyles}
|
|
72
|
-
className="row-layout-main-container__item-center"
|
|
73
|
-
>
|
|
74
|
-
{CenterItem}
|
|
75
|
-
</div>
|
|
76
|
-
{RightItem && (
|
|
77
|
-
<div
|
|
78
|
-
style={rightContainerStyles}
|
|
79
|
-
className="row-layout-main-container__item-right"
|
|
80
|
-
>
|
|
81
|
-
{RightItem}
|
|
82
|
-
</div>
|
|
83
|
-
)}
|
|
84
|
-
</div>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export default RowCenterContainer;
|
|
89
|
-
|
|
90
|
-
/*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* */
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.row-left-layout-main-container{
|
|
2
|
-
// max-width: $row--main-container-max-width;
|
|
3
|
-
// min-width: $row--main-container-max-width;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
flex-wrap: nowrap;
|
|
7
|
-
|
|
8
|
-
justify-content: flex-start;
|
|
9
|
-
align-items: center;
|
|
10
|
-
margin: 0 auto;
|
|
11
|
-
|
|
12
|
-
gap: 1px;
|
|
13
|
-
|
|
14
|
-
width: 100%;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
&__item-left {
|
|
18
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
19
|
-
flex-grow: 1;
|
|
20
|
-
flex-shrink: 1;
|
|
21
|
-
|
|
22
|
-
//flex-basis: 56px;
|
|
23
|
-
//min-width: 56px;
|
|
24
|
-
//max-width: 56px;
|
|
25
|
-
//min-height: 56px;
|
|
26
|
-
//max-height: 56px;
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
&__item-center {
|
|
30
|
-
// flex: 3 2 $row-main-container-item-center-width;
|
|
31
|
-
flex-grow: 1;
|
|
32
|
-
flex-shrink: 1;
|
|
33
|
-
//flex-basis: 50px;
|
|
34
|
-
//min-height: 50px;
|
|
35
|
-
//max-height: 50px;
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
&__item-right {
|
|
39
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
40
|
-
flex-grow: 1;
|
|
41
|
-
flex-shrink: 1;
|
|
42
|
-
// min-width: calc(100% / 5 );
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './RowLeftContainer.scss';
|
|
3
|
-
|
|
4
|
-
export type RowLeftContainerProps = {
|
|
5
|
-
LeftItem?: React.ReactNode;
|
|
6
|
-
CenterItem?: React.ReactNode;
|
|
7
|
-
RightItem?: React.ReactNode;
|
|
8
|
-
gapBetweenItem?: string;
|
|
9
|
-
minWidthContainer?: string;
|
|
10
|
-
minHeightContainer?: string;
|
|
11
|
-
LeftContainerSize?: {
|
|
12
|
-
flexBasis: string;
|
|
13
|
-
minWidth: string;
|
|
14
|
-
maxWidth: string;
|
|
15
|
-
minHeight: string;
|
|
16
|
-
maxHeight: string;
|
|
17
|
-
};
|
|
18
|
-
CenterContainerSize?: {
|
|
19
|
-
flexBasis: string;
|
|
20
|
-
minWidth?: string;
|
|
21
|
-
maxWidth?: string;
|
|
22
|
-
minHeight: string;
|
|
23
|
-
maxHeight: string;
|
|
24
|
-
};
|
|
25
|
-
RightContainerSize?: {
|
|
26
|
-
flexBasis: string;
|
|
27
|
-
minWidth: string;
|
|
28
|
-
maxWidth: string;
|
|
29
|
-
minHeight: string;
|
|
30
|
-
maxHeight: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line react/function-component-definition
|
|
35
|
-
const RowLeftContainer: React.FC<RowLeftContainerProps> = ({
|
|
36
|
-
LeftItem,
|
|
37
|
-
CenterItem,
|
|
38
|
-
RightItem,
|
|
39
|
-
gapBetweenItem,
|
|
40
|
-
minWidthContainer,
|
|
41
|
-
minHeightContainer,
|
|
42
|
-
LeftContainerSize,
|
|
43
|
-
CenterContainerSize,
|
|
44
|
-
RightContainerSize,
|
|
45
|
-
}: RowLeftContainerProps) => {
|
|
46
|
-
const gapBetweenStyles = gapBetweenItem ? { gap: gapBetweenItem } : {};
|
|
47
|
-
|
|
48
|
-
const widthStyles = minWidthContainer
|
|
49
|
-
? { ...gapBetweenStyles, minWidth: minWidthContainer }
|
|
50
|
-
: gapBetweenStyles;
|
|
51
|
-
|
|
52
|
-
const containerStyles = minHeightContainer
|
|
53
|
-
? { ...widthStyles, minHeight: minHeightContainer }
|
|
54
|
-
: widthStyles;
|
|
55
|
-
|
|
56
|
-
const leftContainerStyles = LeftContainerSize || {};
|
|
57
|
-
|
|
58
|
-
const centerContainerStyles = CenterContainerSize || {};
|
|
59
|
-
|
|
60
|
-
const rightContainerStyles = RightContainerSize || {};
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<div style={containerStyles} className="row-left-layout-main-container">
|
|
64
|
-
{LeftItem && (
|
|
65
|
-
<div
|
|
66
|
-
style={leftContainerStyles}
|
|
67
|
-
className="row-left-layout-main-container__item-left"
|
|
68
|
-
>
|
|
69
|
-
{LeftItem}
|
|
70
|
-
</div>
|
|
71
|
-
)}
|
|
72
|
-
<div
|
|
73
|
-
style={centerContainerStyles}
|
|
74
|
-
className="row-left-layout-main-container__item-center"
|
|
75
|
-
>
|
|
76
|
-
{CenterItem}
|
|
77
|
-
</div>
|
|
78
|
-
{RightItem && (
|
|
79
|
-
<div
|
|
80
|
-
style={rightContainerStyles}
|
|
81
|
-
className="row-left-layout-main-container__item-right"
|
|
82
|
-
>
|
|
83
|
-
{RightItem}
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
</div>
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default RowLeftContainer;
|
|
91
|
-
|
|
92
|
-
/*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* */
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.row-right-layout-main-container{
|
|
2
|
-
// max-width: $row--main-container-max-width;
|
|
3
|
-
// min-width: $row--main-container-max-width;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
flex-wrap: nowrap;
|
|
7
|
-
|
|
8
|
-
justify-content: flex-end;
|
|
9
|
-
align-items: flex-end;
|
|
10
|
-
margin: 0 auto;
|
|
11
|
-
|
|
12
|
-
gap: 1px;
|
|
13
|
-
|
|
14
|
-
width: 100%;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
&__item-left {
|
|
18
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
19
|
-
flex-grow: 1;
|
|
20
|
-
flex-shrink: 1;
|
|
21
|
-
|
|
22
|
-
//flex-basis: 56px;
|
|
23
|
-
//min-width: 56px;
|
|
24
|
-
//max-width: 56px;
|
|
25
|
-
//min-height: 56px;
|
|
26
|
-
//max-height: 56px;
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
&__item-center {
|
|
30
|
-
// flex: 3 2 $row-main-container-item-center-width;
|
|
31
|
-
flex-grow: 1;
|
|
32
|
-
flex-shrink: 1;
|
|
33
|
-
//flex-basis: 50px;
|
|
34
|
-
//min-height: 50px;
|
|
35
|
-
//max-height: 50px;
|
|
36
|
-
//border: 1px solid green;
|
|
37
|
-
}
|
|
38
|
-
&__item-right {
|
|
39
|
-
// flex: 1 1 $row-main-container-item-width;
|
|
40
|
-
flex-grow: 1;
|
|
41
|
-
flex-shrink: 1;
|
|
42
|
-
// min-width: calc(100% / 5 );
|
|
43
|
-
// border: 1px solid red;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './RowRightContainer.scss';
|
|
3
|
-
|
|
4
|
-
export type RowRightContainerProps = {
|
|
5
|
-
LeftItem?: React.ReactNode;
|
|
6
|
-
CenterItem?: React.ReactNode;
|
|
7
|
-
RightItem?: React.ReactNode;
|
|
8
|
-
gapBetweenItem?: string;
|
|
9
|
-
minWidthContainer?: string;
|
|
10
|
-
minHeightContainer?: string;
|
|
11
|
-
LeftContainerSize?: {
|
|
12
|
-
flexBasis: string;
|
|
13
|
-
minWidth: string;
|
|
14
|
-
maxWidth: string;
|
|
15
|
-
minHeight: string;
|
|
16
|
-
maxHeight: string;
|
|
17
|
-
};
|
|
18
|
-
CenterContainerSize?: {
|
|
19
|
-
flexBasis: string;
|
|
20
|
-
minWidth?: string;
|
|
21
|
-
maxWidth?: string;
|
|
22
|
-
minHeight: string;
|
|
23
|
-
maxHeight: string;
|
|
24
|
-
};
|
|
25
|
-
RightContainerSize?: {
|
|
26
|
-
flexBasis: string;
|
|
27
|
-
minWidth: string;
|
|
28
|
-
maxWidth: string;
|
|
29
|
-
minHeight: string;
|
|
30
|
-
maxHeight: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line react/function-component-definition
|
|
35
|
-
const RowRightContainer: React.FC<RowRightContainerProps> = ({
|
|
36
|
-
LeftItem,
|
|
37
|
-
CenterItem,
|
|
38
|
-
RightItem,
|
|
39
|
-
gapBetweenItem,
|
|
40
|
-
minWidthContainer,
|
|
41
|
-
minHeightContainer,
|
|
42
|
-
LeftContainerSize,
|
|
43
|
-
CenterContainerSize,
|
|
44
|
-
RightContainerSize,
|
|
45
|
-
}: RowRightContainerProps) => {
|
|
46
|
-
const gapBetweenStyles = gapBetweenItem ? { gap: gapBetweenItem } : {};
|
|
47
|
-
|
|
48
|
-
const widthStyles = minWidthContainer
|
|
49
|
-
? { ...gapBetweenStyles, minWidth: minWidthContainer }
|
|
50
|
-
: gapBetweenStyles;
|
|
51
|
-
|
|
52
|
-
const containerStyles = minHeightContainer
|
|
53
|
-
? { ...widthStyles, minHeight: minHeightContainer }
|
|
54
|
-
: widthStyles;
|
|
55
|
-
|
|
56
|
-
const leftContainerStyles = LeftContainerSize || {};
|
|
57
|
-
|
|
58
|
-
const centerContainerStyles = CenterContainerSize || {};
|
|
59
|
-
|
|
60
|
-
const rightContainerStyles = RightContainerSize || {};
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<div style={containerStyles} className="row-right-layout-main-container">
|
|
64
|
-
{LeftItem && (
|
|
65
|
-
<div
|
|
66
|
-
style={leftContainerStyles}
|
|
67
|
-
className="row-right-layout-main-container__item-left"
|
|
68
|
-
>
|
|
69
|
-
{LeftItem}
|
|
70
|
-
</div>
|
|
71
|
-
)}
|
|
72
|
-
<div
|
|
73
|
-
style={centerContainerStyles}
|
|
74
|
-
className="row-right-layout-main-container__item-center"
|
|
75
|
-
>
|
|
76
|
-
{CenterItem}
|
|
77
|
-
</div>
|
|
78
|
-
{RightItem && (
|
|
79
|
-
<div
|
|
80
|
-
style={rightContainerStyles}
|
|
81
|
-
className="row-right-layout-main-container__item-right"
|
|
82
|
-
>
|
|
83
|
-
{RightItem}
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
86
|
-
</div>
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export default RowRightContainer;
|
|
91
|
-
|
|
92
|
-
/*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* */
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.list {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.list .spinner {
|
|
11
|
-
display: block;
|
|
12
|
-
height: 16px;
|
|
13
|
-
left: 0;
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: 0;
|
|
16
|
-
top: -16px;
|
|
17
|
-
transition: all 0.2s ease;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.list .spinner.active {
|
|
21
|
-
top: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.list .list-content {
|
|
25
|
-
flex: 1;
|
|
26
|
-
overflow-x: hidden;
|
|
27
|
-
// overflow-y: hidden;
|
|
28
|
-
overflow-y: auto;
|
|
29
|
-
width: 100%;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.list {
|
|
35
|
-
::-webkit-scrollbar{
|
|
36
|
-
// display: none;
|
|
37
|
-
width: 0px !important;
|
|
38
|
-
background: transparent;
|
|
39
|
-
}
|
|
40
|
-
::-webkit-scrollbar-thumb {
|
|
41
|
-
background: transparent;
|
|
42
|
-
}
|
|
43
|
-
:hover{
|
|
44
|
-
overflow-y: scroll;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
|
|
4
|
-
import './ScrollableContainer.scss';
|
|
5
|
-
|
|
6
|
-
interface FlatListProps<T> {
|
|
7
|
-
className?: string;
|
|
8
|
-
data: Array<T>;
|
|
9
|
-
ListEmptyComponent?: React.ComponentClass | React.FunctionComponent;
|
|
10
|
-
onEndReached?: VoidFunction;
|
|
11
|
-
onEndReachedThreshold?: number;
|
|
12
|
-
refreshing?: boolean;
|
|
13
|
-
autoScrollToBottom?: boolean;
|
|
14
|
-
renderItem: (item: T, index: number) => React.ReactElement | null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default function ScrollableContainer<T>(props: FlatListProps<T>) {
|
|
18
|
-
const {
|
|
19
|
-
className,
|
|
20
|
-
data,
|
|
21
|
-
ListEmptyComponent,
|
|
22
|
-
onEndReached,
|
|
23
|
-
onEndReachedThreshold,
|
|
24
|
-
refreshing,
|
|
25
|
-
autoScrollToBottom,
|
|
26
|
-
renderItem,
|
|
27
|
-
} = props;
|
|
28
|
-
|
|
29
|
-
const container = useRef<HTMLDivElement>(null);
|
|
30
|
-
|
|
31
|
-
const scrollHandler = () => {
|
|
32
|
-
console.log('call scrollHandler');
|
|
33
|
-
if (container.current) {
|
|
34
|
-
const { scrollHeight, clientHeight, scrollTop } = container.current;
|
|
35
|
-
const scrollOffset = (scrollTop + clientHeight) / scrollHeight;
|
|
36
|
-
let endReached = false;
|
|
37
|
-
|
|
38
|
-
if (typeof onEndReachedThreshold === 'number') {
|
|
39
|
-
if (scrollOffset >= onEndReachedThreshold) {
|
|
40
|
-
endReached = true;
|
|
41
|
-
}
|
|
42
|
-
} else if (scrollOffset >= 0.99) {
|
|
43
|
-
endReached = true;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (endReached && onEndReached) {
|
|
47
|
-
onEndReached();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
const messageEndRef = useRef<HTMLDivElement>(null);
|
|
52
|
-
|
|
53
|
-
const scrollToBottom = () => {
|
|
54
|
-
console.log('call scrollToBottom start');
|
|
55
|
-
if (autoScrollToBottom)
|
|
56
|
-
messageEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
console.log('useEffect []');
|
|
61
|
-
if (autoScrollToBottom) scrollToBottom();
|
|
62
|
-
}, []);
|
|
63
|
-
|
|
64
|
-
useEffect(() => {
|
|
65
|
-
console.log('useEffect messages');
|
|
66
|
-
if (autoScrollToBottom) scrollToBottom();
|
|
67
|
-
}, [data.length]);
|
|
68
|
-
console.log('çount items to scroll:', data.length);
|
|
69
|
-
console.log('data to scrolling: ', JSON.stringify(data));
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<div className={cn('list', className)}>
|
|
73
|
-
{refreshing && <div>loading...</div>}
|
|
74
|
-
{data && data.length ? (
|
|
75
|
-
<div className="list-content" onScroll={scrollHandler} ref={container}>
|
|
76
|
-
{/* {data.map(renderItem)} */}
|
|
77
|
-
{data.map((it, index) => renderItem(it, index))}
|
|
78
|
-
<div style={{ float: 'left', clear: 'both' }} ref={messageEndRef} />
|
|
79
|
-
</div>
|
|
80
|
-
) : (
|
|
81
|
-
!refreshing && ListEmptyComponent && <ListEmptyComponent />
|
|
82
|
-
)}
|
|
83
|
-
</div>
|
|
84
|
-
);
|
|
85
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import './DesktopLayout.scss';
|
|
3
|
-
import ColumnContainer from '../../containers/ColumnContainer/ColumnContainer';
|
|
4
|
-
import BaseViewModel from '../../../Views/Base/BaseViewModel';
|
|
5
|
-
import { ModalContext } from '../../providers/ModalContextProvider/Modal';
|
|
6
|
-
import DialogsComponent from '../../../Views/Dialogs/Dialogs';
|
|
7
|
-
import HeaderDialogs from '../../UI/Dialogs/HeaderDialogs/HeaderDialogs';
|
|
8
|
-
import DialogInformation from '../../UI/Dialogs/DialogInformation/DialogInformation';
|
|
9
|
-
import { DialogsViewModel } from '../../../Views/Dialogs/DialogViewModel';
|
|
10
|
-
import useDialogsViewModel from '../../../Views/Dialogs/useDialogsViewModel';
|
|
11
|
-
import { DialogEntity } from '../../../../Domain/entity/DialogEntity';
|
|
12
|
-
import { Pagination } from '../../../../Domain/repository/Pagination';
|
|
13
|
-
import CreateDialog from '../../UI/Dialogs/CreateDialog/CreateDialog';
|
|
14
|
-
|
|
15
|
-
function Desktop() {
|
|
16
|
-
console.log('create DesktopLayoutDesktopLayout');
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
|
-
const { handleModal } = React.useContext(ModalContext);
|
|
19
|
-
const [selectedDialog, setSelectedDialog] =
|
|
20
|
-
React.useState<BaseViewModel<DialogEntity>>();
|
|
21
|
-
|
|
22
|
-
const dialogsViewModel: DialogsViewModel = useDialogsViewModel();
|
|
23
|
-
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
console.log('DESKTOP USE EFFECT in DesktopLayoutDesktopLayout');
|
|
26
|
-
const pagination: Pagination = new Pagination();
|
|
27
|
-
|
|
28
|
-
dialogsViewModel?.getDialogs(pagination);
|
|
29
|
-
|
|
30
|
-
return () => {
|
|
31
|
-
// console.log('call removeListener()');
|
|
32
|
-
// listChatsViewModel?.removeListener();
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<div className="desktop-layout-main-container">
|
|
38
|
-
<div className="desktop-layout-main-container__item-left">
|
|
39
|
-
<DialogsComponent
|
|
40
|
-
dialogsViewModel={dialogsViewModel}
|
|
41
|
-
itemSelectHandler={setSelectedDialog}
|
|
42
|
-
header={
|
|
43
|
-
<HeaderDialogs
|
|
44
|
-
title="Dialogs"
|
|
45
|
-
ClickActionHandler={() => {
|
|
46
|
-
handleModal(
|
|
47
|
-
true,
|
|
48
|
-
<CreateDialog
|
|
49
|
-
createPrivateDialogClickHandler={() =>
|
|
50
|
-
console.log('click private')
|
|
51
|
-
}
|
|
52
|
-
createPrivateDialogTouchHandler={() =>
|
|
53
|
-
console.log('touch private')
|
|
54
|
-
}
|
|
55
|
-
createGroupDialogClickHandler={() =>
|
|
56
|
-
console.log('click group')
|
|
57
|
-
}
|
|
58
|
-
createGroupDialogTouchHandler={() =>
|
|
59
|
-
console.log('touch group')
|
|
60
|
-
}
|
|
61
|
-
createPublicDialogClickHandler={() =>
|
|
62
|
-
console.log('click public')
|
|
63
|
-
}
|
|
64
|
-
createPublicDialogTouchHandler={() =>
|
|
65
|
-
console.log('touch public')
|
|
66
|
-
}
|
|
67
|
-
/>,
|
|
68
|
-
'New dialog',
|
|
69
|
-
false,
|
|
70
|
-
false,
|
|
71
|
-
);
|
|
72
|
-
}}
|
|
73
|
-
/>
|
|
74
|
-
}
|
|
75
|
-
/>
|
|
76
|
-
</div>
|
|
77
|
-
<div className="desktop-layout-main-container__item-center">2</div>
|
|
78
|
-
<div className="desktop-layout-main-container__item-right">
|
|
79
|
-
<ColumnContainer>
|
|
80
|
-
{/* selected dialog: */}
|
|
81
|
-
{/* {selectedDialog?.entity.name} */}
|
|
82
|
-
{/* <br /> */}
|
|
83
|
-
{/* id: */}
|
|
84
|
-
{/* {selectedDialog?.entity.id} */}
|
|
85
|
-
{/* <hr /> */}
|
|
86
|
-
{selectedDialog ? (
|
|
87
|
-
<DialogInformation
|
|
88
|
-
dialog={selectedDialog.entity}
|
|
89
|
-
dialogViewModel={dialogsViewModel}
|
|
90
|
-
closeInformationHandler={() => {
|
|
91
|
-
console.log('close dialog');
|
|
92
|
-
}}
|
|
93
|
-
/>
|
|
94
|
-
) : (
|
|
95
|
-
<div>Select dialog to chatting</div>
|
|
96
|
-
)}
|
|
97
|
-
</ColumnContainer>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export default Desktop;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
$desktop-main-container-max-width: 1360px;
|
|
2
|
-
$desktop-main-container-min-height: 800px;
|
|
3
|
-
$desktop-main-container-item-width: 320px;
|
|
4
|
-
$desktop-main-container-item-center-width: 720px;
|
|
5
|
-
// $desktop-main-container-item-center-width: 1040px;
|
|
6
|
-
|
|
7
|
-
.desktop-layout-main-container{
|
|
8
|
-
// border: 10px solid #6c38cc;
|
|
9
|
-
min-height: $desktop-main-container-min-height;
|
|
10
|
-
max-width: $desktop-main-container-max-width;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-flow: row nowrap;
|
|
13
|
-
justify-content: flex-start;
|
|
14
|
-
align-items: flex-start;
|
|
15
|
-
margin: 0 auto;
|
|
16
|
-
|
|
17
|
-
&__item-left {
|
|
18
|
-
border-bottom: 1px solid var(--divider);
|
|
19
|
-
flex: 1 1 $desktop-main-container-item-width;
|
|
20
|
-
max-width: $desktop-main-container-item-width
|
|
21
|
-
}
|
|
22
|
-
&__item-right {
|
|
23
|
-
border: 1px solid var(--divider);
|
|
24
|
-
flex: 1 1 $desktop-main-container-item-width;
|
|
25
|
-
max-width: $desktop-main-container-item-width
|
|
26
|
-
}
|
|
27
|
-
&__item-center {
|
|
28
|
-
border: 1px solid var(--divider);
|
|
29
|
-
flex: 3 2 $desktop-main-container-item-center-width;
|
|
30
|
-
}
|
|
31
|
-
}
|