@layers-app/shared 0.1.5 → 0.2.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/dist/assets/enitityIcons/flow.svg.js +5 -0
- package/dist/assets/enitityIcons/form.svg.js +5 -0
- package/dist/assets/enitityIcons/index.d.ts +5 -0
- package/dist/assets/enitityIcons/page.svg.js +5 -0
- package/dist/assets/enitityIcons/sprint.svg.js +5 -0
- package/dist/assets/fileTypes/archieve.svg.js +4 -0
- package/dist/assets/fileTypes/archives.svg.js +5 -0
- package/dist/assets/fileTypes/audio.svg.js +5 -0
- package/dist/assets/fileTypes/code.svg.js +5 -0
- package/dist/assets/fileTypes/diagram.svg.js +4 -0
- package/dist/assets/fileTypes/documents.svg.js +4 -0
- package/dist/assets/fileTypes/documentsStorage.svg.js +5 -0
- package/dist/assets/fileTypes/docx.svg.js +4 -0
- package/dist/assets/fileTypes/folder.svg.js +4 -0
- package/dist/assets/fileTypes/images.svg.js +5 -0
- package/dist/assets/fileTypes/media.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg2.js +5 -0
- package/dist/assets/fileTypes/pptx.svg.js +4 -0
- package/dist/assets/fileTypes/presentation.svg.js +4 -0
- package/dist/assets/fileTypes/sheet.svg.js +4 -0
- package/dist/assets/fileTypes/videos.svg.js +5 -0
- package/dist/assets/fileTypes/xlsx.svg.js +4 -0
- package/dist/assets/images/flags/es.svg.js +4 -0
- package/dist/assets/images/flags/ru.svg.js +4 -0
- package/dist/assets/images/flags/us.svg.js +4 -0
- package/dist/assets/images/person.png.js +4 -0
- package/dist/assets/images/person2.png.js +4 -0
- package/dist/assets/images/person3.png.js +4 -0
- package/dist/assets/images/person4.png.js +4 -0
- package/dist/assets/jsons/emoji-categorized.json.js +4 -0
- package/dist/assets/jsons/icons.min.json.d.ts +1 -1
- package/dist/assets/jsons/icons.min.json.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +5 -0
- package/dist/assets/logo-copyright.svg.js +5 -0
- package/dist/assets/svg/alertMan.svg.js +7 -0
- package/dist/assets/svg/default_icon.svg.js +4 -0
- package/dist/assets/svg/discord-icon.svg.js +5 -0
- package/dist/assets/svg/discord.svg.js +5 -0
- package/dist/assets/svg/dog.svg.js +5 -0
- package/dist/assets/svg/layers-logo-full.svg.js +4 -0
- package/dist/assets/svg/noData/404.svg.js +9 -0
- package/dist/assets/svg/noData/500.svg.js +5 -0
- package/dist/assets/svg/noData/empty.svg.js +5 -0
- package/dist/assets/svg/noData/folder.svg.js +5 -0
- package/dist/assets/svg/noData/noAccess.svg.js +7 -0
- package/dist/assets/svg/noData/noAnswers.svg.js +5 -0
- package/dist/assets/svg/noData/noCloud.svg.js +5 -0
- package/dist/assets/svg/noData/noComments.svg.js +5 -0
- package/dist/assets/svg/noData/noData.svg.js +5 -0
- package/dist/assets/svg/noData/noFlows.svg.js +5 -0
- package/dist/assets/svg/noData/noForms.svg.js +5 -0
- package/dist/assets/svg/noData/noGroups.svg.js +17 -0
- package/dist/assets/svg/noData/noImage.svg.js +5 -0
- package/dist/assets/svg/noData/noMembers.svg.js +7 -0
- package/dist/assets/svg/noData/noNotifications.svg.js +5 -0
- package/dist/assets/svg/noData/noResults.svg.js +5 -0
- package/dist/assets/svg/noData/noSearchResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTaskResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTasks.svg.js +5 -0
- package/dist/assets/svg/noData/noWorkspaces.svg.js +7 -0
- package/dist/assets/svg/noData/trash.svg.js +7 -0
- package/dist/assets/svg/notSuccessMan.svg.js +7 -0
- package/dist/assets/svg/successMan.svg.js +5 -0
- package/dist/assets/svg/telegram-icon.svg.js +5 -0
- package/dist/assets/svg/telegram.svg.js +5 -0
- package/dist/components/AlertsBlock/index.js +53 -0
- package/dist/components/AnimationWrapper/index.js +15 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.js +56 -0
- package/dist/components/AppContainer/AppContainer.module.css.js +15 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +44 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +52 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.js +16 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +67 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -0
- package/dist/components/AppContainer/{Header.d.ts → components/Header.d.ts} +1 -1
- package/dist/components/AppContainer/components/Header.js +9 -0
- package/dist/components/AppContainer/components/Main.js +18 -0
- package/dist/components/AppContainer/components/NavbarContent.js +6 -0
- package/dist/components/AppContainer/components/RightSidebar.js +30 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.js +27 -0
- package/dist/components/AppContainer/components/SlideAnimation.js +43 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +6 -2
- package/dist/components/AppContainer/components/ToolSidebar.js +84 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.js +28 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +122 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +9 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.js +58 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.js +42 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -1
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.js +44 -0
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +60 -0
- package/dist/components/AppContainer/hooks/useAppContainerActionsStore.js +10 -0
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +37 -0
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -3
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +62 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +10 -0
- package/dist/components/AppContainer/types.d.ts +8 -4
- package/dist/components/AppShell/AppShell.js +18 -0
- package/dist/components/AppShell/AppShell.module.css.js +19 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +4 -2
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +39 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.js +127 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.js +14 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +69 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +13 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +123 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +4 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +41 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +54 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +2 -1
- package/dist/components/AttachmentsGalleryModal/constants.js +21 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/helpers.js +40 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +35 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.js +49 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +28 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.js +61 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.js +16 -0
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +29 -0
- package/dist/components/BottomDrawerWithoutHeader/index.js +75 -0
- package/dist/components/BouncingLogo/BouncingLogo.js +22 -0
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +9 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.js +72 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +131 -0
- package/dist/components/ColorPicker/ColorPickerPopover.js +42 -0
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +61 -0
- package/dist/components/CommentComposer/index.d.ts +2 -1
- package/dist/components/CommentComposer/index.js +288 -0
- package/dist/components/CommentFilterMenu/index.js +92 -0
- package/dist/components/CommentsPanel/CommentsPanel.module.css.js +109 -0
- package/dist/components/CommentsPanel/components/CommentActionMenu.js +49 -0
- package/dist/components/CommentsPanel/components/CommentActions.js +151 -0
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentPanelListItem.js +366 -0
- package/dist/components/CommentsPanel/components/CommentTabFilter.js +53 -0
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.js +17 -0
- package/dist/components/CommentsPanel/components/CommentsFilterHeader.js +83 -0
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.js +63 -0
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentsPanelList.js +74 -0
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.js +108 -0
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.js +142 -0
- package/dist/components/CommentsPanel/components/Icon.js +29 -0
- package/dist/components/CommentsPanel/index.d.ts +2 -1
- package/dist/components/CommentsPanel/index.js +137 -0
- package/dist/components/CommentsPanel/store.js +32 -0
- package/dist/components/CommentsPanel/types.d.ts +5 -5
- package/dist/components/CommentsPanel/utils.js +189 -0
- package/dist/components/CommunitiesDialog/index.js +149 -0
- package/dist/components/CommunitiesDialog/styles.module.css.js +7 -0
- package/dist/components/Copyright/Copyright.module.css.js +7 -0
- package/dist/components/Copyright/index.d.ts +1 -2
- package/dist/components/Copyright/index.js +32 -0
- package/dist/components/CustomKBD/CustomKBD.module.css.js +7 -0
- package/dist/components/CustomKBD/index.js +40 -0
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +273 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.js +222 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +13 -0
- package/dist/components/EmojiPicker/IconsPanel.js +267 -0
- package/dist/components/EmojiPicker/constants.js +36 -0
- package/dist/components/EmojiPicker/custom-icons/StatusCancel.js +37 -0
- package/dist/components/EmojiPicker/custom-icons/StatusDone.js +29 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress00.js +17 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress10.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress100.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress20.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress30.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress40.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress50.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress60.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress70.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress80.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress90.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +99 -0
- package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
- package/dist/components/EmojiPicker/getIconsList.js +32 -0
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
- package/dist/components/EmojiPicker/getRandomIcon.js +10 -0
- package/dist/components/EntityIcon.d.ts +2 -0
- package/dist/components/EntityIcon.js +95 -0
- package/dist/components/EntityTitle/EntityTitle.js +86 -0
- package/dist/components/EntityTitle/EntityTitle.module.css.js +9 -0
- package/dist/components/ErrorAlert/index.js +20 -0
- package/dist/components/ErrorPage/components/Error403.js +51 -0
- package/dist/components/ErrorPage/components/Error404.js +5 -0
- package/dist/components/ErrorPage/components/Error406.js +47 -0
- package/dist/components/ErrorPage/components/Error500.js +58 -0
- package/dist/components/ErrorPage/components/ErrorUndefined.js +44 -0
- package/dist/components/ErrorPage/index.js +25 -0
- package/dist/components/FilePicker/FilePicker.js +242 -0
- package/dist/components/FilePicker/FilePicker.module.css.js +13 -0
- package/dist/components/FilePicker/FilePickerGallery.js +38 -0
- package/dist/components/FilePicker/FilePickerGiphy.js +91 -0
- package/dist/components/FilePicker/FilePickerLink.js +48 -0
- package/dist/components/FilePicker/FilePickerSkeletonLoader.js +9 -0
- package/dist/components/FilePicker/FilePickerUnsplash.js +95 -0
- package/dist/components/FilePicker/FilePickerUpload.js +86 -0
- package/dist/components/FilePicker/api/giphyApi.js +26 -0
- package/dist/components/FilePicker/api/unsplashApi.js +29 -0
- package/dist/components/FilePicker/types.d.ts +1 -0
- package/dist/components/FormViewer/FormViewer.js +42 -0
- package/dist/components/FormViewer/FormViewer.module.css.js +37 -0
- package/dist/components/FormViewer/components/AllSlidesLayout.js +24 -0
- package/dist/components/FormViewer/components/Container.js +27 -0
- package/dist/components/FormViewer/components/ListFocusBox.js +22 -0
- package/dist/components/FormViewer/components/NavControls.js +58 -0
- package/dist/components/FormViewer/components/Navigation/Navigation.js +37 -0
- package/dist/components/FormViewer/components/OneSlideLayput.js +133 -0
- package/dist/components/FormViewer/components/Step.js +225 -0
- package/dist/components/FormViewer/components/StepDescription.js +73 -0
- package/dist/components/FormViewer/components/StepTitle.js +118 -0
- package/dist/components/FormViewer/components/fields/AddOptionButton.js +24 -0
- package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.js +63 -0
- package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.js +70 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.js +35 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.js +135 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +37 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +93 -0
- package/dist/components/FormViewer/components/fields/ConfirmButton.js +49 -0
- package/dist/components/FormViewer/components/fields/ConfirmField.js +21 -0
- package/dist/components/FormViewer/components/fields/DateField.js +31 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.js +81 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.js +117 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.js +70 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EmailField.js +26 -0
- package/dist/components/FormViewer/components/fields/LocationField.js +27 -0
- package/dist/components/FormViewer/components/fields/LongTextField.js +48 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.js +38 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.js +152 -0
- package/dist/components/FormViewer/components/fields/NumberField.js +28 -0
- package/dist/components/FormViewer/components/fields/PhoneField.js +24 -0
- package/dist/components/FormViewer/components/fields/ProgressLine.js +30 -0
- package/dist/components/FormViewer/components/fields/RatingField.js +33 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +154 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.js +110 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +15 -0
- package/dist/components/FormViewer/components/fields/SliderField.js +31 -0
- package/dist/components/FormViewer/components/fields/StartButton.js +34 -0
- package/dist/components/FormViewer/components/fields/StartField.js +21 -0
- package/dist/components/FormViewer/components/fields/TextField.js +31 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +155 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.js +62 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/YesNoField.js +37 -0
- package/dist/components/FormViewer/constants/defaultTheme.js +41 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +43 -0
- package/dist/components/FormViewer/helpers/controls.js +79 -0
- package/dist/components/FormViewer/helpers/cssScoping.js +10 -0
- package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
- package/dist/components/FormViewer/helpers/helpers.js +9 -0
- package/dist/components/FormViewer/helpers/slides.js +35 -0
- package/dist/components/FormViewer/helpers/staticClasses.js +48 -0
- package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
- package/dist/components/FormViewer/helpers/steps.js +55 -0
- package/dist/components/FormViewer/helpers/themeUtils.js +8 -0
- package/dist/components/FormViewer/helpers/validation.js +87 -0
- package/dist/components/FormViewer/hooks/useActiveControl.js +9 -0
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useActiveStep.js +9 -0
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +78 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +132 -0
- package/dist/components/FormViewer/hooks/useFormMobile.js +15 -0
- package/dist/components/FormViewer/hooks/useInterpolateText.js +57 -0
- package/dist/components/FormViewer/store/formStore.d.ts +6 -6
- package/dist/components/FormViewer/store/formStore.js +84 -0
- package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
- package/dist/components/FormViewer/store/formStoreApi.js +383 -0
- package/dist/components/FormViewer/store/selectors.d.ts +342 -342
- package/dist/components/FormViewer/store/selectors.js +98 -0
- package/dist/components/FormViewer/types/form.js +40 -0
- package/dist/components/FormViewer/types/schemes.d.ts +22 -22
- package/dist/components/FormViewer/types/schemes.js +314 -0
- package/dist/components/ImageModal/ImageModal.js +165 -0
- package/dist/components/LanguagePicker/LanguagePicker.js +41 -0
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +7 -0
- package/dist/components/Loaders/BaseLoader.js +8 -0
- package/dist/components/Loaders/styles.module.css.js +9 -0
- package/dist/components/Logotype.js +40 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -2
- package/dist/components/NavMenu/NavMenu.js +98 -0
- package/dist/components/NavMenu/NavMenu.module.css.js +23 -0
- package/dist/components/NavMenu/components/DnDItem.js +44 -0
- package/dist/components/NavMenu/components/DnDProvider.js +64 -0
- package/dist/components/NavMenu/components/DraggableOverlay.js +18 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +27 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +5 -0
- package/dist/components/NavMenu/components/NavMenuItem.js +179 -0
- package/dist/components/NavMenu/components/NavMenuLabel.js +18 -0
- package/dist/components/NavMenu/store.d.ts +12 -2
- package/dist/components/NavMenu/store.js +61 -0
- package/dist/components/NavMenu/types.d.ts +10 -3
- package/dist/components/NavbarResizer/NavbarResizer.js +42 -0
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +7 -0
- package/dist/components/NewColorPicker/components/Pallete.js +46 -0
- package/dist/components/NewColorPicker/components/Target.js +47 -0
- package/dist/components/NewColorPicker/index.js +92 -0
- package/dist/components/NoData/NoData.js +103 -0
- package/dist/components/NoData/NoData.module.css.js +7 -0
- package/dist/components/NotFound/NoFound.js +65 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.js +53 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +19 -0
- package/dist/components/Notification/Notification.js +117 -0
- package/dist/components/Notification/Notification.module.css.js +7 -0
- package/dist/components/Notification/NotificationCard.js +92 -0
- package/dist/components/OnBoarding/OnBoardingPage.js +80 -0
- package/dist/components/OnBoarding/ProjectBoard.js +141 -0
- package/dist/components/OnBoarding/StepsNavBar.js +21 -0
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +42 -0
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +51 -0
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +45 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +42 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +22 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +217 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +16 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +56 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +272 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +9 -0
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +86 -0
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +26 -0
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +61 -0
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +42 -0
- package/dist/components/OnBoarding/steps/StartedStep.js +71 -0
- package/dist/components/OnBoarding/steps/Wrapper.js +49 -0
- package/dist/components/OnBoarding/steps/styles.module.css.js +17 -0
- package/dist/components/OnBoarding/styles.module.css.js +15 -0
- package/dist/components/PaymentCancel/PaymentCancel.js +41 -0
- package/dist/components/PaymentError/PaymentError.js +41 -0
- package/dist/components/PaymentSuccess/PaymentSuccess.js +41 -0
- package/dist/components/PinModal/PinModal.js +90 -0
- package/dist/components/PinModal/slice.js +28 -0
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +1 -0
- package/dist/components/ProjectIcon/ProjectIcon.js +88 -0
- package/dist/components/SearchFilters/SearchFilters.js +37 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +9 -0
- package/dist/components/SearchFilters/components/DateFilter.js +199 -0
- package/dist/components/SearchFilters/components/SearchHelp.js +121 -0
- package/dist/components/SearchFilters/components/Sort.js +99 -0
- package/dist/components/SearchFilters/components/Type.js +124 -0
- package/dist/components/SortableList/SortableList.js +44 -0
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +82 -0
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +62 -0
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +27 -0
- package/dist/components/StorageUsageProgress/index.js +52 -0
- package/dist/components/SubmitModal/index.js +12 -0
- package/dist/components/ThemeIndicator/index.js +21 -0
- package/dist/components/UserAvatar/index.d.ts +3 -2
- package/dist/components/UserAvatar/index.js +22 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +22 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +41 -0
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +211 -0
- package/dist/components/modals/RemoveConfirmModal.d.ts +8 -1
- package/dist/components/modals/RemoveConfirmModal.js +68 -0
- package/dist/components/table/FrontTable.js +21 -0
- package/dist/components/table/api.js +248 -0
- package/dist/components/table/components/Table.js +139 -0
- package/dist/components/table/components/TableAggregation.js +31 -0
- package/dist/components/table/components/TableCell.js +55 -0
- package/dist/components/table/components/TableHeaderCell.js +159 -0
- package/dist/components/table/components/TableHeaders.js +99 -0
- package/dist/components/table/components/TableMenu.js +59 -0
- package/dist/components/table/components/TablePagination.js +52 -0
- package/dist/components/table/components/TablePanel.js +26 -0
- package/dist/components/table/components/TableRow.js +85 -0
- package/dist/components/table/components/TableRows.js +66 -0
- package/dist/components/table/components/TableSearch.js +32 -0
- package/dist/components/table/components/TableSkeleton.js +60 -0
- package/dist/components/table/components/TableTitle.js +26 -0
- package/dist/components/table/constants.js +28 -0
- package/dist/components/table/export.js +58 -0
- package/dist/components/table/helpers/columns.js +198 -0
- package/dist/components/table/helpers/formatters.js +65 -0
- package/dist/components/table/hooks/TableProvider.js +62 -0
- package/dist/components/table/hooks/useColumnsResizing.js +51 -0
- package/dist/components/table/hooks/useCreateTable.js +9 -0
- package/dist/components/table/hooks/useSaveRowCount.js +9 -0
- package/dist/components/table/hooks/useSorting.js +36 -0
- package/dist/components/table/hooks/useTableStore.js +6 -0
- package/dist/components/table/selectors.js +203 -0
- package/dist/components/table/store.js +65 -0
- package/dist/components/table/types.js +17 -0
- package/dist/constants.js +19 -0
- package/dist/helpers/combineStatuses.js +5 -0
- package/dist/helpers/dates.js +15 -0
- package/dist/helpers/download.js +17 -0
- package/dist/helpers/feature.js +7 -0
- package/dist/helpers/fileUtils.js +33 -0
- package/dist/helpers/filterHierarchyByTypes.js +13 -0
- package/dist/helpers/formatBytes.js +8 -0
- package/dist/helpers/generateLink.js +9 -0
- package/dist/helpers/getFileIcons.js +42 -0
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.js +40 -0
- package/dist/helpers/getPartOfTheDay.js +12 -0
- package/dist/helpers/getRandomIconColor.js +17 -0
- package/dist/helpers/hotjar.d.ts +9 -0
- package/dist/helpers/hotjar.js +19 -0
- package/dist/helpers/isAppMode.js +4 -0
- package/dist/helpers/pickRandomEmoji.d.ts +1 -0
- package/dist/helpers/pickRandomEmoji.js +12 -0
- package/dist/helpers/showNotifications.js +72 -0
- package/dist/helpers/themeUtils.js +5 -0
- package/dist/helpers/validation.js +38 -0
- package/dist/hooks/useAsyncStatus.d.ts +8 -0
- package/dist/hooks/useAsyncStatus.js +26 -0
- package/dist/hooks/useDateFnsLocale.js +13 -0
- package/dist/hooks/useDateUtils.js +33 -0
- package/dist/hooks/useDisableWindowScroll.js +24 -0
- package/dist/hooks/useEvent.js +12 -0
- package/dist/hooks/useFormatDistance.js +17 -0
- package/dist/hooks/useMenu.js +9 -0
- package/dist/hooks/useNumberQueryParam.js +14 -0
- package/dist/hooks/useOAuthErrorParams.js +16 -0
- package/dist/hooks/useOutsideClick.js +21 -0
- package/dist/hooks/useSwipeDetect.js +21 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +70 -76
- package/dist/index.js +397 -259
- package/dist/lang/locales/ui_en.json.d.ts +6 -5
- package/dist/lang/locales/ui_en.json.js +19 -0
- package/dist/lang/locales/ui_es.json.d.ts +2 -1
- package/dist/lang/locales/ui_es.json.js +19 -0
- package/dist/lang/locales/ui_ru.json.d.ts +2 -1
- package/dist/lang/locales/ui_ru.json.js +19 -0
- package/dist/store/accessOptionsControl.js +10 -0
- package/dist/store/discordDialogStore.js +14 -0
- package/dist/store/onboarding.js +53 -0
- package/dist/store/plansModal.js +13 -0
- package/dist/store/searchModal.js +13 -0
- package/dist/store/timezoneStore.js +19 -0
- package/dist/store/workspacesOrder.js +17 -0
- package/dist/utils/formatStorage.js +8 -0
- package/dist/utils/getPlanBadgeColor.js +17 -0
- package/dist/utils/queryParams.js +15 -0
- package/docs/README.md +486 -0
- package/package.json +32 -11
- package/dist/KanbanLayout-BnHAvyHl.js +0 -297
- package/dist/components/AppContainer/hooks/useHideHeader.d.ts +0 -1
- package/dist/components/AppContainer/hooks/useHideSidebar.d.ts +0 -1
- package/dist/components/AppTour/AppTour.d.ts +0 -7
- package/dist/components/AppTour/FinishModal.d.ts +0 -1
- package/dist/components/AppTour/HelloModal.d.ts +0 -1
- package/dist/components/AppTour/hooks/useAppTour.d.ts +0 -2
- package/dist/components/AppTour/index.d.ts +0 -4
- package/dist/components/AppTour/types.d.ts +0 -17
- package/dist/emoji-categorized-CRsMUQyD.js +0 -4
- package/dist/helpers/pickRandomIcon.d.ts +0 -1
- package/dist/helpers/token.d.ts +0 -3
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/index-BawytWAK.js +0 -96715
- package/dist/index.umd.cjs +0 -356
- /package/dist/components/AppContainer/{Main.d.ts → components/Main.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Box as s, Text as b, SimpleGrid as h, Tooltip as u, Menu as v, ActionIcon as x, alpha as c } from "@mantine/core";
|
|
3
|
+
const I = ({
|
|
4
|
+
value: d,
|
|
5
|
+
item: i,
|
|
6
|
+
onChange: r,
|
|
7
|
+
hideModeLabel: n,
|
|
8
|
+
radius: t,
|
|
9
|
+
hint: a
|
|
10
|
+
}) => /* @__PURE__ */ p(s, { children: [
|
|
11
|
+
!n && i.label && /* @__PURE__ */ e(b, { c: "dimmed", fz: "xs", pb: 3, children: i.label }),
|
|
12
|
+
/* @__PURE__ */ e(h, { cols: 5, spacing: 8, children: i.palette.map((l) => {
|
|
13
|
+
const o = l.value === "inherit";
|
|
14
|
+
return /* @__PURE__ */ e(
|
|
15
|
+
u,
|
|
16
|
+
{
|
|
17
|
+
label: l.label,
|
|
18
|
+
zIndex: 1e3,
|
|
19
|
+
disabled: a !== "tooltip",
|
|
20
|
+
children: /* @__PURE__ */ e(v.Item, { component: "div", p: 0, children: /* @__PURE__ */ e(
|
|
21
|
+
x,
|
|
22
|
+
{
|
|
23
|
+
title: a === "title" ? l.label : void 0,
|
|
24
|
+
variant: i.filled ? "filled" : "outline",
|
|
25
|
+
color: o ? "dark" : l.value,
|
|
26
|
+
bd: d === l.value ? `2px solid ${o ? "#ccc" : c(l.value, 1)}` : "1px solid #ccc",
|
|
27
|
+
bg: i.filled && o ? "white" : void 0,
|
|
28
|
+
onClick: () => r(l),
|
|
29
|
+
radius: t,
|
|
30
|
+
"aria-label": l.label,
|
|
31
|
+
w: 26,
|
|
32
|
+
miw: 26,
|
|
33
|
+
h: 26,
|
|
34
|
+
mih: 26,
|
|
35
|
+
style: i.filled ? { color: c(l.value, 1) } : {},
|
|
36
|
+
children: l.icon
|
|
37
|
+
}
|
|
38
|
+
) })
|
|
39
|
+
},
|
|
40
|
+
l.value
|
|
41
|
+
);
|
|
42
|
+
}) })
|
|
43
|
+
] });
|
|
44
|
+
export {
|
|
45
|
+
I as Palette
|
|
46
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
import { useTranslation as m } from "react-i18next";
|
|
4
|
+
import { Tooltip as d, Button as p, ColorSwatch as f } from "@mantine/core";
|
|
5
|
+
import { IconLetterA as h, IconChevronDown as b } from "@tabler/icons-react";
|
|
6
|
+
const k = s(
|
|
7
|
+
({ value: r, disabled: i, radius: l, hint: t, withoutIcon: c, ...n }, a) => {
|
|
8
|
+
const { t: e } = m("ui");
|
|
9
|
+
return /* @__PURE__ */ o(d, { label: e("colorPicker.color"), disabled: t !== "tooltip", children: /* @__PURE__ */ o(
|
|
10
|
+
p,
|
|
11
|
+
{
|
|
12
|
+
ref: a,
|
|
13
|
+
disabled: i,
|
|
14
|
+
variant: "subtle",
|
|
15
|
+
color: "gray",
|
|
16
|
+
"aria-label": "Formatting text color",
|
|
17
|
+
title: t === "title" ? e("colorPicker.color") : void 0,
|
|
18
|
+
rightSection: /* @__PURE__ */ o(b, { size: 18 }),
|
|
19
|
+
px: 8,
|
|
20
|
+
styles: { section: { marginLeft: 2 } },
|
|
21
|
+
...n,
|
|
22
|
+
children: /* @__PURE__ */ o(
|
|
23
|
+
f,
|
|
24
|
+
{
|
|
25
|
+
styles: {
|
|
26
|
+
childrenOverlay: { border: "1px solid #ccc" },
|
|
27
|
+
alphaOverlay: { display: "none" }
|
|
28
|
+
},
|
|
29
|
+
radius: l,
|
|
30
|
+
size: 22,
|
|
31
|
+
color: r.background,
|
|
32
|
+
children: !c && /* @__PURE__ */ o(
|
|
33
|
+
h,
|
|
34
|
+
{
|
|
35
|
+
size: 14,
|
|
36
|
+
color: r.color === "inherit" ? "var(--mantine-color-text)" : r.color
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
) });
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
export {
|
|
46
|
+
k as Target
|
|
47
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as P } from "react";
|
|
3
|
+
import { useTranslation as x } from "react-i18next";
|
|
4
|
+
import { alpha as C, Menu as n, Stack as I } from "@mantine/core";
|
|
5
|
+
import { IconLetterA as M } from "@tabler/icons-react";
|
|
6
|
+
import { Palette as y } from "./components/Pallete.js";
|
|
7
|
+
import { Target as z } from "./components/Target.js";
|
|
8
|
+
const S = (u) => {
|
|
9
|
+
const { t: a } = x("ui"), {
|
|
10
|
+
value: t,
|
|
11
|
+
data: c,
|
|
12
|
+
modes: i = ["color", "background"],
|
|
13
|
+
onChange: g,
|
|
14
|
+
target: b,
|
|
15
|
+
menuProps: h,
|
|
16
|
+
disabled: f,
|
|
17
|
+
hideModeLabel: k,
|
|
18
|
+
hideInherit: l,
|
|
19
|
+
radius: m = 6,
|
|
20
|
+
hint: d = "tooltip",
|
|
21
|
+
alpha: s = 0.19
|
|
22
|
+
} = u, w = P(
|
|
23
|
+
() => ({
|
|
24
|
+
color: {
|
|
25
|
+
label: a("colorPicker.color"),
|
|
26
|
+
palette: p.slice(l ? 1 : 0).map(({ name: o, color: e }) => ({
|
|
27
|
+
label: a(`colorPicker.colors.${o}`),
|
|
28
|
+
value: e,
|
|
29
|
+
icon: /* @__PURE__ */ r(M, { size: 14 })
|
|
30
|
+
}))
|
|
31
|
+
},
|
|
32
|
+
background: {
|
|
33
|
+
label: a("colorPicker.background"),
|
|
34
|
+
filled: !0,
|
|
35
|
+
palette: p.slice(l ? 1 : 0).map(({ name: o, color: e }) => ({
|
|
36
|
+
label: a(`colorPicker.colors.${o}`),
|
|
37
|
+
value: e === "inherit" ? e : C(e, s),
|
|
38
|
+
filled: !0
|
|
39
|
+
}))
|
|
40
|
+
},
|
|
41
|
+
...c ?? {}
|
|
42
|
+
}),
|
|
43
|
+
[c, l, s, a]
|
|
44
|
+
);
|
|
45
|
+
return /* @__PURE__ */ v(
|
|
46
|
+
n,
|
|
47
|
+
{
|
|
48
|
+
shadow: "md",
|
|
49
|
+
styles: { dropdown: { overflow: "auto", zIndex: 1e3 } },
|
|
50
|
+
middlewares: { size: { padding: 8 } },
|
|
51
|
+
...h || {},
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ r(n.Target, { children: b || /* @__PURE__ */ r(
|
|
54
|
+
z,
|
|
55
|
+
{
|
|
56
|
+
value: t,
|
|
57
|
+
disabled: f,
|
|
58
|
+
radius: m,
|
|
59
|
+
hint: d,
|
|
60
|
+
withoutIcon: !i.includes("color")
|
|
61
|
+
}
|
|
62
|
+
) }),
|
|
63
|
+
/* @__PURE__ */ r(n.Dropdown, { onMouseDown: (o) => o.preventDefault(), children: /* @__PURE__ */ r(I, { gap: "sm", children: i.map((o) => /* @__PURE__ */ r(
|
|
64
|
+
y,
|
|
65
|
+
{
|
|
66
|
+
value: t[o],
|
|
67
|
+
item: w[o],
|
|
68
|
+
hideModeLabel: k,
|
|
69
|
+
radius: m,
|
|
70
|
+
hint: d,
|
|
71
|
+
onChange: (e) => g({ value: e.value, meta: e.meta, mode: o })
|
|
72
|
+
},
|
|
73
|
+
o
|
|
74
|
+
)) }) })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}, p = [
|
|
79
|
+
{ name: "standard", color: "inherit" },
|
|
80
|
+
{ name: "gray", color: "rgb(155, 155, 155)" },
|
|
81
|
+
{ name: "brown", color: "rgb(159, 107, 83)" },
|
|
82
|
+
{ name: "orange", color: "rgb(217, 115, 13)" },
|
|
83
|
+
{ name: "yellow", color: "rgb(203, 145, 47)" },
|
|
84
|
+
{ name: "green", color: "rgb(68, 131, 97)" },
|
|
85
|
+
{ name: "blue", color: "rgb(51, 126, 169)" },
|
|
86
|
+
{ name: "purple", color: "rgb(144, 101, 176)" },
|
|
87
|
+
{ name: "pink", color: "rgb(193, 76, 138)" },
|
|
88
|
+
{ name: "red", color: "rgb(212, 76, 71)" }
|
|
89
|
+
];
|
|
90
|
+
export {
|
|
91
|
+
S as NewColorPicker
|
|
92
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as h, Box as p, Flex as j, Title as x, Text as y, Group as F, Button as M } from "@mantine/core";
|
|
3
|
+
import R from "../../assets/svg/alertMan.svg.js";
|
|
4
|
+
import k from "../../assets/svg/noData/404.svg.js";
|
|
5
|
+
import w from "../../assets/svg/noData/500.svg.js";
|
|
6
|
+
import T from "../../assets/svg/noData/empty.svg.js";
|
|
7
|
+
import E from "../../assets/svg/noData/folder.svg.js";
|
|
8
|
+
import I from "../../assets/svg/noData/noAccess.svg.js";
|
|
9
|
+
import A from "../../assets/svg/noData/noAnswers.svg.js";
|
|
10
|
+
import C from "../../assets/svg/noData/noCloud.svg.js";
|
|
11
|
+
import G from "../../assets/svg/noData/noComments.svg.js";
|
|
12
|
+
import b from "../../assets/svg/noData/noData.svg.js";
|
|
13
|
+
import D from "../../assets/svg/noData/noFlows.svg.js";
|
|
14
|
+
import B from "../../assets/svg/noData/noForms.svg.js";
|
|
15
|
+
import P from "../../assets/svg/noData/noGroups.svg.js";
|
|
16
|
+
import W from "../../assets/svg/noData/noImage.svg.js";
|
|
17
|
+
import z from "../../assets/svg/noData/noMembers.svg.js";
|
|
18
|
+
import _ from "../../assets/svg/noData/noNotifications.svg.js";
|
|
19
|
+
import q from "../../assets/svg/noData/noResults.svg.js";
|
|
20
|
+
import H from "../../assets/svg/noData/noSearchResults.svg.js";
|
|
21
|
+
import J from "../../assets/svg/noData/noTaskResults.svg.js";
|
|
22
|
+
import K from "../../assets/svg/noData/noTasks.svg.js";
|
|
23
|
+
import L from "../../assets/svg/noData/noWorkspaces.svg.js";
|
|
24
|
+
import O from "../../assets/svg/noData/trash.svg.js";
|
|
25
|
+
import Q from "../../assets/svg/notSuccessMan.svg.js";
|
|
26
|
+
import U from "../../assets/svg/successMan.svg.js";
|
|
27
|
+
import c from "./NoData.module.css.js";
|
|
28
|
+
const V = (m) => /(\p{Emoji_Presentation}|\p{Emoji}\uFE0F)/u.test(m), X = {
|
|
29
|
+
empty: T,
|
|
30
|
+
noAccess: I,
|
|
31
|
+
trash: O,
|
|
32
|
+
noImage: W,
|
|
33
|
+
noResults: q,
|
|
34
|
+
noComments: G,
|
|
35
|
+
noData: b,
|
|
36
|
+
emptyFolder: E,
|
|
37
|
+
noTaskResults: J,
|
|
38
|
+
noSearchResults: H,
|
|
39
|
+
noMembers: z,
|
|
40
|
+
noGroups: P,
|
|
41
|
+
noNotifications: _,
|
|
42
|
+
noWorkspaces: L,
|
|
43
|
+
paymentSuccess: U,
|
|
44
|
+
notSuccessMan: Q,
|
|
45
|
+
noAnswers: A,
|
|
46
|
+
alertMan: R,
|
|
47
|
+
noFlows: D,
|
|
48
|
+
noTasks: K,
|
|
49
|
+
noCloud: C,
|
|
50
|
+
noForms: B,
|
|
51
|
+
404: k,
|
|
52
|
+
500: w
|
|
53
|
+
}, Ro = ({
|
|
54
|
+
title: m,
|
|
55
|
+
titleProps: e,
|
|
56
|
+
description: s,
|
|
57
|
+
descriptionProps: f,
|
|
58
|
+
buttons: n,
|
|
59
|
+
illustration: r,
|
|
60
|
+
size: t = 145,
|
|
61
|
+
width: g,
|
|
62
|
+
height: S,
|
|
63
|
+
showDots: l = !0,
|
|
64
|
+
...v
|
|
65
|
+
}) => {
|
|
66
|
+
const i = r && typeof r == "string" && V(r), a = r && !i ? X[r] : null;
|
|
67
|
+
return /* @__PURE__ */ d(
|
|
68
|
+
h,
|
|
69
|
+
{
|
|
70
|
+
gap: "sm",
|
|
71
|
+
justify: "center",
|
|
72
|
+
flex: 1,
|
|
73
|
+
align: "center",
|
|
74
|
+
pos: "relative",
|
|
75
|
+
style: {
|
|
76
|
+
zIndex: 3
|
|
77
|
+
},
|
|
78
|
+
...v,
|
|
79
|
+
children: [
|
|
80
|
+
l && /* @__PURE__ */ o(p, { className: c.bgPattern, children: /* @__PURE__ */ o(p, { className: c.bgGradient }) }),
|
|
81
|
+
r && /* @__PURE__ */ o(
|
|
82
|
+
j,
|
|
83
|
+
{
|
|
84
|
+
justify: "center",
|
|
85
|
+
style: {
|
|
86
|
+
height: S || t,
|
|
87
|
+
width: g || t,
|
|
88
|
+
fontSize: t
|
|
89
|
+
},
|
|
90
|
+
children: i ? /* @__PURE__ */ o("span", { children: r }) : a && /* @__PURE__ */ o(a, {})
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
m && /* @__PURE__ */ o(x, { order: 2, ta: "center", mt: 0, maw: 450, ...e, children: m }),
|
|
94
|
+
s && /* @__PURE__ */ o(y, { fz: "md", ta: "center", c: "dimmed", maw: 400, ...f, children: s }),
|
|
95
|
+
n?.length ? /* @__PURE__ */ o(F, { gap: "xs", justify: "center", children: n.map((u, N) => /* @__PURE__ */ o(M, { variant: "filled", ...u }, N)) }) : null
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
export {
|
|
101
|
+
Ro as NoData,
|
|
102
|
+
X as illustrationMap
|
|
103
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Helmet as d } from "react-helmet";
|
|
3
|
+
import { useTranslation as f } from "react-i18next";
|
|
4
|
+
import { useNavigate as h } from "react-router-dom";
|
|
5
|
+
import { Stack as p, CloseButton as u } from "@mantine/core";
|
|
6
|
+
import { IconChevronLeft as g, IconHome2 as v } from "@tabler/icons-react";
|
|
7
|
+
import { useMenu as k } from "../../hooks/useMenu.js";
|
|
8
|
+
import { NoData as x } from "../NoData/NoData.js";
|
|
9
|
+
const B = ({
|
|
10
|
+
title: n,
|
|
11
|
+
description: l,
|
|
12
|
+
buttons: s,
|
|
13
|
+
closeAction: i,
|
|
14
|
+
...m
|
|
15
|
+
}) => {
|
|
16
|
+
const { t: e } = f(), o = h(), { isMobile: c } = k();
|
|
17
|
+
return /* @__PURE__ */ r(a, { children: [
|
|
18
|
+
/* @__PURE__ */ t(d, { children: /* @__PURE__ */ t("title", { children: "404 " }) }),
|
|
19
|
+
/* @__PURE__ */ r(p, { mih: "100dvh", gap: "sm", justify: "center", flex: 1, align: "center", children: [
|
|
20
|
+
/* @__PURE__ */ t(
|
|
21
|
+
x,
|
|
22
|
+
{
|
|
23
|
+
...m,
|
|
24
|
+
title: n || e("404.title"),
|
|
25
|
+
flex: "0,0,0",
|
|
26
|
+
h: "60dvh",
|
|
27
|
+
w: c ? 500 : "70%",
|
|
28
|
+
width: 330,
|
|
29
|
+
height: 160,
|
|
30
|
+
titleProps: { mt: 40 },
|
|
31
|
+
description: l || e("404.description"),
|
|
32
|
+
illustration: "404",
|
|
33
|
+
buttons: s || [
|
|
34
|
+
{
|
|
35
|
+
size: "md",
|
|
36
|
+
variant: "subtle",
|
|
37
|
+
leftSection: /* @__PURE__ */ t(g, { size: 18 }),
|
|
38
|
+
onClick: () => o(-1),
|
|
39
|
+
children: e("404.goBack")
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
size: "md",
|
|
43
|
+
variant: "filled",
|
|
44
|
+
leftSection: /* @__PURE__ */ t(v, { size: 18 }),
|
|
45
|
+
onClick: () => o("/"),
|
|
46
|
+
children: e("404.goHome")
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
i && /* @__PURE__ */ t(
|
|
52
|
+
u,
|
|
53
|
+
{
|
|
54
|
+
pos: "absolute",
|
|
55
|
+
top: 16,
|
|
56
|
+
right: 16,
|
|
57
|
+
onClick: i
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] })
|
|
61
|
+
] });
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
B as NotFound
|
|
65
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as c } from "react-i18next";
|
|
3
|
+
import { Title as n, Button as m } from "@mantine/core";
|
|
4
|
+
import e from "./NotPublicPanel.module.css.js";
|
|
5
|
+
const N = ({
|
|
6
|
+
entityData: s,
|
|
7
|
+
handlePublish: o,
|
|
8
|
+
isPublishing: d = !1,
|
|
9
|
+
PreviewComponent: r
|
|
10
|
+
}) => {
|
|
11
|
+
const { t: a } = c();
|
|
12
|
+
return /* @__PURE__ */ l(t, { children: [
|
|
13
|
+
/* @__PURE__ */ i("div", { className: e.previewBoxTitle, children: /* @__PURE__ */ i(n, { order: 4, children: a("publish") }) }),
|
|
14
|
+
/* @__PURE__ */ l("div", { className: e.previewBox, children: [
|
|
15
|
+
/* @__PURE__ */ l("div", { className: e.previewContainer, children: [
|
|
16
|
+
/* @__PURE__ */ l(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
style: s.type === "FORM" ? { minHeight: "22px" } : void 0,
|
|
20
|
+
className: e.previewHeader,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ i("div", { className: e.headerDot }),
|
|
23
|
+
/* @__PURE__ */ i("div", { className: e.headerDot }),
|
|
24
|
+
/* @__PURE__ */ i("div", { className: e.headerDot })
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ i(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
style: s.type === "FORM" ? { minHeight: "500px" } : void 0,
|
|
32
|
+
className: e.previewContent,
|
|
33
|
+
children: r ? /* @__PURE__ */ i(r, { data: s }) : null
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] }),
|
|
37
|
+
" ",
|
|
38
|
+
/* @__PURE__ */ i(
|
|
39
|
+
m,
|
|
40
|
+
{
|
|
41
|
+
fullWidth: !0,
|
|
42
|
+
onClick: o,
|
|
43
|
+
loading: d,
|
|
44
|
+
className: `${e.pulseSlow} ${e.processing}`,
|
|
45
|
+
children: a("publishToWeb")
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] })
|
|
49
|
+
] });
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
N as NotPublicPanel
|
|
53
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = "_previewBoxTitle_1xmos_1", o = "_previewBox_1xmos_1", r = "_previewContainer_1xmos_45", t = "_previewHeader_1xmos_58", i = "_headerDot_1xmos_70", s = "_previewContent_1xmos_80", n = "_processing_1xmos_103", _ = {
|
|
2
|
+
previewBoxTitle: e,
|
|
3
|
+
previewBox: o,
|
|
4
|
+
previewContainer: r,
|
|
5
|
+
previewHeader: t,
|
|
6
|
+
headerDot: i,
|
|
7
|
+
previewContent: s,
|
|
8
|
+
processing: n
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
_ as default,
|
|
12
|
+
i as headerDot,
|
|
13
|
+
o as previewBox,
|
|
14
|
+
e as previewBoxTitle,
|
|
15
|
+
r as previewContainer,
|
|
16
|
+
s as previewContent,
|
|
17
|
+
t as previewHeader,
|
|
18
|
+
n as processing
|
|
19
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as A, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as w, useCallback as g, useEffect as y } from "react";
|
|
3
|
+
import { useTranslation as N } from "react-i18next";
|
|
4
|
+
import { useNavigate as E } from "react-router-dom";
|
|
5
|
+
import { Flex as a, Text as l, Box as k, Button as b, Divider as v, Group as d } from "@mantine/core";
|
|
6
|
+
import { IconArrowsSort as F } from "@tabler/icons-react";
|
|
7
|
+
import { useAppContainerActionsStore as j } from "../AppContainer/hooks/useAppContainerActionsStore.js";
|
|
8
|
+
import { useAppContainerDataStore as S } from "../AppContainer/hooks/useAppContainerDataStore.js";
|
|
9
|
+
import { CustomKBD as C } from "../CustomKBD/index.js";
|
|
10
|
+
import { NoData as B } from "../NoData/NoData.js";
|
|
11
|
+
import I from "./NotificationCard.js";
|
|
12
|
+
import K from "./Notification.module.css.js";
|
|
13
|
+
const J = () => {
|
|
14
|
+
const { t: r } = N("appContainer"), h = E(), { notifications: n } = S(), { readNotificationsFunc: p } = j(), [s, c] = D(null), u = w([]), x = w(null), m = g(
|
|
15
|
+
async (t) => {
|
|
16
|
+
if (!n?.length) return;
|
|
17
|
+
const o = `/invitation/${n[t].link}`;
|
|
18
|
+
p({
|
|
19
|
+
messageIds: [n[t].id],
|
|
20
|
+
markAll: !1,
|
|
21
|
+
action: 1
|
|
22
|
+
}), h(o);
|
|
23
|
+
},
|
|
24
|
+
[h, n, p]
|
|
25
|
+
), f = g(
|
|
26
|
+
(t) => {
|
|
27
|
+
t.key === "ArrowDown" ? (t.preventDefault(), c(
|
|
28
|
+
(o) => o === null ? 0 : Math.min(o + 1, n?.length - 1)
|
|
29
|
+
)) : t.key === "ArrowUp" ? (t.preventDefault(), c(
|
|
30
|
+
(o) => o === null ? n?.length - 1 : Math.max(o - 1, 0)
|
|
31
|
+
)) : t.key === "Enter" && s !== null && n?.length && m(s);
|
|
32
|
+
},
|
|
33
|
+
[s, m, n?.length]
|
|
34
|
+
);
|
|
35
|
+
return y(() => (window.addEventListener("keydown", f), () => {
|
|
36
|
+
c(null), window.removeEventListener("keydown", f);
|
|
37
|
+
}), [f]), y(() => {
|
|
38
|
+
const t = u.current[s ?? -1];
|
|
39
|
+
t && t.scrollIntoView({
|
|
40
|
+
behavior: "smooth",
|
|
41
|
+
block: "nearest"
|
|
42
|
+
});
|
|
43
|
+
}, [s]), /* @__PURE__ */ i(A, { children: [
|
|
44
|
+
/* @__PURE__ */ i(a, { p: "sm", justify: "space-between", children: [
|
|
45
|
+
/* @__PURE__ */ i(a, { children: [
|
|
46
|
+
/* @__PURE__ */ e(l, { fz: "sm", children: r("notification") }),
|
|
47
|
+
/* @__PURE__ */ e(k, { className: K.headerCounter, children: /* @__PURE__ */ e(l, { fz: "xs", children: n?.length < 100 ? n?.length : "99+" }) })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("showAll") }) })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ e(v, {}),
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
d,
|
|
54
|
+
{
|
|
55
|
+
mah: 280,
|
|
56
|
+
ref: x,
|
|
57
|
+
style: {
|
|
58
|
+
overflowY: "auto"
|
|
59
|
+
},
|
|
60
|
+
gap: 0,
|
|
61
|
+
children: n ? n?.map((t, o) => /* @__PURE__ */ e(
|
|
62
|
+
k,
|
|
63
|
+
{
|
|
64
|
+
onClick: () => m(o),
|
|
65
|
+
style: {
|
|
66
|
+
overflow: "hidden"
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ e(
|
|
69
|
+
I,
|
|
70
|
+
{
|
|
71
|
+
isFocused: o === s,
|
|
72
|
+
notification: t,
|
|
73
|
+
ref: (z) => u.current[o] = z
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
},
|
|
77
|
+
t.id
|
|
78
|
+
)) : /* @__PURE__ */ e(
|
|
79
|
+
B,
|
|
80
|
+
{
|
|
81
|
+
py: "md",
|
|
82
|
+
size: 140,
|
|
83
|
+
my: 20,
|
|
84
|
+
illustration: "noNotifications",
|
|
85
|
+
descriptionProps: { maw: 300 },
|
|
86
|
+
description: r("emptyNotifyDescription")
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ e(v, {}),
|
|
92
|
+
/* @__PURE__ */ i(a, { bottom: 0, p: "sm", justify: "space-between", children: [
|
|
93
|
+
/* @__PURE__ */ i(a, { gap: 24, children: [
|
|
94
|
+
/* @__PURE__ */ i(d, { gap: 8, children: [
|
|
95
|
+
/* @__PURE__ */ e(
|
|
96
|
+
C,
|
|
97
|
+
{
|
|
98
|
+
miw: 26,
|
|
99
|
+
w: 26,
|
|
100
|
+
bbw: 4,
|
|
101
|
+
value: /* @__PURE__ */ e(F, { stroke: 1.5, width: 16, height: 16 })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("choose") })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ i(d, { gap: 8, children: [
|
|
107
|
+
/* @__PURE__ */ e(C, { miw: 45, w: 45, bbw: 4, value: "Enter" }),
|
|
108
|
+
/* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("open") })
|
|
109
|
+
] })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("closeAll") }) })
|
|
112
|
+
] })
|
|
113
|
+
] });
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
J as Notification
|
|
117
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { useTranslation as g } from "react-i18next";
|
|
4
|
+
import { Flex as a, Text as l, Tooltip as x } from "@mantine/core";
|
|
5
|
+
import { IconFileText as h, IconCheckbox as u, IconX as y } from "@tabler/icons-react";
|
|
6
|
+
const b = p(
|
|
7
|
+
({ isFocused: o, notification: e }, n) => {
|
|
8
|
+
const { i18n: s } = g("appContainer"), i = (d) => {
|
|
9
|
+
const m = s.language === "ru" ? "ru-RU" : "en-US";
|
|
10
|
+
return d.toLocaleDateString(m, {
|
|
11
|
+
day: "numeric",
|
|
12
|
+
month: "long",
|
|
13
|
+
year: "numeric"
|
|
14
|
+
});
|
|
15
|
+
}, c = new Date(e.createdAt), f = i(c);
|
|
16
|
+
return /* @__PURE__ */ t(
|
|
17
|
+
a,
|
|
18
|
+
{
|
|
19
|
+
ref: n,
|
|
20
|
+
px: 8,
|
|
21
|
+
w: "100%",
|
|
22
|
+
py: "sm",
|
|
23
|
+
justify: "flex-start",
|
|
24
|
+
style: {
|
|
25
|
+
backgroundColor: o ? "#f0f0f0" : "transparent",
|
|
26
|
+
cursor: "pointer",
|
|
27
|
+
borderRadius: "4px"
|
|
28
|
+
},
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ t(a, { w: 274, justify: "flex-start", children: [
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
h,
|
|
33
|
+
{
|
|
34
|
+
size: 20,
|
|
35
|
+
color: "gray",
|
|
36
|
+
style: { alignSelf: "flex-start" }
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ r(l, { fz: 16, style: { alignSelf: "flex-start" }, children: e.pageIcon === "DefaultIcon" ? /* @__PURE__ */ r(u, { size: 20, color: "gray" }) : e.pageIcon }),
|
|
40
|
+
/* @__PURE__ */ t(a, { direction: "column", gap: 0, w: 200, children: [
|
|
41
|
+
/* @__PURE__ */ r(
|
|
42
|
+
x,
|
|
43
|
+
{
|
|
44
|
+
disabled: e.description.length < 40,
|
|
45
|
+
label: e.description,
|
|
46
|
+
children: /* @__PURE__ */ r(
|
|
47
|
+
l,
|
|
48
|
+
{
|
|
49
|
+
fz: "sm",
|
|
50
|
+
style: {
|
|
51
|
+
alignSelf: "flex-start",
|
|
52
|
+
lineHeight: "16px"
|
|
53
|
+
},
|
|
54
|
+
lineClamp: 2,
|
|
55
|
+
children: e.description
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ t(
|
|
61
|
+
l,
|
|
62
|
+
{
|
|
63
|
+
c: "dimmed",
|
|
64
|
+
fz: "sm",
|
|
65
|
+
h: "16",
|
|
66
|
+
style: { alignSelf: "flex-start" },
|
|
67
|
+
children: [
|
|
68
|
+
" ",
|
|
69
|
+
e.pageName
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ r(l, { c: "dimmed", fz: "sm", w: 98, style: { alignSelf: "flex-start" }, children: f }),
|
|
76
|
+
/* @__PURE__ */ r(
|
|
77
|
+
y,
|
|
78
|
+
{
|
|
79
|
+
width: 12,
|
|
80
|
+
height: 12,
|
|
81
|
+
color: "gray",
|
|
82
|
+
style: { alignSelf: "flex-start", marginTop: "5px" }
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
export {
|
|
91
|
+
b as default
|
|
92
|
+
};
|