superdesk-ui-framework 3.0.65 → 3.0.67
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/app/styles/_boxed-list.scss +10 -3
- package/app/styles/_helpers.scss +3 -1
- package/app/styles/components/_list-item.scss +22 -11
- package/app/styles/components/_sd-searchbar.scss +20 -1
- package/app/styles/primereact/_pr-dialog.scss +29 -13
- package/app-typescript/components/Autocomplete.tsx +9 -3
- package/app-typescript/components/Badge.tsx +16 -2
- package/app-typescript/components/Dropdown.tsx +3 -1
- package/app-typescript/components/DropdownFirst.tsx +14 -2
- package/app-typescript/components/DurationInput.tsx +19 -4
- package/app-typescript/components/EmptyState.tsx +11 -2
- package/app-typescript/components/Layouts/Panel.tsx +12 -1
- package/app-typescript/components/Lists/ContentList.tsx +5 -1
- package/app-typescript/components/Modal.tsx +12 -3
- package/app-typescript/components/Navigation/BottomNav.tsx +9 -2
- package/app-typescript/components/Navigation/QuickNavBar.tsx +10 -2
- package/app-typescript/components/Navigation/SideBarMenu.tsx +9 -4
- package/app-typescript/components/SearchBar.tsx +1 -0
- package/app-typescript/components/SidebarMenu.tsx +8 -1
- package/app-typescript/components/TabList.tsx +5 -1
- package/app-typescript/components/TagInput.tsx +4 -1
- package/app-typescript/components/ThemeSelector.tsx +13 -2
- package/app-typescript/components/TreeMenu.tsx +127 -122
- package/app-typescript/components/TreeSelect/TreeSelect.tsx +157 -141
- package/app-typescript/components/WithPortal.tsx +49 -0
- package/app-typescript/components/avatar/avatar-image.tsx +2 -0
- package/app-typescript/components/avatar/avatar.tsx +2 -1
- package/dist/examples.bundle.js +1409 -1278
- package/dist/playgrounds/planning.html +121 -43
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +398 -385
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +359 -365
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +33 -33
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +227 -231
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +41 -38
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +76 -96
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +73 -101
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +788 -729
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +35 -26
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +140 -121
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +40 -25
- package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +6 -5
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -2
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -9
- package/dist/superdesk-ui.bundle.css +79 -33
- package/dist/superdesk-ui.bundle.js +833 -729
- package/dist/vendor.bundle.js +14 -14
- package/examples/pages/playgrounds/planning.html +121 -43
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +398 -385
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +359 -365
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +33 -33
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +227 -231
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +41 -38
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +76 -96
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +73 -101
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +788 -729
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +35 -26
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +140 -121
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +40 -25
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +6 -5
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -2
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -9
- package/package.json +1 -1
- package/react/{components → app-typescript/components}/Autocomplete.js +2 -2
- package/react/{components → app-typescript/components}/Badge.js +1 -1
- package/react/{components → app-typescript/components}/Dropdown.js +3 -1
- package/react/{components → app-typescript/components}/DropdownFirst.js +6 -2
- package/react/{components → app-typescript/components}/DurationInput.js +5 -1
- package/react/{components → app-typescript/components}/EmptyState.js +2 -1
- package/react/{components → app-typescript/components}/Lists/ContentList.js +1 -1
- package/react/{components → app-typescript/components}/Modal.js +2 -2
- package/react/{components → app-typescript/components}/Navigation/BottomNav.js +4 -1
- package/react/{components → app-typescript/components}/Navigation/QuickNavBar.js +2 -1
- package/react/{components → app-typescript/components}/Navigation/SideBarMenu.js +3 -1
- package/react/{components → app-typescript/components}/SearchBar.js +1 -0
- package/react/{components → app-typescript/components}/TabList.js +2 -1
- package/react/{components → app-typescript/components}/TagInput.js +1 -1
- package/react/{components → app-typescript/components}/TreeSelect/TreeSelect.d.ts +3 -2
- package/react/{components → app-typescript/components}/TreeSelect/TreeSelect.js +81 -73
- package/react/app-typescript/components/WithPortal.d.ts +14 -0
- package/react/app-typescript/components/WithPortal.js +69 -0
- package/react/{components → app-typescript/components}/avatar/avatar.js +2 -1
- package/react/examples/pages/playgrounds/dummy-data/items.d.ts +16 -0
- package/react/examples/pages/playgrounds/dummy-data/items.js +95 -0
- package/react/examples/pages/playgrounds/react-playgrounds/CoreLayout.d.ts +51 -0
- package/react/examples/pages/playgrounds/react-playgrounds/CoreLayout.js +454 -0
- package/react/examples/pages/playgrounds/react-playgrounds/EditorTest.d.ts +27 -0
- package/react/examples/pages/playgrounds/react-playgrounds/EditorTest.js +256 -0
- package/react/examples/pages/playgrounds/react-playgrounds/FirstPlayground.d.ts +19 -0
- package/react/examples/pages/playgrounds/react-playgrounds/FirstPlayground.js +160 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Index.d.ts +11 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Index.js +25 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Multiedit.d.ts +36 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Multiedit.js +200 -0
- package/react/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.d.ts +22 -0
- package/react/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.js +134 -0
- package/react/examples/pages/playgrounds/react-playgrounds/PersonalProfile.d.ts +40 -0
- package/react/examples/pages/playgrounds/react-playgrounds/PersonalProfile.js +350 -0
- package/react/examples/pages/playgrounds/react-playgrounds/RundownEditor.d.ts +32 -0
- package/react/examples/pages/playgrounds/react-playgrounds/RundownEditor.js +267 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Rundowns.d.ts +39 -0
- package/react/examples/pages/playgrounds/react-playgrounds/Rundowns.js +558 -0
- package/react/examples/pages/playgrounds/react-playgrounds/SamsPlayground.d.ts +24 -0
- package/react/examples/pages/playgrounds/react-playgrounds/SamsPlayground.js +241 -0
- package/react/examples/pages/playgrounds/react-playgrounds/TestGround.d.ts +27 -0
- package/react/examples/pages/playgrounds/react-playgrounds/TestGround.js +508 -0
- package/react/examples/pages/playgrounds/react-playgrounds/UiPlayground.d.ts +24 -0
- package/react/examples/pages/playgrounds/react-playgrounds/UiPlayground.js +239 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.d.ts +11 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.js +64 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.d.ts +10 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.js +62 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.d.ts +14 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.js +65 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Index.d.ts +19 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Index.js +41 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Layout.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Layout.js +40 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.d.ts +9 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/MainPanel.d.ts +10 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/MainPanel.js +63 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.js +55 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Panel.d.ts +10 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/Panel.js +63 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelContent.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelContent.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.d.ts +11 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.js +63 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.d.ts +8 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.js +54 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.d.ts +12 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.js +63 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/RightPanel.d.ts +9 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/RightPanel.js +53 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SearchBar.d.ts +23 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SearchBar.js +92 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.d.ts +20 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.js +83 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SubNav.d.ts +9 -0
- package/react/examples/pages/playgrounds/react-playgrounds/components/SubNav.js +60 -0
- package/tsconfig.json +5 -1
- /package/dist/playgrounds/dummy-data/{items.js → items.ts} +0 -0
- /package/examples/pages/playgrounds/dummy-data/{items.js → items.ts} +0 -0
- /package/react/{components → app-typescript/components}/Alert.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Alert.js +0 -0
- /package/react/{components → app-typescript/components}/Autocomplete.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Badge.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Button.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Button.js +0 -0
- /package/react/{components → app-typescript/components}/ButtonGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ButtonGroup.js +0 -0
- /package/react/{components → app-typescript/components}/Carousel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Carousel.js +0 -0
- /package/react/{components → app-typescript/components}/CheckButtonGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/CheckButtonGroup.js +0 -0
- /package/react/{components → app-typescript/components}/CheckGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/CheckGroup.js +0 -0
- /package/react/{components → app-typescript/components}/Checkbox.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Checkbox.js +0 -0
- /package/react/{components → app-typescript/components}/CheckboxButton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/CheckboxButton.js +0 -0
- /package/react/{components → app-typescript/components}/ContentDivider.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ContentDivider.js +0 -0
- /package/react/{components → app-typescript/components}/CreateButton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/CreateButton.js +0 -0
- /package/react/{components → app-typescript/components}/DatePicker.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DatePicker.js +0 -0
- /package/react/{components → app-typescript/components}/Divider.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Divider.js +0 -0
- /package/react/{components → app-typescript/components}/DonutChart.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DonutChart.js +0 -0
- /package/react/{components → app-typescript/components}/DragHandle.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DragHandle.js +0 -0
- /package/react/{components → app-typescript/components}/DropZone.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DropZone.js +0 -0
- /package/react/{components → app-typescript/components}/Dropdown.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DropdownFirst.d.ts +0 -0
- /package/react/{components → app-typescript/components}/DurationInput.d.ts +0 -0
- /package/react/{components → app-typescript/components}/EmptyState.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormGroup.js +0 -0
- /package/react/{components → app-typescript/components}/Form/FormItem.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormItem.js +0 -0
- /package/react/{components → app-typescript/components}/Form/FormLabel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormLabel.js +0 -0
- /package/react/{components → app-typescript/components}/Form/FormRow.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormRow.js +0 -0
- /package/react/{components → app-typescript/components}/Form/FormRowNew.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormRowNew.js +0 -0
- /package/react/{components → app-typescript/components}/Form/FormText.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/FormText.js +0 -0
- /package/react/{components → app-typescript/components}/Form/InputBase.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/InputBase.js +0 -0
- /package/react/{components → app-typescript/components}/Form/InputNew.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/InputNew.js +0 -0
- /package/react/{components → app-typescript/components}/Form/InputWrapper.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/InputWrapper.js +0 -0
- /package/react/{components → app-typescript/components}/Form/index.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Form/index.js +0 -0
- /package/react/{components → app-typescript/components}/FormLabel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/FormLabel.js +0 -0
- /package/react/{components → app-typescript/components}/GridItem.d.ts +0 -0
- /package/react/{components → app-typescript/components}/GridItem.js +0 -0
- /package/react/{components → app-typescript/components}/GridList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/GridList.js +0 -0
- /package/react/{components → app-typescript/components}/HeadingText.d.ts +0 -0
- /package/react/{components → app-typescript/components}/HeadingText.js +0 -0
- /package/react/{components → app-typescript/components}/HelloWorld.d.ts +0 -0
- /package/react/{components → app-typescript/components}/HelloWorld.js +0 -0
- /package/react/{components → app-typescript/components}/Icon.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Icon.js +0 -0
- /package/react/{components → app-typescript/components}/IconButton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/IconButton.js +0 -0
- /package/react/{components → app-typescript/components}/IconLabel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/IconLabel.js +0 -0
- /package/react/{components → app-typescript/components}/IconPicker.d.ts +0 -0
- /package/react/{components → app-typescript/components}/IconPicker.js +0 -0
- /package/react/{components → app-typescript/components}/Input.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Input.js +0 -0
- /package/react/{components → app-typescript/components}/Label.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Label.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthorinInnerSideBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthorinInnerSideBar.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringContainer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringContainer.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrame.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrame.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameContainer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameContainer.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameLeftBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameLeftBar.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameMain.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameMain.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameNavBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameNavBar.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameOverlay.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameOverlay.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameRightBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameRightBar.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameSidePanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameSidePanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameSidePanelOverlay.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringFrameSidePanelOverlay.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringInnerBody.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringInnerBody.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringInnerHeader.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringInnerHeader.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMain.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMain.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainContainer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainContainer.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainContent.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainContent.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainToolBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/AuthoringMainToolBar.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/BottomBarAction.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/BottomBarAction.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Container.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Container.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/ContentSplitter.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/ContentSplitter.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayout.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayout.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutContainer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutContainer.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutFooter.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutFooter.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutMain.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutMain.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutOverlay.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutOverlay.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutSlideInMenu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutSlideInMenu.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutTopMenu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/CoreLayoutTopMenu.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/HamburgerButton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/HamburgerButton.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/HeaderPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/HeaderPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Layout.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Layout.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/LayoutContainer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/LayoutContainer.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/LeftPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/LeftPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/MainMenu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/MainMenu.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/MainPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/MainPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/NotificationPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/NotificationPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/OverlayPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/OverlayPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/PageLayout.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/PageLayout.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Panel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/Panel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/RightPanel.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/RightPanel.js +0 -0
- /package/react/{components → app-typescript/components}/Layouts/index.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Layouts/index.js +0 -0
- /package/react/{components → app-typescript/components}/LeftMenu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/LeftMenu.js +0 -0
- /package/react/{components → app-typescript/components}/ListItemLoader.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ListItemLoader.js +0 -0
- /package/react/{components → app-typescript/components}/Lists/BoxedList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Lists/BoxedList.js +0 -0
- /package/react/{components → app-typescript/components}/Lists/ContentList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Lists/SimpleList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Lists/SimpleList.js +0 -0
- /package/react/{components → app-typescript/components}/Lists/TableList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Lists/TableList.js +0 -0
- /package/react/{components → app-typescript/components}/Lists/index.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Lists/index.js +0 -0
- /package/react/{components → app-typescript/components}/Loader.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Loader.js +0 -0
- /package/react/{components → app-typescript/components}/Menu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Menu.js +0 -0
- /package/react/{components → app-typescript/components}/Modal.d.ts +0 -0
- /package/react/{components → app-typescript/components}/MultiSelect.d.ts +0 -0
- /package/react/{components → app-typescript/components}/MultiSelect.js +0 -0
- /package/react/{components → app-typescript/components}/NavButton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/NavButton.js +0 -0
- /package/react/{components → app-typescript/components}/Navigation/BottomNav.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Navigation/QuickNavBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Navigation/SideBarMenu.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Navigation/SideBarTabs.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Navigation/SideBarTabs.js +0 -0
- /package/react/{components → app-typescript/components}/Navigation/index.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Navigation/index.js +0 -0
- /package/react/{components → app-typescript/components}/Popover.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Popover.js +0 -0
- /package/react/{components → app-typescript/components}/PropsList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/PropsList.js +0 -0
- /package/react/{components → app-typescript/components}/RadioButtonGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/RadioButtonGroup.js +0 -0
- /package/react/{components → app-typescript/components}/RadioGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/RadioGroup.js +0 -0
- /package/react/{components → app-typescript/components}/ResizablePanels.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ResizablePanels.js +0 -0
- /package/react/{components → app-typescript/components}/ResizeObserverComponent.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ResizeObserverComponent.js +0 -0
- /package/react/{components → app-typescript/components}/Rotate.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Rotate.js +0 -0
- /package/react/{components → app-typescript/components}/SearchBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Select.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Select.js +0 -0
- /package/react/{components → app-typescript/components}/SelectGrid.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SelectGrid.js +0 -0
- /package/react/{components → app-typescript/components}/SelectPreview.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SelectPreview.js +0 -0
- /package/react/{components → app-typescript/components}/SelectWithTemplate.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SelectWithTemplate.js +0 -0
- /package/react/{components → app-typescript/components}/ShowPopup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ShowPopup.js +0 -0
- /package/react/{components → app-typescript/components}/SingleAndDoubleClickFunction.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SingleAndDoubleClickFunction.js +0 -0
- /package/react/{components → app-typescript/components}/Skeleton.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Skeleton.js +0 -0
- /package/react/{components → app-typescript/components}/SlidingToolbar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SlidingToolbar.js +0 -0
- /package/react/{components → app-typescript/components}/Spacer.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Spacer.js +0 -0
- /package/react/{components → app-typescript/components}/Spinner.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Spinner.js +0 -0
- /package/react/{components → app-typescript/components}/StrechBar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/StrechBar.js +0 -0
- /package/react/{components → app-typescript/components}/SubNav.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SubNav.js +0 -0
- /package/react/{components → app-typescript/components}/Switch.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Switch.js +0 -0
- /package/react/{components → app-typescript/components}/SwitchGroup.d.ts +0 -0
- /package/react/{components → app-typescript/components}/SwitchGroup.js +0 -0
- /package/react/{components → app-typescript/components}/TabCustom.d.ts +0 -0
- /package/react/{components → app-typescript/components}/TabCustom.js +0 -0
- /package/react/{components → app-typescript/components}/TabList.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Tag.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Tag.js +0 -0
- /package/react/{components → app-typescript/components}/TagInput.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Text/Heading.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Text/Heading.js +0 -0
- /package/react/{components → app-typescript/components}/Text/Text.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Text/Text.js +0 -0
- /package/react/{components → app-typescript/components}/Text/Time.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Text/Time.js +0 -0
- /package/react/{components → app-typescript/components}/ThemeSelector.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ThemeSelector.js +0 -0
- /package/react/{components → app-typescript/components}/TimePicker.d.ts +0 -0
- /package/react/{components → app-typescript/components}/TimePicker.js +0 -0
- /package/react/{components → app-typescript/components}/Toast.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Toast.js +0 -0
- /package/react/{components → app-typescript/components}/ToastMessage.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ToastMessage.js +0 -0
- /package/react/{components → app-typescript/components}/ToastText.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ToastText.js +0 -0
- /package/react/{components → app-typescript/components}/ToastWrapper.d.ts +0 -0
- /package/react/{components → app-typescript/components}/ToastWrapper.js +0 -0
- /package/react/{components → app-typescript/components}/Togglebox.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Togglebox.js +0 -0
- /package/react/{components → app-typescript/components}/Tooltip.d.ts +0 -0
- /package/react/{components → app-typescript/components}/Tooltip.js +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/KeyboardNavigation.d.ts +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/KeyboardNavigation.js +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/TreeSelectItem.d.ts +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/TreeSelectItem.js +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/TreeSelectPill.d.ts +0 -0
- /package/react/{components → app-typescript/components}/TreeSelect/TreeSelectPill.js +0 -0
- /package/react/{components → app-typescript/components}/WithPagination.d.ts +0 -0
- /package/react/{components → app-typescript/components}/WithPagination.js +0 -0
- /package/react/{components → app-typescript/components}/WithPopover.d.ts +0 -0
- /package/react/{components → app-typescript/components}/WithPopover.js +0 -0
- /package/react/{components → app-typescript/components}/WithSizeObserver.d.ts +0 -0
- /package/react/{components → app-typescript/components}/WithSizeObserver.js +0 -0
- /package/react/{components → app-typescript/components}/_Positioner.d.ts +0 -0
- /package/react/{components → app-typescript/components}/_Positioner.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-action-add.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-action-add.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-group.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-group.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-image.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-image.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-number.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-number.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-placeholder.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-placeholder.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-text.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-text.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-wrapper.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar-wrapper.js +0 -0
- /package/react/{components → app-typescript/components}/avatar/avatar.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/interfaces.d.ts +0 -0
- /package/react/{components → app-typescript/components}/avatar/interfaces.js +0 -0
- /package/react/{helpers.d.ts → app-typescript/helpers.d.ts} +0 -0
- /package/react/{helpers.js → app-typescript/helpers.js} +0 -0
- /package/react/{index.d.ts → app-typescript/index.d.ts} +0 -0
- /package/react/{index.js → app-typescript/index.js} +0 -0
@@ -64,7 +64,7 @@ var SelectPreview_1 = require("../SelectPreview");
|
|
64
64
|
var TreeSelectPill_1 = require("./TreeSelectPill");
|
65
65
|
var TreeSelectItem_1 = require("./TreeSelectItem");
|
66
66
|
var KeyboardNavigation_1 = require("./KeyboardNavigation");
|
67
|
-
var
|
67
|
+
var WithPortal_1 = require("../WithPortal");
|
68
68
|
var TreeSelect = /** @class */ (function (_super) {
|
69
69
|
__extends(TreeSelect, _super);
|
70
70
|
function TreeSelect(props) {
|
@@ -87,7 +87,10 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
87
87
|
if ((((_a = _this.dropdownRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)) !== true)
|
88
88
|
&& (((_b = _this.treeSelectRef.current) === null || _b === void 0 ? void 0 : _b.contains(event.target)) !== true)
|
89
89
|
&& _this.state.openDropdown) {
|
90
|
-
_this.setState({
|
90
|
+
_this.setState({
|
91
|
+
openDropdown: false,
|
92
|
+
searchFieldValue: '',
|
93
|
+
});
|
91
94
|
}
|
92
95
|
};
|
93
96
|
_this.onKeyDown = function (e) {
|
@@ -104,10 +107,19 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
104
107
|
}
|
105
108
|
}
|
106
109
|
};
|
110
|
+
_this.onPressEsc = function (event) {
|
111
|
+
if (event.key === 'Escape' && _this.state.openDropdown) {
|
112
|
+
_this.setState({
|
113
|
+
openDropdown: false,
|
114
|
+
searchFieldValue: '',
|
115
|
+
});
|
116
|
+
}
|
117
|
+
};
|
107
118
|
_this.componentDidMount = function () {
|
108
119
|
_this.recursion(_this.state.options);
|
109
120
|
document.addEventListener("mousedown", _this.onMouseDown);
|
110
121
|
document.addEventListener("keydown", _this.onKeyDown);
|
122
|
+
document.addEventListener("keydown", _this.onPressEsc);
|
111
123
|
};
|
112
124
|
_this.debounceFn = (0, debounce_1.default)(_this.handleDebounce, 500);
|
113
125
|
_this.state = {
|
@@ -135,6 +147,7 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
135
147
|
_this.toggleMenu = _this.toggleMenu.bind(_this);
|
136
148
|
_this.onMouseDown = _this.onMouseDown.bind(_this);
|
137
149
|
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
150
|
+
_this.onPressEsc = _this.onPressEsc.bind(_this);
|
138
151
|
_this.dropdownRef = React.createRef();
|
139
152
|
_this.ref = React.createRef();
|
140
153
|
_this.inputRef = React.createRef();
|
@@ -147,6 +160,7 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
147
160
|
TreeSelect.prototype.componentWillUnmount = function () {
|
148
161
|
document.removeEventListener("mousedown", this.onMouseDown);
|
149
162
|
document.removeEventListener("keydown", this.onKeyDown);
|
163
|
+
document.addEventListener("keydown", this.onPressEsc);
|
150
164
|
};
|
151
165
|
TreeSelect.prototype.componentDidUpdate = function (prevProps, prevState) {
|
152
166
|
var _a, _b;
|
@@ -173,17 +187,9 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
173
187
|
var _this = this;
|
174
188
|
var _a, _b;
|
175
189
|
if (this.state.openDropdown) {
|
176
|
-
if (this.
|
177
|
-
this.popperInstance = (0, core_1.createPopper)(this.
|
190
|
+
if (this.treeSelectRef.current && this.dropdownRef.current) {
|
191
|
+
this.popperInstance = (0, core_1.createPopper)(this.treeSelectRef.current, this.dropdownRef.current, {
|
178
192
|
placement: 'bottom-start',
|
179
|
-
modifiers: [
|
180
|
-
{
|
181
|
-
name: 'offset',
|
182
|
-
options: {
|
183
|
-
offset: [-4, 4],
|
184
|
-
},
|
185
|
-
},
|
186
|
-
],
|
187
193
|
});
|
188
194
|
}
|
189
195
|
(_a = this.inputRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', function (e) {
|
@@ -501,13 +507,16 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
501
507
|
}, items: this.state.value, valueTemplate: this.props.valueTemplate, getLabel: this.props.getLabel }));
|
502
508
|
}
|
503
509
|
return (React.createElement(Form_1.InputWrapper, { label: this.props.label, error: this.props.error, invalid: this.props.error != null, required: this.props.required, disabled: this.props.disabled, info: this.props.info, inlineLabel: this.props.inlineLabel, labelHidden: this.props.labelHidden, htmlId: this.htmlId, tabindex: this.props.tabindex, fullWidth: (_a = this.props.inputWidth === '100%') !== null && _a !== void 0 ? _a : false, "data-test-id": this.props['data-test-id'] },
|
504
|
-
React.createElement("div", { className: "tags-input sd-input__input
|
510
|
+
React.createElement("div", { className: "\n tags-input sd-input__input\n tags-input--".concat(this.props.allowMultiple ? 'multi-select' : 'single-select'), ref: this.treeSelectRef, "data-test-id": this.props.allowMultiple ? undefined : 'open-popover' }, this.props.allowMultiple
|
505
511
|
? React.createElement("div", { className: "tags-input__tags" },
|
506
512
|
this.props.readOnly
|
507
|
-
|| React.createElement("button", { ref: this.openDropdownRef, className: "tags-input__add-button
|
513
|
+
|| React.createElement("button", { ref: this.openDropdownRef, className: "\n tags-input__add-button\n ".concat(this.props.disabled ? 'tags-input__add-button--disabled' : ''), onClick: function (e) {
|
508
514
|
e.stopPropagation();
|
509
515
|
if (!_this.props.disabled) {
|
510
|
-
_this.setState({
|
516
|
+
_this.setState({
|
517
|
+
openDropdown: !_this.state.openDropdown,
|
518
|
+
searchFieldValue: '',
|
519
|
+
});
|
511
520
|
}
|
512
521
|
}, "data-test-id": "open-popover" },
|
513
522
|
React.createElement("i", { className: "icon-plus-large" })),
|
@@ -557,68 +566,67 @@ var TreeSelect = /** @class */ (function (_super) {
|
|
557
566
|
: (React.createElement(Wrapper, null,
|
558
567
|
React.createElement("span", null, _this.props.getLabel(item)))));
|
559
568
|
}))),
|
560
|
-
(
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
React.createElement("div", { className:
|
569
|
+
React.createElement(WithPortal_1.WithPortal, { active: this.state.openDropdown, "data-test-id": "tree-select-popover" },
|
570
|
+
React.createElement("div", { className: "autocomplete autocomplete--multi-select"
|
571
|
+
+ (this.props.width === 'medium' ? ' autocomplete--fixed-width' : ''), style: {
|
572
|
+
zIndex: this.props.zIndex,
|
573
|
+
width: (_b = this.treeSelectRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth,
|
574
|
+
}, ref: this.dropdownRef },
|
575
|
+
React.createElement("div", { className: 'autocomplete__header' },
|
576
|
+
React.createElement("div", { className: "autocomplete__icon", onClick: function () {
|
577
|
+
_this.backButton();
|
578
|
+
} },
|
579
|
+
React.createElement(Icon_1.Icon, { name: "search", className: "search" })),
|
580
|
+
React.createElement("div", { className: 'autocomplete__filter' },
|
581
|
+
React.createElement("input", { className: "autocomplete__input", type: "text", placeholder: this.props.searchPlaceholder, ref: this.inputRef, value: this.state.searchFieldValue, onChange: function (event) {
|
582
|
+
var _a, _b;
|
583
|
+
if (_this.props.kind === 'synchronous') {
|
584
|
+
_this.setState({ searchFieldValue: event.target.value });
|
585
|
+
(_a = _this.popperInstance) === null || _a === void 0 ? void 0 : _a.update();
|
586
|
+
}
|
587
|
+
else if (_this.props.kind === 'asynchronous') {
|
588
|
+
if (_this.ICancelFn) {
|
589
|
+
_this.ICancelFn();
|
590
|
+
}
|
591
|
+
_this.setState({ searchFieldValue: event.target.value, options: [] });
|
592
|
+
(_b = _this.popperInstance) === null || _b === void 0 ? void 0 : _b.update();
|
593
|
+
_this.debounceFn();
|
594
|
+
}
|
595
|
+
else {
|
596
|
+
return;
|
597
|
+
}
|
598
|
+
}, "data-test-id": "filter-input" }))),
|
599
|
+
(this.state.activeTree.length > 0 && this.state.buttonValue != null)
|
600
|
+
&& React.createElement("div", { className: 'autocomplete__category-header' },
|
568
601
|
React.createElement("div", { className: "autocomplete__icon", onClick: function () {
|
569
602
|
_this.backButton();
|
570
603
|
} },
|
571
|
-
React.createElement(Icon_1.Icon, { name: "
|
604
|
+
React.createElement(Icon_1.Icon, { name: "arrow-left", className: "arrow-left" })),
|
572
605
|
React.createElement("div", { className: 'autocomplete__filter' },
|
573
|
-
React.createElement("
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
React.createElement("div", { className: 'autocomplete__filter' },
|
598
|
-
React.createElement("button", { className: 'autocomplete__category-title' }, this.props.optionTemplate
|
599
|
-
? this.props.optionTemplate(this.state.buttonValue.value)
|
600
|
-
: this.props.getLabel(this.state.buttonValue.value)),
|
601
|
-
this.props.selectBranchWithChildren
|
602
|
-
&& this.branchButton(this.state.buttonValue))),
|
603
|
-
this.state.loading
|
604
|
-
? React.createElement("ul", { className: "suggestion-list--loader" },
|
605
|
-
React.createElement(Loader_1.Loader, { overlay: true }))
|
606
|
-
: this.state.searchFieldValue === ''
|
607
|
-
? this.props.getOptions
|
608
|
-
? React.createElement("ul", { className: "suggestion-list suggestion-list--multi-select", ref: this.ref, "data-test-id": "options" }, this.state.options.map(function (option, i) {
|
609
|
-
var selectedItem = _this.state.value.some(function (obj) {
|
610
|
-
return _this.props.getId(obj) === _this.props.getId(option.value);
|
611
|
-
});
|
612
|
-
return (React.createElement(TreeSelectItem_1.TreeSelectItem, { key: i, option: option, handleTree: _this.handleTree, selectedItem: selectedItem, allowMultiple: _this.props.allowMultiple, getBorderColor: _this.props.getBorderColor, getBackgroundColor: _this.props.getBackgroundColor, getId: _this.props.getId, optionTemplate: _this.props.optionTemplate, getLabel: _this.props.getLabel, onKeyDown: function () { return _this.setState({
|
613
|
-
buttonTarget: __spreadArray(__spreadArray([], _this.state.buttonTarget, true), [
|
614
|
-
_this.props.getId(option.value),
|
615
|
-
], false),
|
616
|
-
}); } }));
|
617
|
-
}))
|
618
|
-
: null
|
619
|
-
: React.createElement("ul", { className: "suggestion-list suggestion-list--multi-select", ref: this.ref }, this.filteredItem(this.props.singleLevelSearch
|
620
|
-
? this.state.options
|
621
|
-
: this.state.filterArr)))), document.body)));
|
606
|
+
React.createElement("button", { className: 'autocomplete__category-title' }, this.props.optionTemplate
|
607
|
+
? this.props.optionTemplate(this.state.buttonValue.value)
|
608
|
+
: this.props.getLabel(this.state.buttonValue.value)),
|
609
|
+
this.props.selectBranchWithChildren
|
610
|
+
&& this.branchButton(this.state.buttonValue))),
|
611
|
+
this.state.loading
|
612
|
+
? React.createElement("ul", { className: "suggestion-list--loader" },
|
613
|
+
React.createElement(Loader_1.Loader, { overlay: true }))
|
614
|
+
: this.state.searchFieldValue === ''
|
615
|
+
? this.props.getOptions
|
616
|
+
? React.createElement("ul", { className: "suggestion-list suggestion-list--multi-select", ref: this.ref, "data-test-id": "options" }, this.state.options.map(function (option, i) {
|
617
|
+
var selectedItem = _this.state.value.some(function (obj) {
|
618
|
+
return _this.props.getId(obj) === _this.props.getId(option.value);
|
619
|
+
});
|
620
|
+
return (React.createElement(TreeSelectItem_1.TreeSelectItem, { key: i, option: option, handleTree: _this.handleTree, selectedItem: selectedItem, allowMultiple: _this.props.allowMultiple, getBorderColor: _this.props.getBorderColor, getBackgroundColor: _this.props.getBackgroundColor, getId: _this.props.getId, optionTemplate: _this.props.optionTemplate, getLabel: _this.props.getLabel, onKeyDown: function () { return _this.setState({
|
621
|
+
buttonTarget: __spreadArray(__spreadArray([], _this.state.buttonTarget, true), [
|
622
|
+
_this.props.getId(option.value),
|
623
|
+
], false),
|
624
|
+
}); } }));
|
625
|
+
}))
|
626
|
+
: null
|
627
|
+
: React.createElement("ul", { className: "suggestion-list suggestion-list--multi-select", ref: this.ref }, this.filteredItem(this.props.singleLevelSearch
|
628
|
+
? this.state.options
|
629
|
+
: this.state.filterArr))))));
|
622
630
|
};
|
623
631
|
return TreeSelect;
|
624
632
|
}(React.Component));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
interface IProps {
|
3
|
+
active: boolean;
|
4
|
+
'data-test-id'?: string;
|
5
|
+
}
|
6
|
+
export declare function findParent(element: HTMLElement | null): HTMLElement | null;
|
7
|
+
export declare class WithPortal extends React.Component<IProps> {
|
8
|
+
private ref;
|
9
|
+
private dataTheme;
|
10
|
+
constructor(props: IProps);
|
11
|
+
componentDidMount(): void;
|
12
|
+
render(): JSX.Element;
|
13
|
+
}
|
14
|
+
export {};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
18
|
+
if (k2 === undefined) k2 = k;
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
22
|
+
}
|
23
|
+
Object.defineProperty(o, k2, desc);
|
24
|
+
}) : (function(o, m, k, k2) {
|
25
|
+
if (k2 === undefined) k2 = k;
|
26
|
+
o[k2] = m[k];
|
27
|
+
}));
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
30
|
+
}) : function(o, v) {
|
31
|
+
o["default"] = v;
|
32
|
+
});
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
34
|
+
if (mod && mod.__esModule) return mod;
|
35
|
+
var result = {};
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
37
|
+
__setModuleDefault(result, mod);
|
38
|
+
return result;
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.WithPortal = exports.findParent = void 0;
|
42
|
+
var React = __importStar(require("react"));
|
43
|
+
var react_dom_1 = require("react-dom");
|
44
|
+
function findParent(element) {
|
45
|
+
var _a;
|
46
|
+
var dataTheme = element;
|
47
|
+
while (dataTheme != null && (dataTheme === null || dataTheme === void 0 ? void 0 : dataTheme.getAttribute('data-theme')) == null) {
|
48
|
+
dataTheme = (_a = dataTheme.parentElement) !== null && _a !== void 0 ? _a : null;
|
49
|
+
}
|
50
|
+
return dataTheme;
|
51
|
+
}
|
52
|
+
exports.findParent = findParent;
|
53
|
+
var WithPortal = /** @class */ (function (_super) {
|
54
|
+
__extends(WithPortal, _super);
|
55
|
+
function WithPortal(props) {
|
56
|
+
var _this = _super.call(this, props) || this;
|
57
|
+
_this.ref = React.createRef();
|
58
|
+
return _this;
|
59
|
+
}
|
60
|
+
WithPortal.prototype.componentDidMount = function () {
|
61
|
+
var _a, _b;
|
62
|
+
this.dataTheme = (_b = (_a = findParent(this.ref.current)) === null || _a === void 0 ? void 0 : _a.getAttribute('data-theme')) !== null && _b !== void 0 ? _b : undefined;
|
63
|
+
};
|
64
|
+
WithPortal.prototype.render = function () {
|
65
|
+
return (React.createElement("div", { ref: this.ref }, this.props.active && ((0, react_dom_1.createPortal)(React.createElement("div", { "data-theme": this.dataTheme, "data-test-id": this.props['data-test-id'] }, this.props.children), document.body))));
|
66
|
+
};
|
67
|
+
return WithPortal;
|
68
|
+
}(React.Component));
|
69
|
+
exports.WithPortal = WithPortal;
|
@@ -50,7 +50,8 @@ var Avatar = /** @class */ (function (_super) {
|
|
50
50
|
}
|
51
51
|
Avatar.prototype.render = function () {
|
52
52
|
var _a = this.props, imageUrl = _a.imageUrl, initials = _a.initials, size = _a.size, statusIndicator = _a.statusIndicator, administratorIndicator = _a.administratorIndicator, icon = _a.icon, displayName = _a.displayName, customContent = _a.customContent;
|
53
|
-
var tooltipCombined = [displayName, this.props.tooltip]
|
53
|
+
var tooltipCombined = [displayName, this.props.tooltip]
|
54
|
+
.filter(function (str) { return (str !== null && str !== void 0 ? str : '').trim().length > 0; }).join('\n');
|
54
55
|
return (React.createElement(avatar_wrapper_1.AvatarWrapper, { size: size, statusIndicator: statusIndicator ? { status: statusIndicator, tooltipText: '' } : undefined, administratorIndicator: administratorIndicator ? { enabled: true, tooltipText: '' } : undefined, icon: icon, isEmpty: false }, (function () {
|
55
56
|
if (customContent != null) {
|
56
57
|
return customContent;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare const items: {
|
2
|
+
image: string;
|
3
|
+
imageAlt: string;
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
date: string;
|
7
|
+
type: string;
|
8
|
+
urgency: string;
|
9
|
+
priority: string;
|
10
|
+
urgencyColor: string;
|
11
|
+
priorityColor: string;
|
12
|
+
locked: boolean;
|
13
|
+
status: string[];
|
14
|
+
selected: boolean;
|
15
|
+
}[];
|
16
|
+
export default items;
|
@@ -0,0 +1,95 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var items = [
|
4
|
+
{
|
5
|
+
image: '/d_trump.jpg',
|
6
|
+
imageAlt: 'Moron',
|
7
|
+
title: 'Lorem ipsum dolor sit amet, consectetur',
|
8
|
+
description: 'Cras mattis consectetur purus sit amet fermentum. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.',
|
9
|
+
date: '05.11.2020',
|
10
|
+
type: 'photo',
|
11
|
+
urgency: '1',
|
12
|
+
priority: '3',
|
13
|
+
urgencyColor: 'deep-orange--600',
|
14
|
+
priorityColor: 'light-green--600',
|
15
|
+
locked: true,
|
16
|
+
status: ['selected'],
|
17
|
+
selected: true
|
18
|
+
},
|
19
|
+
{
|
20
|
+
image: '/obama_2.jpg',
|
21
|
+
imageAlt: 'Barack',
|
22
|
+
title: 'Sed posuere consectetur est at lobortis',
|
23
|
+
description: 'Sed posuere consectetur est at lobortis. Vestibulum id ligula porta felis euismod semper.',
|
24
|
+
date: '05.11.2020',
|
25
|
+
type: 'photo',
|
26
|
+
urgency: '2',
|
27
|
+
priority: '3',
|
28
|
+
urgencyColor: 'deep-orange--500',
|
29
|
+
priorityColor: 'light-green--600',
|
30
|
+
locked: false,
|
31
|
+
status: [],
|
32
|
+
selected: false
|
33
|
+
},
|
34
|
+
{
|
35
|
+
image: '',
|
36
|
+
imageAlt: '',
|
37
|
+
title: 'Aenean eu leo quam',
|
38
|
+
description: 'Sed posuere consectetur est at lobortis. Vestibulum id ligula porta felis euismod semper.',
|
39
|
+
date: '05.11.2020',
|
40
|
+
type: 'audio',
|
41
|
+
urgency: '2',
|
42
|
+
priority: '5',
|
43
|
+
urgencyColor: 'deep-orange--500',
|
44
|
+
priorityColor: 'blue-grey--300',
|
45
|
+
locked: false,
|
46
|
+
status: [],
|
47
|
+
selected: false
|
48
|
+
},
|
49
|
+
{
|
50
|
+
image: '/bill.jpg',
|
51
|
+
imageAlt: 'Bill',
|
52
|
+
title: 'Pellentesque ornare sem lacinia quam venenatis',
|
53
|
+
description: 'Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus.',
|
54
|
+
date: '05.11.2020',
|
55
|
+
type: 'photo',
|
56
|
+
urgency: '3',
|
57
|
+
priority: '5',
|
58
|
+
urgencyColor: 'orange--500',
|
59
|
+
priorityColor: 'blue-grey--300',
|
60
|
+
locked: false,
|
61
|
+
status: ['actioning'],
|
62
|
+
selected: false
|
63
|
+
},
|
64
|
+
{
|
65
|
+
image: '/hillary.jpg',
|
66
|
+
imageAlt: 'Bill',
|
67
|
+
title: 'Donec id elit non mi porta gravida at eget metus',
|
68
|
+
description: 'Nullam id dolor id nibh ultricies vehicula ut id elit. Donec sed odio dui.',
|
69
|
+
date: '05.11.2020',
|
70
|
+
type: 'photo',
|
71
|
+
urgency: '2',
|
72
|
+
priority: '4',
|
73
|
+
urgencyColor: 'deep-orange--500',
|
74
|
+
priorityColor: 'blue-grey--500',
|
75
|
+
locked: false,
|
76
|
+
status: ['fetched'],
|
77
|
+
selected: false
|
78
|
+
},
|
79
|
+
{
|
80
|
+
image: '/bush_2.jpg',
|
81
|
+
imageAlt: 'W. Bush',
|
82
|
+
title: 'Donec ullamcorper nulla non metus auctor fringilla',
|
83
|
+
description: 'Curabitur blandit tempus porttitor. Etiam porta sem malesuada magna mollis euismod.',
|
84
|
+
date: '05.11.2020',
|
85
|
+
type: 'photo',
|
86
|
+
urgency: '3',
|
87
|
+
priority: '5',
|
88
|
+
urgencyColor: 'orange--500',
|
89
|
+
priorityColor: 'blue-grey--300',
|
90
|
+
locked: false,
|
91
|
+
status: [''],
|
92
|
+
selected: false
|
93
|
+
},
|
94
|
+
];
|
95
|
+
exports.default = items;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
interface IProps {
|
3
|
+
children?: React.ReactNode;
|
4
|
+
heading?: string;
|
5
|
+
active?: boolean;
|
6
|
+
onClick(): void;
|
7
|
+
ariaControls?: string;
|
8
|
+
menuId?: string;
|
9
|
+
}
|
10
|
+
interface IState {
|
11
|
+
theme: 'dark' | 'light' | string;
|
12
|
+
mainMenuOpen: boolean;
|
13
|
+
notificationsOpen: boolean;
|
14
|
+
botNavArray: any;
|
15
|
+
itemType: string;
|
16
|
+
dropDownState: string;
|
17
|
+
openPreview: boolean;
|
18
|
+
openFilter: boolean;
|
19
|
+
itemSelected1: boolean;
|
20
|
+
itemSelected2: boolean;
|
21
|
+
itemSelected3: boolean;
|
22
|
+
value1: boolean;
|
23
|
+
modalBasic: boolean;
|
24
|
+
modalSmall: boolean;
|
25
|
+
modalMedium: boolean;
|
26
|
+
modalNewTemplate: boolean;
|
27
|
+
modalNewShow: boolean;
|
28
|
+
modalNewShowSuccess: boolean;
|
29
|
+
modalManageTemplate: boolean;
|
30
|
+
modalManageShow: boolean;
|
31
|
+
openEditor: boolean;
|
32
|
+
openShowEditor: boolean;
|
33
|
+
array: any;
|
34
|
+
fullEditor: boolean;
|
35
|
+
openPanel: boolean;
|
36
|
+
rightPanel: boolean;
|
37
|
+
previousState: boolean;
|
38
|
+
}
|
39
|
+
export declare class CoreLayout extends React.Component<IProps, IState> {
|
40
|
+
constructor(props: IProps);
|
41
|
+
handleMainMenu(): void;
|
42
|
+
handleNotifications(): void;
|
43
|
+
handleDelete(indexNumber: number): void;
|
44
|
+
handleFilter(): void;
|
45
|
+
handlePreview(): void;
|
46
|
+
handleShow(): void;
|
47
|
+
handleTheme(newTheme: string): void;
|
48
|
+
changeStatus(item: any, status: string): void;
|
49
|
+
render(): JSX.Element;
|
50
|
+
}
|
51
|
+
export {};
|