@layers-app/shared 0.2.4 → 0.2.6
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/jsons/emoji-categorized-windows.json.js +4 -0
- package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
- package/dist/assets/svg/flags/es.svg.js +4 -0
- package/dist/assets/svg/flags/ru.svg.js +4 -0
- package/dist/assets/svg/flags/us.svg.js +4 -0
- package/dist/assets/svg/globeIcon.svg.js +5 -0
- package/dist/assets/svg/socials/github.svg.js +5 -0
- package/dist/assets/svg/socials/instagram.svg.js +5 -0
- package/dist/assets/svg/socials/x.svg.js +5 -0
- package/dist/assets/svg/socials/youtube.svg.js +5 -0
- package/dist/assets/svg/users.svg.js +5 -0
- package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +48 -45
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +57 -44
- package/dist/components/AppContainer/components/Main.d.ts +5 -1
- package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Main.js +11 -8
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +45 -42
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -0
- package/dist/components/AppContainer/types.d.ts +2 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +66 -59
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +6 -6
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +37 -38
- package/dist/components/EmojiPicker/utils.d.ts +11 -0
- package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
- package/dist/components/EmojiPicker/utils.js +46 -0
- package/dist/components/EntityIcon.d.ts +5 -2
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +44 -46
- package/dist/components/FilePicker/FilePicker.d.ts +33 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +155 -105
- package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
- package/dist/components/FilePicker/types.d.ts +1 -1
- package/dist/components/FilePicker/types.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
- package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
- package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
- package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +10 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.js +3 -3
- package/dist/components/FormViewer/store/selectors.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -0
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +9 -8
- package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
- package/dist/components/ImageCropper/ImageCropper.js +356 -0
- package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
- package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
- package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
- package/dist/components/ImageCropper/cropUtils.js +42 -0
- package/dist/components/ImageCropper/index.d.ts +4 -0
- package/dist/components/ImageCropper/index.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.js +76 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
- package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +26 -22
- package/dist/components/Loaders/styles.module.css.js +1 -1
- package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
- package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
- package/dist/components/MediaLibrary/index.d.ts +4 -0
- package/dist/components/MediaLibrary/index.d.ts.map +1 -0
- package/dist/components/MediaLibrary/types.d.ts +31 -0
- package/dist/components/MediaLibrary/types.d.ts.map +1 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +96 -77
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
- package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDItem.js +32 -30
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.js +28 -26
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
- package/dist/components/NavMenu/store.d.ts +1 -0
- package/dist/components/NavMenu/store.d.ts.map +1 -1
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NoData/NoData.d.ts +38 -27
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +82 -79
- package/dist/components/OnBoarding/ProjectBoard.js +17 -17
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
- package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
- package/dist/components/SearchFilters/components/DateFilter.js +19 -19
- package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
- package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
- package/dist/components/SettingsSection/index.d.ts +12 -0
- package/dist/components/SettingsSection/index.d.ts.map +1 -0
- package/dist/components/SettingsSection/index.js +36 -0
- package/dist/components/SettingsSection/styles.module.css.js +7 -0
- package/dist/components/SocialLinkRow/index.d.ts +11 -0
- package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
- package/dist/components/SocialLinkRow/index.js +109 -0
- package/dist/components/SortableList/SortableList.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +4 -12
- package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
- package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
- package/dist/components/StorageUsageProgress/index.d.ts +2 -2
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +76 -41
- package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
- package/dist/components/ThemeIndicator/index.js +4 -4
- package/dist/components/TimezonePicker/index.d.ts +9 -0
- package/dist/components/TimezonePicker/index.d.ts.map +1 -0
- package/dist/components/TimezonePicker/index.js +90 -0
- package/dist/components/UserAvatar/index.js +14 -14
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +78 -74
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +31 -24
- package/dist/components/table/components/TableHeaders.js +3 -3
- package/dist/components/table/components/TablePanel.js +1 -1
- package/dist/components/table/export.d.ts.map +1 -1
- package/dist/components/table/helpers/columns.js +3 -3
- package/dist/components/table/hooks/TableProvider.js +3 -3
- package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.js +4 -4
- package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
- package/dist/components/table/hooks/useSorting.js +3 -1
- package/dist/components/table/selectors.js +6 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -1
- package/dist/helpers/getFileIcons.js +12 -12
- package/dist/helpers/getFileType.d.ts +1 -2
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +5 -6
- package/dist/helpers/isAppMode.d.ts +1 -1
- package/dist/helpers/isAppMode.d.ts.map +1 -1
- package/dist/helpers/showNotifications.d.ts +14 -3
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +152 -61
- package/dist/helpers/showNotifications.module.css.js +29 -0
- package/dist/helpers/timezones.d.ts +12 -0
- package/dist/helpers/timezones.d.ts.map +1 -0
- package/dist/helpers/timezones.js +59 -0
- package/dist/helpers/validateAliasFormat.d.ts +2 -0
- package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
- package/dist/helpers/validateAliasFormat.js +4 -0
- package/dist/hooks/useNumberQueryParam.js +3 -3
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
- package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
- package/dist/hooks/useVideoUploadGuard.js +24 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +388 -346
- package/dist/lang/locales/ui_en.json.js +24 -22
- package/dist/lang/locales/ui_es.json.js +22 -20
- package/dist/lang/locales/ui_ru.json.js +18 -16
- package/dist/lib/contentImport/index.d.ts +4 -0
- package/dist/lib/contentImport/index.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.js +215 -0
- package/dist/lib/contentImport/types.d.ts +161 -0
- package/dist/lib/contentImport/types.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.d.ts +35 -0
- package/dist/lib/contentImport/utils.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.js +145 -0
- package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -7
- package/dist/store/trashModal.d.ts +8 -0
- package/dist/store/trashModal.d.ts.map +1 -0
- package/dist/store/trashModal.js +13 -0
- package/dist/types/storageCategories.d.ts +4 -0
- package/dist/types/storageCategories.d.ts.map +1 -0
- package/dist/types/storageCategories.js +21 -0
- package/dist/utils/formatStorage.d.ts +8 -2
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +10 -5
- package/dist/utils/getCroppedBlob.d.ts +3 -0
- package/dist/utils/getCroppedBlob.d.ts.map +1 -0
- package/dist/utils/getCroppedBlob.js +21 -0
- package/docs/README.md +17 -4
- package/package.json +1 -1
- package/dist/assets/fileTypes/archives.svg.js +0 -5
- package/dist/assets/fileTypes/audio.svg.js +0 -5
- package/dist/assets/fileTypes/code.svg.js +0 -5
- package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
- package/dist/assets/fileTypes/images.svg.js +0 -5
- package/dist/assets/fileTypes/other.svg.js +0 -5
- package/dist/assets/fileTypes/videos.svg.js +0 -5
- package/dist/assets/images/flags/es.svg.js +0 -4
- package/dist/assets/images/flags/ru.svg.js +0 -4
- package/dist/assets/images/flags/us.svg.js +0 -4
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
- package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
- package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getIconsList.js +0 -32
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
- package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
- package/dist/components/NoData/NoData.module.css.js +0 -7
- package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
- package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
- package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
- package/dist/components/PaymentError/PaymentError.d.ts +0 -2
- package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
- package/dist/components/PaymentError/PaymentError.js +0 -41
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
- package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
- package/dist/store/accessOptionsControl.d.ts +0 -17
- package/dist/store/accessOptionsControl.d.ts.map +0 -1
- package/dist/store/accessOptionsControl.js +0 -18
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { useState as L } from "react";
|
|
3
3
|
import { useTranslation as h } from "react-i18next";
|
|
4
4
|
import { Link as b } from "react-router-dom";
|
|
5
|
-
import { Setting07Icon as
|
|
6
|
-
import { HugeiconsIcon as
|
|
7
|
-
import {
|
|
5
|
+
import { Setting07Icon as N, UserMultiple02Icon as K, Add01Icon as T } from "@hugeicons/core-free-icons";
|
|
6
|
+
import { HugeiconsIcon as k } from "@hugeicons/react";
|
|
7
|
+
import { Stack as a, Flex as l, Text as m, Box as f, Button as S, Menu as p, Tooltip as D, Progress as P, ScrollArea as U } from "@mantine/core";
|
|
8
|
+
import { useAppContainerDataStore as w } from "../AppContainer/hooks/useAppContainerDataStore.js";
|
|
8
9
|
import { useMenu as B } from "../../hooks/useMenu.js";
|
|
9
|
-
import { formatStorage as z } from "../../utils/formatStorage.js";
|
|
10
|
-
import { Logotype as
|
|
11
|
-
import { WorkspaceAvatar as
|
|
12
|
-
import {
|
|
13
|
-
import { WorkspaceItem as O } from "./WorkspaceItem.js";
|
|
10
|
+
import { formatStoragePercent as F, formatStorage as z } from "../../utils/formatStorage.js";
|
|
11
|
+
import { Logotype as O } from "../Logotype.js";
|
|
12
|
+
import { WorkspaceAvatar as x } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
13
|
+
import { WorkspaceItem as E } from "./WorkspaceItem.js";
|
|
14
14
|
const ne = ({
|
|
15
15
|
children: r,
|
|
16
16
|
onCreate: i,
|
|
17
|
-
onClick:
|
|
18
|
-
active:
|
|
17
|
+
onClick: o,
|
|
18
|
+
active: n,
|
|
19
19
|
items: c,
|
|
20
|
-
workspaceLink:
|
|
20
|
+
workspaceLink: s,
|
|
21
21
|
settingsLink: y,
|
|
22
|
-
membersLink:
|
|
22
|
+
membersLink: C,
|
|
23
23
|
isAnonym: I,
|
|
24
24
|
publicMode: W
|
|
25
25
|
}) => {
|
|
26
|
-
const { t:
|
|
26
|
+
const { t: A } = h("workspaceMenu"), { isMobile: u } = B(), [j, d] = L(!1);
|
|
27
27
|
return I || W ? /* @__PURE__ */ e(l, { w: "100%", justify: u ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
|
|
28
|
-
|
|
28
|
+
O,
|
|
29
29
|
{
|
|
30
30
|
minified: !u,
|
|
31
31
|
w: u ? 65 : 24,
|
|
32
32
|
isLink: !1
|
|
33
33
|
}
|
|
34
|
-
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */
|
|
34
|
+
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */ t(
|
|
35
35
|
p,
|
|
36
36
|
{
|
|
37
|
-
opened:
|
|
37
|
+
opened: j,
|
|
38
38
|
onChange: d,
|
|
39
39
|
position: "right-start",
|
|
40
40
|
keepMounted: !1,
|
|
41
41
|
clickOutsideEvents: ["mousedown", "click"],
|
|
42
42
|
offset: 17,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e(p.Target, { children: r ?? /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(p.Target, { children: r ?? /* @__PURE__ */ t(l, { onClick: () => d((g) => !g), children: [
|
|
45
|
+
/* @__PURE__ */ e(x, { size: 30, workspace: n }),
|
|
46
|
+
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(D, { label: n.workspaceName, children: /* @__PURE__ */ e(m, { size: "md", truncate: !0, children: n?.workspaceName || A("noName") }) }) })
|
|
47
47
|
] }) }),
|
|
48
|
-
/* @__PURE__ */ e(p.Dropdown, { w:
|
|
48
|
+
/* @__PURE__ */ e(p.Dropdown, { w: 338, children: /* @__PURE__ */ t(a, { gap: 6, children: [
|
|
49
49
|
/* @__PURE__ */ e(
|
|
50
|
-
|
|
50
|
+
H,
|
|
51
51
|
{
|
|
52
|
-
active:
|
|
53
|
-
workspaceLink:
|
|
52
|
+
active: n,
|
|
53
|
+
workspaceLink: s,
|
|
54
54
|
settingsLink: y,
|
|
55
|
-
membersLink:
|
|
55
|
+
membersLink: C,
|
|
56
56
|
onClose: () => d(!1)
|
|
57
57
|
}
|
|
58
58
|
),
|
|
@@ -61,9 +61,9 @@ const ne = ({
|
|
|
61
61
|
$,
|
|
62
62
|
{
|
|
63
63
|
onCreate: i,
|
|
64
|
-
onClick:
|
|
64
|
+
onClick: o,
|
|
65
65
|
items: c.filter(
|
|
66
|
-
(
|
|
66
|
+
(g) => g.workspaceId !== n?.workspaceId
|
|
67
67
|
),
|
|
68
68
|
onClose: () => d(!1)
|
|
69
69
|
}
|
|
@@ -72,22 +72,22 @@ const ne = ({
|
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
) });
|
|
75
|
-
},
|
|
75
|
+
}, H = ({
|
|
76
76
|
active: r,
|
|
77
77
|
workspaceLink: i,
|
|
78
|
-
settingsLink:
|
|
79
|
-
membersLink:
|
|
78
|
+
settingsLink: o,
|
|
79
|
+
membersLink: n,
|
|
80
80
|
onClose: c
|
|
81
81
|
}) => {
|
|
82
|
-
const { t } = h("workspaceMenu");
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */ e(m, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName ||
|
|
88
|
-
/* @__PURE__ */ e(m, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */
|
|
89
|
-
r.totalMembers ? /* @__PURE__ */
|
|
90
|
-
|
|
82
|
+
const { t: s } = h("workspaceMenu");
|
|
83
|
+
return /* @__PURE__ */ t(a, { p: 4, pb: 5, gap: 12, children: [
|
|
84
|
+
/* @__PURE__ */ t(l, { gap: 10, children: [
|
|
85
|
+
/* @__PURE__ */ e(x, { size: 48, workspace: r }),
|
|
86
|
+
/* @__PURE__ */ t(a, { gap: 0, miw: 0, children: [
|
|
87
|
+
/* @__PURE__ */ e(m, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName || s("noName") }),
|
|
88
|
+
/* @__PURE__ */ e(m, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ t(l, { gap: 6, component: "span", children: [
|
|
89
|
+
r.totalMembers ? /* @__PURE__ */ t(M, { children: [
|
|
90
|
+
s("member", { count: r.totalMembers }),
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
92
|
f,
|
|
93
93
|
{
|
|
@@ -99,52 +99,53 @@ const ne = ({
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] }) : null,
|
|
102
|
-
|
|
102
|
+
w.getState().isSaas && s(`plans.${r.plan}`)
|
|
103
103
|
] }) })
|
|
104
104
|
] })
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
w.getState().isSaas && /* @__PURE__ */ e(R, { active: r }),
|
|
107
|
+
/* @__PURE__ */ t(l, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
109
|
+
S,
|
|
110
110
|
{
|
|
111
111
|
flex: 1,
|
|
112
112
|
component: b,
|
|
113
113
|
variant: "default",
|
|
114
114
|
size: "sm",
|
|
115
|
-
leftSection: /* @__PURE__ */ e(
|
|
116
|
-
to: i ??
|
|
115
|
+
leftSection: /* @__PURE__ */ e(k, { size: 16, icon: N }),
|
|
116
|
+
to: i ?? o ?? "",
|
|
117
117
|
onClick: c,
|
|
118
|
-
children:
|
|
118
|
+
children: s("settings")
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
122
|
-
|
|
121
|
+
n && w.getState().isSaas && /* @__PURE__ */ e(
|
|
122
|
+
S,
|
|
123
123
|
{
|
|
124
124
|
flex: 1,
|
|
125
125
|
component: b,
|
|
126
126
|
variant: "default",
|
|
127
127
|
size: "sm",
|
|
128
|
-
leftSection: /* @__PURE__ */ e(
|
|
129
|
-
to:
|
|
128
|
+
leftSection: /* @__PURE__ */ e(k, { size: 16, icon: K }),
|
|
129
|
+
to: n,
|
|
130
130
|
onClick: c,
|
|
131
|
-
children:
|
|
131
|
+
children: s("members")
|
|
132
132
|
}
|
|
133
133
|
)
|
|
134
134
|
] })
|
|
135
135
|
] });
|
|
136
|
-
},
|
|
136
|
+
}, R = ({
|
|
137
137
|
active: r
|
|
138
138
|
}) => {
|
|
139
|
-
const { t: i } = h("workspaceMenu"),
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
139
|
+
const { t: i } = h("workspaceMenu"), o = (r?.storageUsedKb || 0) / (r?.storageLimitKb || 1), n = F(o * 100);
|
|
140
|
+
return /* @__PURE__ */ t(a, { gap: 4, w: "100%", children: [
|
|
141
|
+
/* @__PURE__ */ t(l, { justify: "space-between", children: [
|
|
142
|
+
/* @__PURE__ */ t(m, { size: "sm", fw: 500, children: [
|
|
143
143
|
i("usedStorage"),
|
|
144
144
|
": ",
|
|
145
|
-
|
|
145
|
+
n,
|
|
146
|
+
"%"
|
|
146
147
|
] }),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ t(m, { size: "sm", fw: 500, c: "gray", children: [
|
|
148
149
|
z(r?.storageUsedKb),
|
|
149
150
|
" ",
|
|
150
151
|
i("of"),
|
|
@@ -152,20 +153,20 @@ const ne = ({
|
|
|
152
153
|
z(r?.storageLimitKb)
|
|
153
154
|
] })
|
|
154
155
|
] }),
|
|
155
|
-
/* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ e(P, { h: 4, value: o * 100 })
|
|
156
157
|
] });
|
|
157
158
|
}, $ = ({
|
|
158
159
|
onCreate: r,
|
|
159
160
|
onClick: i,
|
|
160
|
-
items:
|
|
161
|
-
onClose:
|
|
161
|
+
items: o,
|
|
162
|
+
onClose: n
|
|
162
163
|
}) => {
|
|
163
164
|
const { t: c } = h("workspaceMenu");
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
|
|
165
|
+
return /* @__PURE__ */ t(a, { gap: 12, children: [
|
|
166
|
+
o?.length > 0 && /* @__PURE__ */ t(a, { gap: 0, children: [
|
|
166
167
|
/* @__PURE__ */ e(p.Label, { fw: 600, px: 4, py: 5, fz: "sm", children: c("switchWorkspace") }),
|
|
167
|
-
/* @__PURE__ */ e(f, { w: "100%", children: /* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
/* @__PURE__ */ e(f, { w: "100%", px: 4, children: /* @__PURE__ */ e(
|
|
169
|
+
U.Autosize,
|
|
169
170
|
{
|
|
170
171
|
mah: 200,
|
|
171
172
|
w: "100%",
|
|
@@ -173,37 +174,40 @@ const ne = ({
|
|
|
173
174
|
scrollbars: "y",
|
|
174
175
|
type: "always",
|
|
175
176
|
styles: {
|
|
177
|
+
viewport: {
|
|
178
|
+
paddingRight: o.length > 4 ? 12 : 0
|
|
179
|
+
},
|
|
176
180
|
content: {
|
|
177
181
|
minWidth: 0
|
|
178
182
|
}
|
|
179
183
|
},
|
|
180
|
-
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children:
|
|
181
|
-
|
|
184
|
+
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children: o.map((s) => /* @__PURE__ */ e(
|
|
185
|
+
E,
|
|
182
186
|
{
|
|
183
|
-
workspace:
|
|
187
|
+
workspace: s,
|
|
184
188
|
onClick: i
|
|
185
189
|
},
|
|
186
|
-
|
|
190
|
+
s.workspaceId
|
|
187
191
|
)) })
|
|
188
192
|
}
|
|
189
193
|
) })
|
|
190
194
|
] }),
|
|
191
195
|
/* @__PURE__ */ e(f, { p: 4, pt: 0, children: /* @__PURE__ */ e(
|
|
192
|
-
|
|
196
|
+
S,
|
|
193
197
|
{
|
|
194
198
|
fullWidth: !0,
|
|
195
199
|
variant: "default",
|
|
196
200
|
size: "sm",
|
|
197
201
|
onClick: () => {
|
|
198
|
-
r?.(),
|
|
202
|
+
r?.(), n?.();
|
|
199
203
|
},
|
|
200
|
-
leftSection: /* @__PURE__ */ e(
|
|
204
|
+
leftSection: /* @__PURE__ */ e(k, { icon: T, size: 16 }),
|
|
201
205
|
children: c("newWorkspace")
|
|
202
206
|
}
|
|
203
207
|
) })
|
|
204
208
|
] });
|
|
205
209
|
};
|
|
206
210
|
export {
|
|
207
|
-
|
|
211
|
+
H as ActiveWorkspace,
|
|
208
212
|
ne as WorkspaceMenu
|
|
209
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/RemoveConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,sBAAsB,GACjC,OAAO,UAAU,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB,
|
|
1
|
+
{"version":3,"file":"RemoveConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/RemoveConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,sBAAsB,GACjC,OAAO,UAAU,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB,SAuFF,CAAC"}
|
|
@@ -1,68 +1,75 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { modals as
|
|
6
|
-
const z = (
|
|
1
|
+
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Unlink03Icon as v } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as y } from "@hugeicons/react";
|
|
4
|
+
import { Stack as C, Text as c } from "@mantine/core";
|
|
5
|
+
import { modals as a } from "@mantine/modals";
|
|
6
|
+
const z = (s) => {
|
|
7
7
|
const {
|
|
8
8
|
title: m,
|
|
9
9
|
children: d,
|
|
10
10
|
onConfirm: o,
|
|
11
11
|
onClose: p,
|
|
12
12
|
labels: n,
|
|
13
|
-
icon:
|
|
14
|
-
|
|
13
|
+
icon: t = /* @__PURE__ */ e(
|
|
14
|
+
y,
|
|
15
15
|
{
|
|
16
16
|
size: 20,
|
|
17
|
-
icon:
|
|
17
|
+
icon: v,
|
|
18
18
|
color: "var(--mantine-color-red-filled)"
|
|
19
19
|
}
|
|
20
20
|
),
|
|
21
21
|
confirmProps: f,
|
|
22
22
|
closeOnConfirm: u = !0,
|
|
23
23
|
...h
|
|
24
|
-
} =
|
|
24
|
+
} = s, w = a.openConfirmModal({
|
|
25
25
|
withCloseButton: !1,
|
|
26
26
|
keepMounted: !1,
|
|
27
27
|
centered: !0,
|
|
28
|
+
size: "auto",
|
|
29
|
+
styles: {
|
|
30
|
+
body: {
|
|
31
|
+
paddingTop: "var(--mantine-spacing-xl)"
|
|
32
|
+
},
|
|
33
|
+
content: {
|
|
34
|
+
minWidth: 320,
|
|
35
|
+
maxWidth: 480
|
|
36
|
+
}
|
|
37
|
+
},
|
|
28
38
|
confirmProps: {
|
|
29
39
|
color: f?.color ?? "red",
|
|
30
40
|
fullWidth: !0,
|
|
31
41
|
variant: "filled",
|
|
32
42
|
size: "sm",
|
|
33
|
-
children: n?.confirm ?? "Delete"
|
|
43
|
+
children: n?.confirm ?? "Delete",
|
|
44
|
+
style: { whiteSpace: "nowrap" }
|
|
34
45
|
},
|
|
35
46
|
cancelProps: {
|
|
36
47
|
variant: "default",
|
|
37
48
|
size: "sm",
|
|
38
49
|
fullWidth: !0,
|
|
39
|
-
children: n?.cancel ?? "Cancel"
|
|
50
|
+
children: n?.cancel ?? "Cancel",
|
|
51
|
+
style: { whiteSpace: "nowrap" }
|
|
40
52
|
},
|
|
41
53
|
groupProps: {
|
|
42
54
|
mt: 24,
|
|
43
55
|
wrap: "nowrap",
|
|
44
56
|
gap: 8
|
|
45
57
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
children: /* @__PURE__ */ w(y, { gap: 0, align: "center", mb: 0, children: [
|
|
52
|
-
r && r,
|
|
53
|
-
/* @__PURE__ */ e(c, { mt: "xs", fw: "700", ta: "center", children: m }),
|
|
58
|
+
children: /* @__PURE__ */ g(C, { gap: 0, align: "center", mb: 0, children: [
|
|
59
|
+
t && t,
|
|
60
|
+
/* @__PURE__ */ e(c, { c: "bright", mt: "xs", fw: "700", ta: "center", children: m }),
|
|
54
61
|
/* @__PURE__ */ e(c, { mt: 6, size: "sm", c: "gray", ta: "center", children: d })
|
|
55
62
|
] }),
|
|
56
63
|
onConfirm: o,
|
|
57
64
|
onClose: () => {
|
|
58
|
-
window.removeEventListener("keydown",
|
|
65
|
+
window.removeEventListener("keydown", r), p?.();
|
|
59
66
|
},
|
|
60
67
|
...h
|
|
61
|
-
}),
|
|
68
|
+
}), r = (i) => {
|
|
62
69
|
const l = document.activeElement?.tagName;
|
|
63
|
-
l === "TEXTAREA" || l === "INPUT" || i.key === "Enter" && (i.preventDefault(), o?.(), u &&
|
|
70
|
+
l === "TEXTAREA" || l === "INPUT" || i.key === "Enter" && (i.preventDefault(), o?.(), u && a.close(w));
|
|
64
71
|
};
|
|
65
|
-
window.addEventListener("keydown",
|
|
72
|
+
window.addEventListener("keydown", r);
|
|
66
73
|
};
|
|
67
74
|
export {
|
|
68
75
|
z as openRemoveConfirmModal
|
|
@@ -5,7 +5,7 @@ import { TABLE_ATTRIBUTES as t } from "../constants.js";
|
|
|
5
5
|
import { useTableStore as d } from "../hooks/useTableStore.js";
|
|
6
6
|
import { visibleColumnsBySideReselect as p } from "../selectors.js";
|
|
7
7
|
import { TableHeaderCell as g } from "./TableHeaderCell.js";
|
|
8
|
-
import {
|
|
8
|
+
import { getColumnId as E, getHeaderStyles as b } from "../helpers/columns.js";
|
|
9
9
|
const D = h(() => {
|
|
10
10
|
const { useStore: e } = d(), { left: i, base: n, right: r } = e(p);
|
|
11
11
|
return /* @__PURE__ */ c(x, { [t.HEADERS]: "", children: [
|
|
@@ -18,7 +18,7 @@ const D = h(() => {
|
|
|
18
18
|
return /* @__PURE__ */ o(
|
|
19
19
|
m,
|
|
20
20
|
{
|
|
21
|
-
style:
|
|
21
|
+
style: b(e),
|
|
22
22
|
[t.HEADER_GRID]: "",
|
|
23
23
|
children: e.map((r) => /* @__PURE__ */ o(
|
|
24
24
|
g,
|
|
@@ -26,7 +26,7 @@ const D = h(() => {
|
|
|
26
26
|
column: r,
|
|
27
27
|
sort: n
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
E(r.field)
|
|
30
30
|
))
|
|
31
31
|
}
|
|
32
32
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as p,
|
|
1
|
+
import { jsxs as p, Fragment as u, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { memo as g } from "react";
|
|
3
3
|
import { useTableStore as b } from "../hooks/useTableStore.js";
|
|
4
4
|
import { visibleRowsReselect as f, visibleColumnsBySideReselect as d, metaReselect as v } from "../selectors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/components/table/export.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/components/table/export.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EAEd,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,KAAK,WAAW,CAAC,CAAC,SAAS,aAAa,IAAI;IAC1C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAsBF,eAAO,MAAM,aAAa,GAAU,CAAC,SAAS,aAAa,EAAE,8BAI1D,WAAW,CAAC,CAAC,CAAC,kBAShB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,CAAC,SAAS,aAAa,EAAE,8BAIxD,WAAW,CAAC,CAAC,CAAC,kBAShB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import E from "@emotion/styled";
|
|
|
3
3
|
import { ActionIcon as N, Checkbox as v } from "@mantine/core";
|
|
4
4
|
import { IconChevronDown as W, IconChevronRight as A } from "@tabler/icons-react";
|
|
5
5
|
import { isValid as h, format as p } from "date-fns";
|
|
6
|
-
import {
|
|
6
|
+
import { get as c, isNil as D, round as a, assignWith as R } from "lodash-es";
|
|
7
7
|
import { EXPAND_COLUMN_FIELD as g, SELECT_COLUMN_FIELD as m } from "../constants.js";
|
|
8
8
|
import { useTableStore as I } from "../hooks/useTableStore.js";
|
|
9
9
|
import { selectionReselect as T } from "../selectors.js";
|
|
@@ -65,7 +65,7 @@ const L = {
|
|
|
65
65
|
}, K = (e, t) => ({
|
|
66
66
|
...L,
|
|
67
67
|
...w(t?.type ?? e.type),
|
|
68
|
-
...
|
|
68
|
+
...R(
|
|
69
69
|
{},
|
|
70
70
|
e,
|
|
71
71
|
t,
|
|
@@ -177,7 +177,7 @@ const L = {
|
|
|
177
177
|
const r = e.aggregation;
|
|
178
178
|
if (!r || r.render) return null;
|
|
179
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) => !
|
|
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) => !D(l)).length : null;
|
|
181
181
|
}, u = E.div``;
|
|
182
182
|
export {
|
|
183
183
|
J as filterPinnedColumns,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
const b =
|
|
2
|
+
import { useLayoutEffect as S, createContext as C } from "react";
|
|
3
|
+
const b = C(
|
|
4
4
|
null
|
|
5
5
|
), P = ({
|
|
6
6
|
children: h,
|
|
@@ -19,7 +19,7 @@ const b = S(
|
|
|
19
19
|
selection: c,
|
|
20
20
|
sorting: d,
|
|
21
21
|
expanding: f
|
|
22
|
-
}) => (
|
|
22
|
+
}) => (S(() => {
|
|
23
23
|
t.useStore.setState((o) => ({
|
|
24
24
|
...o,
|
|
25
25
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSaveRowCount.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useSaveRowCount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSaveRowCount.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useSaveRowCount.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,WAS7C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useRef as o, useMemo as u } from "react";
|
|
2
|
+
import { isNil as n } from "lodash-es";
|
|
3
3
|
const i = (r) => {
|
|
4
|
-
const e =
|
|
5
|
-
return
|
|
4
|
+
const e = o(r || 0);
|
|
5
|
+
return u(() => (n(r) || (e.current = r), e.current), [r]);
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
i as useSaveRowCount
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSorting.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useSorting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAOjE,eAAO,MAAM,UAAU,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"useSorting.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useSorting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAOjE,eAAO,MAAM,UAAU,GAAI,UAAU,gBAAgB,CAAC,OAAO,CAAC,sCAoD7D,CAAC"}
|
|
@@ -7,7 +7,9 @@ const L = (c) => {
|
|
|
7
7
|
return l(
|
|
8
8
|
(i) => {
|
|
9
9
|
if (!(i.target instanceof HTMLElement) || i.target.getAttribute(n.RESIZER)) return;
|
|
10
|
-
const u = i.target.closest(
|
|
10
|
+
const u = i.target.closest(
|
|
11
|
+
`[${n.HEADER_CELL}]`
|
|
12
|
+
);
|
|
11
13
|
if (!u) return;
|
|
12
14
|
const o = u.getAttribute(n.HEADER_CELL);
|
|
13
15
|
if (!o || !e[o] || !(u.getAttribute(n.SORTABLE) === "true") || c.current) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { set as h, get as w, chunk as A } from "lodash-es";
|
|
2
2
|
import { createSelector as a } from "reselect";
|
|
3
3
|
import { TABLE_AGGREGATION_ROW_ID as O } from "./constants.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getAggregateValue as R, getAggregationColumns as b, getColumnId as T, isTechnicalColumn as x, mergeColumn as $, getSelectionColumn as N, getExpandingColumn as W } from "./helpers/columns.js";
|
|
5
5
|
const E = [], M = a(
|
|
6
6
|
[
|
|
7
7
|
(e) => e.props.rows,
|
|
@@ -102,11 +102,11 @@ const E = [], M = a(
|
|
|
102
102
|
(p) => !d.find((g) => g.field === p.field)
|
|
103
103
|
);
|
|
104
104
|
return [
|
|
105
|
-
...e ? [
|
|
106
|
-
...n ? [
|
|
105
|
+
...e ? [N({ selected: r, pinned: c, api: o })] : [],
|
|
106
|
+
...n ? [W({ expanded: l, pinned: c, api: o })] : [],
|
|
107
107
|
...d,
|
|
108
108
|
...f
|
|
109
|
-
].map((p) =>
|
|
109
|
+
].map((p) => $(p, t[p.field]));
|
|
110
110
|
}
|
|
111
111
|
), C = a(
|
|
112
112
|
[v],
|
|
@@ -123,7 +123,7 @@ const E = [], M = a(
|
|
|
123
123
|
})
|
|
124
124
|
), G = a(
|
|
125
125
|
[v],
|
|
126
|
-
(e) => e.reduce((r, n) => (r[n.field] = n, r[
|
|
126
|
+
(e) => e.reduce((r, n) => (r[n.field] = n, r[T(n.field)] = n, r), {})
|
|
127
127
|
), I = a(
|
|
128
128
|
[
|
|
129
129
|
C,
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mEAOhB,CAAC;AACX,eAAO,MAAM,oBAAoB,EAAG,QAAiB,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,WACN,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;CAc1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,sBAAsB,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
const O = [
|
|
1
|
+
const O = [
|
|
2
|
+
"blue",
|
|
3
|
+
"indigo",
|
|
4
|
+
"violet",
|
|
5
|
+
"grape",
|
|
6
|
+
"green",
|
|
7
|
+
"orange"
|
|
8
|
+
], t = "indigo", n = (e) => O.includes(e), r = {
|
|
2
9
|
get TASK_TYPE_COLOR() {
|
|
3
10
|
return this.COLORS[1];
|
|
4
11
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { AlertCircleIcon as
|
|
2
|
+
import { AlertCircleIcon as d, File01Icon as s, Xls01Icon as a, HtmlFile01Icon as m, Doc01Icon as e, Pdf01Icon as u, Mp401Icon as p, Zip01Icon as h, Rar01Icon as g } from "@hugeicons/core-free-icons";
|
|
3
3
|
import { HugeiconsIcon as E } from "@hugeicons/react";
|
|
4
4
|
import { ThemeIcon as F, Loader as B } from "@mantine/core";
|
|
5
5
|
const M = (f, C, c = 16) => {
|
|
@@ -41,27 +41,27 @@ const M = (f, C, c = 16) => {
|
|
|
41
41
|
documents: e,
|
|
42
42
|
html: m,
|
|
43
43
|
diagram: m,
|
|
44
|
-
xls:
|
|
45
|
-
sheet:
|
|
46
|
-
presentation:
|
|
47
|
-
other:
|
|
48
|
-
folder:
|
|
49
|
-
error:
|
|
50
|
-
},
|
|
44
|
+
xls: a,
|
|
45
|
+
sheet: a,
|
|
46
|
+
presentation: s,
|
|
47
|
+
other: d,
|
|
48
|
+
folder: s,
|
|
49
|
+
error: d
|
|
50
|
+
}, l = n[r] || n.other, I = i[r] || i.other;
|
|
51
51
|
return r === "loading" ? /* @__PURE__ */ o(
|
|
52
52
|
F,
|
|
53
53
|
{
|
|
54
|
-
radius: "
|
|
54
|
+
radius: "sm",
|
|
55
55
|
size: c,
|
|
56
|
-
style: { backgroundColor:
|
|
56
|
+
style: { backgroundColor: l, color: "white" },
|
|
57
57
|
children: /* @__PURE__ */ o(B, { color: "white" })
|
|
58
58
|
}
|
|
59
59
|
) : /* @__PURE__ */ o(
|
|
60
60
|
F,
|
|
61
61
|
{
|
|
62
|
-
radius: "
|
|
62
|
+
radius: "sm",
|
|
63
63
|
size: c,
|
|
64
|
-
style: { backgroundColor:
|
|
64
|
+
style: { backgroundColor: l, color: "white" },
|
|
65
65
|
children: /* @__PURE__ */ o(E, { icon: I })
|
|
66
66
|
}
|
|
67
67
|
);
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getFileType: (mimeType: string, mode?: appMode) => "other" | "presentation" | "documents" | "folder" | "media" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
1
|
+
export declare const getFileType: (mimeType: string, isSaas?: boolean) => "other" | "presentation" | "documents" | "folder" | "media" | "xlsx" | "docx" | "pptx" | "diagram" | "archieve";
|
|
3
2
|
//# sourceMappingURL=getFileType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getFileType.d.ts","sourceRoot":"","sources":["../../src/helpers/getFileType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,SAAQ,OAAc,oHAqCnE,CAAC"}
|