@webiny/app-admin 0.0.0-mt-1
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/LICENSE +21 -0
- package/README.md +21 -0
- package/assets/icons/add-18px.svg +3 -0
- package/assets/icons/arrow_drop_down-24px.svg +4 -0
- package/assets/icons/attach_file_black_24dp.svg +1 -0
- package/assets/icons/baseline-menu-24px.svg +4 -0
- package/assets/icons/baseline-notification_important-24px.svg +4 -0
- package/assets/icons/baseline-security-24px.svg +4 -0
- package/assets/icons/filter-24px.svg +8 -0
- package/assets/icons/github-brands.svg +1 -0
- package/assets/icons/highlight-24px.svg +1 -0
- package/assets/icons/icon-community.svg +16 -0
- package/assets/icons/icon-documentation.svg +16 -0
- package/assets/icons/info.svg +1 -0
- package/assets/icons/insert_drive_file-24px.svg +1 -0
- package/assets/icons/insert_photo-24px.svg +1 -0
- package/assets/icons/label-24px.svg +1 -0
- package/assets/icons/round-account_circle-24px.svg +1 -0
- package/assets/icons/round-add-24px.svg +16 -0
- package/assets/icons/round-arrow_drop_down-24px.svg +1 -0
- package/assets/icons/round-chevron_right-24px.svg +12 -0
- package/assets/icons/round-feedback-24px.svg +54 -0
- package/assets/icons/round-help-24px.svg +1 -0
- package/assets/icons/round-invert_colors-24px.svg +52 -0
- package/assets/icons/round-keyboard_arrow_down-24px.svg +16 -0
- package/assets/icons/round-keyboard_arrow_up-24px.svg +16 -0
- package/assets/icons/round-lock_open-24px.svg +60 -0
- package/assets/icons/round-more_vert-24px.svg +12 -0
- package/assets/icons/round-open_in_new-24px.svg +44 -0
- package/assets/icons/round-settings-24px.svg +4 -0
- package/assets/icons/search-24px.svg +20 -0
- package/assets/icons/slack-logo.svg +1 -0
- package/assets/icons/today-24px.svg +1 -0
- package/assets/icons/touch_app.svg +1 -0
- package/assets/images/arr.png +0 -0
- package/assets/images/arr_2.png +0 -0
- package/assets/images/header_bg.jpg +0 -0
- package/assets/images/icons.png +0 -0
- package/assets/images/icons_retina.png +0 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo_orange.png +0 -0
- package/assets/images/public/bg-login.png +0 -0
- package/assets/images/public/favicon.ico +0 -0
- package/assets/images/public/logo_orange.png +0 -0
- package/assets/images/public/preloader_2.png +0 -0
- package/assets/images/swich.png +0 -0
- package/assets/images/table_img.jpg +0 -0
- package/assets/images/webiny-logo.svg +20 -0
- package/assets/images/webiny-orange-logo.svg +20 -0
- package/components/AdminLayout.d.ts +7 -0
- package/components/AdminLayout.js +35 -0
- package/components/AppInstaller/Sidebar.d.ts +7 -0
- package/components/AppInstaller/Sidebar.js +158 -0
- package/components/AppInstaller/assets/sign-in-divider.svg +19 -0
- package/components/AppInstaller/index.d.ts +5 -0
- package/components/AppInstaller/index.js +134 -0
- package/components/AppInstaller/styled.d.ts +7 -0
- package/components/AppInstaller/styled.js +73 -0
- package/components/AppInstaller/useInstaller.d.ts +11 -0
- package/components/AppInstaller/useInstaller.js +279 -0
- package/components/EmptyView.d.ts +8 -0
- package/components/EmptyView.js +56 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/SupportedFileTypes.js +35 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.d.ts +5 -0
- package/components/FileManager/BottomInfoBar/UploadStatus.js +47 -0
- package/components/FileManager/BottomInfoBar.d.ts +3 -0
- package/components/FileManager/BottomInfoBar.js +42 -0
- package/components/FileManager/DropFilesHere.d.ts +8 -0
- package/components/FileManager/DropFilesHere.js +58 -0
- package/components/FileManager/File.d.ts +18 -0
- package/components/FileManager/File.js +129 -0
- package/components/FileManager/FileDetails/Name.d.ts +6 -0
- package/components/FileManager/FileDetails/Name.js +113 -0
- package/components/FileManager/FileDetails/Tags.d.ts +6 -0
- package/components/FileManager/FileDetails/Tags.js +241 -0
- package/components/FileManager/FileDetails.d.ts +23 -0
- package/components/FileManager/FileDetails.js +392 -0
- package/components/FileManager/FileManagerContext.d.ts +23 -0
- package/components/FileManager/FileManagerContext.js +174 -0
- package/components/FileManager/FileManagerView.d.ts +23 -0
- package/components/FileManager/FileManagerView.js +632 -0
- package/components/FileManager/LeftSidebar.d.ts +8 -0
- package/components/FileManager/LeftSidebar.js +95 -0
- package/components/FileManager/NoPermissionView.d.ts +3 -0
- package/components/FileManager/NoPermissionView.js +70 -0
- package/components/FileManager/NoResults.d.ts +2 -0
- package/components/FileManager/NoResults.js +13 -0
- package/components/FileManager/getFileTypePlugin.d.ts +1 -0
- package/components/FileManager/getFileTypePlugin.js +27 -0
- package/components/FileManager/getFileUploader.d.ts +2 -0
- package/components/FileManager/getFileUploader.js +10 -0
- package/components/FileManager/graphql.d.ts +6 -0
- package/components/FileManager/graphql.js +17 -0
- package/components/FileManager/icons/content_copy-black-24px.svg +1 -0
- package/components/FileManager/icons/delete.svg +12 -0
- package/components/FileManager/icons/privacy_tip-24px.svg +10 -0
- package/components/FileManager/icons/round-check_box-24px.svg +4 -0
- package/components/FileManager/icons/round-check_box_outline_blank-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_download-24px.svg +4 -0
- package/components/FileManager/icons/round-cloud_upload-24px.svg +4 -0
- package/components/FileManager/icons/round-description-24px.svg +4 -0
- package/components/FileManager/icons/round-edit-24px.svg +4 -0
- package/components/FileManager/icons/round-info-24px.svg +4 -0
- package/components/FileManager/icons/round-label-24px.svg +4 -0
- package/components/FileManager/icons/round-more_vert-24px.svg +4 -0
- package/components/FileManager/icons/round-search-24px.svg +20 -0
- package/components/FileManager/outputFileSelectionError.d.ts +2 -0
- package/components/FileManager/outputFileSelectionError.js +39 -0
- package/components/FileManager.d.ts +18 -0
- package/components/FileManager.js +133 -0
- package/components/FloatingActionButton.d.ts +3 -0
- package/components/FloatingActionButton.js +17 -0
- package/components/MultiImageUpload.d.ts +4 -0
- package/components/MultiImageUpload.js +20 -0
- package/components/OverlayLayout/OverlayLayout.d.ts +25 -0
- package/components/OverlayLayout/OverlayLayout.js +159 -0
- package/components/OverlayLayout/icons/close.svg +13 -0
- package/components/OverlayLayout/icons/navigate_before.svg +16 -0
- package/components/OverlayLayout/index.d.ts +1 -0
- package/components/OverlayLayout/index.js +1 -0
- package/components/Permissions/Permissions.d.ts +7 -0
- package/components/Permissions/Permissions.js +37 -0
- package/components/Permissions/StyledComponents.d.ts +6 -0
- package/components/Permissions/StyledComponents.js +19 -0
- package/components/Permissions/index.d.ts +2 -0
- package/components/Permissions/index.js +2 -0
- package/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/components/RichTextEditor/RichTextEditor.js +15 -0
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/RichTextEditor/index.js +2 -0
- package/components/RichTextEditor/styles.scss +64 -0
- package/components/RichTextEditor/tools/header/index.d.ts +228 -0
- package/components/RichTextEditor/tools/header/index.js +731 -0
- package/components/RichTextEditor/tools/header/styles.scss +48 -0
- package/components/RichTextEditor/tools/image/index.d.ts +97 -0
- package/components/RichTextEditor/tools/image/index.js +257 -0
- package/components/RichTextEditor/tools/image/styles.scss +90 -0
- package/components/RichTextEditor/tools/image/svgs.d.ts +6 -0
- package/components/RichTextEditor/tools/image/svgs.js +5 -0
- package/components/RichTextEditor/tools/image/tunes.d.ts +58 -0
- package/components/RichTextEditor/tools/image/tunes.js +134 -0
- package/components/RichTextEditor/tools/image/ui.d.ts +111 -0
- package/components/RichTextEditor/tools/image/ui.js +281 -0
- package/components/RichTextEditor/tools/paragraph/index.d.ts +211 -0
- package/components/RichTextEditor/tools/paragraph/index.js +520 -0
- package/components/RichTextEditor/tools/paragraph/styles.scss +29 -0
- package/components/RichTextEditor/tools/textColor/index.d.ts +58 -0
- package/components/RichTextEditor/tools/textColor/index.js +232 -0
- package/components/RichTextEditor/tools/textColor/styles.scss +21 -0
- package/components/RichTextEditor/tools/utils.d.ts +19 -0
- package/components/RichTextEditor/tools/utils.js +24 -0
- package/components/SearchUI.d.ts +8 -0
- package/components/SearchUI.js +59 -0
- package/components/SimpleForm/SimpleForm.d.ts +21 -0
- package/components/SimpleForm/SimpleForm.js +75 -0
- package/components/SimpleForm/index.d.ts +1 -0
- package/components/SimpleForm/index.js +1 -0
- package/components/SimpleUI/InputField.d.ts +9 -0
- package/components/SimpleUI/InputField.js +97 -0
- package/components/SingleImageUpload.d.ts +25 -0
- package/components/SingleImageUpload.js +102 -0
- package/components/SplitView/SplitView.d.ts +10 -0
- package/components/SplitView/SplitView.js +76 -0
- package/components/SplitView/index.d.ts +1 -0
- package/components/SplitView/index.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/hooks/useConfirmationDialog.d.ts +10 -0
- package/hooks/useConfirmationDialog.js +47 -0
- package/hooks/useDialog.d.ts +5 -0
- package/hooks/useDialog.js +27 -0
- package/hooks/useSnackbar.d.ts +4 -0
- package/hooks/useSnackbar.js +25 -0
- package/package.json +101 -0
- package/plugins/FileManagerFileTypePlugin.d.ts +33 -0
- package/plugins/FileManagerFileTypePlugin.js +46 -0
- package/plugins/MenuPlugin.d.ts +20 -0
- package/plugins/MenuPlugin.js +41 -0
- package/plugins/PermissionRendererPlugin.d.ts +22 -0
- package/plugins/PermissionRendererPlugin.js +41 -0
- package/plugins/fileManager/fileDefault.d.ts +3 -0
- package/plugins/fileManager/fileDefault.js +20 -0
- package/plugins/fileManager/fileImage/DeleteAction.d.ts +3 -0
- package/plugins/fileManager/fileImage/DeleteAction.js +62 -0
- package/plugins/fileManager/fileImage/EditAction.d.ts +9 -0
- package/plugins/fileManager/fileImage/EditAction.js +143 -0
- package/plugins/fileManager/fileImage/index.d.ts +3 -0
- package/plugins/fileManager/fileImage/index.js +29 -0
- package/plugins/fileManager/icons/edit.svg +17 -0
- package/plugins/fileManager/icons/round-description-24px.svg +1 -0
- package/plugins/fileManager/index.d.ts +2 -0
- package/plugins/fileManager/index.js +3 -0
- package/plugins/globalSearch/SearchBar.d.ts +3 -0
- package/plugins/globalSearch/SearchBar.js +241 -0
- package/plugins/globalSearch/SearchBarDropdown.d.ts +5 -0
- package/plugins/globalSearch/SearchBarDropdown.js +82 -0
- package/plugins/globalSearch/icons/round-search-24px.svg +20 -0
- package/plugins/globalSearch/index.d.ts +8 -0
- package/plugins/globalSearch/index.js +30 -0
- package/plugins/globalSearch/styled.d.ts +9 -0
- package/plugins/globalSearch/styled.js +115 -0
- package/plugins/index.d.ts +6 -0
- package/plugins/index.js +8 -0
- package/plugins/logo/Logo.d.ts +22 -0
- package/plugins/logo/Logo.js +108 -0
- package/plugins/logo/index.d.ts +5 -0
- package/plugins/logo/index.js +32 -0
- package/plugins/menu/documentation.d.ts +4 -0
- package/plugins/menu/documentation.js +16 -0
- package/plugins/menu/fileManager.d.ts +4 -0
- package/plugins/menu/fileManager.js +64 -0
- package/plugins/menu/index.d.ts +6 -0
- package/plugins/menu/index.js +24 -0
- package/plugins/menu/renderers/MenuGroupRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuGroupRenderer.js +126 -0
- package/plugins/menu/renderers/MenuLinkRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuLinkRenderer.js +52 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionItemRenderer.js +77 -0
- package/plugins/menu/renderers/MenuSectionRenderer.d.ts +7 -0
- package/plugins/menu/renderers/MenuSectionRenderer.js +51 -0
- package/plugins/menu/slack.d.ts +4 -0
- package/plugins/menu/slack.js +16 -0
- package/plugins/menu/source.d.ts +4 -0
- package/plugins/menu/source.js +16 -0
- package/plugins/uiLayoutRenderer/index.d.ts +3 -0
- package/plugins/uiLayoutRenderer/index.js +63 -0
- package/plugins/userMenu/UserMenuElement.d.ts +7 -0
- package/plugins/userMenu/UserMenuElement.js +43 -0
- package/plugins/userMenu/UserMenuRenderer.d.ts +6 -0
- package/plugins/userMenu/UserMenuRenderer.js +47 -0
- package/plugins/userMenu/index.d.ts +4 -0
- package/plugins/userMenu/index.js +16 -0
- package/styles/material-theme-assignments.scss +333 -0
- package/styles/material.scss +74 -0
- package/styles/theme.scss +43 -0
- package/styles.scss +2 -0
- package/types.d.ts +100 -0
- package/types.js +1 -0
- package/ui/UIElement.d.ts +2 -0
- package/ui/UIElement.js +1 -0
- package/ui/UILayout.d.ts +1 -0
- package/ui/UILayout.js +1 -0
- package/ui/UIRenderer.d.ts +2 -0
- package/ui/UIRenderer.js +1 -0
- package/ui/UIView.d.ts +2 -0
- package/ui/UIView.js +1 -0
- package/ui/elements/AccordionElement.d.ts +27 -0
- package/ui/elements/AccordionElement.js +86 -0
- package/ui/elements/ButtonElement.d.ts +24 -0
- package/ui/elements/ButtonElement.js +78 -0
- package/ui/elements/ButtonGroupElement.d.ts +6 -0
- package/ui/elements/ButtonGroupElement.js +48 -0
- package/ui/elements/GenericElement.d.ts +1 -0
- package/ui/elements/GenericElement.js +1 -0
- package/ui/elements/LabelElement.d.ts +16 -0
- package/ui/elements/LabelElement.js +47 -0
- package/ui/elements/NavigationMenuElement.d.ts +32 -0
- package/ui/elements/NavigationMenuElement.js +158 -0
- package/ui/elements/PanelElement.d.ts +3 -0
- package/ui/elements/PanelElement.js +17 -0
- package/ui/elements/PlaceholderElement.d.ts +5 -0
- package/ui/elements/PlaceholderElement.js +30 -0
- package/ui/elements/SmallButtonElement.d.ts +6 -0
- package/ui/elements/SmallButtonElement.js +47 -0
- package/ui/elements/TypographyElement.d.ts +13 -0
- package/ui/elements/TypographyElement.js +49 -0
- package/ui/elements/ViewElement.d.ts +1 -0
- package/ui/elements/ViewElement.js +1 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.d.ts +6 -0
- package/ui/elements/form/DynamicFieldsetElement/DynamicFieldsetRowElement.js +44 -0
- package/ui/elements/form/DynamicFieldsetElement.d.ts +42 -0
- package/ui/elements/form/DynamicFieldsetElement.js +127 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.d.ts +4 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElement.js +24 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.d.ts +7 -0
- package/ui/elements/form/FileManagerElement/EmptyStateElementRenderer.js +72 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.d.ts +13 -0
- package/ui/elements/form/FileManagerElement/FileManagerElementRenderer.js +95 -0
- package/ui/elements/form/FileManagerElement/styled.d.ts +14 -0
- package/ui/elements/form/FileManagerElement/styled.js +106 -0
- package/ui/elements/form/FileManagerElement.d.ts +24 -0
- package/ui/elements/form/FileManagerElement.js +91 -0
- package/ui/elements/form/FormElement.d.ts +21 -0
- package/ui/elements/form/FormElement.js +45 -0
- package/ui/elements/form/FormFieldElement.d.ts +55 -0
- package/ui/elements/form/FormFieldElement.js +183 -0
- package/ui/elements/form/HiddenElement.d.ts +6 -0
- package/ui/elements/form/HiddenElement.js +49 -0
- package/ui/elements/form/InputElement.d.ts +6 -0
- package/ui/elements/form/InputElement.js +55 -0
- package/ui/elements/form/PasswordElement.d.ts +6 -0
- package/ui/elements/form/PasswordElement.js +50 -0
- package/ui/elements/form/README.md +2 -0
- package/ui/elements/form/SelectElement.d.ts +15 -0
- package/ui/elements/form/SelectElement.js +71 -0
- package/ui/elements/form/TextareaElement.d.ts +15 -0
- package/ui/elements/form/TextareaElement.js +56 -0
- package/ui/views/AdminView/ContentElement.d.ts +4 -0
- package/ui/views/AdminView/ContentElement.js +62 -0
- package/ui/views/AdminView/HeaderElement.d.ts +13 -0
- package/ui/views/AdminView/HeaderElement.js +111 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionCenterElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionLeftElement.js +42 -0
- package/ui/views/AdminView/HeaderSectionRightElement.d.ts +6 -0
- package/ui/views/AdminView/HeaderSectionRightElement.js +42 -0
- package/ui/views/AdminView/components/Dialog.d.ts +2 -0
- package/ui/views/AdminView/components/Dialog.js +40 -0
- package/ui/views/AdminView/components/Hamburger.d.ts +3 -0
- package/ui/views/AdminView/components/Hamburger.js +25 -0
- package/ui/views/AdminView/components/Snackbar.d.ts +3 -0
- package/ui/views/AdminView/components/Snackbar.js +28 -0
- package/ui/views/AdminView.d.ts +12 -0
- package/ui/views/AdminView.js +90 -0
- package/ui/views/FormView/FormContainerElement.d.ts +12 -0
- package/ui/views/FormView/FormContainerElement.js +51 -0
- package/ui/views/FormView/FormContentElement.d.ts +3 -0
- package/ui/views/FormView/FormContentElement.js +17 -0
- package/ui/views/FormView/FormFooterElement.d.ts +6 -0
- package/ui/views/FormView/FormFooterElement.js +49 -0
- package/ui/views/FormView/FormHeaderElement.d.ts +14 -0
- package/ui/views/FormView/FormHeaderElement.js +81 -0
- package/ui/views/FormView.d.ts +40 -0
- package/ui/views/FormView.js +160 -0
- package/ui/views/NavigationView/ContentElement.d.ts +10 -0
- package/ui/views/NavigationView/ContentElement.js +86 -0
- package/ui/views/NavigationView/FooterElement.d.ts +13 -0
- package/ui/views/NavigationView/FooterElement.js +57 -0
- package/ui/views/NavigationView/HeaderElement.d.ts +16 -0
- package/ui/views/NavigationView/HeaderElement.js +66 -0
- package/ui/views/NavigationView/NavigationViewRenderer.d.ts +6 -0
- package/ui/views/NavigationView/NavigationViewRenderer.js +38 -0
- package/ui/views/NavigationView/Styled.d.ts +7 -0
- package/ui/views/NavigationView/Styled.js +47 -0
- package/ui/views/NavigationView/legacyMenu.d.ts +22 -0
- package/ui/views/NavigationView/legacyMenu.js +1 -0
- package/ui/views/NavigationView/useNavigation.d.ts +6 -0
- package/ui/views/NavigationView/useNavigation.js +22 -0
- package/ui/views/NavigationView.d.ts +26 -0
- package/ui/views/NavigationView.js +204 -0
- package/ui/views/OverlayView/ContentElement.d.ts +6 -0
- package/ui/views/OverlayView/ContentElement.js +42 -0
- package/ui/views/OverlayView/HeaderElement.d.ts +24 -0
- package/ui/views/OverlayView/HeaderElement.js +115 -0
- package/ui/views/OverlayView/HeaderTitleElement.d.ts +13 -0
- package/ui/views/OverlayView/HeaderTitleElement.js +54 -0
- package/ui/views/OverlayView/useOverlayView.d.ts +6 -0
- package/ui/views/OverlayView/useOverlayView.js +38 -0
- package/ui/views/OverlayView.d.ts +31 -0
- package/ui/views/OverlayView.js +176 -0
- package/ui/views/SplitView/SplitViewPanelElement.d.ts +11 -0
- package/ui/views/SplitView/SplitViewPanelElement.js +72 -0
- package/ui/views/SplitView.d.ts +21 -0
- package/ui/views/SplitView.js +142 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
+
import _get from "@babel/runtime/helpers/get";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
|
+
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
10
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { Transition } from "react-transition-group";
|
|
13
|
+
import styled from "@emotion/styled";
|
|
14
|
+
import { UIView } from "../UIView";
|
|
15
|
+
import { useOverlayView } from "./OverlayView/useOverlayView";
|
|
16
|
+
import { HeaderElement } from "./OverlayView/HeaderElement";
|
|
17
|
+
import { ContentElement } from "./OverlayView/ContentElement"; // !GOOD FIRST ISSUE!
|
|
18
|
+
// Extract rendering and styling into an OverlayViewRenderer class.
|
|
19
|
+
|
|
20
|
+
var OverlayLayoutWrapper = /*#__PURE__*/styled("div", {
|
|
21
|
+
target: "e1xrojct0",
|
|
22
|
+
label: "OverlayLayoutWrapper"
|
|
23
|
+
})({
|
|
24
|
+
position: "fixed",
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "100vh",
|
|
27
|
+
backgroundColor: "var(--mdc-theme-background)",
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Has to be higher than 5 so it's above advanced settings dialog,
|
|
31
|
+
* and below 20, so the image editor & Dialogs can be displayed above.
|
|
32
|
+
*/
|
|
33
|
+
zIndex: 18,
|
|
34
|
+
top: 0,
|
|
35
|
+
left: 0
|
|
36
|
+
});
|
|
37
|
+
var defaultStyle = {
|
|
38
|
+
transform: "translateY(75vh)",
|
|
39
|
+
opacity: 0,
|
|
40
|
+
transitionProperty: "transform, opacity",
|
|
41
|
+
transitionTimingFunction: "cubic-bezier(0, 0, .2, 1)",
|
|
42
|
+
transitionDuration: "225ms",
|
|
43
|
+
willChange: "opacity, transform"
|
|
44
|
+
};
|
|
45
|
+
var transitionStyles = {
|
|
46
|
+
entering: {
|
|
47
|
+
transform: "translateY(75vh)",
|
|
48
|
+
opacity: 0
|
|
49
|
+
},
|
|
50
|
+
entered: {
|
|
51
|
+
transform: "translateY(0px)",
|
|
52
|
+
opacity: 1
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export var OverlayView = /*#__PURE__*/function (_UIView) {
|
|
56
|
+
_inherits(OverlayView, _UIView);
|
|
57
|
+
|
|
58
|
+
var _super = _createSuper(OverlayView);
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* This property is used to track the amount of opened overlays. Since we're applying a CSS class to disable
|
|
62
|
+
* window scroll, we must make sure we don't remove that CSS class until all the overlays are closed.
|
|
63
|
+
*/
|
|
64
|
+
function OverlayView() {
|
|
65
|
+
var _this;
|
|
66
|
+
|
|
67
|
+
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "OverlayView";
|
|
68
|
+
|
|
69
|
+
_classCallCheck(this, OverlayView);
|
|
70
|
+
|
|
71
|
+
_this = _super.call(this, id);
|
|
72
|
+
|
|
73
|
+
_defineProperty(_assertThisInitialized(_this), "_onEntered", []);
|
|
74
|
+
|
|
75
|
+
_defineProperty(_assertThisInitialized(_this), "_onExited", []);
|
|
76
|
+
|
|
77
|
+
_this.useGrid(false);
|
|
78
|
+
|
|
79
|
+
_this.addHookDefinition("overlay", useOverlayView);
|
|
80
|
+
|
|
81
|
+
_this.addElement(new HeaderElement("overlayHeader", {
|
|
82
|
+
onClose: function onClose() {
|
|
83
|
+
return _this.setIsVisible(false);
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
_this.addElement(new ContentElement("overlayContent"));
|
|
88
|
+
|
|
89
|
+
_this.applyPlugins(OverlayView);
|
|
90
|
+
|
|
91
|
+
return _this;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
_createClass(OverlayView, [{
|
|
95
|
+
key: "setTitle",
|
|
96
|
+
value: function setTitle(title) {
|
|
97
|
+
this.getHeaderElement().setTitle(title);
|
|
98
|
+
}
|
|
99
|
+
}, {
|
|
100
|
+
key: "onEntered",
|
|
101
|
+
value: function onEntered() {
|
|
102
|
+
var _this2 = this;
|
|
103
|
+
|
|
104
|
+
_toConsumableArray(this._onEntered).reverse().forEach(function (cb) {
|
|
105
|
+
return cb(_this2);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
key: "onExited",
|
|
110
|
+
value: function onExited() {
|
|
111
|
+
var _this3 = this;
|
|
112
|
+
|
|
113
|
+
_toConsumableArray(this._onExited).reverse().forEach(function (cb) {
|
|
114
|
+
return cb(_this3);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "addOnEntered",
|
|
119
|
+
value: function addOnEntered(cb) {
|
|
120
|
+
this._onEntered.push(cb);
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
key: "addOnExited",
|
|
124
|
+
value: function addOnExited(cb) {
|
|
125
|
+
this._onExited.push(cb);
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
key: "getOverlayHook",
|
|
129
|
+
value: function getOverlayHook() {
|
|
130
|
+
return this.getHook("overlay");
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
key: "setIsVisible",
|
|
134
|
+
value: function setIsVisible(visible) {
|
|
135
|
+
this.getOverlayHook().setIsVisible(visible);
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
key: "getHeaderElement",
|
|
139
|
+
value: function getHeaderElement() {
|
|
140
|
+
return this.getElement("overlayHeader");
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
key: "getContentElement",
|
|
144
|
+
value: function getContentElement() {
|
|
145
|
+
return this.getElement("overlayContent");
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "render",
|
|
149
|
+
value: function render(props) {
|
|
150
|
+
var _this4 = this;
|
|
151
|
+
|
|
152
|
+
var _this$getOverlayHook = this.getOverlayHook(),
|
|
153
|
+
isVisible = _this$getOverlayHook.isVisible;
|
|
154
|
+
|
|
155
|
+
return /*#__PURE__*/React.createElement(Transition, {
|
|
156
|
+
in: isVisible,
|
|
157
|
+
timeout: 100,
|
|
158
|
+
appear: true,
|
|
159
|
+
onExited: function onExited() {
|
|
160
|
+
return _this4.onExited();
|
|
161
|
+
},
|
|
162
|
+
onEntered: function onEntered() {
|
|
163
|
+
return _this4.onEntered();
|
|
164
|
+
}
|
|
165
|
+
}, function (state) {
|
|
166
|
+
return /*#__PURE__*/React.createElement(OverlayLayoutWrapper, {
|
|
167
|
+
style: _objectSpread(_objectSpread({}, defaultStyle), transitionStyles[state])
|
|
168
|
+
}, _get(_getPrototypeOf(OverlayView.prototype), "render", _this4).call(_this4, props));
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}]);
|
|
172
|
+
|
|
173
|
+
return OverlayView;
|
|
174
|
+
}(UIView);
|
|
175
|
+
|
|
176
|
+
_defineProperty(OverlayView, "openedViews", 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UIElement } from "../../UIElement";
|
|
3
|
+
export declare class SplitViewPanelElement extends UIElement<any> {
|
|
4
|
+
private _width;
|
|
5
|
+
private _classNames;
|
|
6
|
+
setWidth(width: number): void;
|
|
7
|
+
addClassName(className: string): void;
|
|
8
|
+
removeClassName(className: string): void;
|
|
9
|
+
setContentElement(element: UIElement): void;
|
|
10
|
+
render(props: any): JSX.Element;
|
|
11
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
+
import _get from "@babel/runtime/helpers/get";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import classNames from "classnames";
|
|
11
|
+
import { UIElement } from "../../UIElement";
|
|
12
|
+
import { Cell } from "@webiny/ui/Grid";
|
|
13
|
+
export var SplitViewPanelElement = /*#__PURE__*/function (_UIElement) {
|
|
14
|
+
_inherits(SplitViewPanelElement, _UIElement);
|
|
15
|
+
|
|
16
|
+
var _super = _createSuper(SplitViewPanelElement);
|
|
17
|
+
|
|
18
|
+
function SplitViewPanelElement() {
|
|
19
|
+
var _this;
|
|
20
|
+
|
|
21
|
+
_classCallCheck(this, SplitViewPanelElement);
|
|
22
|
+
|
|
23
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
24
|
+
args[_key] = arguments[_key];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
28
|
+
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "_width", 12);
|
|
30
|
+
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "_classNames", new Set());
|
|
32
|
+
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_createClass(SplitViewPanelElement, [{
|
|
37
|
+
key: "setWidth",
|
|
38
|
+
value: function setWidth(width) {
|
|
39
|
+
this._width = width;
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "addClassName",
|
|
43
|
+
value: function addClassName(className) {
|
|
44
|
+
this._classNames.add(className);
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "removeClassName",
|
|
48
|
+
value: function removeClassName(className) {
|
|
49
|
+
this._classNames.delete(className);
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "setContentElement",
|
|
53
|
+
value: function setContentElement(element) {
|
|
54
|
+
// Remove previous content
|
|
55
|
+
this.getChildren().forEach(function (el) {
|
|
56
|
+
return el.remove();
|
|
57
|
+
}); // Add new content
|
|
58
|
+
|
|
59
|
+
this.addElement(element);
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "render",
|
|
63
|
+
value: function render(props) {
|
|
64
|
+
return /*#__PURE__*/React.createElement(Cell, {
|
|
65
|
+
span: this._width,
|
|
66
|
+
className: classNames(Array.from(this._classNames.values()))
|
|
67
|
+
}, _get(_getPrototypeOf(SplitViewPanelElement.prototype), "render", this).call(this, props));
|
|
68
|
+
}
|
|
69
|
+
}]);
|
|
70
|
+
|
|
71
|
+
return SplitViewPanelElement;
|
|
72
|
+
}(UIElement);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UIElement } from "../UIElement";
|
|
3
|
+
import { SplitViewPanelElement } from "./SplitView/SplitViewPanelElement";
|
|
4
|
+
import { UIView } from "../UIView";
|
|
5
|
+
interface SplitViewConfig {
|
|
6
|
+
leftPanel?: UIElement;
|
|
7
|
+
rightPanel?: UIElement;
|
|
8
|
+
}
|
|
9
|
+
export declare class SplitView extends UIView {
|
|
10
|
+
private _classNames;
|
|
11
|
+
private _leftPanel;
|
|
12
|
+
private _rightPanel;
|
|
13
|
+
constructor(id: any, config?: SplitViewConfig);
|
|
14
|
+
addClassName(className: string): void;
|
|
15
|
+
removeClassName(className: string): void;
|
|
16
|
+
getLeftPanel(): SplitViewPanelElement;
|
|
17
|
+
getRightPanel(): SplitViewPanelElement;
|
|
18
|
+
render(props?: any): React.ReactNode;
|
|
19
|
+
private addElements;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
+
import _get from "@babel/runtime/helpers/get";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import classNames from "classnames";
|
|
11
|
+
import { css } from "emotion";
|
|
12
|
+
import { Grid } from "@webiny/ui/Grid";
|
|
13
|
+
import { SplitViewPanelElement } from "./SplitView/SplitViewPanelElement";
|
|
14
|
+
import { UIView } from "../UIView";
|
|
15
|
+
var grid = /*#__PURE__*/css({
|
|
16
|
+
"&.mdc-layout-grid": {
|
|
17
|
+
padding: 0,
|
|
18
|
+
backgroundColor: "var(--mdc-theme-background)",
|
|
19
|
+
">.mdc-layout-grid__inner": {
|
|
20
|
+
gridGap: 0
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, "label:grid;");
|
|
24
|
+
var leftPanel = /*#__PURE__*/css({
|
|
25
|
+
backgroundColor: "var(--mdc-theme-surface)",
|
|
26
|
+
">.webiny-data-list": {
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
height: "calc(100vh - 70px)",
|
|
30
|
+
".mdc-list": {
|
|
31
|
+
overflow: "auto"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
">.mdc-list": {
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
maxHeight: "calc(100vh - 70px)",
|
|
38
|
+
overflow: "auto"
|
|
39
|
+
}
|
|
40
|
+
}, "label:leftPanel;");
|
|
41
|
+
var rightPanel = /*#__PURE__*/css({
|
|
42
|
+
backgroundColor: "var(--mdc-theme-background)",
|
|
43
|
+
overflow: "auto",
|
|
44
|
+
height: "calc(100vh - 70px)"
|
|
45
|
+
}, "label:rightPanel;");
|
|
46
|
+
export var SplitView = /*#__PURE__*/function (_UIView) {
|
|
47
|
+
_inherits(SplitView, _UIView);
|
|
48
|
+
|
|
49
|
+
var _super = _createSuper(SplitView);
|
|
50
|
+
|
|
51
|
+
function SplitView(id) {
|
|
52
|
+
var _this;
|
|
53
|
+
|
|
54
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
55
|
+
|
|
56
|
+
_classCallCheck(this, SplitView);
|
|
57
|
+
|
|
58
|
+
_this = _super.call(this, "SplitView.".concat(id));
|
|
59
|
+
|
|
60
|
+
_defineProperty(_assertThisInitialized(_this), "_classNames", new Set());
|
|
61
|
+
|
|
62
|
+
_defineProperty(_assertThisInitialized(_this), "_leftPanel", void 0);
|
|
63
|
+
|
|
64
|
+
_defineProperty(_assertThisInitialized(_this), "_rightPanel", void 0);
|
|
65
|
+
|
|
66
|
+
_this.useGrid(false);
|
|
67
|
+
|
|
68
|
+
_this.addClassName(grid);
|
|
69
|
+
|
|
70
|
+
_this.addClassName("webiny-split-view");
|
|
71
|
+
|
|
72
|
+
_this.addElements();
|
|
73
|
+
|
|
74
|
+
if (config.leftPanel) {
|
|
75
|
+
_this.getLeftPanel().addElement(config.leftPanel);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (config.rightPanel) {
|
|
79
|
+
_this.getRightPanel().addElement(config.rightPanel);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_createClass(SplitView, [{
|
|
86
|
+
key: "addClassName",
|
|
87
|
+
value: function addClassName(className) {
|
|
88
|
+
this._classNames.add(className);
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "removeClassName",
|
|
92
|
+
value: function removeClassName(className) {
|
|
93
|
+
this._classNames.delete(className);
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "getLeftPanel",
|
|
97
|
+
value: function getLeftPanel() {
|
|
98
|
+
return this.getElement("leftPanel");
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "getRightPanel",
|
|
102
|
+
value: function getRightPanel() {
|
|
103
|
+
return this.getElement("rightPanel");
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "render",
|
|
107
|
+
value: function render(props) {
|
|
108
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
109
|
+
className: classNames(Array.from(this._classNames.values()))
|
|
110
|
+
}, _get(_getPrototypeOf(SplitView.prototype), "render", this).call(this, props));
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
key: "addElements",
|
|
114
|
+
value: function addElements() {
|
|
115
|
+
this._leftPanel = new SplitViewPanelElement("leftPanel");
|
|
116
|
+
|
|
117
|
+
this._leftPanel.useGrid(false);
|
|
118
|
+
|
|
119
|
+
this._leftPanel.setWidth(5);
|
|
120
|
+
|
|
121
|
+
this._leftPanel.addClassName(leftPanel);
|
|
122
|
+
|
|
123
|
+
this._leftPanel.addClassName("webiny-split-view__left-panel");
|
|
124
|
+
|
|
125
|
+
this._rightPanel = new SplitViewPanelElement("rightPanel");
|
|
126
|
+
|
|
127
|
+
this._rightPanel.useGrid(false);
|
|
128
|
+
|
|
129
|
+
this._rightPanel.setWidth(7);
|
|
130
|
+
|
|
131
|
+
this._rightPanel.addClassName(rightPanel);
|
|
132
|
+
|
|
133
|
+
this._rightPanel.addClassName("webiny-split-view__right-panel");
|
|
134
|
+
|
|
135
|
+
this.addElement(this._leftPanel);
|
|
136
|
+
|
|
137
|
+
this._rightPanel.moveAfter(this._leftPanel);
|
|
138
|
+
}
|
|
139
|
+
}]);
|
|
140
|
+
|
|
141
|
+
return SplitView;
|
|
142
|
+
}(UIView);
|