superdesk-ui-framework 3.0.0-beta.0 → 3.0.1-beta.3
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/.vscode/settings.json +5 -0
- package/app/fonts/sd_big-icons.eot +0 -0
- package/app/fonts/sd_big-icons.svg +55 -53
- package/app/fonts/sd_big-icons.ttf +0 -0
- package/app/fonts/sd_big-icons.woff +0 -0
- package/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +1 -0
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/img/SD-logo.svg +52 -0
- package/app/img/dots.svg +3 -0
- package/app/img/spinner.svg +3 -0
- package/app/img/themes/theme-base.svg +1 -0
- package/app/img/themes/theme-contrast.svg +45 -0
- package/app/img/themes/theme-dark.svg +1 -0
- package/app/img/themes/theme-light.svg +1 -0
- package/app/index.js +1 -1
- package/app/scripts/modals.js +22 -9
- package/app/styles/_accessibility.scss +312 -4
- package/app/styles/_alerts.scss +57 -19
- package/app/styles/_avatar.scss +25 -1
- package/app/styles/_badge.scss +2 -2
- package/app/styles/_big-icon-font.scss +64 -24
- package/app/styles/_boxed-list.scss +67 -21
- package/app/styles/_buttons.scss +435 -332
- package/app/styles/_carousel.scss +17 -11
- package/app/styles/_design-tokens.scss +2 -0
- package/app/styles/_hamburger.scss +160 -0
- package/app/styles/_helpers.scss +198 -34
- package/app/styles/_icon-font.scss +344 -307
- package/app/styles/_icon-labels.scss +66 -10
- package/app/styles/_labels.scss +12 -6
- package/app/styles/_loaders.scss +13 -0
- package/app/styles/_master-desk.scss +5 -5
- package/app/styles/_mixins.scss +13 -3
- package/app/styles/_modals.scss +4 -28
- package/app/styles/_normalize.scss +1 -0
- package/app/styles/_panel-info.scss +19 -14
- package/app/styles/_sd-tag-input.scss +104 -3
- package/app/styles/_simple-list.scss +39 -17
- package/app/styles/_spinner.scss +46 -0
- package/app/styles/_table-list.scss +244 -0
- package/app/styles/_tabs.scss +6 -8
- package/app/styles/_tag-labels.scss +11 -2
- package/app/styles/_thumb-carousel.scss +11 -10
- package/app/styles/_toggle-box.scss +46 -12
- package/app/styles/_toggle-button.scss +42 -0
- package/app/styles/_tooltips.scss +3 -3
- package/app/styles/_variables.scss +0 -1
- package/app/styles/app.scss +13 -2
- package/app/styles/components/_card-item.scss +33 -21
- package/app/styles/components/_list-item.scss +32 -23
- package/app/styles/components/_sd-dropzone.scss +114 -0
- package/app/styles/components/_sd-grid-item.scss +2 -2
- package/app/styles/components/_sd-notification-panel.scss +48 -0
- package/app/styles/components/_sd-searchbar.scss +5 -98
- package/app/styles/components/_subnav.scss +149 -120
- package/app/styles/components/_theme-selector.scss +189 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +81 -0
- package/app/styles/{variables → design-tokens}/_new-colors.scss +41 -20
- package/app/styles/dropdowns/_basic-dropdown.scss +30 -3
- package/app/styles/editor/_editor-buttons.scss +54 -0
- package/app/styles/{_editor-themes.scss → editor/_editor-themes.scss} +0 -0
- package/app/styles/form-elements/_checkbox.scss +85 -58
- package/app/styles/form-elements/_forms-general.scss +90 -14
- package/app/styles/form-elements/_inputs.scss +305 -65
- package/app/styles/form-elements/_select-grid.scss +79 -0
- package/app/styles/grids/_basic-grid.scss +52 -26
- package/app/styles/grids/_grid-layout.scss +174 -66
- package/app/styles/grids/_layout-grid.scss +4 -4
- package/app/styles/grids/_sd-kanban-list.scss +2 -2
- package/app/styles/interface-elements/_side-panel.scss +87 -58
- package/app/styles/layout/_basic-layout.scss +1 -4
- package/app/styles/layout/_container.scss +35 -0
- package/app/styles/layout/_editor.scss +398 -0
- package/app/styles/menus/_sd-bottom-tabs.scss +70 -0
- package/app/styles/menus/_sd-left-navigation.scss +38 -3
- package/app/styles/menus/_sd-sidebar-menu.scss +109 -14
- package/app/styles/menus/_sd-top-menu.scss +19 -5
- package/app/styles/pr-superdesk-theme.scss +3 -0
- package/app/styles/primereact/_pr-datepicker.scss +58 -7
- package/app/styles/primereact/_pr-dialog.scss +39 -7
- package/app/styles/primereact/_pr-dropdown.scss +155 -8
- package/app/styles/primereact/_pr-general.scss +4 -0
- package/app/styles/primereact/_pr-skeleton.scss +35 -0
- package/app/styles/variables/_colors.scss +2 -452
- package/app/styles/variables/_dimensions.scss +85 -1
- package/app/styles/variables/_form-elements.scss +0 -2
- package/app-typescript/components/Alert.tsx +16 -1
- package/app-typescript/components/Avatar.tsx +21 -0
- package/app-typescript/components/Button.tsx +7 -1
- package/app-typescript/components/ButtonGroup.tsx +5 -4
- package/app-typescript/components/Carousel.tsx +1 -1
- package/app-typescript/components/CheckButtonGroup.tsx +19 -5
- package/app-typescript/components/CheckGroup.tsx +2 -1
- package/app-typescript/components/Checkbox.tsx +7 -3
- package/app-typescript/components/CheckboxButton.tsx +9 -2
- package/app-typescript/components/CreateButton.tsx +38 -0
- package/app-typescript/components/DatePicker.tsx +73 -22
- package/app-typescript/components/DonutChart.tsx +1 -1
- package/app-typescript/components/DropZone.tsx +89 -0
- package/app-typescript/components/Dropdown.tsx +9 -1
- package/app-typescript/components/Editor/EditorButton.tsx +34 -0
- package/app-typescript/components/Form/FormGroup.tsx +33 -0
- package/app-typescript/components/Form/FormItem.tsx +20 -0
- package/app-typescript/components/Form/FormLabel.tsx +22 -0
- package/app-typescript/components/Form/FormRow.tsx +40 -0
- package/app-typescript/components/Form/FormText.tsx +15 -0
- package/app-typescript/components/Form/index.tsx +5 -0
- package/app-typescript/components/Icon.tsx +4 -2
- package/app-typescript/components/IconButton.tsx +30 -12
- package/app-typescript/components/IconLabel.tsx +8 -1
- package/app-typescript/components/IconPicker.tsx +277 -0
- package/app-typescript/components/Input.tsx +58 -9
- package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +27 -0
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +72 -0
- package/app-typescript/components/Layouts/AuthoringFrameContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameLeftBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameMain.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameNavBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameOverlay.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanel.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringFrameSidePanelOverlay.tsx +22 -0
- package/app-typescript/components/Layouts/AuthoringInnerBody.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +40 -0
- package/app-typescript/components/Layouts/AuthoringMain.tsx +50 -0
- package/app-typescript/components/Layouts/AuthoringMainContainer.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainContent.tsx +15 -0
- package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +21 -0
- package/app-typescript/components/Layouts/BottomBarAction.tsx +35 -0
- package/app-typescript/components/Layouts/Container.tsx +30 -0
- package/app-typescript/components/Layouts/ContentSplitter.tsx +23 -0
- package/app-typescript/components/Layouts/CoreLayout.tsx +62 -0
- package/app-typescript/components/Layouts/CoreLayoutContainer.tsx +16 -0
- package/app-typescript/components/Layouts/CoreLayoutFooter.tsx +15 -0
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +16 -0
- package/app-typescript/components/Layouts/CoreLayoutOverlay.tsx +15 -0
- package/app-typescript/components/Layouts/CoreLayoutSlideInMenu.tsx +24 -0
- package/app-typescript/components/Layouts/CoreLayoutTopMenu.tsx +35 -0
- package/app-typescript/components/Layouts/HamburgerButton.tsx +41 -0
- package/app-typescript/components/Layouts/HeaderPanel.tsx +15 -0
- package/app-typescript/components/Layouts/Layout.tsx +33 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +15 -0
- package/app-typescript/components/Layouts/LeftPanel.tsx +24 -0
- package/app-typescript/components/Layouts/MainMenu.tsx +101 -0
- package/app-typescript/components/Layouts/MainPanel.tsx +27 -0
- package/app-typescript/components/Layouts/NotificationPanel.tsx +109 -0
- package/app-typescript/components/Layouts/OverlayPanel.tsx +19 -0
- package/app-typescript/components/Layouts/PageLayout.tsx +51 -0
- package/app-typescript/components/Layouts/Panel.tsx +208 -0
- package/app-typescript/components/Layouts/RightPanel.tsx +16 -0
- package/app-typescript/components/Layouts/index.tsx +43 -0
- package/app-typescript/components/LeftMenu.tsx +129 -49
- package/app-typescript/components/ListItemLoader.tsx +30 -0
- package/app-typescript/components/Lists/BoxedList.tsx +169 -0
- package/app-typescript/components/Lists/ContentList.tsx +100 -0
- package/app-typescript/components/Lists/SimpleList.tsx +54 -0
- package/app-typescript/components/Lists/TableList.tsx +208 -0
- package/app-typescript/components/Lists/index.tsx +2 -0
- package/app-typescript/components/Menu.tsx +31 -7
- package/app-typescript/components/Modal.tsx +31 -18
- package/app-typescript/components/MultiSelect.tsx +112 -0
- package/app-typescript/components/NavButton.tsx +4 -0
- package/app-typescript/components/Navigation/BottomNav.tsx +82 -0
- package/app-typescript/components/Navigation/QuickNavBar.tsx +114 -0
- package/app-typescript/components/Navigation/SideBarMenu.tsx +68 -0
- package/app-typescript/components/Navigation/SideBarTabs.tsx +87 -0
- package/app-typescript/components/Navigation/index.tsx +3 -0
- package/app-typescript/components/RadioButtonGroup.tsx +113 -0
- package/app-typescript/components/RadioGroup.tsx +69 -0
- package/app-typescript/components/SearchBar.tsx +79 -0
- package/app-typescript/components/Select.tsx +22 -4
- package/app-typescript/components/SelectGrid.tsx +233 -0
- package/app-typescript/components/SidebarMenu.tsx +68 -0
- package/app-typescript/components/Skeleton.tsx +48 -0
- package/app-typescript/components/SlidingToolbar.tsx +8 -2
- package/app-typescript/components/Spinner.tsx +32 -0
- package/app-typescript/components/SubNav.tsx +25 -4
- package/app-typescript/components/Switch.tsx +34 -12
- package/app-typescript/components/SwitchGroup.tsx +2 -1
- package/app-typescript/components/Tag.tsx +31 -7
- package/app-typescript/components/Text/Heading.tsx +67 -0
- package/app-typescript/components/Text/Text.tsx +36 -0
- package/app-typescript/components/Text/Time.tsx +34 -0
- package/app-typescript/components/ThemeSelector.tsx +113 -0
- package/app-typescript/components/Togglebox.tsx +9 -7
- package/app-typescript/components/Tooltip.tsx +7 -5
- package/app-typescript/components/TreeSelect.tsx +330 -0
- package/app-typescript/components/WithSizeObserver.tsx +88 -0
- package/app-typescript/dist/components/Alert.d.ts +16 -0
- package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
- package/app-typescript/dist/components/Avatar.d.ts +33 -0
- package/app-typescript/dist/components/Badge.d.ts +13 -0
- package/app-typescript/dist/components/Button.d.ts +23 -0
- package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
- package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
- package/app-typescript/dist/components/Checkbox.d.ts +19 -0
- package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
- package/app-typescript/dist/components/DatePicker.d.ts +37 -0
- package/app-typescript/dist/components/Divider.d.ts +9 -0
- package/app-typescript/dist/components/DonutChart.d.ts +12 -0
- package/app-typescript/dist/components/Dropdown.d.ts +28 -0
- package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
- package/app-typescript/dist/components/EmptyState.d.ts +11 -0
- package/app-typescript/dist/components/FormLabel.d.ts +9 -0
- package/app-typescript/dist/components/Genie.d.ts +13 -0
- package/app-typescript/dist/components/GridItem.d.ts +69 -0
- package/app-typescript/dist/components/GridList.d.ts +14 -0
- package/app-typescript/dist/components/HeadingText.d.ts +10 -0
- package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
- package/app-typescript/dist/components/Icon.d.ts +12 -0
- package/app-typescript/dist/components/IconButton.d.ts +12 -0
- package/app-typescript/dist/components/IconLabel.d.ts +11 -0
- package/app-typescript/dist/components/Input.d.ts +24 -0
- package/app-typescript/dist/components/Label.d.ts +15 -0
- package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
- package/app-typescript/dist/components/Loader.d.ts +8 -0
- package/app-typescript/dist/components/NavButton.d.ts +15 -0
- package/app-typescript/dist/components/Popover.d.ts +13 -0
- package/app-typescript/dist/components/PropsList.d.ts +15 -0
- package/{react → app-typescript/dist}/components/Radio.d.ts +7 -8
- package/{react → app-typescript/dist}/components/RadioButton.d.ts +0 -0
- package/app-typescript/dist/components/Select.d.ts +29 -0
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
- package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
- package/app-typescript/dist/components/StrechBar.d.ts +4 -0
- package/app-typescript/dist/components/SubNav.d.ts +10 -0
- package/app-typescript/dist/components/Switch.d.ts +12 -0
- package/app-typescript/dist/components/TabCustom.d.ts +25 -0
- package/app-typescript/dist/components/TabList.d.ts +22 -0
- package/app-typescript/dist/components/Tag.d.ts +9 -0
- package/app-typescript/dist/components/TagInput.d.ts +7 -0
- package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
- package/app-typescript/dist/components/TimePicker.d.ts +11 -0
- package/app-typescript/dist/components/Tooltip.d.ts +11 -0
- package/app-typescript/dist/components/_Positioner.d.ts +27 -0
- package/app-typescript/dist/index.d.ts +56 -0
- package/app-typescript/helpers.tsx +3 -0
- package/app-typescript/index.ts +25 -3
- package/dist/SD-logo.svg +52 -0
- package/dist/avatar-2.jpg +0 -0
- package/dist/avatar-3.jpg +0 -0
- package/dist/avatar-4.jpg +0 -0
- package/dist/avatar-5.jpg +0 -0
- package/dist/avatar-6.jpg +0 -0
- package/dist/components/basic-grid.html +1 -1
- package/dist/components/checkbox.html +1 -1
- package/dist/components/modals.html +1 -0
- package/dist/dots.svg +3 -0
- package/dist/examples.bundle.css +8628 -1602
- package/dist/examples.bundle.js +73031 -48307
- package/dist/playgrounds/accessible-theme-test.html +1 -1
- package/dist/playgrounds/boxed-list.html +1 -1
- package/dist/playgrounds/cards.html +9 -4
- package/dist/playgrounds/editor-3-test.html +15 -0
- package/dist/playgrounds/form-layout.html +9 -7
- package/dist/playgrounds/layout-test-2.html +1 -1
- package/dist/playgrounds/list-item-test.html +1 -1
- package/dist/playgrounds/master-desk.html +2 -4
- package/dist/playgrounds/media-carousel.html +1 -1
- package/dist/playgrounds/photo-desk.html +1 -1
- package/dist/playgrounds/planning.html +1 -1
- package/dist/playgrounds/publish.html +1 -1
- package/dist/playgrounds/publisher-content-analytics.html +1 -1
- package/dist/playgrounds/publisher-content-list-automatic.html +1 -1
- package/dist/playgrounds/publisher-content-list-manual.html +1 -1
- package/dist/playgrounds/publisher-content-lists.html +1 -1
- package/dist/playgrounds/publisher-dashboard.html +1 -1
- package/dist/playgrounds/publisher-output-control.html +1 -1
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +145 -0
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +459 -0
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/dist/playgrounds/react-playgrounds/Index.tsx +7 -1
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +635 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +10 -10
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +276 -23
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +12 -79
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/dist/playgrounds/swimlane-view.html +1 -1
- package/dist/playgrounds/toasts.html +1 -1
- package/dist/playgrounds/video-editor.html +1 -1
- package/dist/react/Alerts.tsx +91 -18
- package/dist/react/Avatar.tsx +314 -127
- package/dist/react/BoxedList.tsx +362 -0
- package/dist/react/ButtonGroups.tsx +66 -65
- package/dist/react/Buttons.tsx +65 -113
- package/dist/react/Carousel.tsx +2 -3
- package/dist/react/Checkboxs.tsx +66 -25
- package/dist/react/Container.tsx +143 -0
- package/dist/react/ContentList.tsx +280 -0
- package/dist/react/CreateButton.tsx +71 -0
- package/dist/react/DatePicker.tsx +10 -5
- package/dist/react/DropZone.tsx +111 -0
- package/dist/react/Heading.tsx +106 -0
- package/dist/react/IconButtons.tsx +51 -21
- package/dist/react/IconFont.tsx +7 -6
- package/dist/react/IconLabels.tsx +24 -2
- package/dist/react/IconPicker.tsx +65 -0
- package/dist/react/Index.tsx +120 -19
- package/dist/react/Inputs.tsx +142 -4
- package/dist/react/LeftNavigations.tsx +161 -9
- package/dist/react/ListItems.tsx +34 -0
- package/dist/react/Modal.tsx +8 -7
- package/dist/react/MultiSelect.tsx +198 -0
- package/dist/react/NavButtons.tsx +4 -4
- package/dist/react/Panel.tsx +366 -0
- package/dist/react/QuickNavigationBar.tsx +142 -0
- package/dist/react/RadioGroup.tsx +351 -0
- package/dist/react/SelectGrid.tsx +121 -0
- package/dist/react/Selects.tsx +57 -0
- package/dist/react/SimpleList.tsx +148 -0
- package/dist/react/SubNav.tsx +65 -18
- package/dist/react/TableList.tsx +268 -0
- package/dist/react/Tags.tsx +57 -5
- package/dist/react/Text.tsx +134 -0
- package/dist/react/TreeSelect.tsx +178 -0
- package/dist/react/WithSizeObserver.tsx +44 -0
- package/dist/react.html +4 -0
- package/dist/sd_big-icons.eot +0 -0
- package/dist/sd_big-icons.svg +55 -53
- package/dist/sd_big-icons.ttf +0 -0
- package/dist/sd_big-icons.woff +0 -0
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +54140 -25145
- package/dist/superdesk-ui.bundle.js +58228 -51200
- package/dist/vendor.bundle.js +25688 -25666
- package/examples/css/docs-page.css +99 -29
- package/examples/img/avatar-2.jpg +0 -0
- package/examples/img/avatar-3.jpg +0 -0
- package/examples/img/avatar-4.jpg +0 -0
- package/examples/img/avatar-5.jpg +0 -0
- package/examples/img/avatar-6.jpg +0 -0
- package/examples/index.js +28 -0
- package/examples/pages/components/basic-grid.html +1 -1
- package/examples/pages/components/checkbox.html +1 -1
- package/examples/pages/components/modals.html +1 -0
- package/examples/pages/playgrounds/accessible-theme-test.html +1 -1
- package/examples/pages/playgrounds/boxed-list.html +1 -1
- package/examples/pages/playgrounds/cards.html +9 -4
- package/examples/pages/playgrounds/editor-3-test.html +15 -0
- package/examples/pages/playgrounds/form-layout.html +9 -7
- package/examples/pages/playgrounds/layout-test-2.html +1 -1
- package/examples/pages/playgrounds/list-item-test.html +1 -1
- package/examples/pages/playgrounds/master-desk.html +2 -4
- package/examples/pages/playgrounds/media-carousel.html +1 -1
- package/examples/pages/playgrounds/photo-desk.html +1 -1
- package/examples/pages/playgrounds/planning.html +1 -1
- package/examples/pages/playgrounds/publish.html +1 -1
- package/examples/pages/playgrounds/publisher-content-analytics.html +1 -1
- package/examples/pages/playgrounds/publisher-content-list-automatic.html +1 -1
- package/examples/pages/playgrounds/publisher-content-list-manual.html +1 -1
- package/examples/pages/playgrounds/publisher-content-lists.html +1 -1
- package/examples/pages/playgrounds/publisher-dashboard.html +1 -1
- package/examples/pages/playgrounds/publisher-output-control.html +1 -1
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +145 -0
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +459 -0
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +4 -4
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +7 -1
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +161 -0
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +635 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +10 -10
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +276 -23
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +12 -79
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/examples/pages/playgrounds/swimlane-view.html +1 -1
- package/examples/pages/playgrounds/toasts.html +1 -1
- package/examples/pages/playgrounds/video-editor.html +1 -1
- package/examples/pages/react/Alerts.tsx +91 -18
- package/examples/pages/react/Avatar.tsx +314 -127
- package/examples/pages/react/BoxedList.tsx +362 -0
- package/examples/pages/react/ButtonGroups.tsx +66 -65
- package/examples/pages/react/Buttons.tsx +65 -113
- package/examples/pages/react/Carousel.tsx +2 -3
- package/examples/pages/react/Checkboxs.tsx +66 -25
- package/examples/pages/react/Container.tsx +143 -0
- package/examples/pages/react/ContentList.tsx +280 -0
- package/examples/pages/react/CreateButton.tsx +71 -0
- package/examples/pages/react/DatePicker.tsx +10 -5
- package/examples/pages/react/DropZone.tsx +111 -0
- package/examples/pages/react/Heading.tsx +106 -0
- package/examples/pages/react/IconButtons.tsx +51 -21
- package/examples/pages/react/IconFont.tsx +7 -6
- package/examples/pages/react/IconLabels.tsx +24 -2
- package/examples/pages/react/IconPicker.tsx +65 -0
- package/examples/pages/react/Index.tsx +120 -19
- package/examples/pages/react/Inputs.tsx +142 -4
- package/examples/pages/react/LeftNavigations.tsx +161 -9
- package/examples/pages/react/ListItems.tsx +34 -0
- package/examples/pages/react/Modal.tsx +8 -7
- package/examples/pages/react/MultiSelect.tsx +198 -0
- package/examples/pages/react/NavButtons.tsx +4 -4
- package/examples/pages/react/Panel.tsx +366 -0
- package/examples/pages/react/QuickNavigationBar.tsx +142 -0
- package/examples/pages/react/RadioGroup.tsx +351 -0
- package/examples/pages/react/SelectGrid.tsx +121 -0
- package/examples/pages/react/Selects.tsx +57 -0
- package/examples/pages/react/SimpleList.tsx +148 -0
- package/examples/pages/react/SubNav.tsx +65 -18
- package/examples/pages/react/TableList.tsx +268 -0
- package/examples/pages/react/Tags.tsx +57 -5
- package/examples/pages/react/Text.tsx +134 -0
- package/examples/pages/react/TreeSelect.tsx +178 -0
- package/examples/pages/react/WithSizeObserver.tsx +44 -0
- package/examples/pages/react.html +4 -0
- package/package.json +12 -7
- package/patches/@superdesk+primereact+5.0.2-4.patch +44 -0
- package/react/components/Alert.d.ts +3 -0
- package/react/components/Alert.js +17 -7
- package/react/components/Autocomplete.js +16 -12
- package/react/components/Avatar.d.ts +9 -0
- package/react/components/Avatar.js +24 -4
- package/react/components/Badge.js +7 -5
- package/react/components/Button.d.ts +2 -0
- package/react/components/Button.js +12 -8
- package/react/components/ButtonGroup.d.ts +3 -2
- package/react/components/ButtonGroup.js +9 -7
- package/react/components/Carousel.js +5 -3
- package/react/components/CheckButtonGroup.d.ts +3 -1
- package/react/components/CheckButtonGroup.js +14 -6
- package/react/components/CheckGroup.d.ts +1 -0
- package/react/components/CheckGroup.js +6 -4
- package/react/components/Checkbox.d.ts +2 -1
- package/react/components/Checkbox.js +7 -5
- package/react/components/CheckboxButton.d.ts +1 -0
- package/react/components/CheckboxButton.js +8 -6
- package/react/components/ContentDivider.js +8 -6
- package/react/components/CreateButton.d.ts +17 -0
- package/react/components/CreateButton.js +68 -0
- package/react/components/DatePicker.d.ts +10 -0
- package/react/components/DatePicker.js +61 -31
- package/react/components/Divider.js +6 -4
- package/react/components/DonutChart.d.ts +1 -1
- package/react/components/DonutChart.js +24 -6
- package/react/components/DropZone.d.ts +25 -0
- package/react/components/DropZone.js +95 -0
- package/react/components/Dropdown.d.ts +1 -0
- package/react/components/Dropdown.js +10 -9
- package/react/components/DropdownFirst.js +18 -11
- package/react/components/EmptyState.js +7 -5
- package/react/components/Form/FormGroup.d.ts +13 -0
- package/react/components/Form/FormGroup.js +63 -0
- package/react/components/Form/FormItem.d.ts +9 -0
- package/react/components/Form/FormItem.js +56 -0
- package/react/components/Form/FormLabel.d.ts +10 -0
- package/react/components/Form/FormLabel.js +56 -0
- package/react/components/Form/FormRow.d.ts +17 -0
- package/react/components/Form/FormRow.js +64 -0
- package/react/components/Form/FormText.d.ts +8 -0
- package/react/components/Form/FormText.js +49 -0
- package/react/components/Form/index.d.ts +5 -0
- package/react/components/Form/index.js +13 -0
- package/react/components/FormLabel.js +5 -3
- package/react/components/GridItem.js +9 -7
- package/react/components/GridList.js +8 -6
- package/react/components/HeadingText.js +4 -2
- package/react/components/HelloWorld.js +4 -2
- package/react/components/Icon.d.ts +2 -1
- package/react/components/Icon.js +9 -6
- package/react/components/IconButton.d.ts +9 -2
- package/react/components/IconButton.js +17 -7
- package/react/components/IconLabel.d.ts +2 -0
- package/react/components/IconLabel.js +12 -7
- package/react/components/IconPicker.d.ts +24 -0
- package/react/components/IconPicker.js +287 -0
- package/react/components/Input.d.ts +25 -3
- package/react/components/Input.js +36 -12
- package/react/components/Label.js +10 -8
- package/react/components/Layouts/AuthorinInnerSideBar.d.ts +8 -0
- package/react/components/Layouts/AuthorinInnerSideBar.js +49 -0
- package/react/components/Layouts/AuthoringContainer.d.ts +11 -0
- package/react/components/Layouts/AuthoringContainer.js +60 -0
- package/react/components/Layouts/AuthoringFrame.d.ts +18 -0
- package/react/components/Layouts/AuthoringFrame.js +58 -0
- package/react/components/Layouts/AuthoringFrameContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameContainer.js +49 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameLeftBar.js +49 -0
- package/react/components/Layouts/AuthoringFrameMain.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameMain.js +49 -0
- package/react/components/Layouts/AuthoringFrameNavBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameNavBar.js +49 -0
- package/react/components/Layouts/AuthoringFrameOverlay.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameOverlay.js +49 -0
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +8 -0
- package/react/components/Layouts/AuthoringFrameRightBar.js +49 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.d.ts +10 -0
- package/react/components/Layouts/AuthoringFrameSidePanel.js +58 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.d.ts +9 -0
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +58 -0
- package/react/components/Layouts/AuthoringInnerBody.d.ts +8 -0
- package/react/components/Layouts/AuthoringInnerBody.js +49 -0
- package/react/components/Layouts/AuthoringInnerHeader.d.ts +14 -0
- package/react/components/Layouts/AuthoringInnerHeader.js +68 -0
- package/react/components/Layouts/AuthoringMain.d.ts +14 -0
- package/react/components/Layouts/AuthoringMain.js +55 -0
- package/react/components/Layouts/AuthoringMainContainer.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContainer.js +49 -0
- package/react/components/Layouts/AuthoringMainContent.d.ts +8 -0
- package/react/components/Layouts/AuthoringMainContent.js +49 -0
- package/react/components/Layouts/AuthoringMainToolBar.d.ts +9 -0
- package/react/components/Layouts/AuthoringMainToolBar.js +56 -0
- package/react/components/Layouts/BottomBarAction.d.ts +12 -0
- package/react/components/Layouts/BottomBarAction.js +59 -0
- package/react/components/Layouts/Container.d.ts +14 -0
- package/react/components/Layouts/Container.js +62 -0
- package/react/components/Layouts/ContentSplitter.d.ts +10 -0
- package/react/components/Layouts/ContentSplitter.js +58 -0
- package/react/components/Layouts/CoreLayout.d.ts +19 -0
- package/react/components/Layouts/CoreLayout.js +55 -0
- package/react/components/Layouts/CoreLayoutContainer.d.ts +9 -0
- package/react/components/Layouts/CoreLayoutContainer.js +49 -0
- package/react/components/Layouts/CoreLayoutFooter.d.ts +8 -0
- package/react/components/Layouts/CoreLayoutFooter.js +49 -0
- package/react/components/Layouts/CoreLayoutMain.d.ts +9 -0
- package/react/components/Layouts/CoreLayoutMain.js +49 -0
- package/react/components/Layouts/CoreLayoutOverlay.d.ts +8 -0
- package/react/components/Layouts/CoreLayoutOverlay.js +49 -0
- package/react/components/Layouts/CoreLayoutSlideInMenu.d.ts +11 -0
- package/react/components/Layouts/CoreLayoutSlideInMenu.js +58 -0
- package/react/components/Layouts/CoreLayoutTopMenu.d.ts +14 -0
- package/react/components/Layouts/CoreLayoutTopMenu.js +54 -0
- package/react/components/Layouts/HamburgerButton.d.ts +14 -0
- package/react/components/Layouts/HamburgerButton.js +63 -0
- package/react/components/Layouts/HeaderPanel.d.ts +8 -0
- package/react/components/Layouts/HeaderPanel.js +49 -0
- package/react/components/Layouts/Layout.d.ts +8 -0
- package/react/components/Layouts/Layout.js +36 -0
- package/react/components/Layouts/LayoutContainer.d.ts +8 -0
- package/react/components/Layouts/LayoutContainer.js +49 -0
- package/react/components/Layouts/LeftPanel.d.ts +9 -0
- package/react/components/Layouts/LeftPanel.js +56 -0
- package/react/components/Layouts/MainMenu.d.ts +41 -0
- package/react/components/Layouts/MainMenu.js +103 -0
- package/react/components/Layouts/MainPanel.d.ts +11 -0
- package/react/components/Layouts/MainPanel.js +59 -0
- package/react/components/Layouts/NotificationPanel.d.ts +45 -0
- package/react/components/Layouts/NotificationPanel.js +110 -0
- package/react/components/Layouts/OverlayPanel.d.ts +8 -0
- package/react/components/Layouts/OverlayPanel.js +51 -0
- package/react/components/Layouts/PageLayout.d.ts +16 -0
- package/react/components/Layouts/PageLayout.js +66 -0
- package/react/components/Layouts/Panel.d.ts +66 -0
- package/react/components/Layouts/Panel.js +168 -0
- package/react/components/Layouts/RightPanel.d.ts +9 -0
- package/react/components/Layouts/RightPanel.js +49 -0
- package/react/components/Layouts/index.d.ts +39 -0
- package/react/components/Layouts/index.js +86 -0
- package/react/components/LeftMenu.d.ts +10 -3
- package/react/components/LeftMenu.js +64 -18
- package/react/components/ListItemLoader.d.ts +4 -0
- package/react/components/ListItemLoader.js +64 -0
- package/react/components/Lists/BoxedList.d.ts +44 -0
- package/react/components/Lists/BoxedList.js +160 -0
- package/react/components/Lists/SimpleList.d.ts +21 -0
- package/react/components/Lists/SimpleList.js +80 -0
- package/react/components/Lists/index.d.ts +2 -0
- package/react/components/Lists/index.js +10 -0
- package/react/components/Loader.js +4 -2
- package/react/components/Menu.d.ts +2 -1
- package/react/components/Menu.js +48 -12
- package/react/components/Modal.d.ts +4 -1
- package/react/components/Modal.js +35 -6
- package/react/components/NavButton.d.ts +1 -0
- package/react/components/NavButton.js +9 -4
- package/react/components/Navigation/BottomNav.d.ts +23 -0
- package/react/components/Navigation/BottomNav.js +88 -0
- package/react/components/Navigation/QuickNavBar.d.ts +24 -0
- package/react/components/Navigation/QuickNavBar.js +117 -0
- package/react/components/Navigation/SideBarMenu.d.ts +21 -0
- package/react/components/Navigation/SideBarMenu.js +79 -0
- package/react/components/Navigation/SideBarTabs.d.ts +23 -0
- package/react/components/Navigation/SideBarTabs.js +88 -0
- package/react/components/Navigation/index.d.ts +3 -0
- package/react/components/Navigation/index.js +9 -0
- package/react/components/Popover.js +4 -2
- package/react/components/PropsList.js +4 -2
- package/react/components/RadioButtonGroup.d.ts +29 -0
- package/react/components/RadioButtonGroup.js +91 -0
- package/react/components/RadioGroup.d.ts +24 -0
- package/react/components/{Radio.js → RadioGroup.js} +20 -14
- package/react/components/SearchBar.d.ts +23 -0
- package/react/components/SearchBar.js +89 -0
- package/react/components/Select.d.ts +8 -1
- package/react/components/Select.js +22 -11
- package/react/components/SelectGrid.d.ts +45 -0
- package/react/components/SelectGrid.js +200 -0
- package/react/components/SelectWithTemplate.js +4 -2
- package/react/components/Skeleton.d.ts +30 -0
- package/react/components/Skeleton.js +76 -0
- package/react/components/SlidingToolbar.d.ts +1 -1
- package/react/components/SlidingToolbar.js +15 -3
- package/react/components/Spinner.d.ts +11 -0
- package/react/components/Spinner.js +71 -0
- package/react/components/StrechBar.js +4 -2
- package/react/components/SubNav.d.ts +8 -1
- package/react/components/SubNav.js +28 -8
- package/react/components/Switch.d.ts +4 -1
- package/react/components/Switch.js +25 -11
- package/react/components/SwitchGroup.d.ts +1 -0
- package/react/components/SwitchGroup.js +6 -4
- package/react/components/TabCustom.d.ts +0 -1
- package/react/components/TabCustom.js +11 -7
- package/react/components/TabList.js +6 -4
- package/react/components/Tag.d.ts +3 -2
- package/react/components/Tag.js +21 -9
- package/react/components/TagInput.d.ts +0 -1
- package/react/components/TagInput.js +7 -6
- package/react/components/TagInputTest.js +13 -9
- package/react/components/Text/Heading.d.ts +15 -0
- package/react/components/Text/Heading.js +79 -0
- package/react/components/Text/Text.d.ts +15 -0
- package/react/components/Text/Text.js +67 -0
- package/react/components/Text/Time.d.ts +15 -0
- package/react/components/Text/Time.js +65 -0
- package/react/components/ThemeSelector.d.ts +21 -0
- package/react/components/ThemeSelector.js +114 -0
- package/react/components/TimePicker.js +4 -2
- package/react/components/Toast.js +1 -1
- package/react/components/ToastMessage.js +6 -5
- package/react/components/ToastText.js +1 -1
- package/react/components/ToastWrapper.d.ts +2 -2
- package/react/components/ToastWrapper.js +14 -10
- package/react/components/Togglebox.d.ts +2 -1
- package/react/components/Togglebox.js +42 -14
- package/react/components/Tooltip.d.ts +1 -0
- package/react/components/Tooltip.js +14 -10
- package/react/components/WithSizeObserver.d.ts +25 -0
- package/react/components/WithSizeObserver.js +95 -0
- package/react/components/_Positioner.js +4 -2
- package/react/helpers.d.ts +1 -0
- package/react/helpers.js +7 -0
- package/react/index.d.ts +22 -3
- package/react/index.js +53 -4
- package/yarn-error.log +111 -0
- package/app/styles/variables/_design-tokens-general.scss +0 -136
- package/app-typescript/components/Radio.tsx +0 -57
- package/app-typescript/components/RadioButton.tsx +0 -57
- package/dist/react/Radios.tsx +0 -391
- package/examples/pages/react/Radios.tsx +0 -391
- package/react/components/RadioButton.js +0 -65
@@ -0,0 +1,1002 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import * as Components from './components/Index';
|
3
|
+
import { ButtonGroup, Button, NavButton, SubNav, Dropdown, CheckButtonGroup, RadioGroup, RadioButtonGroup, Input, Select, Option, Label, IconLabel, Icon, IconButton, Checkbox, GridList, Badge, Tooltip, CreateButton, Modal, EmptyState, Container, BoxedList, BoxedListItem, BoxedListContentRow, Text, Heading, FormLabel, SlidingToolbar, Switch, SwitchGroup, SearchBar } from '../../../../app-typescript/index';
|
4
|
+
import * as Layout from '../../../../app-typescript/components/Layouts';
|
5
|
+
import * as Form from '../../../../app-typescript/components/Form';
|
6
|
+
import {RundownEditor} from './RundownEditor';
|
7
|
+
import * as Nav from '../../../../app-typescript/components/Navigation';
|
8
|
+
import * as GridElements from '../../../../app-typescript/components/GridItem';
|
9
|
+
|
10
|
+
|
11
|
+
import dummy_items from '../dummy-data/items';
|
12
|
+
import { ContentList } from '../../../../app-typescript/components/Lists/ContentList';
|
13
|
+
import { TableList } from '../../../../app-typescript/components/Lists/TableList';
|
14
|
+
|
15
|
+
interface IProps {
|
16
|
+
children?: React.ReactNode;
|
17
|
+
}
|
18
|
+
|
19
|
+
interface IState {
|
20
|
+
theme: 'dark' | 'light' | string;
|
21
|
+
itemType: string;
|
22
|
+
dropDownState: string;
|
23
|
+
openPreview: boolean;
|
24
|
+
openFilter: boolean;
|
25
|
+
itemSelected1: boolean;
|
26
|
+
itemSelected2: boolean;
|
27
|
+
itemSelected3: boolean;
|
28
|
+
value1: boolean;
|
29
|
+
|
30
|
+
modalBasic: boolean;
|
31
|
+
modalSmall: boolean;
|
32
|
+
modalMedium: boolean;
|
33
|
+
modalNewTemplate: boolean;
|
34
|
+
modalNewShow: boolean;
|
35
|
+
modalNewShowSuccess: boolean;
|
36
|
+
modalManageTemplate: boolean;
|
37
|
+
modalManageShow: boolean;
|
38
|
+
openEditor: boolean;
|
39
|
+
openShowEditor: boolean;
|
40
|
+
array: any;
|
41
|
+
}
|
42
|
+
|
43
|
+
export class Rundowns extends React.Component<IProps, IState> {
|
44
|
+
constructor(props: IProps) {
|
45
|
+
super(props);
|
46
|
+
this.state = {
|
47
|
+
theme: 'light',
|
48
|
+
itemType: 'itemtype01',
|
49
|
+
dropDownState: '',
|
50
|
+
openPreview: false,
|
51
|
+
openFilter: false,
|
52
|
+
itemSelected1: false,
|
53
|
+
itemSelected2: false,
|
54
|
+
itemSelected3: false,
|
55
|
+
value1: true,
|
56
|
+
modalBasic: false,
|
57
|
+
modalSmall: false,
|
58
|
+
modalMedium: false,
|
59
|
+
modalNewTemplate: false,
|
60
|
+
modalNewShow: false,
|
61
|
+
modalNewShowSuccess: false,
|
62
|
+
modalManageTemplate: false,
|
63
|
+
modalManageShow: false,
|
64
|
+
openEditor: false,
|
65
|
+
openShowEditor: false,
|
66
|
+
array: [
|
67
|
+
{
|
68
|
+
start: <>
|
69
|
+
<Label style='translucent' text='aacc' />
|
70
|
+
<Label style='translucent' type='primary' text='prlg' />
|
71
|
+
</>,
|
72
|
+
center: <span>Duis mollis est non commodo</span>,
|
73
|
+
onClick: () => false,
|
74
|
+
},
|
75
|
+
{
|
76
|
+
start: <>
|
77
|
+
<Label style='translucent' type='warning' text='pokr' />
|
78
|
+
<Label style='translucent' text='slika' />
|
79
|
+
</>,
|
80
|
+
center: <span>Nullam id dolor id nibh ultricies</span>,
|
81
|
+
onClick: () => false,
|
82
|
+
},
|
83
|
+
{
|
84
|
+
start: <>
|
85
|
+
<Label style='translucent' text='aacc' />
|
86
|
+
<Label style='translucent' type='primary' text='prlg' />
|
87
|
+
</>,
|
88
|
+
center: <span>Duis mollis est non commodo</span>,
|
89
|
+
onClick: () => false,
|
90
|
+
},
|
91
|
+
{
|
92
|
+
start: <>
|
93
|
+
<Label style='translucent' type='warning' text='pokr' />
|
94
|
+
<Label style='translucent' text='slika' />
|
95
|
+
</>,
|
96
|
+
center: <span>Cras mattis consectetur purus</span>,
|
97
|
+
onClick: () => false,
|
98
|
+
},
|
99
|
+
{
|
100
|
+
start: <>
|
101
|
+
<Label style='translucent' text='aacc' />
|
102
|
+
<Label style='translucent' type='primary' text='prlg' />
|
103
|
+
</>,
|
104
|
+
center: <span>Duis mollis est non commodo</span>,
|
105
|
+
onClick: () => false,
|
106
|
+
},
|
107
|
+
]
|
108
|
+
|
109
|
+
}
|
110
|
+
this.handleFilter = this.handleFilter.bind(this);
|
111
|
+
this.handlePreview = this.handlePreview.bind(this);
|
112
|
+
this.handleTheme = this.handleTheme.bind(this);
|
113
|
+
this.handleShow = this.handleShow.bind(this);
|
114
|
+
}
|
115
|
+
|
116
|
+
handleFilter() {
|
117
|
+
this.setState((state) => ({
|
118
|
+
openFilter: !state.openFilter,
|
119
|
+
}));
|
120
|
+
}
|
121
|
+
|
122
|
+
handlePreview() {
|
123
|
+
this.setState((state) => ({
|
124
|
+
openPreview: !state.openPreview,
|
125
|
+
}));
|
126
|
+
}
|
127
|
+
|
128
|
+
handleShow() {
|
129
|
+
this.setState((state) => ({
|
130
|
+
openShowEditor: !state.openShowEditor,
|
131
|
+
}));
|
132
|
+
}
|
133
|
+
|
134
|
+
handleTheme(newTheme: string) {
|
135
|
+
this.setState({
|
136
|
+
theme: newTheme
|
137
|
+
})
|
138
|
+
}
|
139
|
+
|
140
|
+
changeStatus(item: any, status: string) {
|
141
|
+
if (item.status.includes(status)) {
|
142
|
+
item.status.splice(item.status.indexOf(status), 1);
|
143
|
+
} else {
|
144
|
+
item.status.push(status);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
render() {
|
149
|
+
const newShowFooter2=(
|
150
|
+
<ButtonGroup align="end">
|
151
|
+
<Button text='Cancel' onClick={() => {this.setState({modalNewShowSuccess:false})}}/>
|
152
|
+
<Button type='primary' text='yes, Create a Template' onClick={() => {this.setState({modalNewShowSuccess: false}), this.setState({modalNewTemplate:true})}}/>
|
153
|
+
</ButtonGroup>
|
154
|
+
);
|
155
|
+
const newShowFooter=(
|
156
|
+
<ButtonGroup align="end">
|
157
|
+
<Button text='Cancel' onClick={() => {this.setState({modalNewShow:false})}}/>
|
158
|
+
<Button type='primary' text='Save' onClick={() => {this.setState({modalNewShowSuccess: true}), this.setState({modalNewShow:false})}}/>
|
159
|
+
</ButtonGroup>
|
160
|
+
);
|
161
|
+
return (
|
162
|
+
<>
|
163
|
+
<Layout.Layout header='Rundowns' theme={this.state.theme}>
|
164
|
+
<Nav.SideBarMenu
|
165
|
+
items={[
|
166
|
+
{ icon: 'dashboard', size: 'big' },
|
167
|
+
{ icon: 'view', size: 'big' },
|
168
|
+
{ icon: 'marked-star', size: 'big' },
|
169
|
+
{ icon: 'spike', size: 'big' },
|
170
|
+
{ icon: 'personal', size: 'big' },
|
171
|
+
{ icon: 'global-search', size: 'big' },
|
172
|
+
{ icon: 'picture', size: 'big' },
|
173
|
+
{ icon: 'rundown', size: 'big', active: true }]} />
|
174
|
+
|
175
|
+
<Layout.LayoutContainer>
|
176
|
+
<Layout.HeaderPanel>
|
177
|
+
<SubNav zIndex={2}>
|
178
|
+
<SearchBar placeholder='Search media'></SearchBar>
|
179
|
+
<ButtonGroup align='end' spaces='no-space'>
|
180
|
+
<Dropdown
|
181
|
+
items={[
|
182
|
+
{
|
183
|
+
type: 'group', label: 'Settings', items: [
|
184
|
+
'divider',
|
185
|
+
{ icon: 'switches', label: 'Manage Shows', onSelect: () => this.setState({modalManageShow: true}) },
|
186
|
+
{ icon: 'switches', label: 'Manage Templates', onSelect: () => this.setState({modalManageTemplate: true}) },
|
187
|
+
]
|
188
|
+
}]}>
|
189
|
+
<NavButton icon='settings' onClick={() => false} />
|
190
|
+
</Dropdown>
|
191
|
+
<Dropdown
|
192
|
+
header={[
|
193
|
+
{
|
194
|
+
type: 'group', label: 'Create', items: []
|
195
|
+
},
|
196
|
+
{
|
197
|
+
type: 'submenu', label: 'Rundown', icon: 'plus-sign', items: [
|
198
|
+
{ icon: 'plus-sign', label: 'Rundown', onSelect: () => 1 },
|
199
|
+
]
|
200
|
+
},
|
201
|
+
]}
|
202
|
+
items={[
|
203
|
+
{
|
204
|
+
type: 'group', label: 'Recent Templates', items: [
|
205
|
+
{ icon: 'plus-sign', label: 'Marker Daily', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
206
|
+
{ icon: 'plus-sign', label: 'Marker Weekend', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
207
|
+
{ icon: 'plus-sign', label: 'Tabu Daily', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
208
|
+
{ icon: 'plus-sign', label: 'Tabu Specijal', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
209
|
+
]
|
210
|
+
}]}
|
211
|
+
footer={[
|
212
|
+
{
|
213
|
+
type: 'group', items: [
|
214
|
+
{ icon: 'list-plus', label: 'Create new Template', onSelect: () => this.setState({modalNewTemplate: true}) },
|
215
|
+
{ icon: 'rundown', label: 'Create new Show', onSelect: () => this.setState({modalNewShow: true}) },
|
216
|
+
]
|
217
|
+
},
|
218
|
+
]}>
|
219
|
+
|
220
|
+
<CreateButton ariaValue='Create' onClick={() => false} />
|
221
|
+
</Dropdown>
|
222
|
+
</ButtonGroup>
|
223
|
+
</SubNav>
|
224
|
+
<SubNav zIndex={1}>
|
225
|
+
<ButtonGroup align='start'>
|
226
|
+
<NavButton icon='filter-large' onClick={this.handleFilter} />
|
227
|
+
</ButtonGroup>
|
228
|
+
<ButtonGroup align='end'>
|
229
|
+
<ButtonGroup align='sub' padded={true} >
|
230
|
+
<Button size="normal" icon="chevron-left-thin" text="Previous" shape="round" iconOnly={true} disabled onClick={()=> false} />
|
231
|
+
<Button text='Today' style='hollow' onClick={() => false} />
|
232
|
+
<Button size="normal" icon="chevron-right-thin" text="Next" shape="round" iconOnly={true} onClick={()=> false} />
|
233
|
+
</ButtonGroup>
|
234
|
+
<RadioButtonGroup options={[
|
235
|
+
{value:'test10', label:'D'},
|
236
|
+
{value:'test11', label:'W'},
|
237
|
+
{value:'test12', label:'M'},
|
238
|
+
]} group={{padded:false}} value={this.state.itemType} onChange={(value) => this.setState({ itemType: value })} />
|
239
|
+
<ButtonGroup align='sub' spaces='no-space'>
|
240
|
+
<Dropdown
|
241
|
+
items={[
|
242
|
+
{
|
243
|
+
type: 'group', label: 'Chose a theme', items: [
|
244
|
+
'divider',
|
245
|
+
{ label: 'Light', icon: 'adjust', onSelect: () => this.handleTheme('light-ui')},
|
246
|
+
{ label: 'Dark', icon: 'adjust', onSelect: () => this.handleTheme('dark-ui')},
|
247
|
+
{ label: 'Accessible Light', icon: 'adjust', onSelect: () => this.handleTheme('accessible-light-ui')},
|
248
|
+
]
|
249
|
+
},
|
250
|
+
]}>
|
251
|
+
<NavButton type='default' icon='adjust' onClick={()=> false} />
|
252
|
+
</Dropdown>
|
253
|
+
<Dropdown
|
254
|
+
items={[
|
255
|
+
{
|
256
|
+
type: 'group', label: 'Actions', items: [
|
257
|
+
'divider',
|
258
|
+
{ label: 'Action one', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
259
|
+
{ label: 'Action two', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
260
|
+
{ label: 'Action three', onSelect: () => this.setState({ dropDownState: ' ' }) },
|
261
|
+
]
|
262
|
+
}]}>
|
263
|
+
<NavButton icon='dots-vertical' onClick={() => false} />
|
264
|
+
</Dropdown>
|
265
|
+
</ButtonGroup>
|
266
|
+
</ButtonGroup>
|
267
|
+
</SubNav>
|
268
|
+
</Layout.HeaderPanel>
|
269
|
+
{/* TOOLBAR HEADER */}
|
270
|
+
|
271
|
+
<Layout.LeftPanel open={this.state.openFilter}>
|
272
|
+
<Layout.Panel side='left' background='grey'>
|
273
|
+
<Layout.PanelHeader title='Advanced filters' onClose={() => this.setState({'openFilter': false})} />
|
274
|
+
<Layout.PanelContent>
|
275
|
+
<Layout.PanelContentBlock>
|
276
|
+
<Form.FormGroup>
|
277
|
+
<Form.FormItem>
|
278
|
+
<Select
|
279
|
+
label='Shows'
|
280
|
+
labelHidden={true}
|
281
|
+
value='This is some value'
|
282
|
+
error='This is error message'
|
283
|
+
info='This is some hint message'
|
284
|
+
required={true}
|
285
|
+
disabled={false}
|
286
|
+
invalid={false}
|
287
|
+
onChange={(value) => {}}>
|
288
|
+
<Option>Marker</Option>
|
289
|
+
<Option>Tabu</Option>
|
290
|
+
</Select>
|
291
|
+
</Form.FormItem>
|
292
|
+
</Form.FormGroup>
|
293
|
+
<div className="form__group">
|
294
|
+
<div className="form__item">
|
295
|
+
<Input label='Title'
|
296
|
+
error='This is error message'
|
297
|
+
type='text'
|
298
|
+
value='Title'
|
299
|
+
inlineLabel={false}
|
300
|
+
disabled={false}
|
301
|
+
invalid={false}
|
302
|
+
onChange={(value) => { }} />
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
<div className="form__group">
|
306
|
+
<div className="form__item">
|
307
|
+
<Select label='Source'
|
308
|
+
value='Select ingest source...'
|
309
|
+
error='This is error message'
|
310
|
+
inlineLabel={false}
|
311
|
+
disabled={false}
|
312
|
+
invalid={false}
|
313
|
+
onChange={(value) => { }}>
|
314
|
+
<Option value="option-1">Select ingest source...</Option>
|
315
|
+
<Option value="option-2">Associated Press</Option>
|
316
|
+
<Option value="option-3">Reuters</Option>
|
317
|
+
</Select>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
<div className="form__group">
|
322
|
+
<div className="form__item">
|
323
|
+
<Input label='Keyword'
|
324
|
+
error='This is error message'
|
325
|
+
type='text'
|
326
|
+
value='Keyword'
|
327
|
+
inlineLabel={false}
|
328
|
+
disabled={false}
|
329
|
+
invalid={false}
|
330
|
+
onChange={(value) => { }} />
|
331
|
+
</div>
|
332
|
+
</div>
|
333
|
+
|
334
|
+
<div className="form__group">
|
335
|
+
<div className="form__item">
|
336
|
+
<Select label='Usage right'
|
337
|
+
value='--- Not selected ---'
|
338
|
+
error='This is error message'
|
339
|
+
info='Dolor in hendrerit.'
|
340
|
+
inlineLabel={false}
|
341
|
+
disabled={false}
|
342
|
+
invalid={false}
|
343
|
+
onChange={(value) => { }}>
|
344
|
+
<Option value="">--- Not selected ---</Option>
|
345
|
+
<Option value="single">Single usage</Option>
|
346
|
+
<Option value="time">Time restricted</Option>
|
347
|
+
<Option value="bananas">Indefinite usage</Option>
|
348
|
+
<Option value="indefinite">Pears</Option>
|
349
|
+
</Select>
|
350
|
+
</div>
|
351
|
+
</div>
|
352
|
+
</Layout.PanelContentBlock>
|
353
|
+
</Layout.PanelContent>
|
354
|
+
<Layout.PanelFooter>
|
355
|
+
<Button text='Clear' style='hollow' onClick={() => false} />
|
356
|
+
<Button text='Submit' type='primary' onClick={() => false} />
|
357
|
+
</Layout.PanelFooter>
|
358
|
+
</Layout.Panel>
|
359
|
+
</Layout.LeftPanel>
|
360
|
+
{/* FILTER PANEL*/}
|
361
|
+
<Layout.MainPanel>
|
362
|
+
|
363
|
+
{/* <GridList size="small" gap="medium" margin="3">
|
364
|
+
{dummy_items.map((item, index) =>
|
365
|
+
<GridElements.GridItem locked={item.locked} status={item.status} onClick={this.handlePreview} itemtype={item.type} key={index}>
|
366
|
+
<GridElements.GridItemCheckWrapper>
|
367
|
+
<Checkbox checked={item.selected} label={{text:''}} onChange={(value) => {
|
368
|
+
item.selected = value;
|
369
|
+
this.changeStatus(item, 'selected');
|
370
|
+
}} />
|
371
|
+
</GridElements.GridItemCheckWrapper>
|
372
|
+
<GridElements.GridItemTopActions>
|
373
|
+
<IconButton icon='fullscreen' ariaValue='More actions' onClick={()=> false} />
|
374
|
+
</GridElements.GridItemTopActions>
|
375
|
+
<GridElements.GridItemMedia>
|
376
|
+
{ item.image ? <img src={item.image} alt={item.imageAlt}/> : null }
|
377
|
+
</GridElements.GridItemMedia>
|
378
|
+
<GridElements.GridItemContent>
|
379
|
+
<GridElements.GridItemTime time={item.date} />
|
380
|
+
<GridElements.GridItemTitle>{item.title}</GridElements.GridItemTitle>
|
381
|
+
<GridElements.GridItemText>{item.description}</GridElements.GridItemText>
|
382
|
+
</GridElements.GridItemContent>
|
383
|
+
<GridElements.GridItemFooter>
|
384
|
+
<GridElements.GridItemFooterBlock align='left'>
|
385
|
+
<Icon name={item.type} className='sd-grid-item__type-icn' />
|
386
|
+
<Badge text={item.urgency} color={item.urgencyColor} />
|
387
|
+
<Badge text={item.priority} shape='square' color={item.priorityColor} />
|
388
|
+
</GridElements.GridItemFooterBlock>
|
389
|
+
<GridElements.GridItemFooterActions>
|
390
|
+
<IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> this.changeStatus(item, 'archived')} />
|
391
|
+
</GridElements.GridItemFooterActions>
|
392
|
+
</GridElements.GridItemFooter>
|
393
|
+
</GridElements.GridItem>
|
394
|
+
)}
|
395
|
+
</GridList> */}
|
396
|
+
|
397
|
+
<ContentList
|
398
|
+
items={[
|
399
|
+
{
|
400
|
+
itemColum: [
|
401
|
+
{
|
402
|
+
itemRow: [{content:<>
|
403
|
+
<i className="icon-rundown"></i>
|
404
|
+
</>}],
|
405
|
+
border: true
|
406
|
+
},
|
407
|
+
{
|
408
|
+
itemRow: [
|
409
|
+
{
|
410
|
+
content:
|
411
|
+
<>
|
412
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
413
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
414
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
415
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
416
|
+
</>
|
417
|
+
},
|
418
|
+
{
|
419
|
+
content:
|
420
|
+
<>
|
421
|
+
<Label text='Marker' color='blue--800'/>
|
422
|
+
<span className='sd-list-item__compound-text'>
|
423
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
424
|
+
<span>Marker Daily</span>
|
425
|
+
</span>
|
426
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
427
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
428
|
+
</>
|
429
|
+
},
|
430
|
+
],
|
431
|
+
fullwidth: true,
|
432
|
+
}
|
433
|
+
],
|
434
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
435
|
+
locked: true,
|
436
|
+
onClick: () => this.setState({openEditor: !this.state.openEditor}),
|
437
|
+
},
|
438
|
+
{
|
439
|
+
itemColum: [
|
440
|
+
{
|
441
|
+
itemRow: [{content:<>
|
442
|
+
<i className="icon-rundown"></i>
|
443
|
+
</>}],
|
444
|
+
border: true
|
445
|
+
},
|
446
|
+
{
|
447
|
+
itemRow: [
|
448
|
+
{
|
449
|
+
content:
|
450
|
+
<>
|
451
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
452
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
453
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
454
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
455
|
+
</>
|
456
|
+
},
|
457
|
+
{
|
458
|
+
content:
|
459
|
+
<>
|
460
|
+
<Label text='Tabu' color='blue--800'/>
|
461
|
+
<span className='sd-list-item__compound-text'>
|
462
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
463
|
+
<span>Tabu Daily</span>
|
464
|
+
</span>
|
465
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
466
|
+
<Label style='translucent' text='Draft' />
|
467
|
+
</>
|
468
|
+
},
|
469
|
+
],
|
470
|
+
fullwidth: true,
|
471
|
+
}
|
472
|
+
],
|
473
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
474
|
+
onClick: () => this.setState({openPreview: !this.state.openPreview}),
|
475
|
+
},
|
476
|
+
]} />
|
477
|
+
|
478
|
+
</Layout.MainPanel>
|
479
|
+
{/* MAIN CONTENT (Monitoring) */}
|
480
|
+
<Layout.RightPanel open={this.state.openPreview}>
|
481
|
+
<Layout.Panel side='right'>
|
482
|
+
<Layout.PanelHeader title='Item preview' onClose={() => this.setState({'openPreview': false})} />
|
483
|
+
<Layout.PanelContent>
|
484
|
+
<Layout.PanelContentBlock flex={true}>
|
485
|
+
<Container direction='column' gap='x-small'>
|
486
|
+
<Container direction='row' gap='small'><Text color='light'>Created 09.06.2022 by </Text><Text weight='medium'>Mika Karapet</Text></Container>
|
487
|
+
<Container direction='row' gap='small'><Text color='light'>Updated 3 hours ago by </Text><Text weight='medium'>John Doe</Text></Container>
|
488
|
+
</Container>
|
489
|
+
<Container className='sd-margin-s--auto sd-flex--items-center'>
|
490
|
+
<Dropdown
|
491
|
+
align = 'right'
|
492
|
+
append = {true}
|
493
|
+
items={[
|
494
|
+
{
|
495
|
+
type: 'group', label: 'Actions', items: [
|
496
|
+
'divider',
|
497
|
+
{ label: 'Edit', icon: 'pencil', onSelect: () => this.setState({ dropDownState: 'Edit ' }) },
|
498
|
+
{ label: 'Download', icon: 'download', onSelect: () => this.setState({ dropDownState: 'Download' }) },
|
499
|
+
{ label: 'Delete', icon: 'trash', onSelect: () => this.setState({ dropDownState: 'Delete' }) },
|
500
|
+
]
|
501
|
+
}]}>
|
502
|
+
<IconButton ariaValue='dropdown-more-options' icon='dots-vertical' onClick={() => false} />
|
503
|
+
</Dropdown>
|
504
|
+
</Container>
|
505
|
+
</Layout.PanelContentBlock>
|
506
|
+
|
507
|
+
<Layout.PanelContentBlock>
|
508
|
+
<Container direction='row' gap='large' className='sd-margin-b--3'>
|
509
|
+
<Label size='large' text='Tabu' color='blue--800'/>
|
510
|
+
<Container direction='row' gap='small'>
|
511
|
+
<Text color='light' size='small' style='italic' >Template:</Text>
|
512
|
+
<Text size='small' style='italic' weight='medium'>Tabu daily</Text>
|
513
|
+
</Container>
|
514
|
+
</Container>
|
515
|
+
|
516
|
+
<Container direction='column' className='sd-margin-y--2'>
|
517
|
+
{/* <FormLabel text='Title' /> */}
|
518
|
+
<Heading type='h2'>Tabu // 01.06.2022</Heading>
|
519
|
+
</Container>
|
520
|
+
<ButtonGroup>
|
521
|
+
<IconLabel style='translucent' innerLabel='Airtime:' text='19:45 - 20:45' type='primary' />
|
522
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:56' type='warning' />
|
523
|
+
<Text color='light' size='small' className='sd-margin--0'>OF</Text>
|
524
|
+
<IconLabel style='translucent' innerLabel='Planned:'text='01:00' />
|
525
|
+
</ButtonGroup>
|
526
|
+
<TableList
|
527
|
+
className='sd-margin-y--4'
|
528
|
+
array={this.state.array}
|
529
|
+
itemsDropdown={[
|
530
|
+
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => 1 },
|
531
|
+
{ label: <Label style='translucent' text='prlg' />, onSelect: () => 1 },
|
532
|
+
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
533
|
+
]}
|
534
|
+
onClick={() => false}
|
535
|
+
/>
|
536
|
+
</Layout.PanelContentBlock>
|
537
|
+
</Layout.PanelContent>
|
538
|
+
</Layout.Panel>
|
539
|
+
</Layout.RightPanel>
|
540
|
+
{/* PREVIEW PANEL*/}
|
541
|
+
|
542
|
+
<Layout.OverlayPanel />
|
543
|
+
{/* OVERLAY PANEL (Send To) */}
|
544
|
+
</Layout.LayoutContainer>
|
545
|
+
<Layout.ContentSplitter visible={this.state.openEditor} />
|
546
|
+
{/* RUNDOWN EDITOR */}
|
547
|
+
<Layout.AuthoringContainer open={this.state.openEditor}>
|
548
|
+
<RundownEditor />
|
549
|
+
</Layout.AuthoringContainer>
|
550
|
+
{/* END RUNDOWN EDITOR */}
|
551
|
+
</Layout.Layout >
|
552
|
+
|
553
|
+
{/* Manage Templates Modal */}
|
554
|
+
<Modal headerTemplate="Manage Templates"
|
555
|
+
visible={this.state.modalManageTemplate}
|
556
|
+
contentBg='medium'
|
557
|
+
contentPadding='none'
|
558
|
+
size='x-large' onHide={() => {this.setState({modalManageTemplate: false})}}>
|
559
|
+
<Layout.LayoutContainer>
|
560
|
+
<Layout.LeftPanel open={true}>
|
561
|
+
<Layout.Panel side='left' background='grey'>
|
562
|
+
<Layout.PanelHeader>
|
563
|
+
<Container className='sd-padding-x--2'>
|
564
|
+
<Select
|
565
|
+
label='Shows'
|
566
|
+
fullWidth={true}
|
567
|
+
labelHidden={true}
|
568
|
+
inlineLabel={true}
|
569
|
+
value='This is some value'
|
570
|
+
required={true}
|
571
|
+
disabled={false}
|
572
|
+
invalid={false}
|
573
|
+
onChange={(value) => {}}>
|
574
|
+
<Option>Select show</Option>
|
575
|
+
<Option>Marker</Option>
|
576
|
+
<Option>Tabu</Option>
|
577
|
+
</Select>
|
578
|
+
</Container>
|
579
|
+
</Layout.PanelHeader>
|
580
|
+
<Layout.PanelContent>
|
581
|
+
<EmptyState
|
582
|
+
title={'No show is selected'}
|
583
|
+
description={'Please select a Show from the dropdown at the top.'}
|
584
|
+
size="small"
|
585
|
+
illustration="1" />
|
586
|
+
{/* <Container className='sd-margin-b--1'>
|
587
|
+
<ButtonGroup align='end'>
|
588
|
+
<Tooltip text='Manage templates'>
|
589
|
+
<Button type="primary" size='small' icon="plus-large" text="Cretae new Template" shape="round" iconOnly={true} onClick={()=> false} />
|
590
|
+
</Tooltip>
|
591
|
+
</ButtonGroup>
|
592
|
+
</Container> */}
|
593
|
+
{/* <BoxedList>
|
594
|
+
<BoxedListItem
|
595
|
+
alignVertical='center'
|
596
|
+
clickable={true}
|
597
|
+
density='compact'
|
598
|
+
actions={(
|
599
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
600
|
+
)}
|
601
|
+
>
|
602
|
+
<Container gap='small' >
|
603
|
+
<Label text='Marker' color='blue--800'/>
|
604
|
+
<span>Marker Daily</span>
|
605
|
+
</Container>
|
606
|
+
</BoxedListItem>
|
607
|
+
<BoxedListItem
|
608
|
+
alignVertical='center'
|
609
|
+
clickable={true}
|
610
|
+
density='compact'
|
611
|
+
selected={true}
|
612
|
+
actions={(
|
613
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
614
|
+
)}
|
615
|
+
>
|
616
|
+
<Container gap='small' >
|
617
|
+
<Label text='Marker' color='blue--800'/>
|
618
|
+
<span>Marker Weekend</span>
|
619
|
+
</Container>
|
620
|
+
</BoxedListItem>
|
621
|
+
<BoxedListItem
|
622
|
+
alignVertical='center'
|
623
|
+
density='compact'
|
624
|
+
clickable={true}
|
625
|
+
actions={(
|
626
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
627
|
+
)}
|
628
|
+
>
|
629
|
+
<Container gap='small' >
|
630
|
+
<Label text='Marker' color='blue--800'/>
|
631
|
+
<span>Marker Special</span>
|
632
|
+
</Container>
|
633
|
+
</BoxedListItem>
|
634
|
+
</BoxedList> */}
|
635
|
+
|
636
|
+
|
637
|
+
</Layout.PanelContent>
|
638
|
+
</Layout.Panel>
|
639
|
+
</Layout.LeftPanel>
|
640
|
+
{/* FILTER PANEL*/}
|
641
|
+
<Layout.MainPanel >
|
642
|
+
<EmptyState
|
643
|
+
title={'No Template selected'}
|
644
|
+
description={'Please select a Show and Template frome the side panel.'}
|
645
|
+
size="large"
|
646
|
+
illustration="1" />
|
647
|
+
</Layout.MainPanel>
|
648
|
+
{/* MAIN CONTENT */}
|
649
|
+
</Layout.LayoutContainer>
|
650
|
+
</Modal>
|
651
|
+
|
652
|
+
{/* New Show Modal */}
|
653
|
+
<Modal headerTemplate="Create new Show"
|
654
|
+
visible={this.state.modalNewShow}
|
655
|
+
footerTemplate={newShowFooter}
|
656
|
+
contentBg='medium'
|
657
|
+
size='medium' onHide={() => {this.setState({modalNewShow: false})}}>
|
658
|
+
<Form.FormGroup>
|
659
|
+
<Form.FormItem>
|
660
|
+
<Input
|
661
|
+
label='Show name'
|
662
|
+
type='text'
|
663
|
+
value=''
|
664
|
+
error='This is error message'
|
665
|
+
required={true}
|
666
|
+
onChange={() => {}}
|
667
|
+
/>
|
668
|
+
</Form.FormItem>
|
669
|
+
</Form.FormGroup>
|
670
|
+
<Form.FormGroup>
|
671
|
+
<Form.FormItem>
|
672
|
+
<Input
|
673
|
+
label='Description'
|
674
|
+
type='text'
|
675
|
+
value=''
|
676
|
+
error='This is error message'
|
677
|
+
required={false}
|
678
|
+
onChange={() => {}}
|
679
|
+
/>
|
680
|
+
</Form.FormItem>
|
681
|
+
</Form.FormGroup>
|
682
|
+
</Modal>
|
683
|
+
{/* New Show Modal Success */}
|
684
|
+
<Modal headerTemplate="Create new Show"
|
685
|
+
visible={this.state.modalNewShowSuccess}
|
686
|
+
footerTemplate={newShowFooter2}
|
687
|
+
contentBg='medium'
|
688
|
+
size='medium' onHide={() => {this.setState({modalNewShowSuccess: false})}}>
|
689
|
+
<Container direction='column' className='sd-flex--justify-center sd-flex--items-center sd-padding-y--2' gap='medium'>
|
690
|
+
<Icon name='checkmark-circle' type='success' size='big' scale='3x' />
|
691
|
+
<Text align='center' size='medium'>
|
692
|
+
The show <strong>Marker</strong> has been successfully created.<br />
|
693
|
+
Do you want to cretate a template for this show right away?
|
694
|
+
</Text>
|
695
|
+
|
696
|
+
|
697
|
+
</Container>
|
698
|
+
</Modal>
|
699
|
+
|
700
|
+
{/* New Template Modal */}
|
701
|
+
<Modal headerTemplate="Create new Template"
|
702
|
+
visible={this.state.modalNewTemplate}
|
703
|
+
contentBg='medium'
|
704
|
+
contentPadding='none'
|
705
|
+
size='x-large' onHide={() => {this.setState({modalNewTemplate: false})}}>
|
706
|
+
<Layout.LayoutContainer>
|
707
|
+
<Layout.LeftPanel open={true}>
|
708
|
+
<Layout.Panel side='left' background='grey'>
|
709
|
+
<Layout.PanelHeader>
|
710
|
+
<Container className='sd-padding-x--2'>
|
711
|
+
<Select
|
712
|
+
label='Shows'
|
713
|
+
fullWidth={true}
|
714
|
+
labelHidden={true}
|
715
|
+
inlineLabel={true}
|
716
|
+
value='This is some value'
|
717
|
+
required={true}
|
718
|
+
disabled={false}
|
719
|
+
invalid={false}
|
720
|
+
onChange={(value) => {}}>
|
721
|
+
<Option>Marker</Option>
|
722
|
+
<Option>Tabu</Option>
|
723
|
+
</Select>
|
724
|
+
</Container>
|
725
|
+
</Layout.PanelHeader>
|
726
|
+
<Layout.PanelContent>
|
727
|
+
<Layout.PanelContentBlock>
|
728
|
+
<Container className='sd-margin-b--1-5'>
|
729
|
+
<ButtonGroup align='end'>
|
730
|
+
<Tooltip text='New template' flow='left'>
|
731
|
+
<Button type="primary" size='small' icon="plus-large" text="Cretae new Template" shape="round" iconOnly={true} onClick={()=> false} />
|
732
|
+
</Tooltip>
|
733
|
+
</ButtonGroup>
|
734
|
+
</Container>
|
735
|
+
<BoxedList>
|
736
|
+
<BoxedListItem
|
737
|
+
alignVertical='center'
|
738
|
+
clickable={true}
|
739
|
+
density='compact'
|
740
|
+
selected={true}
|
741
|
+
actions={(
|
742
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
743
|
+
)}
|
744
|
+
>
|
745
|
+
<Container gap='small' >
|
746
|
+
<Label text='Marker' color='blue--800'/>
|
747
|
+
<span>Untitled</span>
|
748
|
+
</Container>
|
749
|
+
</BoxedListItem>
|
750
|
+
<BoxedListItem
|
751
|
+
alignVertical='center'
|
752
|
+
clickable={true}
|
753
|
+
density='compact'
|
754
|
+
actions={(
|
755
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
756
|
+
)}
|
757
|
+
>
|
758
|
+
<Container gap='small' >
|
759
|
+
<Label text='Marker' color='blue--800'/>
|
760
|
+
<span>Marker Daily</span>
|
761
|
+
</Container>
|
762
|
+
</BoxedListItem>
|
763
|
+
<BoxedListItem
|
764
|
+
alignVertical='center'
|
765
|
+
clickable={true}
|
766
|
+
density='compact'
|
767
|
+
actions={(
|
768
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
769
|
+
)}
|
770
|
+
>
|
771
|
+
<Container gap='small' >
|
772
|
+
<Label text='Marker' color='blue--800'/>
|
773
|
+
<span>Marker Weekend</span>
|
774
|
+
</Container>
|
775
|
+
</BoxedListItem>
|
776
|
+
<BoxedListItem
|
777
|
+
alignVertical='center'
|
778
|
+
density='compact'
|
779
|
+
clickable={true}
|
780
|
+
actions={(
|
781
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
782
|
+
)}
|
783
|
+
>
|
784
|
+
<Container gap='small' >
|
785
|
+
<Label text='Marker' color='blue--800'/>
|
786
|
+
<span>Marker Special</span>
|
787
|
+
</Container>
|
788
|
+
</BoxedListItem>
|
789
|
+
</BoxedList>
|
790
|
+
|
791
|
+
</Layout.PanelContentBlock>
|
792
|
+
</Layout.PanelContent>
|
793
|
+
</Layout.Panel>
|
794
|
+
</Layout.LeftPanel>
|
795
|
+
{/* FILTER PANEL*/}
|
796
|
+
<Layout.MainPanel padding='none'>
|
797
|
+
|
798
|
+
<RundownEditor />
|
799
|
+
|
800
|
+
</Layout.MainPanel>
|
801
|
+
{/* MAIN CONTENT */}
|
802
|
+
</Layout.LayoutContainer>
|
803
|
+
</Modal>
|
804
|
+
|
805
|
+
{/* Manage Shows Modal */}
|
806
|
+
<Modal headerTemplate="Manage Shows"
|
807
|
+
visible={this.state.modalManageShow}
|
808
|
+
contentBg='medium'
|
809
|
+
contentPadding='none'
|
810
|
+
size='x-large' onHide={() => {this.setState({modalManageShow: false})}}>
|
811
|
+
<Layout.LayoutContainer>
|
812
|
+
<Layout.HeaderPanel>
|
813
|
+
<SubNav zIndex={2}>
|
814
|
+
<SearchBar placeholder='Search shows'></SearchBar>
|
815
|
+
<ButtonGroup align='end' spaces='no-space'>
|
816
|
+
<CreateButton ariaValue='New show' onClick={() => false} />
|
817
|
+
</ButtonGroup>
|
818
|
+
</SubNav>
|
819
|
+
</Layout.HeaderPanel>
|
820
|
+
{/* MAIN CONTENT */}
|
821
|
+
<Layout.MainPanel>
|
822
|
+
<BoxedList>
|
823
|
+
<BoxedListItem
|
824
|
+
alignVertical='center'
|
825
|
+
clickable={true}
|
826
|
+
density='compact'
|
827
|
+
selected={this.state.openShowEditor}
|
828
|
+
onClick={() => this.setState({openShowEditor: !this.state.openShowEditor})}
|
829
|
+
actions={(
|
830
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
831
|
+
)}
|
832
|
+
>
|
833
|
+
<Container className='sd-flex-justify-space-between'>
|
834
|
+
<Heading type='h4'>Marker</Heading>
|
835
|
+
<Text color='lighter'>3 template</Text>
|
836
|
+
</Container>
|
837
|
+
</BoxedListItem>
|
838
|
+
<BoxedListItem
|
839
|
+
alignVertical='center'
|
840
|
+
clickable={true}
|
841
|
+
density='compact'
|
842
|
+
actions={(
|
843
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
844
|
+
)}
|
845
|
+
>
|
846
|
+
<Container className='sd-flex-justify-space-between'>
|
847
|
+
<Heading type='h4'>Tabu</Heading>
|
848
|
+
<Text color='lighter'>3 template</Text>
|
849
|
+
</Container>
|
850
|
+
</BoxedListItem>
|
851
|
+
<BoxedListItem
|
852
|
+
alignVertical='center'
|
853
|
+
clickable={true}
|
854
|
+
density='compact'
|
855
|
+
actions={(
|
856
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
857
|
+
)}
|
858
|
+
>
|
859
|
+
<Container className='sd-flex-justify-space-between'>
|
860
|
+
<Heading type='h4'>Život u ringu</Heading>
|
861
|
+
<Text color='lighter'>1 template</Text>
|
862
|
+
</Container>
|
863
|
+
</BoxedListItem>
|
864
|
+
<BoxedListItem
|
865
|
+
alignVertical='center'
|
866
|
+
density='compact'
|
867
|
+
clickable={true}
|
868
|
+
actions={(
|
869
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
870
|
+
)}
|
871
|
+
>
|
872
|
+
<Container className='sd-flex-justify-space-between'>
|
873
|
+
<Heading type='h4'>Intervju</Heading>
|
874
|
+
<Text color='lighter'>3 templates</Text>
|
875
|
+
</Container>
|
876
|
+
</BoxedListItem>
|
877
|
+
</BoxedList>
|
878
|
+
|
879
|
+
</Layout.MainPanel>
|
880
|
+
<Layout.RightPanel open={this.state.openShowEditor}>
|
881
|
+
<Layout.Panel side='right' background='grey'>
|
882
|
+
<Layout.PanelHeader title='Show details' onClose={() => this.setState({'openShowEditor': false})} >
|
883
|
+
|
884
|
+
{this.state.value1 ||
|
885
|
+
<Layout.PanelHeaderSlidingToolbar>
|
886
|
+
<ButtonGroup align='start'>
|
887
|
+
<IconButton ariaValue="Close" icon="close-small" onClick={() => this.setState({openShowEditor: !this.state.openShowEditor})} />
|
888
|
+
</ButtonGroup>
|
889
|
+
<ButtonGroup align='end'>
|
890
|
+
<Button text="Save Changes" style='hollow' onClick={() => this.setState({openShowEditor: !this.state.openShowEditor})} type="primary" />
|
891
|
+
</ButtonGroup>
|
892
|
+
</Layout.PanelHeaderSlidingToolbar>}
|
893
|
+
</Layout.PanelHeader>
|
894
|
+
<Layout.PanelContent>
|
895
|
+
<Layout.PanelContentBlock flex={true}>
|
896
|
+
<Container direction='column' gap='x-small'>
|
897
|
+
<Container direction='row' gap='small'><Text color='light'>Created 09.06.2022 by </Text><Text weight='medium'>Mika Karapet</Text></Container>
|
898
|
+
<Container direction='row' gap='small'><Text color='light'>Updated 3 hours ago by </Text><Text weight='medium'>John Doe</Text></Container>
|
899
|
+
</Container>
|
900
|
+
<Container className='sd-margin-s--auto sd-flex--items-center'>
|
901
|
+
<Dropdown
|
902
|
+
align = 'right'
|
903
|
+
append = {true}
|
904
|
+
items={[
|
905
|
+
{
|
906
|
+
type: 'group', label: 'Actions', items: [
|
907
|
+
'divider',
|
908
|
+
{ label: 'Edit', icon: 'pencil', onSelect: () => this.setState({ dropDownState: 'Edit ' }) },
|
909
|
+
{ label: 'Download', icon: 'download', onSelect: () => this.setState({ dropDownState: 'Download' }) },
|
910
|
+
{ label: 'Delete', icon: 'trash', onSelect: () => this.setState({ dropDownState: 'Delete' }) },
|
911
|
+
]
|
912
|
+
}]}>
|
913
|
+
<IconButton ariaValue='dropdown-more-options' icon='dots-vertical' onClick={() => false} />
|
914
|
+
</Dropdown>
|
915
|
+
</Container>
|
916
|
+
</Layout.PanelContentBlock>
|
917
|
+
<Layout.PanelContentBlock>
|
918
|
+
<SwitchGroup className='sd-margin-b--3'>
|
919
|
+
<Switch label={{text:'Active'}} value={this.state.value1} onChange={(value) => this.setState(() => ({ value1: value }))} />
|
920
|
+
</SwitchGroup>
|
921
|
+
<Form.FormGroup>
|
922
|
+
<Form.FormItem>
|
923
|
+
<Input
|
924
|
+
type='text'
|
925
|
+
label='Show name'
|
926
|
+
value='Marker'
|
927
|
+
error='This is error message'
|
928
|
+
info=' '
|
929
|
+
required={true}
|
930
|
+
disabled={false}
|
931
|
+
invalid={false}
|
932
|
+
onChange={(value) => {}} />
|
933
|
+
</Form.FormItem>
|
934
|
+
</Form.FormGroup>
|
935
|
+
<Form.FormGroup>
|
936
|
+
<Form.FormItem>
|
937
|
+
<Input
|
938
|
+
type='text'
|
939
|
+
label='Description'
|
940
|
+
value=''
|
941
|
+
error='This is error message'
|
942
|
+
info=''
|
943
|
+
required={false}
|
944
|
+
disabled={false}
|
945
|
+
invalid={false}
|
946
|
+
onChange={(value) => {}} />
|
947
|
+
</Form.FormItem>
|
948
|
+
</Form.FormGroup>
|
949
|
+
</Layout.PanelContentBlock>
|
950
|
+
|
951
|
+
<Layout.PanelContentBlock>
|
952
|
+
<Heading type='h3' className='sd-margin-b--2'>Show templates</Heading>
|
953
|
+
<BoxedList>
|
954
|
+
<BoxedListItem
|
955
|
+
alignVertical='center'
|
956
|
+
density='compact'
|
957
|
+
actions={(
|
958
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
959
|
+
)}
|
960
|
+
>
|
961
|
+
<Container gap='small' >
|
962
|
+
<Label text='Marker' color='blue--800'/>
|
963
|
+
<span>Marker Daily</span>
|
964
|
+
</Container>
|
965
|
+
</BoxedListItem>
|
966
|
+
<BoxedListItem
|
967
|
+
alignVertical='center'
|
968
|
+
density='compact'
|
969
|
+
actions={(
|
970
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
971
|
+
)}
|
972
|
+
>
|
973
|
+
<Container gap='small' >
|
974
|
+
<Label text='Marker' color='blue--800'/>
|
975
|
+
<span>Marker Weekend</span>
|
976
|
+
</Container>
|
977
|
+
</BoxedListItem>
|
978
|
+
<BoxedListItem
|
979
|
+
alignVertical='center'
|
980
|
+
density='compact'
|
981
|
+
actions={(
|
982
|
+
<IconButton icon="dots-vertical" size='small' ariaValue="More actions" onClick={()=> false} />
|
983
|
+
)}
|
984
|
+
>
|
985
|
+
<Container gap='small' >
|
986
|
+
<Label text='Marker' color='blue--800'/>
|
987
|
+
<span>Marker Special</span>
|
988
|
+
</Container>
|
989
|
+
</BoxedListItem>
|
990
|
+
</BoxedList>
|
991
|
+
|
992
|
+
</Layout.PanelContentBlock>
|
993
|
+
</Layout.PanelContent>
|
994
|
+
</Layout.Panel>
|
995
|
+
</Layout.RightPanel>
|
996
|
+
</Layout.LayoutContainer>
|
997
|
+
</Modal>
|
998
|
+
{/* End All Modals */}
|
999
|
+
</>
|
1000
|
+
);
|
1001
|
+
}
|
1002
|
+
}
|