superdesk-ui-framework 4.0.52 → 4.0.54
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-typescript/components/DateTimePicker.tsx +11 -1
- package/dist/examples.bundle.js +14 -2
- package/dist/superdesk-ui.bundle.js +13 -1
- package/package.json +1 -1
- package/react/components/DateTimePicker.d.ts +1 -0
- package/react/components/DateTimePicker.js +13 -1
- package/dist/playgrounds/accessible-theme-test.html +0 -813
- package/dist/playgrounds/boxed-list.html +0 -164
- package/dist/playgrounds/cards.html +0 -244
- package/dist/playgrounds/circular-progress.html +0 -48
- package/dist/playgrounds/dummy-data/items.ts +0 -95
- package/dist/playgrounds/editor-3-test.html +0 -15
- package/dist/playgrounds/form-layout.html +0 -285
- package/dist/playgrounds/layout-grid.html +0 -79
- package/dist/playgrounds/layout-snippets/edit-article.html +0 -415
- package/dist/playgrounds/layout-test-2.html +0 -795
- package/dist/playgrounds/list-item-test.html +0 -896
- package/dist/playgrounds/main.html +0 -16
- package/dist/playgrounds/master-desk.html +0 -1678
- package/dist/playgrounds/media-carousel.html +0 -1166
- package/dist/playgrounds/nav-buttons.html +0 -65
- package/dist/playgrounds/photo-desk.html +0 -1515
- package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
- package/dist/playgrounds/planning-snippets/edit-event.html +0 -187
- package/dist/playgrounds/planning-snippets/edit-planning.html +0 -457
- package/dist/playgrounds/planning.html +0 -1112
- package/dist/playgrounds/publish-snippets/edit-article.html +0 -37
- package/dist/playgrounds/publish.html +0 -1007
- package/dist/playgrounds/publisher-content-analytics.html +0 -376
- package/dist/playgrounds/publisher-content-list-automatic.html +0 -296
- package/dist/playgrounds/publisher-content-list-manual.html +0 -611
- package/dist/playgrounds/publisher-content-lists.html +0 -255
- package/dist/playgrounds/publisher-dashboard.html +0 -323
- package/dist/playgrounds/publisher-output-control.html +0 -3659
- package/dist/playgrounds/publisher-website-settings-general.html +0 -188
- package/dist/playgrounds/publisher-website-settings.html +0 -265
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
- package/dist/playgrounds/react-playgrounds/Index.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
- package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
- package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
- package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +0 -20
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
- package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
- package/dist/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
- package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
- package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
- package/dist/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
- package/dist/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
- package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
- package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
- package/dist/playgrounds/react-playgrounds/tsconfig.json +0 -4
- package/dist/playgrounds/settings.html +0 -92
- package/dist/playgrounds/side-navigation.html +0 -201
- package/dist/playgrounds/swimlane-view.html +0 -1975
- package/dist/playgrounds/tags-input.html +0 -55
- package/dist/playgrounds/toasts.html +0 -113
- package/dist/playgrounds/video-editor.html +0 -706
- package/examples/css/docs-page.css +0 -1135
- package/examples/css/reset.css +0 -124
- package/examples/css/vendor.css +0 -175
- package/examples/illustration-small--components.svg +0 -45
- package/examples/img/andrew-power-y9L5-wmifaY-unsplash.jpg +0 -0
- package/examples/img/andrew-power-y9L5-wmifaY-unsplash.license.txt +0 -6
- 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/img/avatar.jpg +0 -0
- package/examples/img/bill.jpg +0 -0
- package/examples/img/bush_1.jpg +0 -0
- package/examples/img/bush_2.jpg +0 -0
- package/examples/img/carousel-thumb--01.jpg +0 -0
- package/examples/img/carousel-thumb--02.jpg +0 -0
- package/examples/img/carousel-thumb--03.jpg +0 -0
- package/examples/img/carousel-thumb--04.jpg +0 -0
- package/examples/img/components_ilustration.svg +0 -1
- package/examples/img/d_trump.jpg +0 -0
- package/examples/img/d_trump_2.jpg +0 -0
- package/examples/img/d_trump_large.jpg +0 -0
- package/examples/img/design_ilustration.svg +0 -1
- package/examples/img/ferocious_beast.webm +0 -0
- package/examples/img/guidelines/application-frame.png +0 -0
- package/examples/img/guidelines/application-frame__bottom-bar.png +0 -0
- package/examples/img/guidelines/application-frame__left-panel.gif +0 -0
- package/examples/img/guidelines/application-frame__left-panel.png +0 -0
- package/examples/img/guidelines/application-frame__main-content.gif +0 -0
- package/examples/img/guidelines/application-frame__main-content.png +0 -0
- package/examples/img/guidelines/application-frame__right-panel.gif +0 -0
- package/examples/img/guidelines/application-frame__right-panel.png +0 -0
- package/examples/img/guidelines/application-frame__side-tabs.png +0 -0
- package/examples/img/guidelines/application-frame__sub-nav.png +0 -0
- package/examples/img/guidelines/application-frame__top-bar.png +0 -0
- package/examples/img/guidelines/buttons--00-01.png +0 -0
- package/examples/img/guidelines/buttons--00-02.png +0 -0
- package/examples/img/guidelines/buttons--DO-02.png +0 -0
- package/examples/img/guidelines/buttons--DONT-01.png +0 -0
- package/examples/img/guidelines/checkbox--DO-01.png +0 -0
- package/examples/img/guidelines/checkbox--DO-02.png +0 -0
- package/examples/img/guidelines/checkbox--DONT-01.png +0 -0
- package/examples/img/guidelines/checkbox--DONT-02.png +0 -0
- package/examples/img/guidelines/example__bottom-bar--01.png +0 -0
- package/examples/img/guidelines/example__left-side_panel--01.png +0 -0
- package/examples/img/guidelines/example__left_side-bar--01.png +0 -0
- package/examples/img/guidelines/example__main-content--01.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--01.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--02.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--03.png +0 -0
- package/examples/img/guidelines/example__sub-nav--01.png +0 -0
- package/examples/img/guidelines/example__sub-nav--02.png +0 -0
- package/examples/img/guidelines/example__sub-nav--03.png +0 -0
- package/examples/img/guidelines/example__top-bar--01.png +0 -0
- package/examples/img/guidelines/layout--grid-01.png +0 -0
- package/examples/img/guidelines/layout--size-example-01.png +0 -0
- package/examples/img/guidelines/radio--DO-01.png +0 -0
- package/examples/img/guidelines/radio--DONT-01.png +0 -0
- package/examples/img/guidelines/radio--DONT-02.png +0 -0
- package/examples/img/guidelines/radio--DONT-03.png +0 -0
- package/examples/img/guidelines/switch--DO-01.png +0 -0
- package/examples/img/guidelines/switch--DO-02.png +0 -0
- package/examples/img/guidelines/switch--DONT-01.png +0 -0
- package/examples/img/guidelines/switch--DONT-02.png +0 -0
- package/examples/img/hillary.jpg +0 -0
- package/examples/img/illustration--components.svg +0 -1
- package/examples/img/illustration--design.svg +0 -1
- package/examples/img/illustration--playground.svg +0 -1
- package/examples/img/illustration--react.svg +0 -1
- package/examples/img/illustration-small--components.svg +0 -45
- package/examples/img/illustration-small--design.svg +0 -99
- package/examples/img/illustration-small--playground.svg +0 -49
- package/examples/img/illustration-small--react.svg +0 -53
- package/examples/img/illustration_user-privileges.png +0 -0
- package/examples/img/illustration_users.png +0 -0
- package/examples/img/image_01.jpg +0 -0
- package/examples/img/image_02.jpg +0 -0
- package/examples/img/masthead-image.png +0 -0
- package/examples/img/obama_1.jpg +0 -0
- package/examples/img/obama_2.jpg +0 -0
- package/examples/img/overlay-img.jpg +0 -0
- package/examples/img/react-logo--vector.svg +0 -49
- package/examples/img/sd-ui-framework__logo-01.svg +0 -33
- package/examples/img/sd-ui-framework__logo.svg +0 -20
- package/examples/img/th01.jpg +0 -0
- package/examples/img/th02.jpg +0 -0
- package/examples/img/th03.jpg +0 -0
- package/examples/index.html +0 -11
- package/examples/index.js +0 -468
- package/examples/js/doc.js +0 -230
- package/examples/js/react.js +0 -263
- package/examples/pages/components/Alerts.tsx +0 -291
- package/examples/pages/components/Autocomplete.tsx +0 -434
- package/examples/pages/components/Avatar.tsx +0 -659
- package/examples/pages/components/Badges.tsx +0 -221
- package/examples/pages/components/BigIconFont.tsx +0 -48
- package/examples/pages/components/BoxedList.tsx +0 -517
- package/examples/pages/components/ButtonGroups.tsx +0 -366
- package/examples/pages/components/Buttons.tsx +0 -565
- package/examples/pages/components/Card.tsx +0 -23
- package/examples/pages/components/Carousel.tsx +0 -235
- package/examples/pages/components/Checkboxs.tsx +0 -817
- package/examples/pages/components/Container.tsx +0 -190
- package/examples/pages/components/ContentDivider.tsx +0 -229
- package/examples/pages/components/ContentList.tsx +0 -786
- package/examples/pages/components/CreateButton.tsx +0 -121
- package/examples/pages/components/DatePicker.tsx +0 -245
- package/examples/pages/components/DateTimePicker.tsx +0 -141
- package/examples/pages/components/DragHandleDocs.tsx +0 -122
- package/examples/pages/components/DropZone.tsx +0 -149
- package/examples/pages/components/Dropdowns.tsx +0 -587
- package/examples/pages/components/DurationInput.tsx +0 -157
- package/examples/pages/components/EmptyStates.tsx +0 -171
- package/examples/pages/components/GridItem.tsx +0 -507
- package/examples/pages/components/GridList.tsx +0 -126
- package/examples/pages/components/Heading.tsx +0 -152
- package/examples/pages/components/IconButtons.tsx +0 -191
- package/examples/pages/components/IconFont.tsx +0 -49
- package/examples/pages/components/IconLabels.tsx +0 -199
- package/examples/pages/components/IconPicker.tsx +0 -82
- package/examples/pages/components/IllustrationButton.tsx +0 -109
- package/examples/pages/components/Index.tsx +0 -563
- package/examples/pages/components/Inputs.tsx +0 -313
- package/examples/pages/components/Labels.tsx +0 -354
- package/examples/pages/components/LeftNavigations.tsx +0 -459
- package/examples/pages/components/ListItems.tsx +0 -33
- package/examples/pages/components/Loader.tsx +0 -25
- package/examples/pages/components/Menu.tsx +0 -181
- package/examples/pages/components/Modal.tsx +0 -557
- package/examples/pages/components/MultiSelect.tsx +0 -343
- package/examples/pages/components/NavButtons.tsx +0 -159
- package/examples/pages/components/Panel.tsx +0 -631
- package/examples/pages/components/Popover.tsx +0 -90
- package/examples/pages/components/QuickNavigationBar.tsx +0 -278
- package/examples/pages/components/RadioGroup.tsx +0 -612
- package/examples/pages/components/ResizablePanels.tsx +0 -43
- package/examples/pages/components/SelectGrid.tsx +0 -162
- package/examples/pages/components/SelectWithTemplate.tsx +0 -144
- package/examples/pages/components/Selects.tsx +0 -175
- package/examples/pages/components/SimpleList.tsx +0 -198
- package/examples/pages/components/SubNav.tsx +0 -160
- package/examples/pages/components/Switch.tsx +0 -298
- package/examples/pages/components/TableList.tsx +0 -315
- package/examples/pages/components/Tabs.tsx +0 -276
- package/examples/pages/components/TagInputDocs.tsx +0 -130
- package/examples/pages/components/Tags.tsx +0 -154
- package/examples/pages/components/Text.tsx +0 -184
- package/examples/pages/components/TimePicker.tsx +0 -179
- package/examples/pages/components/Toasts.tsx +0 -283
- package/examples/pages/components/Togglebox.tsx +0 -307
- package/examples/pages/components/Tooltips.tsx +0 -74
- package/examples/pages/components/TreeMenu.tsx +0 -315
- package/examples/pages/components/TreeSelect.tsx +0 -625
- package/examples/pages/components/WithPaginationDocs.tsx +0 -56
- package/examples/pages/components/WithSizeObserver.tsx +0 -44
- package/examples/pages/components/tree-select/TreeSelect.tsx +0 -322
- package/examples/pages/components/tree-select/example-1.tsx +0 -67
- package/examples/pages/components/tree-select/example-2.tsx +0 -56
- package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +0 -71
- package/examples/pages/components/utilities/BorderUtilities.tsx +0 -169
- package/examples/pages/components/utilities/DisplayUtilities.tsx +0 -115
- package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +0 -551
- package/examples/pages/components/utilities/ObjectFitUtilities.tsx +0 -51
- package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +0 -67
- package/examples/pages/components/utilities/OpacityUtilities.tsx +0 -61
- package/examples/pages/components/utilities/OverflowUtilities.tsx +0 -92
- package/examples/pages/components/utilities/PositionUtilities.tsx +0 -51
- package/examples/pages/components/utilities/ShadowUtilities.tsx +0 -122
- package/examples/pages/components/utilities/SpacingUtilities.tsx +0 -1079
- package/examples/pages/components/utilities/TextUtilities.tsx +0 -560
- package/examples/pages/components.html +0 -15
- package/examples/pages/components_deprecated/alerts.html +0 -113
- package/examples/pages/components_deprecated/badge.html +0 -79
- package/examples/pages/components_deprecated/basic-grid.html +0 -132
- package/examples/pages/components_deprecated/big-icons.html +0 -65
- package/examples/pages/components_deprecated/buttons.html +0 -631
- package/examples/pages/components_deprecated/carousel.html +0 -77
- package/examples/pages/components_deprecated/checkbox.html +0 -86
- package/examples/pages/components_deprecated/colors.html +0 -12
- package/examples/pages/components_deprecated/dropdown.html +0 -542
- package/examples/pages/components_deprecated/form-layout.html +0 -187
- package/examples/pages/components_deprecated/icon-labels.html +0 -34
- package/examples/pages/components_deprecated/icons.html +0 -194
- package/examples/pages/components_deprecated/input.html +0 -233
- package/examples/pages/components_deprecated/labels.html +0 -170
- package/examples/pages/components_deprecated/layout-grid.html +0 -227
- package/examples/pages/components_deprecated/left-nav.html +0 -83
- package/examples/pages/components_deprecated/list-item.html +0 -1342
- package/examples/pages/components_deprecated/loader.html +0 -64
- package/examples/pages/components_deprecated/modal-template.html +0 -13
- package/examples/pages/components_deprecated/modals.html +0 -561
- package/examples/pages/components_deprecated/other-elements.html +0 -54
- package/examples/pages/components_deprecated/panel-info.html +0 -34
- package/examples/pages/components_deprecated/radio.html +0 -64
- package/examples/pages/components_deprecated/select.html +0 -160
- package/examples/pages/components_deprecated/shadows.html +0 -24
- package/examples/pages/components_deprecated/sidebar-menu.html +0 -111
- package/examples/pages/components_deprecated/simple-list.html +0 -113
- package/examples/pages/components_deprecated/slider.html +0 -31
- package/examples/pages/components_deprecated/spacing.html +0 -117
- package/examples/pages/components_deprecated/switch.html +0 -31
- package/examples/pages/components_deprecated/tables.html +0 -58
- package/examples/pages/components_deprecated/tabs.html +0 -257
- package/examples/pages/components_deprecated/tag-input.html +0 -123
- package/examples/pages/components_deprecated/tag-labels.html +0 -57
- package/examples/pages/components_deprecated/text.html +0 -55
- package/examples/pages/components_deprecated/toggle.html +0 -63
- package/examples/pages/components_deprecated/tooltips.html +0 -29
- package/examples/pages/components_deprecated/vertical-tabs.html +0 -48
- package/examples/pages/components_deprecated/wizard.html +0 -41
- package/examples/pages/components_deprecated.html +0 -39
- package/examples/pages/design/application-structure.html +0 -168
- package/examples/pages/design/buttons.html +0 -34
- package/examples/pages/design/checkbox-and-radio.html +0 -64
- package/examples/pages/design/layout-principles.html +0 -45
- package/examples/pages/design/modules.html +0 -22
- package/examples/pages/design/pages.html +0 -22
- package/examples/pages/design/switch.html +0 -55
- package/examples/pages/design-patterns/Index.tsx +0 -42
- package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +0 -378
- package/examples/pages/design-patterns.html +0 -14
- package/examples/pages/design.html +0 -39
- package/examples/pages/main.html +0 -76
- package/examples/pages/playgrounds/accessible-theme-test.html +0 -813
- package/examples/pages/playgrounds/boxed-list.html +0 -164
- package/examples/pages/playgrounds/cards.html +0 -244
- package/examples/pages/playgrounds/circular-progress.html +0 -48
- package/examples/pages/playgrounds/dummy-data/items.ts +0 -95
- package/examples/pages/playgrounds/editor-3-test.html +0 -15
- package/examples/pages/playgrounds/form-layout.html +0 -285
- package/examples/pages/playgrounds/layout-grid.html +0 -79
- package/examples/pages/playgrounds/layout-snippets/edit-article.html +0 -415
- package/examples/pages/playgrounds/layout-test-2.html +0 -795
- package/examples/pages/playgrounds/list-item-test.html +0 -896
- package/examples/pages/playgrounds/main.html +0 -16
- package/examples/pages/playgrounds/master-desk.html +0 -1678
- package/examples/pages/playgrounds/media-carousel.html +0 -1166
- package/examples/pages/playgrounds/nav-buttons.html +0 -65
- package/examples/pages/playgrounds/photo-desk.html +0 -1515
- package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
- package/examples/pages/playgrounds/planning-snippets/edit-event.html +0 -187
- package/examples/pages/playgrounds/planning-snippets/edit-planning.html +0 -457
- package/examples/pages/playgrounds/planning.html +0 -1112
- package/examples/pages/playgrounds/publish-snippets/edit-article.html +0 -37
- package/examples/pages/playgrounds/publish.html +0 -1007
- package/examples/pages/playgrounds/publisher-content-analytics.html +0 -376
- package/examples/pages/playgrounds/publisher-content-list-automatic.html +0 -296
- package/examples/pages/playgrounds/publisher-content-list-manual.html +0 -611
- package/examples/pages/playgrounds/publisher-content-lists.html +0 -255
- package/examples/pages/playgrounds/publisher-dashboard.html +0 -323
- package/examples/pages/playgrounds/publisher-output-control.html +0 -3659
- package/examples/pages/playgrounds/publisher-website-settings-general.html +0 -188
- package/examples/pages/playgrounds/publisher-website-settings.html +0 -265
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +0 -20
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
- package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
- package/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
- package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
- package/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
- package/examples/pages/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
- package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
- package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
- package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +0 -4
- package/examples/pages/playgrounds/settings.html +0 -92
- package/examples/pages/playgrounds/side-navigation.html +0 -201
- package/examples/pages/playgrounds/swimlane-view.html +0 -1975
- package/examples/pages/playgrounds/tags-input.html +0 -55
- package/examples/pages/playgrounds/toasts.html +0 -113
- package/examples/pages/playgrounds/video-editor.html +0 -706
- package/examples/pages/playgrounds.html +0 -40
package/examples/index.html
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html dir="auto" lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<title>Superdesk UI Framework</title>
|
6
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<div class="docs-page" ng-app="ui-docs" doc-playground ng-view></div>
|
10
|
-
</body>
|
11
|
-
</html>
|
package/examples/index.js
DELETED
@@ -1,468 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
|
3
|
-
import 'angular-route';
|
4
|
-
import 'code-prettify/src/prettify';
|
5
|
-
import 'code-prettify/styles/sons-of-obsidian.css';
|
6
|
-
import 'prismjs/themes/prism-tomorrow.css';
|
7
|
-
import 'prismjs/plugins/line-numbers/prism-line-numbers.css';
|
8
|
-
|
9
|
-
import './css/reset.css';
|
10
|
-
import './css/docs-page.css';
|
11
|
-
import './js/doc';
|
12
|
-
|
13
|
-
export default angular
|
14
|
-
.module('ui-docs', ['ngRoute', 'superdesk-ui', 'ui-docs.directives'])
|
15
|
-
|
16
|
-
.config([
|
17
|
-
'$locationProvider',
|
18
|
-
function ($locationProvider) {
|
19
|
-
return $locationProvider.hashPrefix('');
|
20
|
-
},
|
21
|
-
])
|
22
|
-
|
23
|
-
.factory('components', () => ({
|
24
|
-
basicComponents: {
|
25
|
-
name: 'Basic Components',
|
26
|
-
items: {
|
27
|
-
buttons: {
|
28
|
-
name: 'Buttons',
|
29
|
-
page: 'buttons.html',
|
30
|
-
},
|
31
|
-
labels: {
|
32
|
-
name: 'Labels',
|
33
|
-
page: 'labels.html',
|
34
|
-
},
|
35
|
-
badge: {
|
36
|
-
name: 'Badge',
|
37
|
-
page: 'badge.html',
|
38
|
-
},
|
39
|
-
'tag-labels': {
|
40
|
-
name: 'Tag labels',
|
41
|
-
page: 'tag-labels.html',
|
42
|
-
},
|
43
|
-
'icon-labels': {
|
44
|
-
name: 'Icon labels',
|
45
|
-
page: 'icon-labels.html',
|
46
|
-
},
|
47
|
-
alerts: {
|
48
|
-
name: 'Alerts',
|
49
|
-
page: 'alerts.html',
|
50
|
-
},
|
51
|
-
dropdown: {
|
52
|
-
name: 'Dropdown',
|
53
|
-
page: 'dropdown.html',
|
54
|
-
},
|
55
|
-
tooltips: {
|
56
|
-
name: 'Tooltips',
|
57
|
-
page: 'tooltips.html',
|
58
|
-
},
|
59
|
-
tables: {
|
60
|
-
name: 'Tables',
|
61
|
-
page: 'tables.html',
|
62
|
-
},
|
63
|
-
'panel-info': {
|
64
|
-
name: 'Panel info',
|
65
|
-
page: 'panel-info.html',
|
66
|
-
},
|
67
|
-
slider: {
|
68
|
-
name: 'Slider control',
|
69
|
-
page: 'slider.html',
|
70
|
-
},
|
71
|
-
loader: {
|
72
|
-
name: 'Animated loader',
|
73
|
-
page: 'loader.html',
|
74
|
-
},
|
75
|
-
},
|
76
|
-
},
|
77
|
-
navigation: {
|
78
|
-
name: 'Navigation',
|
79
|
-
items: {
|
80
|
-
tabs: {
|
81
|
-
name: 'Tabs',
|
82
|
-
page: 'tabs.html',
|
83
|
-
},
|
84
|
-
'left-nav': {
|
85
|
-
name: 'Left navigation',
|
86
|
-
page: 'left-nav.html',
|
87
|
-
},
|
88
|
-
'vertical-tabs': {
|
89
|
-
name: 'Vertical tabs',
|
90
|
-
page: 'vertical-tabs.html',
|
91
|
-
},
|
92
|
-
},
|
93
|
-
},
|
94
|
-
formElements: {
|
95
|
-
name: 'Form elements',
|
96
|
-
items: {
|
97
|
-
input: {
|
98
|
-
name: 'Inputs',
|
99
|
-
page: 'input.html',
|
100
|
-
},
|
101
|
-
select: {
|
102
|
-
name: 'Select',
|
103
|
-
page: 'select.html',
|
104
|
-
},
|
105
|
-
'tag-input': {
|
106
|
-
name: 'Tag Input',
|
107
|
-
page: 'tag-input.html',
|
108
|
-
},
|
109
|
-
checkbox: {
|
110
|
-
name: 'Checkbox',
|
111
|
-
page: 'checkbox.html',
|
112
|
-
},
|
113
|
-
radio: {
|
114
|
-
name: 'Radio',
|
115
|
-
page: 'radio.html',
|
116
|
-
},
|
117
|
-
switch: {
|
118
|
-
name: 'Switch',
|
119
|
-
page: 'switch.html',
|
120
|
-
},
|
121
|
-
'form-layout': {
|
122
|
-
name: 'Form layout',
|
123
|
-
page: 'form-layout.html',
|
124
|
-
},
|
125
|
-
'other-elements': {
|
126
|
-
name: 'Other form elements',
|
127
|
-
page: 'other-elements.html',
|
128
|
-
},
|
129
|
-
},
|
130
|
-
},
|
131
|
-
containers: {
|
132
|
-
name: 'Containers',
|
133
|
-
items: {
|
134
|
-
modals: {
|
135
|
-
name: 'Modals',
|
136
|
-
page: 'modals.html',
|
137
|
-
},
|
138
|
-
wizard: {
|
139
|
-
name: 'Wizard',
|
140
|
-
page: 'wizard.html',
|
141
|
-
},
|
142
|
-
carousel: {
|
143
|
-
name: 'Carousel',
|
144
|
-
page: 'carousel.html',
|
145
|
-
},
|
146
|
-
},
|
147
|
-
},
|
148
|
-
layout: {
|
149
|
-
name: 'Layout',
|
150
|
-
items: {
|
151
|
-
'basic-grid': {
|
152
|
-
name: 'Basic grid',
|
153
|
-
page: 'basic-grid.html',
|
154
|
-
},
|
155
|
-
'layout-grid': {
|
156
|
-
name: 'Layout grid',
|
157
|
-
page: 'layout-grid.html',
|
158
|
-
},
|
159
|
-
},
|
160
|
-
},
|
161
|
-
layoutElements: {
|
162
|
-
name: 'Layout elements',
|
163
|
-
items: {
|
164
|
-
'list-item': {
|
165
|
-
name: 'List item',
|
166
|
-
page: 'list-item.html',
|
167
|
-
},
|
168
|
-
'simple-list': {
|
169
|
-
name: 'Simple list',
|
170
|
-
page: 'simple-list.html',
|
171
|
-
},
|
172
|
-
toggle: {
|
173
|
-
name: 'Toggle box',
|
174
|
-
page: 'toggle.html',
|
175
|
-
},
|
176
|
-
},
|
177
|
-
},
|
178
|
-
general: {
|
179
|
-
name: 'General',
|
180
|
-
items: {
|
181
|
-
icons: {
|
182
|
-
name: 'Icon font',
|
183
|
-
page: 'icons.html',
|
184
|
-
},
|
185
|
-
'big-icons': {
|
186
|
-
name: 'Big icon font',
|
187
|
-
page: 'big-icons.html',
|
188
|
-
},
|
189
|
-
colors: {
|
190
|
-
name: 'Colors',
|
191
|
-
page: 'colors.html',
|
192
|
-
},
|
193
|
-
},
|
194
|
-
},
|
195
|
-
helpers: {
|
196
|
-
name: 'Helper classes',
|
197
|
-
items: {
|
198
|
-
spacing: {
|
199
|
-
name: 'Spacing',
|
200
|
-
page: 'spacing.html',
|
201
|
-
},
|
202
|
-
text: {
|
203
|
-
name: 'Text helpers',
|
204
|
-
page: 'text.html',
|
205
|
-
},
|
206
|
-
shadows: {
|
207
|
-
name: 'Shadows',
|
208
|
-
page: 'shadows.html',
|
209
|
-
},
|
210
|
-
},
|
211
|
-
},
|
212
|
-
}))
|
213
|
-
|
214
|
-
.factory('design', () => ({
|
215
|
-
basicComponents: {
|
216
|
-
name: 'Basic Components',
|
217
|
-
items: {
|
218
|
-
buttons: {
|
219
|
-
name: 'Buttons',
|
220
|
-
page: 'buttons.html',
|
221
|
-
},
|
222
|
-
'checkbox-and-radio': {
|
223
|
-
name: 'Checkbox & Radio',
|
224
|
-
page: 'checkbox-and-radio.html',
|
225
|
-
},
|
226
|
-
switch: {
|
227
|
-
name: 'Switch',
|
228
|
-
page: 'switch.html',
|
229
|
-
},
|
230
|
-
},
|
231
|
-
},
|
232
|
-
layoutComponents: {
|
233
|
-
name: 'Layout',
|
234
|
-
items: {
|
235
|
-
'layout-principles': {
|
236
|
-
name: 'Layout principles',
|
237
|
-
page: 'layout-principles.html',
|
238
|
-
},
|
239
|
-
'application-structure': {
|
240
|
-
name: 'Main application structure',
|
241
|
-
page: 'application-structure.html',
|
242
|
-
},
|
243
|
-
pages: {
|
244
|
-
name: 'Page layouts',
|
245
|
-
page: 'pages.html',
|
246
|
-
},
|
247
|
-
modules: {
|
248
|
-
name: 'Modules',
|
249
|
-
page: 'modules.html',
|
250
|
-
},
|
251
|
-
},
|
252
|
-
},
|
253
|
-
}))
|
254
|
-
|
255
|
-
.factory('playgrounds', () => ({
|
256
|
-
// React playgrounds
|
257
|
-
react: {
|
258
|
-
'first-playground': {
|
259
|
-
name: 'First playground',
|
260
|
-
component: 'FirstPlayground',
|
261
|
-
},
|
262
|
-
'sams-playground': {
|
263
|
-
name: 'SAMS',
|
264
|
-
component: 'SamsPlayground',
|
265
|
-
},
|
266
|
-
'test-ground': {
|
267
|
-
name: 'Test Ground',
|
268
|
-
component: 'TestGround',
|
269
|
-
},
|
270
|
-
'ui-playground': {
|
271
|
-
name: 'UI',
|
272
|
-
component: 'UiPlayground',
|
273
|
-
},
|
274
|
-
'pagelayout-test': {
|
275
|
-
name: 'PageLayout Test',
|
276
|
-
component: 'PageLayoutTest',
|
277
|
-
},
|
278
|
-
'editor-test': {
|
279
|
-
name: 'Editor Layout Test',
|
280
|
-
component: 'EditorTest',
|
281
|
-
},
|
282
|
-
'personal-profile': {
|
283
|
-
name: 'Personal Profile',
|
284
|
-
component: 'PersonalProfile',
|
285
|
-
},
|
286
|
-
'rundown-editor': {
|
287
|
-
name: 'Rundown Editor',
|
288
|
-
component: 'RundownEditor',
|
289
|
-
},
|
290
|
-
rundowns: {
|
291
|
-
name: 'Rundowns',
|
292
|
-
component: 'Rundowns',
|
293
|
-
},
|
294
|
-
'core-layout': {
|
295
|
-
name: 'Core Layout',
|
296
|
-
component: 'CoreLayout',
|
297
|
-
},
|
298
|
-
multiedit: {
|
299
|
-
name: 'Multiedit',
|
300
|
-
component: 'Multiedit',
|
301
|
-
},
|
302
|
-
},
|
303
|
-
|
304
|
-
// Publisher playgrounds
|
305
|
-
publisher: {
|
306
|
-
'publisher-dashboard': {
|
307
|
-
name: 'Dashboard',
|
308
|
-
page: 'publisher-dashboard.html',
|
309
|
-
},
|
310
|
-
'publisher-content-lists': {
|
311
|
-
name: 'Content Lists',
|
312
|
-
page: 'publisher-content-lists.html',
|
313
|
-
},
|
314
|
-
'publisher-content-list-manual': {
|
315
|
-
name: 'Content List - Manual',
|
316
|
-
page: 'publisher-content-list-manual.html',
|
317
|
-
},
|
318
|
-
'publisher-content-list-automatic': {
|
319
|
-
name: 'Content List - Automatic',
|
320
|
-
page: 'publisher-content-list-automatic.html',
|
321
|
-
},
|
322
|
-
'publisher-output-control': {
|
323
|
-
name: 'Output Control',
|
324
|
-
page: 'publisher-output-control.html',
|
325
|
-
},
|
326
|
-
'publisher-content-analytics': {
|
327
|
-
name: 'Content Analytics',
|
328
|
-
page: 'publisher-content-analytics.html',
|
329
|
-
},
|
330
|
-
'publisher-website-settings': {
|
331
|
-
name: 'Website Settings',
|
332
|
-
page: 'publisher-website-settings.html',
|
333
|
-
},
|
334
|
-
'publisher-website-settings-general': {
|
335
|
-
name: 'Website Settings - General',
|
336
|
-
page: 'publisher-website-settings-general.html',
|
337
|
-
},
|
338
|
-
},
|
339
|
-
// Superdesk playgrounds
|
340
|
-
archived: {
|
341
|
-
planning: {
|
342
|
-
name: 'Planning',
|
343
|
-
page: 'buttons.html',
|
344
|
-
},
|
345
|
-
'layout-grid': {
|
346
|
-
name: 'Layout Grid',
|
347
|
-
page: 'layout-grid.html',
|
348
|
-
},
|
349
|
-
cards: {
|
350
|
-
name: 'Cards',
|
351
|
-
page: 'cards.html',
|
352
|
-
},
|
353
|
-
'side-navigation': {
|
354
|
-
name: 'Side Navigation',
|
355
|
-
page: 'side-navigation.html',
|
356
|
-
},
|
357
|
-
'list-item-test': {
|
358
|
-
name: 'List Item Test',
|
359
|
-
page: 'list-item-test.html',
|
360
|
-
},
|
361
|
-
settings: {
|
362
|
-
name: 'Settings',
|
363
|
-
page: 'settings.html',
|
364
|
-
},
|
365
|
-
'photo-desk': {
|
366
|
-
name: 'Photo Desk',
|
367
|
-
page: 'photo-desk.html',
|
368
|
-
},
|
369
|
-
'media-carousel': {
|
370
|
-
name: 'Media Carousel',
|
371
|
-
page: 'media-carousel.html',
|
372
|
-
},
|
373
|
-
'tags-input': {
|
374
|
-
name: 'Tags Input',
|
375
|
-
page: 'tags-input.html',
|
376
|
-
},
|
377
|
-
'circular-progress': {
|
378
|
-
name: 'Circular Progress',
|
379
|
-
page: 'circular-progress.html',
|
380
|
-
},
|
381
|
-
publish: {
|
382
|
-
name: 'Publish Pane',
|
383
|
-
page: 'publish.html',
|
384
|
-
},
|
385
|
-
'swimlane-view': {
|
386
|
-
name: 'Swimlane View',
|
387
|
-
page: 'swimlane-view.html',
|
388
|
-
},
|
389
|
-
'layout-test-2': {
|
390
|
-
name: 'Layout Test',
|
391
|
-
page: 'layout-test-2.html',
|
392
|
-
},
|
393
|
-
toasts: {
|
394
|
-
name: 'Toasts',
|
395
|
-
page: 'toasts.html',
|
396
|
-
},
|
397
|
-
'form-layout': {
|
398
|
-
name: 'Form layout',
|
399
|
-
page: 'form-layout.html',
|
400
|
-
},
|
401
|
-
'boxed-list': {
|
402
|
-
name: 'Boxed-list',
|
403
|
-
page: 'boxed-list.html',
|
404
|
-
},
|
405
|
-
'video-editor': {
|
406
|
-
name: 'Video editor',
|
407
|
-
page: 'video-editor.html',
|
408
|
-
},
|
409
|
-
'nav-buttons': {
|
410
|
-
name: 'Nav buttons',
|
411
|
-
page: 'nav-buttons.html',
|
412
|
-
},
|
413
|
-
'accessible-theme-test': {
|
414
|
-
name: 'Accessible theme',
|
415
|
-
page: 'accessible-theme-test.html',
|
416
|
-
},
|
417
|
-
'master-desk': {
|
418
|
-
name: 'Master Desk',
|
419
|
-
page: 'master-desk.html',
|
420
|
-
},
|
421
|
-
'editor-3-test': {
|
422
|
-
name: 'Editor grid',
|
423
|
-
page: 'editor-3-test.html',
|
424
|
-
},
|
425
|
-
},
|
426
|
-
}))
|
427
|
-
|
428
|
-
.config(($routeProvider) => {
|
429
|
-
$routeProvider
|
430
|
-
.when('/', {
|
431
|
-
title: 'Main',
|
432
|
-
template: require('../examples/pages/main.html'),
|
433
|
-
})
|
434
|
-
.when('/design', {
|
435
|
-
template: require('../examples/pages/design.html'),
|
436
|
-
})
|
437
|
-
.when('/design/:name*', {
|
438
|
-
template: require('../examples/pages/design.html'),
|
439
|
-
})
|
440
|
-
.when('/components', {
|
441
|
-
template: require('../examples/pages/components.html'),
|
442
|
-
})
|
443
|
-
.when('/components/:name*', {
|
444
|
-
template: require('../examples/pages/components.html'),
|
445
|
-
})
|
446
|
-
.when('/design-patterns', {
|
447
|
-
template: require('../examples/pages/design-patterns.html'),
|
448
|
-
})
|
449
|
-
.when('/design-patterns/:name*', {
|
450
|
-
template: require('../examples/pages/design-patterns.html'),
|
451
|
-
})
|
452
|
-
.when('/playgrounds', {
|
453
|
-
template: require('../examples/pages/playgrounds.html'),
|
454
|
-
})
|
455
|
-
.when('/playgrounds/react/:name*', {
|
456
|
-
template: '<doc-react-playground />',
|
457
|
-
})
|
458
|
-
.when('/playgrounds/:name*', {
|
459
|
-
template: function (urlattr) {
|
460
|
-
return require('../examples/pages/playgrounds/' + urlattr.name + '.html');
|
461
|
-
},
|
462
|
-
})
|
463
|
-
|
464
|
-
.otherwise({redirectTo: '/'});
|
465
|
-
})
|
466
|
-
.run(function ($rootScope, $route) {
|
467
|
-
$rootScope.$route = $route;
|
468
|
-
});
|
package/examples/js/doc.js
DELETED
@@ -1,230 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
/* global _, PR */
|
3
|
-
|
4
|
-
import {ReactDoc, ReactPlayground, ReactThemePicker} from './../pages/components/Index';
|
5
|
-
import {DesignPatternsDoc} from './../pages/design-patterns/Index';
|
6
|
-
import {HashRouter} from 'react-router-dom';
|
7
|
-
|
8
|
-
import React from 'react';
|
9
|
-
import ReactDOM from 'react-dom';
|
10
|
-
|
11
|
-
import app from '../../package.json';
|
12
|
-
|
13
|
-
docPrettyPrint.$inject = [];
|
14
|
-
function docPrettyPrint() {
|
15
|
-
return {
|
16
|
-
restrict: 'C',
|
17
|
-
link: function (scope, element, attrs) {
|
18
|
-
// Remove leading whitespaces
|
19
|
-
var str = element[0].innerHTML;
|
20
|
-
var pos = 0;
|
21
|
-
var sum = 0;
|
22
|
-
while (str.charCodeAt(pos) === 32) {
|
23
|
-
sum = sum + 1;
|
24
|
-
pos = pos + 1;
|
25
|
-
}
|
26
|
-
var pattern = '\\s{' + sum + '}';
|
27
|
-
var spaces = new RegExp(pattern, 'g');
|
28
|
-
element[0].innerHTML = str.replace(spaces, '\n');
|
29
|
-
|
30
|
-
// Remove ng-non-bindable from code
|
31
|
-
element.find('[ng-non-bindable=""]').each(function (i, val) {
|
32
|
-
$(val).removeAttr('ng-non-bindable');
|
33
|
-
});
|
34
|
-
|
35
|
-
var langExtension = attrs['class'].match(/\blang(?:uage)?-([\w.]+)(?!\S)/);
|
36
|
-
if (langExtension) {
|
37
|
-
langExtension = langExtension[1];
|
38
|
-
}
|
39
|
-
|
40
|
-
element.html(PR.prettyPrintOne(_.escape(element.html()), langExtension, true));
|
41
|
-
},
|
42
|
-
};
|
43
|
-
}
|
44
|
-
|
45
|
-
docPlayground.$inject = ['components', 'design', 'playgrounds', '$route'];
|
46
|
-
function docPlayground(components, design, playgrounds, $route) {
|
47
|
-
return {
|
48
|
-
link: function link(scope) {
|
49
|
-
scope.version = app.version;
|
50
|
-
scope.components = components;
|
51
|
-
scope.design = design;
|
52
|
-
scope.playgrounds = playgrounds;
|
53
|
-
|
54
|
-
scope.page = $route.current.params.name;
|
55
|
-
|
56
|
-
scope.items = [{name: 'just'}, {name: 'some'}, {name: 'cool'}, {name: 'tags'}];
|
57
|
-
|
58
|
-
scope.freeItems = ['Audi', 'BMW', 'Opel', 'Hyundai'];
|
59
|
-
|
60
|
-
scope.console = function (...data) {
|
61
|
-
console.log(...data);
|
62
|
-
};
|
63
|
-
},
|
64
|
-
};
|
65
|
-
}
|
66
|
-
|
67
|
-
docTabs.$inject = [];
|
68
|
-
function docTabs() {
|
69
|
-
return {
|
70
|
-
link: function link(scope, elem, attr, ctrl) {
|
71
|
-
elem.find('.docs-page__window-bar')
|
72
|
-
.children('a')
|
73
|
-
.click(function (e) {
|
74
|
-
e.preventDefault();
|
75
|
-
$(this).addClass('active').siblings().removeClass('active');
|
76
|
-
|
77
|
-
elem.find('.docs-page__code-' + $(this).attr('id'))
|
78
|
-
.show()
|
79
|
-
.siblings()
|
80
|
-
.hide();
|
81
|
-
});
|
82
|
-
},
|
83
|
-
};
|
84
|
-
}
|
85
|
-
|
86
|
-
docNav.$inject = ['components', '$rootScope'];
|
87
|
-
function docNav(components, $rootScope) {
|
88
|
-
return {
|
89
|
-
link: function link(scope, elem, attr, ctrl) {
|
90
|
-
scope.isActive = (route) => {
|
91
|
-
return $rootScope.$route.current && $rootScope.$route.current.params.name === route;
|
92
|
-
};
|
93
|
-
},
|
94
|
-
};
|
95
|
-
}
|
96
|
-
|
97
|
-
docModal.$inject = ['$modal'];
|
98
|
-
function docModal($modal) {
|
99
|
-
return {
|
100
|
-
link: function link(scope) {
|
101
|
-
scope.modalActive = false;
|
102
|
-
|
103
|
-
scope.openModal = function (obj) {
|
104
|
-
scope[obj] = true;
|
105
|
-
};
|
106
|
-
|
107
|
-
scope.closeModal = function (obj) {
|
108
|
-
scope[obj] = false;
|
109
|
-
};
|
110
|
-
|
111
|
-
var modal;
|
112
|
-
|
113
|
-
scope.openTemplateModal = function () {
|
114
|
-
modal = $modal.open({
|
115
|
-
template: require('../pages/components_deprecated/modal-template.html'),
|
116
|
-
controller: docModalController,
|
117
|
-
size: 'large',
|
118
|
-
});
|
119
|
-
};
|
120
|
-
|
121
|
-
scope.close = function () {
|
122
|
-
modal.close('cancel');
|
123
|
-
};
|
124
|
-
|
125
|
-
function docModalController($scope) {
|
126
|
-
$scope.data = 'Element binded inside controller';
|
127
|
-
}
|
128
|
-
|
129
|
-
scope.openCarousel = function () {
|
130
|
-
scope.carouselActive = true;
|
131
|
-
};
|
132
|
-
|
133
|
-
scope.hideCarousel = function () {
|
134
|
-
scope.carouselActive = false;
|
135
|
-
};
|
136
|
-
},
|
137
|
-
};
|
138
|
-
}
|
139
|
-
|
140
|
-
docReact.$inject = [];
|
141
|
-
function docReact() {
|
142
|
-
return {
|
143
|
-
link: function (scope, elem) {
|
144
|
-
ReactDOM.render(
|
145
|
-
<HashRouter>
|
146
|
-
<ReactDoc />
|
147
|
-
</HashRouter>,
|
148
|
-
elem[0],
|
149
|
-
);
|
150
|
-
},
|
151
|
-
};
|
152
|
-
}
|
153
|
-
|
154
|
-
docDesignPatterns.$inject = [];
|
155
|
-
function docDesignPatterns() {
|
156
|
-
return {
|
157
|
-
link: function (scope, elem) {
|
158
|
-
ReactDOM.render(
|
159
|
-
<HashRouter>
|
160
|
-
<DesignPatternsDoc />
|
161
|
-
</HashRouter>,
|
162
|
-
elem[0],
|
163
|
-
);
|
164
|
-
},
|
165
|
-
};
|
166
|
-
}
|
167
|
-
|
168
|
-
docReactPlayground.$inject = ['playgrounds'];
|
169
|
-
function docReactPlayground(playgrounds) {
|
170
|
-
return {
|
171
|
-
link: function (scope, elem) {
|
172
|
-
ReactDOM.render(
|
173
|
-
<HashRouter>
|
174
|
-
<ReactPlayground playgrounds={playgrounds.react} />
|
175
|
-
</HashRouter>,
|
176
|
-
elem[0],
|
177
|
-
);
|
178
|
-
},
|
179
|
-
};
|
180
|
-
}
|
181
|
-
|
182
|
-
docThemePicker.$inject = [];
|
183
|
-
function docThemePicker() {
|
184
|
-
return {
|
185
|
-
link: function (scope, elem) {
|
186
|
-
ReactDOM.render(<ReactThemePicker />, elem[0]);
|
187
|
-
},
|
188
|
-
};
|
189
|
-
}
|
190
|
-
|
191
|
-
docGifImg.$inject = [];
|
192
|
-
function docGifImg() {
|
193
|
-
return {
|
194
|
-
scope: {
|
195
|
-
src: '@',
|
196
|
-
},
|
197
|
-
template: '<img src="{{activeImage}}" ng-click="playGif()" />',
|
198
|
-
link: function (scope) {
|
199
|
-
scope.image = scope.src.replace('.gif', '.png');
|
200
|
-
scope.animation = scope.src;
|
201
|
-
|
202
|
-
// Default settings
|
203
|
-
scope.played = false;
|
204
|
-
scope.activeImage = scope.image;
|
205
|
-
|
206
|
-
scope.playGif = () => {
|
207
|
-
if (scope.played) {
|
208
|
-
scope.activeImage = scope.image;
|
209
|
-
scope.played = false;
|
210
|
-
} else {
|
211
|
-
scope.activeImage = scope.animation;
|
212
|
-
scope.played = true;
|
213
|
-
}
|
214
|
-
};
|
215
|
-
},
|
216
|
-
};
|
217
|
-
}
|
218
|
-
|
219
|
-
export default angular
|
220
|
-
.module('ui-docs.directives', [])
|
221
|
-
.directive('prettyprint', docPrettyPrint)
|
222
|
-
.directive('docPlayground', docPlayground)
|
223
|
-
.directive('docTabs', docTabs)
|
224
|
-
.directive('docNav', docNav)
|
225
|
-
.directive('docModal', docModal)
|
226
|
-
.directive('docReact', docReact)
|
227
|
-
.directive('docDesignPatterns', docDesignPatterns)
|
228
|
-
.directive('docReactPlayground', docReactPlayground)
|
229
|
-
.directive('docThemePicker', docThemePicker)
|
230
|
-
.directive('docGifImg', docGifImg);
|