@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,135 @@
|
|
|
1
|
+
import { jsx as n, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as O } from "react";
|
|
3
|
+
import { useTranslation as D } from "react-i18next";
|
|
4
|
+
import { arrayMove as V } from "@dnd-kit/sortable";
|
|
5
|
+
import { Stack as _, TextInput as B, Box as M, InputError as N } from "@mantine/core";
|
|
6
|
+
import { STATIC_CLASSES as g } from "../../../helpers/staticClasses.js";
|
|
7
|
+
import { getRandomId as j } from "../../../helpers/steps.js";
|
|
8
|
+
import { useSteps as k } from "../../../hooks/useCreateFormContext.js";
|
|
9
|
+
import { useInterpolate as z } from "../../../hooks/useInterpolateText.js";
|
|
10
|
+
import { useFormViewerStore as F } from "../../../store/formStore.js";
|
|
11
|
+
import { AddOptionButton as P } from "../AddOptionButton.js";
|
|
12
|
+
import { DragOptions as U } from "../DragOptions/DragOptions.js";
|
|
13
|
+
import { ChoiceCard as x } from "./ChoiceCard.js";
|
|
14
|
+
const to = ({
|
|
15
|
+
control: v,
|
|
16
|
+
step: e,
|
|
17
|
+
theme: s
|
|
18
|
+
}) => {
|
|
19
|
+
const { t: p } = D("forms"), { form: f } = k(), { id: i, options: t, showInput: m, otherOption: I } = v, { useStore: b, api: d } = F(), a = b((o) => o.editing), C = f.errors[i], c = f.values[i], S = (o) => {
|
|
20
|
+
const { active: r, over: l } = o;
|
|
21
|
+
if (r.id !== l?.id && t) {
|
|
22
|
+
const T = t.findIndex((u) => u.id === r.id), A = t.findIndex((u) => u.id === l?.id), L = V(t, T, A);
|
|
23
|
+
d.updateControl(e.id, i, {
|
|
24
|
+
options: L
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}, h = z(), E = O(() => [
|
|
28
|
+
...(t || []).map((o) => ({
|
|
29
|
+
id: o.id || "",
|
|
30
|
+
element: /* @__PURE__ */ n(
|
|
31
|
+
x,
|
|
32
|
+
{
|
|
33
|
+
...o,
|
|
34
|
+
label: a ? o.label : h(o.label),
|
|
35
|
+
controlId: i,
|
|
36
|
+
showInput: m,
|
|
37
|
+
theme: s,
|
|
38
|
+
onUpdate: a ? (r) => {
|
|
39
|
+
d.updateControl(e.id, i, {
|
|
40
|
+
options: t.map(
|
|
41
|
+
(l) => l.id === o.id ? { ...l, ...r } : l
|
|
42
|
+
)
|
|
43
|
+
});
|
|
44
|
+
} : void 0,
|
|
45
|
+
onRemove: a ? () => {
|
|
46
|
+
d.updateControl(e.id, i, {
|
|
47
|
+
options: t.filter((r) => r.id !== o.id)
|
|
48
|
+
});
|
|
49
|
+
} : void 0
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
})),
|
|
53
|
+
...I ? [
|
|
54
|
+
{
|
|
55
|
+
id: "other",
|
|
56
|
+
element: /* @__PURE__ */ n(
|
|
57
|
+
x,
|
|
58
|
+
{
|
|
59
|
+
label: p("otherOption"),
|
|
60
|
+
controlId: i,
|
|
61
|
+
showInput: m,
|
|
62
|
+
theme: s,
|
|
63
|
+
id: "other"
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
] : []
|
|
68
|
+
], [
|
|
69
|
+
d,
|
|
70
|
+
a,
|
|
71
|
+
i,
|
|
72
|
+
h,
|
|
73
|
+
t,
|
|
74
|
+
I,
|
|
75
|
+
m,
|
|
76
|
+
e.id,
|
|
77
|
+
p,
|
|
78
|
+
s
|
|
79
|
+
]), w = O(() => t?.find((o) => o.id === c)?.label, [c, t]);
|
|
80
|
+
return /* @__PURE__ */ R(
|
|
81
|
+
_,
|
|
82
|
+
{
|
|
83
|
+
gap: 8,
|
|
84
|
+
w: "fit-content",
|
|
85
|
+
"data-control-id": i,
|
|
86
|
+
className: g.BLOCK_MULTIPLE_CHOICE,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ n(
|
|
89
|
+
U,
|
|
90
|
+
{
|
|
91
|
+
editable: a,
|
|
92
|
+
options: E,
|
|
93
|
+
onDragEnd: S,
|
|
94
|
+
align: s?.align
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
c === "other" && /* @__PURE__ */ n(
|
|
98
|
+
B,
|
|
99
|
+
{
|
|
100
|
+
size: s?.size,
|
|
101
|
+
value: w,
|
|
102
|
+
onChange: (o) => {
|
|
103
|
+
d.updateControl(e.id, i, {
|
|
104
|
+
options: t.map(
|
|
105
|
+
(r) => r.id === "other" ? { ...r, label: o.target.value } : r
|
|
106
|
+
)
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
placeholder: p("otherOptionPlaceholder")
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
a && /* @__PURE__ */ n(M, { mx: -8, children: /* @__PURE__ */ n(
|
|
113
|
+
P,
|
|
114
|
+
{
|
|
115
|
+
onClick: () => {
|
|
116
|
+
d.updateControl(e.id, i, {
|
|
117
|
+
options: [
|
|
118
|
+
...t || [],
|
|
119
|
+
{
|
|
120
|
+
id: j(),
|
|
121
|
+
label: p("newOption")
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
) }),
|
|
128
|
+
C && /* @__PURE__ */ n(N, { className: g.VALIDATION_ERROR, children: C })
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
to as ChoiceField
|
|
135
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { memo as p } from "react";
|
|
3
|
+
import { useSteps as f } from "../../../hooks/useCreateFormContext.js";
|
|
4
|
+
import { PictureSelectableCard as C } from "../SelectableCard/PictureSelectableCard.js";
|
|
5
|
+
const P = p(
|
|
6
|
+
({
|
|
7
|
+
label: i,
|
|
8
|
+
showInput: r,
|
|
9
|
+
onUpdate: l,
|
|
10
|
+
onRemove: c,
|
|
11
|
+
image: a,
|
|
12
|
+
controlId: e,
|
|
13
|
+
id: t,
|
|
14
|
+
theme: s
|
|
15
|
+
}) => {
|
|
16
|
+
const { form: m, setValue: n } = f(), o = m.values[e] === t;
|
|
17
|
+
return /* @__PURE__ */ u(
|
|
18
|
+
C,
|
|
19
|
+
{
|
|
20
|
+
label: i,
|
|
21
|
+
hasInput: r,
|
|
22
|
+
inputType: "radio",
|
|
23
|
+
active: o,
|
|
24
|
+
onClick: () => {
|
|
25
|
+
n(e, o ? null : t);
|
|
26
|
+
},
|
|
27
|
+
onUpdate: l,
|
|
28
|
+
onRemove: c,
|
|
29
|
+
image: a,
|
|
30
|
+
theme: s
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
export {
|
|
36
|
+
P as PictureChoiceCard
|
|
37
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { useTranslation as A } from "react-i18next";
|
|
4
|
+
import { arrayMove as L } from "@dnd-kit/sortable";
|
|
5
|
+
import { Stack as R, Box as T, InputError as D } from "@mantine/core";
|
|
6
|
+
import { STATIC_CLASSES as u } from "../../../helpers/staticClasses.js";
|
|
7
|
+
import { getRandomId as _ } from "../../../helpers/steps.js";
|
|
8
|
+
import { useSteps as B } from "../../../hooks/useCreateFormContext.js";
|
|
9
|
+
import { useInterpolate as M } from "../../../hooks/useInterpolateText.js";
|
|
10
|
+
import { useFormViewerStore as N } from "../../../store/formStore.js";
|
|
11
|
+
import { AddOptionButton as P } from "../AddOptionButton.js";
|
|
12
|
+
import { DragOptions as j } from "../DragOptions/DragOptions.js";
|
|
13
|
+
import { PictureChoiceCard as k } from "./PictureChoiceCard.js";
|
|
14
|
+
const Y = ({
|
|
15
|
+
control: I,
|
|
16
|
+
step: d,
|
|
17
|
+
theme: m
|
|
18
|
+
}) => {
|
|
19
|
+
const { t: C } = A("forms"), { id: r, options: i, showInput: l } = I, { api: s, useStore: g } = N(), t = g((o) => o.editing), { form: x } = B(), c = x.errors[r], O = (o) => {
|
|
20
|
+
const { active: n, over: e } = o;
|
|
21
|
+
if (n.id !== e?.id && i) {
|
|
22
|
+
const E = i.findIndex((p) => p.id === n.id), v = i.findIndex((p) => p.id === e?.id), w = L(i, E, v);
|
|
23
|
+
s.updateControl(d.id, r, {
|
|
24
|
+
options: w
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}, f = M(), S = h(() => i?.map((o) => ({
|
|
28
|
+
id: o.id || "",
|
|
29
|
+
element: /* @__PURE__ */ a(
|
|
30
|
+
k,
|
|
31
|
+
{
|
|
32
|
+
...o,
|
|
33
|
+
label: t ? o.label : f(o.label),
|
|
34
|
+
controlId: r,
|
|
35
|
+
showInput: l,
|
|
36
|
+
theme: m,
|
|
37
|
+
onUpdate: t ? (n) => {
|
|
38
|
+
s.updateControl(d.id, r, {
|
|
39
|
+
options: i.map(
|
|
40
|
+
(e) => e.id === o.id ? { ...e, ...n } : e
|
|
41
|
+
)
|
|
42
|
+
});
|
|
43
|
+
} : void 0,
|
|
44
|
+
onRemove: t ? () => {
|
|
45
|
+
s.updateControl(d.id, r, {
|
|
46
|
+
options: i.filter((n) => n.id !== o.id)
|
|
47
|
+
});
|
|
48
|
+
} : void 0
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
})), [s, t, r, f, i, l, d.id, m]);
|
|
52
|
+
return /* @__PURE__ */ b(
|
|
53
|
+
R,
|
|
54
|
+
{
|
|
55
|
+
gap: 8,
|
|
56
|
+
w: "100%",
|
|
57
|
+
"data-control-id": r,
|
|
58
|
+
className: u.BLOCK_MULTIPLE_CHOICE,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ a(
|
|
61
|
+
j,
|
|
62
|
+
{
|
|
63
|
+
editable: t,
|
|
64
|
+
options: S,
|
|
65
|
+
onDragEnd: O,
|
|
66
|
+
isGrid: !0,
|
|
67
|
+
align: m?.align
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
t && /* @__PURE__ */ a(T, { mx: -8, children: /* @__PURE__ */ a(
|
|
71
|
+
P,
|
|
72
|
+
{
|
|
73
|
+
onClick: () => {
|
|
74
|
+
s.updateControl(d.id, r, {
|
|
75
|
+
options: [
|
|
76
|
+
...i || [],
|
|
77
|
+
{
|
|
78
|
+
id: _(),
|
|
79
|
+
label: C("newOption")
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
) }),
|
|
86
|
+
c && /* @__PURE__ */ a(D, { className: u.VALIDATION_ERROR, children: c })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
export {
|
|
92
|
+
Y as PictureChoiceField
|
|
93
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as u } from "react-i18next";
|
|
3
|
+
import { Flex as p, Button as f } from "@mantine/core";
|
|
4
|
+
import { ProjectIcon as c } from "../../../ProjectIcon/ProjectIcon.js";
|
|
5
|
+
import { STATIC_CLASSES as d } from "../../helpers/staticClasses.js";
|
|
6
|
+
import { useFormViewerStore as i } from "../../store/formStore.js";
|
|
7
|
+
import { EditableContent as w } from "./EditableContent/EditableContent.js";
|
|
8
|
+
const I = ({
|
|
9
|
+
step: a,
|
|
10
|
+
control: t,
|
|
11
|
+
theme: m
|
|
12
|
+
}) => {
|
|
13
|
+
const { t: o } = u("forms"), { api: l } = i(), { useStore: s } = i(), n = s((e) => e.editing);
|
|
14
|
+
return t.showButton ? /* @__PURE__ */ r(
|
|
15
|
+
p,
|
|
16
|
+
{
|
|
17
|
+
justify: "var(--align)",
|
|
18
|
+
gap: 8,
|
|
19
|
+
wrap: "wrap",
|
|
20
|
+
direction: m?.align === "start" ? "row" : "row-reverse",
|
|
21
|
+
children: /* @__PURE__ */ r(
|
|
22
|
+
f,
|
|
23
|
+
{
|
|
24
|
+
className: d.SUBMIT_BUTTON,
|
|
25
|
+
leftSection: t.buttonIcon ? /* @__PURE__ */ r(c, { icon: t.buttonIcon }) : null,
|
|
26
|
+
...!n && t.link ? {
|
|
27
|
+
component: "a",
|
|
28
|
+
href: t.link,
|
|
29
|
+
target: "_blank"
|
|
30
|
+
} : {},
|
|
31
|
+
children: n ? /* @__PURE__ */ r(
|
|
32
|
+
w,
|
|
33
|
+
{
|
|
34
|
+
value: t.label?.trim() || o("createYourOwnForm"),
|
|
35
|
+
onChange: (e) => {
|
|
36
|
+
l.updateControl(a.id, t.id, {
|
|
37
|
+
label: e
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
) : t.label?.trim() || o("createYourOwnForm")
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
) : null;
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
I as ConfirmButton
|
|
49
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as m } from "@mantine/core";
|
|
3
|
+
import { alignRelation as n } from "../../helpers/themeUtils.js";
|
|
4
|
+
import { ConfirmButton as a } from "./ConfirmButton.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
control: r,
|
|
7
|
+
step: o,
|
|
8
|
+
theme: t
|
|
9
|
+
}) => /* @__PURE__ */ i(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
justify: n[t?.align || "center"],
|
|
13
|
+
gap: 8,
|
|
14
|
+
wrap: "wrap",
|
|
15
|
+
"data-control-id": r.id,
|
|
16
|
+
children: /* @__PURE__ */ i(a, { step: o, control: r })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
d as ConfirmField
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { DateInput as s } from "@mantine/dates";
|
|
3
|
+
import { ProjectIcon as d } from "../../../ProjectIcon/ProjectIcon.js";
|
|
4
|
+
import { controlsDataMap as f } from "../../helpers/controls.js";
|
|
5
|
+
import { useSteps as D } from "../../hooks/useCreateFormContext.js";
|
|
6
|
+
import { useInterpolateText as u } from "../../hooks/useInterpolateText.js";
|
|
7
|
+
import { useFormViewerStore as x } from "../../store/formStore.js";
|
|
8
|
+
const y = ({ control: e }) => {
|
|
9
|
+
const { form: n } = D(), { id: t, minDate: o, maxDate: r, placeholder: p } = e, { useStore: m } = x(), i = m((l) => l.editing), c = u(p, i);
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
w: "100%",
|
|
14
|
+
"data-control-id": t,
|
|
15
|
+
leftSection: e.icon ? /* @__PURE__ */ a(d, { icon: e.icon }) : f[e.controlType].icon,
|
|
16
|
+
clearable: !0,
|
|
17
|
+
minDate: o ? new Date(o) : void 0,
|
|
18
|
+
maxDate: r ? new Date(r) : void 0,
|
|
19
|
+
placeholder: c,
|
|
20
|
+
readOnly: i,
|
|
21
|
+
popoverProps: {
|
|
22
|
+
withinPortal: !1,
|
|
23
|
+
floatingStrategy: "fixed"
|
|
24
|
+
},
|
|
25
|
+
...n.getInputProps(t)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
y as DateField
|
|
31
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as d } from "react";
|
|
3
|
+
import { useSensors as u, useSensor as S, PointerSensor as h, DndContext as p, closestCenter as y } from "@dnd-kit/core";
|
|
4
|
+
import { restrictToParentElement as b } from "@dnd-kit/modifiers";
|
|
5
|
+
import { SortableContext as C, rectSortingStrategy as x, useSortable as v } from "@dnd-kit/sortable";
|
|
6
|
+
import { CSS as D } from "@dnd-kit/utilities";
|
|
7
|
+
import { alignRelation as c } from "../../../helpers/themeUtils.js";
|
|
8
|
+
import { useFormViewerStore as F } from "../../../store/formStore.js";
|
|
9
|
+
import f from "./DragOptions.module.css.js";
|
|
10
|
+
const j = ({ id: r, children: a }) => {
|
|
11
|
+
const {
|
|
12
|
+
attributes: m,
|
|
13
|
+
listeners: i,
|
|
14
|
+
setNodeRef: n,
|
|
15
|
+
transform: l,
|
|
16
|
+
transition: o,
|
|
17
|
+
isDragging: s
|
|
18
|
+
} = v({ id: r }), t = {
|
|
19
|
+
transform: D.Translate.toString(l),
|
|
20
|
+
transition: o,
|
|
21
|
+
opacity: s ? 0.5 : 1,
|
|
22
|
+
zIndex: s ? 1e3 : "auto"
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ e("div", { ref: n, style: t, ...m, ...i, children: a });
|
|
25
|
+
}, E = ({
|
|
26
|
+
options: r,
|
|
27
|
+
onDragEnd: a,
|
|
28
|
+
editable: m,
|
|
29
|
+
isGrid: i,
|
|
30
|
+
align: n
|
|
31
|
+
}) => {
|
|
32
|
+
const { useStore: l } = F(), o = l((t) => t.isMobile), s = u(
|
|
33
|
+
S(h, {
|
|
34
|
+
activationConstraint: {
|
|
35
|
+
distance: 10
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ e(g, { children: m ? /* @__PURE__ */ e(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
sensors: s,
|
|
43
|
+
collisionDetection: y,
|
|
44
|
+
onDragEnd: a,
|
|
45
|
+
modifiers: [b],
|
|
46
|
+
children: /* @__PURE__ */ e(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
"data-mobile": o,
|
|
50
|
+
className: f.dragOptions,
|
|
51
|
+
"data-grid": i,
|
|
52
|
+
style: {
|
|
53
|
+
justifyContent: c[n || "start"]
|
|
54
|
+
},
|
|
55
|
+
children: /* @__PURE__ */ e(
|
|
56
|
+
C,
|
|
57
|
+
{
|
|
58
|
+
items: r?.map((t) => t.id).filter(Boolean) || [],
|
|
59
|
+
strategy: x,
|
|
60
|
+
children: r?.map((t) => t.id === "other" ? /* @__PURE__ */ e(d, { children: t.element }, t.id) : /* @__PURE__ */ e(j, { id: t.id, children: t.element }, t.id))
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
) : /* @__PURE__ */ e(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
"data-mobile": o,
|
|
70
|
+
className: f.dragOptions,
|
|
71
|
+
"data-grid": i,
|
|
72
|
+
style: {
|
|
73
|
+
justifyContent: c[n || "start"]
|
|
74
|
+
},
|
|
75
|
+
children: r?.map((t) => /* @__PURE__ */ e(d, { children: t.element }, t.id))
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
E as DragOptions
|
|
81
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as g } from "react";
|
|
3
|
+
import { useTranslation as I } from "react-i18next";
|
|
4
|
+
import { Flex as S, Box as u, Select as v, Stack as O } from "@mantine/core";
|
|
5
|
+
import { IconTrash as h } from "@tabler/icons-react";
|
|
6
|
+
import { ProjectIcon as j } from "../../../../ProjectIcon/ProjectIcon.js";
|
|
7
|
+
import { controlsDataMap as T } from "../../../helpers/controls.js";
|
|
8
|
+
import { getRandomId as k } from "../../../helpers/steps.js";
|
|
9
|
+
import { useSteps as z } from "../../../hooks/useCreateFormContext.js";
|
|
10
|
+
import { useInterpolate as F, useInterpolateText as P } from "../../../hooks/useInterpolateText.js";
|
|
11
|
+
import { useFormViewerStore as R } from "../../../store/formStore.js";
|
|
12
|
+
import { AddOptionButton as B } from "../AddOptionButton.js";
|
|
13
|
+
import { EditableContent as D } from "../EditableContent/EditableContent.js";
|
|
14
|
+
import M from "./DropdownField.module.css.js";
|
|
15
|
+
const Y = ({
|
|
16
|
+
control: l,
|
|
17
|
+
step: a,
|
|
18
|
+
theme: r
|
|
19
|
+
}) => {
|
|
20
|
+
const { t: f } = I("forms"), { api: d, useStore: C } = R(), { form: b } = z(), { id: e, options: t, placeholder: w } = l, i = C((o) => o.editing), c = F(), y = P(w, i), x = g(() => t?.map((o) => ({
|
|
21
|
+
id: o.id || "",
|
|
22
|
+
element: /* @__PURE__ */ m(
|
|
23
|
+
S,
|
|
24
|
+
{
|
|
25
|
+
w: "100%",
|
|
26
|
+
justify: "space-between",
|
|
27
|
+
style: { color: r?.primaryColor },
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ n(
|
|
30
|
+
D,
|
|
31
|
+
{
|
|
32
|
+
value: i ? o.label : c(o.label),
|
|
33
|
+
placeholder: "Option",
|
|
34
|
+
onChange: (p) => {
|
|
35
|
+
i && d.updateControl(a.id, e, {
|
|
36
|
+
options: t.map(
|
|
37
|
+
(s) => s.id === o.id ? { ...s, label: p } : s
|
|
38
|
+
)
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ n(
|
|
44
|
+
h,
|
|
45
|
+
{
|
|
46
|
+
color: "red",
|
|
47
|
+
size: 16,
|
|
48
|
+
opacity: 0.6,
|
|
49
|
+
cursor: "pointer",
|
|
50
|
+
onClick: i ? () => {
|
|
51
|
+
d.updateControl(a.id, e, {
|
|
52
|
+
options: t.filter((p) => p.id !== o.id)
|
|
53
|
+
});
|
|
54
|
+
} : void 0
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
o.id
|
|
60
|
+
)
|
|
61
|
+
})), [t, r?.primaryColor, i, d, a.id, e, c]);
|
|
62
|
+
return /* @__PURE__ */ m(u, { w: "100%", children: [
|
|
63
|
+
/* @__PURE__ */ n(
|
|
64
|
+
v,
|
|
65
|
+
{
|
|
66
|
+
size: r?.size,
|
|
67
|
+
radius: r?.borderRadius,
|
|
68
|
+
color: r?.primaryColor,
|
|
69
|
+
"data-control-id": e,
|
|
70
|
+
w: "100%",
|
|
71
|
+
leftSection: l.icon ? /* @__PURE__ */ n(j, { icon: l.icon }) : T[l.controlType].icon,
|
|
72
|
+
dropdownOpened: i ? !1 : void 0,
|
|
73
|
+
data: t?.map((o) => ({
|
|
74
|
+
label: o.label,
|
|
75
|
+
value: o.id
|
|
76
|
+
})),
|
|
77
|
+
placeholder: y,
|
|
78
|
+
...b.getInputProps(e)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
i && /* @__PURE__ */ m(
|
|
82
|
+
O,
|
|
83
|
+
{
|
|
84
|
+
mt: 8,
|
|
85
|
+
gap: 8,
|
|
86
|
+
w: "100%",
|
|
87
|
+
"data-radius": r?.borderRadius,
|
|
88
|
+
style: {
|
|
89
|
+
"--dropdown-border-color": r?.primaryColor
|
|
90
|
+
},
|
|
91
|
+
className: M.optionsContainer,
|
|
92
|
+
children: [
|
|
93
|
+
x?.map((o) => o.element),
|
|
94
|
+
/* @__PURE__ */ n(u, { mx: -8, children: /* @__PURE__ */ n(
|
|
95
|
+
B,
|
|
96
|
+
{
|
|
97
|
+
onClick: () => {
|
|
98
|
+
d.updateControl(a.id, e, {
|
|
99
|
+
options: [
|
|
100
|
+
...t || [],
|
|
101
|
+
{
|
|
102
|
+
id: k(),
|
|
103
|
+
label: f("newOption")
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
) })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] });
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
Y as DropdownField
|
|
117
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g, useEffect as x } from "react";
|
|
3
|
+
import y from "./EditableContent.module.css.js";
|
|
4
|
+
const D = ({
|
|
5
|
+
value: r,
|
|
6
|
+
onChange: c,
|
|
7
|
+
placeholder: i,
|
|
8
|
+
allowNewLines: l = !1
|
|
9
|
+
}) => {
|
|
10
|
+
const s = g(null);
|
|
11
|
+
x(() => {
|
|
12
|
+
const t = s.current;
|
|
13
|
+
if (!t || document.activeElement === t) return;
|
|
14
|
+
const e = r ?? "";
|
|
15
|
+
t.innerHTML !== e && (t.innerHTML = e), t.setAttribute("data-empty", String(!(e && e.trim())));
|
|
16
|
+
}, [r]);
|
|
17
|
+
const m = (t) => {
|
|
18
|
+
const n = t.currentTarget.innerHTML || "";
|
|
19
|
+
c?.(n.trim());
|
|
20
|
+
}, d = () => {
|
|
21
|
+
}, u = (t) => {
|
|
22
|
+
if (t.key === "Enter") {
|
|
23
|
+
if (!l) {
|
|
24
|
+
t.preventDefault();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
t.preventDefault();
|
|
28
|
+
const e = window.getSelection();
|
|
29
|
+
if (!e || !e.rangeCount) {
|
|
30
|
+
try {
|
|
31
|
+
document.execCommand("insertHTML", !1, "<br><br>");
|
|
32
|
+
} catch {
|
|
33
|
+
document.execCommand("insertLineBreak");
|
|
34
|
+
}
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const n = e.getRangeAt(0), o = document.createElement("br");
|
|
38
|
+
n.deleteContents(), n.insertNode(o);
|
|
39
|
+
const a = document.createElement("br");
|
|
40
|
+
o.parentNode?.insertBefore(a, o.nextSibling), n.setStartAfter(a), n.setEndAfter(a), e.removeAllRanges(), e.addRange(n);
|
|
41
|
+
}
|
|
42
|
+
}, f = (t) => {
|
|
43
|
+
const e = t.currentTarget, n = !(e.innerHTML && e.innerHTML.trim());
|
|
44
|
+
e.setAttribute("data-empty", String(n));
|
|
45
|
+
}, p = async (t) => {
|
|
46
|
+
t.preventDefault();
|
|
47
|
+
const e = await t.clipboardData.getData("text/plain");
|
|
48
|
+
document.execCommand("insertText", !1, e);
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ b(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
ref: s,
|
|
54
|
+
"data-empty": String(!r),
|
|
55
|
+
onInput: f,
|
|
56
|
+
onKeyDown: u,
|
|
57
|
+
onBlur: m,
|
|
58
|
+
onFocus: d,
|
|
59
|
+
onPaste: p,
|
|
60
|
+
"data-placeholder": i,
|
|
61
|
+
className: y.editableContent,
|
|
62
|
+
role: "textbox",
|
|
63
|
+
contentEditable: !0,
|
|
64
|
+
suppressContentEditableWarning: !0
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
D as EditableContent
|
|
70
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { TextInput as a } from "@mantine/core";
|
|
3
|
+
import { ProjectIcon as s } from "../../../ProjectIcon/ProjectIcon.js";
|
|
4
|
+
import { controlsDataMap as l } from "../../helpers/controls.js";
|
|
5
|
+
import { STATIC_CLASSES as d } from "../../helpers/staticClasses.js";
|
|
6
|
+
import { useSteps as f } from "../../hooks/useCreateFormContext.js";
|
|
7
|
+
import { useInterpolateText as u } from "../../hooks/useInterpolateText.js";
|
|
8
|
+
import { useFormViewerStore as S } from "../../store/formStore.js";
|
|
9
|
+
const E = ({ control: o }) => {
|
|
10
|
+
const { form: r } = f(), { useStore: i } = S(), m = i((c) => c.editing), { id: t, placeholder: n } = o, p = u(n, m);
|
|
11
|
+
return /* @__PURE__ */ e(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
"data-control-id": t,
|
|
15
|
+
w: "100%",
|
|
16
|
+
variant: "default",
|
|
17
|
+
className: d.BLOCK_INPUT_EMAIL,
|
|
18
|
+
leftSection: o.icon ? /* @__PURE__ */ e(s, { icon: o.icon }) : l[o.controlType].icon,
|
|
19
|
+
placeholder: p,
|
|
20
|
+
...r.getInputProps(t)
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
E as EmailField
|
|
26
|
+
};
|