@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,85 @@
|
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as g } from "react";
|
|
3
|
+
import n from "@emotion/styled";
|
|
4
|
+
import { TABLE_ATTRIBUTES as t } from "../constants.js";
|
|
5
|
+
import { TableCell as a } from "./TableCell.js";
|
|
6
|
+
const L = g(
|
|
7
|
+
({ row: r, meta: d, columns: e, selected: h, start: s }) => {
|
|
8
|
+
const c = !!h?.includes(r.id);
|
|
9
|
+
return /* @__PURE__ */ m(
|
|
10
|
+
b,
|
|
11
|
+
{
|
|
12
|
+
[t.ROW]: r.id,
|
|
13
|
+
[t.ROW_SELECTED]: c,
|
|
14
|
+
[t.ROW_CHILD]: !d[r.id]?.main,
|
|
15
|
+
style: {
|
|
16
|
+
"--start": s + "px"
|
|
17
|
+
},
|
|
18
|
+
children: [
|
|
19
|
+
e.left.length > 0 && /* @__PURE__ */ o(l, { [t.PANEL_SIDE]: "left", children: e.left.map((i) => /* @__PURE__ */ o(a, { row: r, column: i }, i.field)) }),
|
|
20
|
+
/* @__PURE__ */ o(f, { children: e.base.map((i) => /* @__PURE__ */ o(a, { row: r, column: i }, i.field)) }),
|
|
21
|
+
e.right.length > 0 && /* @__PURE__ */ o(l, { [t.PANEL_SIDE]: "right", children: e.right.map((i) => /* @__PURE__ */ o(a, { row: r, column: i }, i.field)) })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
), f = n.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-width: var(--base-cols-width);
|
|
30
|
+
`, l = n.div`
|
|
31
|
+
top: 0;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
width: min-content;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
height: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
position: sticky;
|
|
39
|
+
background-color: var(--mantine-color-body);
|
|
40
|
+
transition: background-color 0.2s ease;
|
|
41
|
+
|
|
42
|
+
&[${t.PANEL_SIDE}='left'] {
|
|
43
|
+
left: 0;
|
|
44
|
+
|
|
45
|
+
[${t.CELL}]:last-of-type {
|
|
46
|
+
box-shadow: 2px 0 0 0
|
|
47
|
+
light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[${t.PANEL_SIDE}='right'] {
|
|
52
|
+
right: 0;
|
|
53
|
+
|
|
54
|
+
[${t.CELL}]:first-of-type {
|
|
55
|
+
box-shadow: -2px 0 0 0
|
|
56
|
+
light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`, b = n.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
width: max-content;
|
|
62
|
+
min-width: 100%;
|
|
63
|
+
height: var(--row-height);
|
|
64
|
+
transition: background-color 0.2s ease;
|
|
65
|
+
|
|
66
|
+
&[${t.ROW_SELECTED}='true'] {
|
|
67
|
+
background-color: light-dark(
|
|
68
|
+
var(--mantine-color-blue-0),
|
|
69
|
+
var(--mantine-color-dark-8)
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
${l} {
|
|
73
|
+
background-color: light-dark(
|
|
74
|
+
var(--mantine-color-blue-0),
|
|
75
|
+
var(--mantine-color-dark-8)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
border-bottom: 1px solid
|
|
81
|
+
light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-5));
|
|
82
|
+
`;
|
|
83
|
+
export {
|
|
84
|
+
L as TableRow
|
|
85
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h, useCallback as a } from "react";
|
|
3
|
+
import g from "@emotion/styled";
|
|
4
|
+
import { useVirtualizer as u } from "@tanstack/react-virtual";
|
|
5
|
+
import { TABLE_ATTRIBUTES as c } from "../constants.js";
|
|
6
|
+
import { useTableStore as R } from "../hooks/useTableStore.js";
|
|
7
|
+
import { TableRow as d } from "./TableRow.js";
|
|
8
|
+
const k = h(
|
|
9
|
+
({ rows: e, meta: n, columns: s, selected: m, virtual: r }) => {
|
|
10
|
+
const { useStore: l } = R(), p = l((t) => t.scrollRef), o = l((t) => t.props.rowHeight), f = u({
|
|
11
|
+
count: e.length,
|
|
12
|
+
enabled: r,
|
|
13
|
+
getScrollElement: a(() => p, [p]),
|
|
14
|
+
estimateSize: a(() => o, [o]),
|
|
15
|
+
getItemKey: a((t) => e[t].id, [e])
|
|
16
|
+
});
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
18
|
+
b,
|
|
19
|
+
{
|
|
20
|
+
"data-virtual": r,
|
|
21
|
+
style: {
|
|
22
|
+
height: r ? `${f.getTotalSize()}px` : void 0
|
|
23
|
+
},
|
|
24
|
+
children: r ? f.getVirtualItems().map((t) => /* @__PURE__ */ i(
|
|
25
|
+
d,
|
|
26
|
+
{
|
|
27
|
+
meta: n,
|
|
28
|
+
start: t.start,
|
|
29
|
+
row: e[t.index],
|
|
30
|
+
columns: s,
|
|
31
|
+
selected: m
|
|
32
|
+
},
|
|
33
|
+
t.key
|
|
34
|
+
)) : e.map((t, T) => /* @__PURE__ */ i(
|
|
35
|
+
d,
|
|
36
|
+
{
|
|
37
|
+
meta: n,
|
|
38
|
+
start: T * o,
|
|
39
|
+
row: t,
|
|
40
|
+
columns: s,
|
|
41
|
+
selected: m
|
|
42
|
+
},
|
|
43
|
+
t.id
|
|
44
|
+
))
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
), b = g.div`
|
|
49
|
+
width: max-content;
|
|
50
|
+
min-width: 100%;
|
|
51
|
+
position: relative;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
transform: translateY(var(--start));
|
|
54
|
+
|
|
55
|
+
&[${c.VIRTUAL_CONTAINER}='true'] {
|
|
56
|
+
[${c.ROW}] {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
transform: translateY(var(--start));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
export {
|
|
65
|
+
k as TableRows
|
|
66
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, useState as h, useEffect as p, useCallback as f } from "react";
|
|
3
|
+
import { TextInput as i } from "@mantine/core";
|
|
4
|
+
import { useDebouncedCallback as S } from "@mantine/hooks";
|
|
5
|
+
import { IconSearch as b } from "@tabler/icons-react";
|
|
6
|
+
import { useTableStore as T } from "../hooks/useTableStore.js";
|
|
7
|
+
const I = u(() => {
|
|
8
|
+
const { api: s, useStore: n } = T(), t = n((e) => e.search), [m, r] = h(""), o = S((e) => s.setSearch(e), 800);
|
|
9
|
+
p(() => {
|
|
10
|
+
r(t);
|
|
11
|
+
}, [t]);
|
|
12
|
+
const l = f(
|
|
13
|
+
(e) => {
|
|
14
|
+
const a = e.currentTarget.value;
|
|
15
|
+
r(a), o(a);
|
|
16
|
+
},
|
|
17
|
+
[o]
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ c(
|
|
20
|
+
i,
|
|
21
|
+
{
|
|
22
|
+
leftSection: /* @__PURE__ */ c(b, { size: "1em" }),
|
|
23
|
+
value: m,
|
|
24
|
+
onChange: l,
|
|
25
|
+
placeholder: "Type to search...",
|
|
26
|
+
variant: "default"
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
I as TableSearch
|
|
32
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as w, useMemo as h } from "react";
|
|
3
|
+
import g from "@emotion/styled";
|
|
4
|
+
import { Skeleton as d } from "@mantine/core";
|
|
5
|
+
import { SELECT_COLUMN_FIELD as m, EXPAND_COLUMN_FIELD as l } from "../constants.js";
|
|
6
|
+
import { useTableStore as S } from "../hooks/useTableStore.js";
|
|
7
|
+
import { TableRow as _ } from "./TableRow.js";
|
|
8
|
+
const y = [], c = w(({ count: o, columns: r }) => {
|
|
9
|
+
const { useStore: a } = S(), n = a((e) => e.props.rowHeight), f = h(() => ({
|
|
10
|
+
left: r.left.map((e) => ({
|
|
11
|
+
...e,
|
|
12
|
+
cellStyle: e.field === m || e.field === l ? { padding: 12, width: "100%" } : { width: "100%" },
|
|
13
|
+
render: () => /* @__PURE__ */ i(d, { h: 16, w: "100%", flex: 1 })
|
|
14
|
+
})),
|
|
15
|
+
base: r.base.map((e) => ({
|
|
16
|
+
...e,
|
|
17
|
+
cellStyle: e.field === m || e.field === l ? { padding: 12, width: "100%" } : { width: "100%" },
|
|
18
|
+
render: () => /* @__PURE__ */ i(d, { h: 16, w: "100%", flex: 1 })
|
|
19
|
+
})),
|
|
20
|
+
right: r.right.map((e) => ({
|
|
21
|
+
...e,
|
|
22
|
+
cellStyle: e.field === m || e.field === l ? { padding: 12, width: "100%" } : { width: "100%" },
|
|
23
|
+
render: () => /* @__PURE__ */ i(d, { h: 16 })
|
|
24
|
+
}))
|
|
25
|
+
}), [r.base, r.left, r.right]), p = h(() => {
|
|
26
|
+
const e = {};
|
|
27
|
+
return Array.from({ length: o }, (t, s) => s).forEach((t) => {
|
|
28
|
+
e[t] = {
|
|
29
|
+
main: !0
|
|
30
|
+
};
|
|
31
|
+
}), e;
|
|
32
|
+
}, [o]);
|
|
33
|
+
return /* @__PURE__ */ i(
|
|
34
|
+
E,
|
|
35
|
+
{
|
|
36
|
+
style: {
|
|
37
|
+
height: `${o * n}px`
|
|
38
|
+
},
|
|
39
|
+
children: Array.from({ length: o }, (e, t) => t).map((e, t) => /* @__PURE__ */ i(
|
|
40
|
+
_,
|
|
41
|
+
{
|
|
42
|
+
start: t * n,
|
|
43
|
+
row: { id: t.toString() },
|
|
44
|
+
columns: f,
|
|
45
|
+
meta: p,
|
|
46
|
+
selected: y
|
|
47
|
+
},
|
|
48
|
+
t.toString()
|
|
49
|
+
))
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}), E = g.div`
|
|
53
|
+
width: max-content;
|
|
54
|
+
min-width: 100%;
|
|
55
|
+
position: relative;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
`;
|
|
58
|
+
export {
|
|
59
|
+
c as TableSkeleton
|
|
60
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import e from "@emotion/styled";
|
|
2
|
+
const t = e.div``, i = e.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: 12px;
|
|
7
|
+
padding: 16px;
|
|
8
|
+
text-transform: none;
|
|
9
|
+
`, n = e.div`
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
flex: 1;
|
|
18
|
+
`, d = e.div`
|
|
19
|
+
text-transform: none;
|
|
20
|
+
`;
|
|
21
|
+
export {
|
|
22
|
+
d as TableDesc,
|
|
23
|
+
i as TableHeader,
|
|
24
|
+
n as TableRoot,
|
|
25
|
+
t as TableTitle
|
|
26
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
ROW: "data-row",
|
|
3
|
+
CELL: "data-cell",
|
|
4
|
+
ROOT: "data-root",
|
|
5
|
+
COLUMN_ALIGN: "data-al",
|
|
6
|
+
SCROLLED: "data-scrolled",
|
|
7
|
+
SORTABLE: "data-sortable",
|
|
8
|
+
RESIZER: "data-resizer",
|
|
9
|
+
RESIZER_SIDE: "data-side",
|
|
10
|
+
ROW_SELECTED: "data-sel",
|
|
11
|
+
ROW_CHILD: "data-child",
|
|
12
|
+
SORTED: "data-sorted",
|
|
13
|
+
HEADER_CELL: "data-header",
|
|
14
|
+
INNER: "data-inner",
|
|
15
|
+
AUTOSIZE: "data-autosize",
|
|
16
|
+
PANEL_SIDE: "data-side",
|
|
17
|
+
HEADER_GRID: "data-header-grid",
|
|
18
|
+
VIRTUAL_CONTAINER: "data-virtual",
|
|
19
|
+
BASE: "data-base",
|
|
20
|
+
HEADERS: "data-headers",
|
|
21
|
+
HEADER_GROUP: "data-header-group"
|
|
22
|
+
}, E = "__checkbox__", d = "__expand__", t = "__aggregation__";
|
|
23
|
+
export {
|
|
24
|
+
d as EXPAND_COLUMN_FIELD,
|
|
25
|
+
E as SELECT_COLUMN_FIELD,
|
|
26
|
+
t as TABLE_AGGREGATION_ROW_ID,
|
|
27
|
+
a as TABLE_ATTRIBUTES
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { format as f } from "date-fns";
|
|
2
|
+
import l from "exceljs";
|
|
3
|
+
import { isArray as u, get as b } from "lodash-es";
|
|
4
|
+
const i = async ({
|
|
5
|
+
rows: a,
|
|
6
|
+
columns: e,
|
|
7
|
+
fileName: o
|
|
8
|
+
}) => {
|
|
9
|
+
const t = new l.Workbook(), r = t.addWorksheet(o), n = p(e);
|
|
10
|
+
return r.columns = p(e).map((s) => ({
|
|
11
|
+
key: s.field,
|
|
12
|
+
header: s.header
|
|
13
|
+
})), a.map((s) => w(s, n)).forEach((s) => r.addRow(s)), t;
|
|
14
|
+
}, x = async ({
|
|
15
|
+
rows: a,
|
|
16
|
+
columns: e,
|
|
17
|
+
fileName: o
|
|
18
|
+
}) => {
|
|
19
|
+
const r = await (await i({ rows: a, columns: e, fileName: o })).xlsx.writeBuffer(), n = new Blob([r], {
|
|
20
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
21
|
+
});
|
|
22
|
+
c(n, o);
|
|
23
|
+
}, y = async ({
|
|
24
|
+
rows: a,
|
|
25
|
+
columns: e,
|
|
26
|
+
fileName: o
|
|
27
|
+
}) => {
|
|
28
|
+
const r = await (await i({ rows: a, columns: e, fileName: o })).csv.writeBuffer(), n = new Blob([r], {
|
|
29
|
+
type: "text/csv;charset=utf-8;"
|
|
30
|
+
});
|
|
31
|
+
c(n, o);
|
|
32
|
+
}, c = (a, e) => {
|
|
33
|
+
const o = URL.createObjectURL(a), t = document.createElement("a");
|
|
34
|
+
t.href = o, t.download = [e, f(/* @__PURE__ */ new Date(), "yyyy-MM-dd")].join("_"), t.click(), URL.revokeObjectURL(o);
|
|
35
|
+
}, p = (a) => a.filter((e) => e.exportable).flatMap((e) => {
|
|
36
|
+
const { exportSettings: o } = e;
|
|
37
|
+
return o ? (u(o) ? o : [o]).map((r, n) => ({
|
|
38
|
+
header: r.header ?? (typeof e.header == "string" ? e.header : ""),
|
|
39
|
+
field: [e.field, n].join("_"),
|
|
40
|
+
value: r.value,
|
|
41
|
+
baseField: e.field
|
|
42
|
+
})) : [{
|
|
43
|
+
header: typeof e.header == "string" ? e.header : "",
|
|
44
|
+
field: e.field,
|
|
45
|
+
value: (n, d) => d,
|
|
46
|
+
baseField: e.field
|
|
47
|
+
}];
|
|
48
|
+
}), w = (a, e) => e.reduce(
|
|
49
|
+
(o, t) => {
|
|
50
|
+
const r = b(a, t.baseField), n = t?.value ? t.value(a, r) : r;
|
|
51
|
+
return o[t.field] = n, o;
|
|
52
|
+
},
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
55
|
+
export {
|
|
56
|
+
y as exportToCSV,
|
|
57
|
+
x as exportToExcel
|
|
58
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { jsx as o, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import E from "@emotion/styled";
|
|
3
|
+
import { ActionIcon as N, Checkbox as v } from "@mantine/core";
|
|
4
|
+
import { IconChevronDown as W, IconChevronRight as A } from "@tabler/icons-react";
|
|
5
|
+
import { isValid as h, format as p } from "date-fns";
|
|
6
|
+
import { round as a, assignWith as D, get as c, isNil as R } from "lodash-es";
|
|
7
|
+
import { EXPAND_COLUMN_FIELD as g, SELECT_COLUMN_FIELD as m } from "../constants.js";
|
|
8
|
+
import { useTableStore as I } from "../hooks/useTableStore.js";
|
|
9
|
+
import { selectionReselect as T } from "../selectors.js";
|
|
10
|
+
import { Numbers as s } from "./formatters.js";
|
|
11
|
+
const C = (e) => ({
|
|
12
|
+
render: (t, r) => {
|
|
13
|
+
const n = new Date(r);
|
|
14
|
+
return h(n) ? p(n, e?.format ?? "MMM dd, yyyy") : null;
|
|
15
|
+
},
|
|
16
|
+
exportSettings: {
|
|
17
|
+
value: (t, r) => {
|
|
18
|
+
const n = new Date(r);
|
|
19
|
+
return h(n) ? p(n, e?.format ?? "yyyy-MM-dd") : null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}), S = (e = { decimal: !0 }) => ({
|
|
23
|
+
align: "right",
|
|
24
|
+
render: (t, r) => s.format(r, e),
|
|
25
|
+
exportSettings: {
|
|
26
|
+
value: (t, r) => a(s.parse(r), e.decimal ? 2 : 0).toString()
|
|
27
|
+
}
|
|
28
|
+
}), x = (e = { decimal: !0 }) => ({
|
|
29
|
+
align: "right",
|
|
30
|
+
render: (t, r) => r ? "x" + s.format(r, e) : "",
|
|
31
|
+
exportSettings: {
|
|
32
|
+
value: (t, r) => a(s.parse(r), 2).toString()
|
|
33
|
+
}
|
|
34
|
+
}), b = (e = { decimal: !0 }) => ({
|
|
35
|
+
align: "right",
|
|
36
|
+
render: (t, r) => s.formatPercents(r, e),
|
|
37
|
+
exportSettings: {
|
|
38
|
+
value: (t, r) => a(s.parse(r), e.decimal ? 2 : 0).toString()
|
|
39
|
+
}
|
|
40
|
+
}), y = (e) => ({
|
|
41
|
+
align: "right",
|
|
42
|
+
render: (t, r) => s.formatCurrency(r, e),
|
|
43
|
+
exportSettings: {
|
|
44
|
+
value: (t, r) => a(s.parse(r), 2).toString()
|
|
45
|
+
}
|
|
46
|
+
}), _ = (e) => {
|
|
47
|
+
let t = 2166136261;
|
|
48
|
+
for (let r = 0; r < e.length; r++)
|
|
49
|
+
t ^= e.charCodeAt(r), t += (t << 1) + (t << 4) + (t << 7) + (t << 8) + (t << 24);
|
|
50
|
+
return ("0000000" + (t >>> 0).toString(16)).slice(-8);
|
|
51
|
+
}, w = (e) => {
|
|
52
|
+
let t = {};
|
|
53
|
+
return typeof e == "object" ? e.type === "number" ? t = S(e) : e.type === "currency" ? t = y(e) : e.type === "percent" ? t = b(e) : e.type === "ratio" ? t = x(e) : e.type === "date" && (t = C(e)) : e === "number" ? t = S() : e === "currency" ? t = y() : e === "percent" ? t = b() : e === "ratio" ? t = x() : e === "date" && (t = C()), t;
|
|
54
|
+
}, G = (e) => e === g || e === m;
|
|
55
|
+
function J(e, t) {
|
|
56
|
+
return e.filter((r) => r.pinned === t);
|
|
57
|
+
}
|
|
58
|
+
const L = {
|
|
59
|
+
resizable: !0,
|
|
60
|
+
exportable: !0,
|
|
61
|
+
sortable: !0,
|
|
62
|
+
management: {
|
|
63
|
+
show: !0
|
|
64
|
+
}
|
|
65
|
+
}, K = (e, t) => ({
|
|
66
|
+
...L,
|
|
67
|
+
...w(t?.type ?? e.type),
|
|
68
|
+
...D(
|
|
69
|
+
{},
|
|
70
|
+
e,
|
|
71
|
+
t,
|
|
72
|
+
(r, n) => n === void 0 ? r : n
|
|
73
|
+
),
|
|
74
|
+
computedWidth: t?.computedWidth,
|
|
75
|
+
setWidth: t?.setWidth,
|
|
76
|
+
get finalWidth() {
|
|
77
|
+
return this.setWidth ?? this.computedWidth;
|
|
78
|
+
},
|
|
79
|
+
get id() {
|
|
80
|
+
return _(this.field);
|
|
81
|
+
}
|
|
82
|
+
}), Q = (e) => ({
|
|
83
|
+
gridTemplateColumns: e.map((r) => `var(--col-${_(r.field)})`).join(" "),
|
|
84
|
+
"--col-count": e.length
|
|
85
|
+
}), Y = ({
|
|
86
|
+
expanded: e,
|
|
87
|
+
api: t,
|
|
88
|
+
pinned: r
|
|
89
|
+
}) => ({
|
|
90
|
+
id: g,
|
|
91
|
+
field: g,
|
|
92
|
+
width: 40,
|
|
93
|
+
headerStyle: {
|
|
94
|
+
padding: 0
|
|
95
|
+
},
|
|
96
|
+
cellStyle: {
|
|
97
|
+
padding: 0
|
|
98
|
+
},
|
|
99
|
+
pinned: r ? "left" : void 0,
|
|
100
|
+
align: "center",
|
|
101
|
+
exportable: !1,
|
|
102
|
+
sortable: !1,
|
|
103
|
+
resizable: !1,
|
|
104
|
+
header: null,
|
|
105
|
+
render: (i) => {
|
|
106
|
+
if (!Array.isArray(i.__children)) return /* @__PURE__ */ o(z, {});
|
|
107
|
+
const l = e?.includes(i.id);
|
|
108
|
+
return /* @__PURE__ */ o(
|
|
109
|
+
N,
|
|
110
|
+
{
|
|
111
|
+
onClick: () => t.toggleRowExpand(i.id),
|
|
112
|
+
size: "xs",
|
|
113
|
+
variant: "subtle",
|
|
114
|
+
children: l ? /* @__PURE__ */ o(W, { size: 16 }) : /* @__PURE__ */ o(A, { size: 16 })
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}), Z = ({
|
|
119
|
+
selected: e,
|
|
120
|
+
api: t,
|
|
121
|
+
pinned: r
|
|
122
|
+
}) => ({
|
|
123
|
+
id: m,
|
|
124
|
+
field: m,
|
|
125
|
+
width: 40,
|
|
126
|
+
headerStyle: {
|
|
127
|
+
padding: 0
|
|
128
|
+
},
|
|
129
|
+
cellStyle: {
|
|
130
|
+
padding: 0
|
|
131
|
+
},
|
|
132
|
+
pinned: r ? "left" : void 0,
|
|
133
|
+
align: "center",
|
|
134
|
+
exportable: !1,
|
|
135
|
+
sortable: !1,
|
|
136
|
+
resizable: !1,
|
|
137
|
+
header: /* @__PURE__ */ o(P, {}),
|
|
138
|
+
render: (i) => {
|
|
139
|
+
const l = e.includes(i.id);
|
|
140
|
+
return /* @__PURE__ */ o(
|
|
141
|
+
v,
|
|
142
|
+
{
|
|
143
|
+
size: "xs",
|
|
144
|
+
checked: l,
|
|
145
|
+
onChange: () => {
|
|
146
|
+
l ? t.unselectRow(i.id) : t.selectRow(i.id);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
}), P = () => {
|
|
152
|
+
const { useStore: e, api: t } = I(), { allSelected: r, hasSelected: n } = e(T);
|
|
153
|
+
return /* @__PURE__ */ o(
|
|
154
|
+
v,
|
|
155
|
+
{
|
|
156
|
+
size: "xs",
|
|
157
|
+
checked: n,
|
|
158
|
+
indeterminate: n && !r,
|
|
159
|
+
onChange: () => {
|
|
160
|
+
n ? t.unselectVisibleRows() : t.selectVisibleRows();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}, ee = (e, t, r) => e.map((n) => {
|
|
165
|
+
const { aggregation: i, field: l, type: M } = n;
|
|
166
|
+
return {
|
|
167
|
+
...n,
|
|
168
|
+
render: () => {
|
|
169
|
+
if (!i) return null;
|
|
170
|
+
if (i.render)
|
|
171
|
+
return /* @__PURE__ */ o(u, { children: i.render?.(r) });
|
|
172
|
+
const d = c(t, l), f = w(M);
|
|
173
|
+
return f.render ? /* @__PURE__ */ o(u, { children: f.render(t, d) }) : typeof d == "object" ? null : /* @__PURE__ */ o(u, { children: d });
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}), te = (e, t) => {
|
|
177
|
+
const r = e.aggregation;
|
|
178
|
+
if (!r || r.render) return null;
|
|
179
|
+
const n = t.map((i) => c(i, e.field)).map(s.parse).filter((i) => !isNaN(i));
|
|
180
|
+
return r.type === "sum" ? n.reduce((i, l) => i + l, 0) : r.type === "avg" ? n.reduce((i, l) => i + l, 0) / n.length : r.type === "min" ? Math.min(...n) : r.type === "max" ? Math.max(...n) : r.type === "count" ? t.map((l) => c(l, e.field)).filter((l) => !R(l)).length : null;
|
|
181
|
+
}, u = E.div``;
|
|
182
|
+
export {
|
|
183
|
+
J as filterPinnedColumns,
|
|
184
|
+
te as getAggregateValue,
|
|
185
|
+
ee as getAggregationColumns,
|
|
186
|
+
_ as getColumnId,
|
|
187
|
+
w as getColumnsProps,
|
|
188
|
+
y as getCurrencyColumn,
|
|
189
|
+
C as getDateColumn,
|
|
190
|
+
Y as getExpandingColumn,
|
|
191
|
+
Q as getHeaderStyles,
|
|
192
|
+
S as getNumberColumn,
|
|
193
|
+
b as getPercentColumn,
|
|
194
|
+
x as getRatioColumn,
|
|
195
|
+
Z as getSelectionColumn,
|
|
196
|
+
G as isTechnicalColumn,
|
|
197
|
+
K as mergeColumn
|
|
198
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { isNil as N } from "lodash-es";
|
|
2
|
+
var u;
|
|
3
|
+
((r) => {
|
|
4
|
+
r.parse = (t) => {
|
|
5
|
+
if (N(t))
|
|
6
|
+
return NaN;
|
|
7
|
+
if (typeof t == "number" && !isNaN(t))
|
|
8
|
+
return t;
|
|
9
|
+
const n = typeof t == "string" ? parseFloat(t) : NaN;
|
|
10
|
+
return isNaN(n) ? NaN : n;
|
|
11
|
+
}, r.isPositive = (t) => (0, r.isNumber)(t) && t > 0, r.isNegative = (t) => (0, r.isNumber)(t) && t < 0, r.getDynamic = (t, n) => {
|
|
12
|
+
const e = (0, r.parse)(t);
|
|
13
|
+
return (0, r.isNumber)(e) ? (0, r.isPositive)(e) ? n ? "negative" : "positive" : (0, r.isNegative)(e) ? n ? "positive" : "negative" : "neutral" : null;
|
|
14
|
+
}, r.isNumber = (t) => typeof t == "number" && !isNaN(t), r.format = (t, n = {}) => {
|
|
15
|
+
const {
|
|
16
|
+
locale: e = "en-US",
|
|
17
|
+
invalidValue: i = "n/a",
|
|
18
|
+
style: o,
|
|
19
|
+
currency: a,
|
|
20
|
+
decimal: c,
|
|
21
|
+
minimumFractionDigits: s,
|
|
22
|
+
maximumFractionDigits: p,
|
|
23
|
+
divide: l,
|
|
24
|
+
short: y,
|
|
25
|
+
...g
|
|
26
|
+
} = n, m = (0, r.parse)(t);
|
|
27
|
+
if (isNaN(m)) return i;
|
|
28
|
+
const d = new Intl.NumberFormat(e, {
|
|
29
|
+
style: o,
|
|
30
|
+
...o === "currency" ? { currency: a || "USD", currencyDisplay: "symbol" } : {},
|
|
31
|
+
minimumFractionDigits: s ?? (c ? 2 : 0),
|
|
32
|
+
maximumFractionDigits: p ?? (c ? 2 : 0),
|
|
33
|
+
notation: y ? "compact" : void 0,
|
|
34
|
+
compactDisplay: y ? "short" : void 0,
|
|
35
|
+
...g
|
|
36
|
+
});
|
|
37
|
+
try {
|
|
38
|
+
return d.format(l ? m / 100 : m);
|
|
39
|
+
} catch {
|
|
40
|
+
return i;
|
|
41
|
+
}
|
|
42
|
+
}, r.formatCurrency = (t, n) => (0, r.format)(t, { style: "currency", ...n }), r.formatPercents = (t, n) => (0, r.format)(t, { style: "percent", ...n }), r.dynamicTypesList = ["positive", "negative", "neutral"];
|
|
43
|
+
const f = {
|
|
44
|
+
currency: r.formatCurrency,
|
|
45
|
+
number: r.format,
|
|
46
|
+
percent: r.formatPercents
|
|
47
|
+
};
|
|
48
|
+
r.round = (t, n = -2, e = "round") => {
|
|
49
|
+
if (t = Number(t), n % 1 !== 0 || Number.isNaN(t))
|
|
50
|
+
return NaN;
|
|
51
|
+
if (n === 0)
|
|
52
|
+
return Math[e](t);
|
|
53
|
+
const [i, o = 0] = t.toString().split("e"), a = Math[e](
|
|
54
|
+
+`${i}e${Number(o) - n}`
|
|
55
|
+
), [c, s = 0] = a.toString().split("e");
|
|
56
|
+
return +`${c}e${+s + n}`;
|
|
57
|
+
}, r.formatByType = (t, n, e) => f[t](n, e), r.getCurrencySymbol = (t, n = "en-US") => new Intl.NumberFormat(n, {
|
|
58
|
+
style: "currency",
|
|
59
|
+
currency: t,
|
|
60
|
+
currencyDisplay: "symbol"
|
|
61
|
+
}).formatToParts(1).find((a) => a.type === "currency")?.value || "";
|
|
62
|
+
})(u || (u = {}));
|
|
63
|
+
export {
|
|
64
|
+
u as Numbers
|
|
65
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as S, useLayoutEffect as C } from "react";
|
|
3
|
+
const b = S(
|
|
4
|
+
null
|
|
5
|
+
), P = ({
|
|
6
|
+
children: h,
|
|
7
|
+
store: t,
|
|
8
|
+
rows: p,
|
|
9
|
+
columns: s,
|
|
10
|
+
loading: i,
|
|
11
|
+
pageSizeOptions: r,
|
|
12
|
+
rowHeight: e,
|
|
13
|
+
headerHeight: a,
|
|
14
|
+
rowCount: n,
|
|
15
|
+
exportFileName: g,
|
|
16
|
+
pagination: l,
|
|
17
|
+
virtualization: u,
|
|
18
|
+
searching: x,
|
|
19
|
+
selection: c,
|
|
20
|
+
sorting: d,
|
|
21
|
+
expanding: f
|
|
22
|
+
}) => (C(() => {
|
|
23
|
+
t.useStore.setState((o) => ({
|
|
24
|
+
...o,
|
|
25
|
+
props: {
|
|
26
|
+
headerHeight: a ?? o.props.headerHeight,
|
|
27
|
+
loading: i ?? o.props.loading,
|
|
28
|
+
pageSizeOptions: r ?? o.props.pageSizeOptions,
|
|
29
|
+
rowCount: n ?? o.props.rowCount,
|
|
30
|
+
rowHeight: e ?? o.props.rowHeight,
|
|
31
|
+
exportFileName: g ?? o.props.exportFileName,
|
|
32
|
+
pagination: l ?? o.props.pagination,
|
|
33
|
+
searching: x ?? o.props.searching,
|
|
34
|
+
selection: c ?? o.props.selection,
|
|
35
|
+
expanding: f ?? o.props.expanding,
|
|
36
|
+
virtualization: u ?? o.props.virtualization,
|
|
37
|
+
sorting: d ?? o.props.sorting,
|
|
38
|
+
columns: s,
|
|
39
|
+
rows: p
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
}, [
|
|
43
|
+
s,
|
|
44
|
+
f,
|
|
45
|
+
g,
|
|
46
|
+
a,
|
|
47
|
+
i,
|
|
48
|
+
r,
|
|
49
|
+
l,
|
|
50
|
+
n,
|
|
51
|
+
e,
|
|
52
|
+
p,
|
|
53
|
+
x,
|
|
54
|
+
c,
|
|
55
|
+
d,
|
|
56
|
+
u,
|
|
57
|
+
t.useStore
|
|
58
|
+
]), /* @__PURE__ */ m(b.Provider, { value: t, children: h }));
|
|
59
|
+
export {
|
|
60
|
+
b as TableContext,
|
|
61
|
+
P as TableProvider
|
|
62
|
+
};
|