@finsemble/finsemble-ui 7.0.1 → 7.1.0
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/package.json +13 -11
- package/react/actions/favoriteActions.d.ts +1 -0
- package/react/actions/favoriteActions.js +1 -0
- package/react/actions/favoriteActions.js.map +1 -1
- package/react/actions/menuActions.d.ts +1 -0
- package/react/actions/menuActions.js +1 -0
- package/react/actions/menuActions.js.map +1 -1
- package/react/actions/rootActions.d.ts +1 -0
- package/react/actions/rootActions.js +1 -0
- package/react/actions/rootActions.js.map +1 -1
- package/react/actions/searchActions.d.ts +1 -0
- package/react/actions/searchActions.js +1 -0
- package/react/actions/searchActions.js.map +1 -1
- package/react/actions/toolbarActions.d.ts +34 -0
- package/react/actions/toolbarActions.js +17 -0
- package/react/actions/toolbarActions.js.map +1 -1
- package/react/actions/workspaceActions.d.ts +1 -0
- package/react/actions/workspaceActions.js +1 -0
- package/react/actions/workspaceActions.js.map +1 -1
- package/react/assets/css/advancedAppLauncher.css +22 -19
- package/react/assets/css/appCatalog.css +67 -72
- package/react/assets/css/authentication.css +4 -3
- package/react/assets/css/button.css +3 -10
- package/react/assets/css/core/formElements.css +1 -1
- package/react/assets/css/core/icons.css +3 -2
- package/react/assets/css/core/notifications.css +2 -2
- package/react/assets/css/core/windowFrame.css +9 -9
- package/react/assets/css/dashbar.css +1 -1
- package/react/assets/css/defaultTheme.css +9 -53
- package/react/assets/css/dialogs.css +13 -11
- package/react/assets/css/favorites.css +3 -1
- package/react/assets/css/finsemble.css +3 -2
- package/react/assets/css/font-finance.css +233 -120
- package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +10 -10
- package/react/assets/css/linkerWindow.css +2 -2
- package/react/assets/css/menus.css +10 -10
- package/react/assets/css/notificationsCenter.css +16 -31
- package/react/assets/css/processMonitor.css +7 -4
- package/react/assets/css/search.css +1 -1
- package/react/assets/css/shared/animations.css +10 -4
- package/react/assets/css/shared/common.css +2 -2
- package/react/assets/css/tags.css +10 -10
- package/react/assets/css/toolbar.css +22 -19
- package/react/assets/css/userPreferences.css +12 -14
- package/react/assets/css/windowTitleBar.css +75 -36
- package/react/componentTemplateGenerator.js +3 -2
- package/react/componentTemplateGenerator.js.map +1 -1
- package/react/components/FinsembleProvider.d.ts +7 -0
- package/react/components/FinsembleProvider.js +2 -0
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalog.d.ts +4 -0
- package/react/components/appCatalog/AppCatalog.js +4 -0
- package/react/components/appCatalog/AppCatalog.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.d.ts +58 -0
- package/react/components/appCatalog/AppCatalogComponent.js +70 -1
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppCard.d.ts +35 -0
- package/react/components/appCatalog/components/AppCard.js +42 -0
- package/react/components/appCatalog/components/AppCard.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.d.ts +10 -0
- package/react/components/appCatalog/components/AppResults.js +24 -0
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.d.ts +26 -0
- package/react/components/appCatalog/components/Carousel.js +34 -0
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.d.ts +4 -0
- package/react/components/appCatalog/components/EmptyResults.js +8 -0
- package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
- package/react/components/appCatalog/components/Hero.d.ts +15 -0
- package/react/components/appCatalog/components/Hero.js +15 -0
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.d.ts +6 -4
- package/react/components/appCatalog/components/Home.js +10 -0
- package/react/components/appCatalog/components/Home.js.map +1 -1
- package/react/components/appCatalog/components/SearchBar.d.ts +31 -0
- package/react/components/appCatalog/components/SearchBar.js +33 -0
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +5 -0
- package/react/components/appCatalog/components/Showcase/AppDescription.js +9 -0
- package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +7 -0
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js +15 -0
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts +17 -0
- package/react/components/appCatalog/components/Showcase/AppShowcase.js +25 -0
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.d.ts +7 -0
- package/react/components/appCatalog/components/Showcase/Header.js +12 -0
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +7 -0
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js +11 -0
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.d.ts +10 -0
- package/react/components/appCatalog/components/Showcase/Modal.js +10 -0
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.d.ts +5 -0
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js +9 -0
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +6 -0
- package/react/components/appCatalog/components/Showcase/SupportNotes.js +11 -0
- package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/VersionNotes.d.ts +5 -0
- package/react/components/appCatalog/components/Showcase/VersionNotes.js +9 -0
- package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
- package/react/components/appCatalog/components/Tag.d.ts +6 -0
- package/react/components/appCatalog/components/Tag.js +10 -0
- package/react/components/appCatalog/components/Tag.js.map +1 -1
- package/react/components/appCatalog/components/Toast.d.ts +5 -0
- package/react/components/appCatalog/components/Toast.js +9 -0
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/components/helpers.js +1 -0
- package/react/components/appCatalog/components/helpers.js.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.d.ts +5 -0
- package/react/components/appCatalog/modules/AppDirectory.js +5 -0
- package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
- package/react/components/appCatalog/modules/FDC3.d.ts +37 -0
- package/react/components/appCatalog/modules/FDC3.js +40 -0
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.js +1 -0
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.d.ts +91 -0
- package/react/components/appCatalog/stores/storeActions.js +116 -1
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +1 -0
- package/react/components/common/Checkbox.js +2 -2
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ColorPicker.d.ts +5 -0
- package/react/components/common/ColorPicker.js +40 -0
- package/react/components/common/ColorPicker.js.map +1 -1
- package/react/components/common/DropZone.d.ts +11 -0
- package/react/components/common/DropZone.js +21 -1
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/DropdownButton.d.ts +4 -0
- package/react/components/common/DropdownButton.js +4 -0
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/ErrorBoundary.d.ts +18 -0
- package/react/components/common/ErrorBoundary.js +21 -0
- package/react/components/common/ErrorBoundary.js.map +1 -1
- package/react/components/common/FileInput.d.ts +8 -1
- package/react/components/common/FileInput.js +19 -4
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +10 -0
- package/react/components/common/FinsembleIcon.js +51 -2
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js +5 -1
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/FinsembleToggleButtonBar.js +1 -1
- package/react/components/common/FinsembleToggleButtonBar.js.map +1 -1
- package/react/components/common/InputTable.d.ts +7 -0
- package/react/components/common/InputTable.js +7 -0
- package/react/components/common/InputTable.js.map +1 -1
- package/react/components/common/Tab.js +3 -0
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/TimeSelect.js +24 -0
- package/react/components/common/TimeSelect.js.map +1 -1
- package/react/components/common/Tooltip.js +2 -0
- package/react/components/common/Tooltip.js.map +1 -1
- package/react/components/common/css/accordion.css +9 -6
- package/react/components/common/css/application-edit-page.css +39 -44
- package/react/components/common/css/button.css +10 -5
- package/react/components/common/css/color-picker.css +3 -3
- package/react/components/common/css/drop-zone.css +2 -6
- package/react/components/common/css/file-input.css +5 -5
- package/react/components/common/css/header.css +3 -2
- package/react/components/common/css/icon.css +1 -1
- package/react/components/common/css/loading-spinner.css +7 -12
- package/react/components/common/css/selector.css +4 -4
- package/react/components/common/css/styles.css +22 -16
- package/react/components/common/css/tab.css +8 -8
- package/react/components/common/css/time-select.css +1 -0
- package/react/components/common/css/toggle.css +4 -4
- package/react/components/common/css/tooltip.css +2 -3
- package/react/components/common/file_helpers.js +2 -0
- package/react/components/common/file_helpers.js.map +1 -1
- package/react/components/common/helpers.js +1 -0
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/ColorPicker.stories.js +3 -0
- package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
- package/react/components/common/stories/FileInput.stories.d.ts +3 -1
- package/react/components/common/stories/FileInput.stories.js +12 -0
- package/react/components/common/stories/FileInput.stories.js.map +1 -1
- package/react/components/common/tests/Accordion.spec.js +6 -0
- package/react/components/common/tests/Accordion.spec.js.map +1 -1
- package/react/components/common/tests/Checkbox.spec.js +1 -0
- package/react/components/common/tests/Checkbox.spec.js.map +1 -1
- package/react/components/common/tests/ColorPicker.spec.js +6 -0
- package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
- package/react/components/common/tests/DropZone.spec.js +1 -0
- package/react/components/common/tests/DropZone.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +22 -0
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js +1 -0
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +1 -0
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggleButtonBar.spec.js +1 -0
- package/react/components/common/tests/FinsembleToggleButtonBar.spec.js.map +1 -1
- package/react/components/common/tests/TimeSelect.spec.js +4 -0
- package/react/components/common/tests/TimeSelect.spec.js.map +1 -1
- package/react/components/common/tests/Tooltip.spec.js +16 -0
- package/react/components/common/tests/Tooltip.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.d.ts +8 -0
- package/react/components/favorites/FavoriteMaker.js +9 -0
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.d.ts +4 -0
- package/react/components/favorites/FavoritesShell.js +13 -1
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js +3 -0
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +8 -0
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.css +16 -3
- package/react/components/fdc3Resolver/ResolverDialog.js +7 -2
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +3 -2
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js +2 -0
- package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
- package/react/components/icon/Icon.d.ts +13 -0
- package/react/components/icon/Icon.js +34 -0
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.d.ts +4 -0
- package/react/components/legacyControls/FinsembleDialog.js +15 -0
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.d.ts +3 -0
- package/react/components/legacyControls/FinsembleDialogButton.js +6 -1
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.d.ts +7 -0
- package/react/components/legacyControls/FinsembleDialogQuestion.js +7 -0
- package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +3 -0
- package/react/components/legacyControls/FinsembleDialogTextInput.js +14 -0
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.d.ts +19 -0
- package/react/components/legacyControls/FinsembleDnDContext.js +126 -1
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.d.ts +3 -0
- package/react/components/legacyControls/FinsembleDraggable.js +3 -0
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/legacyControls/FinsembleHoverDetector.d.ts +15 -0
- package/react/components/legacyControls/FinsembleHoverDetector.js +26 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
- package/react/components/legacyControls/FinsembleMenuSection.d.ts +4 -0
- package/react/components/legacyControls/FinsembleMenuSection.js +38 -0
- package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js +1 -0
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -0
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.d.ts +3 -0
- package/react/components/linker/LinkerMenu.js +21 -0
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.d.ts +3 -0
- package/react/components/linker/LinkerMenuDeprecated.js +9 -0
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/menu/Menu.d.ts +15 -0
- package/react/components/menu/Menu.js +15 -0
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.d.ts +7 -0
- package/react/components/menu/MenuAutoResizer.js +27 -0
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuContent.d.ts +4 -0
- package/react/components/menu/MenuContent.js +4 -0
- package/react/components/menu/MenuContent.js.map +1 -1
- package/react/components/menu/MenuHotKey.d.ts +14 -0
- package/react/components/menu/MenuHotKey.js +15 -0
- package/react/components/menu/MenuHotKey.js.map +1 -1
- package/react/components/menu/MenuItem.d.ts +8 -0
- package/react/components/menu/MenuItem.js +13 -2
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.js +112 -2
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuShell.d.ts +16 -0
- package/react/components/menu/MenuShell.js +26 -0
- package/react/components/menu/MenuShell.js.map +1 -1
- package/react/components/menu/MenuToggle.d.ts +3 -0
- package/react/components/menu/MenuToggle.js +3 -0
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/keyboardNavigation.d.ts +12 -0
- package/react/components/menu/keyboardNavigation.js +55 -0
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/menu/menuContext.d.ts +6 -0
- package/react/components/menu/menuContext.js +6 -0
- package/react/components/menu/menuContext.js.map +1 -1
- package/react/components/menu/menuHelpers.d.ts +22 -0
- package/react/components/menu/menuHelpers.js +58 -1
- package/react/components/menu/menuHelpers.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js +8 -0
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerHeader.js +5 -0
- package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +18 -0
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +3 -0
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js +1 -1
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +9 -0
- package/react/components/notifications/components/shared/NotificationCardShell.js +13 -6
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.d.ts +4 -0
- package/react/components/notifications/components/shared/OverflowMenu.js +16 -2
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js +3 -0
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.js +8 -0
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/notificationsContext.d.ts +4 -0
- package/react/components/notifications/notificationsContext.js +4 -0
- package/react/components/notifications/notificationsContext.js.map +1 -1
- package/react/components/notifications/types.d.ts +3 -0
- package/react/components/notifications/utils.d.ts +4 -0
- package/react/components/notifications/utils.js +4 -0
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts +3 -0
- package/react/components/processMonitor/ProcessMonitor.js +17 -2
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +3 -0
- package/react/components/processMonitor/components/ChildWindow.js +5 -0
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +5 -0
- package/react/components/processMonitor/components/ListHeader.js +7 -0
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +12 -1
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.js +6 -0
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +13 -0
- package/react/components/processMonitor/helpers.js +23 -3
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +39 -0
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +50 -0
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.d.ts +3 -0
- package/react/components/quickComponentForm/QuickComponentForm.js +20 -0
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/quickComponentForm/quickComponent.css +1 -1
- package/react/components/sdd/AddApp.d.ts +4 -2
- package/react/components/sdd/AddApp.js +57 -49
- package/react/components/sdd/AddApp.js.map +1 -1
- package/react/components/sdd/AppEditAccess.js +8 -0
- package/react/components/sdd/AppEditAccess.js.map +1 -1
- package/react/components/sdd/AppEditPage.d.ts +2 -1
- package/react/components/sdd/AppEditPage.js +148 -361
- package/react/components/sdd/AppEditPage.js.map +1 -1
- package/react/components/sdd/Appearance.css +1 -1
- package/react/components/sdd/Appearance.js +3 -0
- package/react/components/sdd/Appearance.js.map +1 -1
- package/react/components/sdd/Application.js +39 -7
- package/react/components/sdd/Application.js.map +1 -1
- package/react/components/sdd/Applications.js +89 -13
- package/react/components/sdd/Applications.js.map +1 -1
- package/react/components/sdd/AssetsPage.css +3 -3
- package/react/components/sdd/EditPreload.js +10 -0
- package/react/components/sdd/EditPreload.js.map +1 -1
- package/react/components/sdd/ExportCloud.js +4 -0
- package/react/components/sdd/ExportCloud.js.map +1 -1
- package/react/components/sdd/Publish.js +2 -0
- package/react/components/sdd/Publish.js.map +1 -1
- package/react/components/sdd/PublishProgress.js +11 -1
- package/react/components/sdd/PublishProgress.js.map +1 -1
- package/react/components/sdd/SmartDesktopDesigner.js +17 -0
- package/react/components/sdd/SmartDesktopDesigner.js.map +1 -1
- package/react/components/sdd/ThemePage.css +6 -23
- package/react/components/sdd/ThemePage.js +1 -1
- package/react/components/sdd/ThemePage.js.map +1 -1
- package/react/components/sdd/Themes.js +2 -0
- package/react/components/sdd/Themes.js.map +1 -1
- package/react/components/sdd/Toolbar.js +7 -0
- package/react/components/sdd/Toolbar.js.map +1 -1
- package/react/components/sdd/appEditPage/Behavior.d.ts +34 -0
- package/react/components/sdd/appEditPage/Behavior.js +134 -0
- package/react/components/sdd/appEditPage/Behavior.js.map +1 -0
- package/react/components/sdd/appEditPage/Component.d.ts +22 -0
- package/react/components/sdd/appEditPage/Component.js +76 -0
- package/react/components/sdd/appEditPage/Component.js.map +1 -0
- package/react/components/sdd/appEditPage/DebugToolkit.d.ts +9 -0
- package/react/components/sdd/appEditPage/DebugToolkit.js +20 -0
- package/react/components/sdd/appEditPage/DebugToolkit.js.map +1 -0
- package/react/components/sdd/appEditPage/Interop.d.ts +10 -0
- package/react/components/sdd/appEditPage/Interop.js +40 -0
- package/react/components/sdd/appEditPage/Interop.js.map +1 -0
- package/react/components/sdd/appEditPage/Position.d.ts +18 -0
- package/react/components/sdd/appEditPage/Position.js +72 -0
- package/react/components/sdd/appEditPage/Position.js.map +1 -0
- package/react/components/sdd/appEditPage/Preloads.d.ts +9 -0
- package/react/components/sdd/appEditPage/Preloads.js +16 -0
- package/react/components/sdd/appEditPage/Preloads.js.map +1 -0
- package/react/components/sdd/appEditPage/SelectConnect.d.ts +15 -0
- package/react/components/sdd/appEditPage/SelectConnect.js +28 -0
- package/react/components/sdd/appEditPage/SelectConnect.js.map +1 -0
- package/react/components/sdd/appEditPage/Workspace.d.ts +12 -0
- package/react/components/sdd/appEditPage/Workspace.js +30 -0
- package/react/components/sdd/appEditPage/Workspace.js.map +1 -0
- package/react/components/sdd/common/getCSSVars.js +7 -2
- package/react/components/sdd/common/getCSSVars.js.map +1 -1
- package/react/components/sdd/common/setPreloadDefaults.js +4 -0
- package/react/components/sdd/common/setPreloadDefaults.js.map +1 -1
- package/react/components/sdd/css/addApp.css +18 -5
- package/react/components/sdd/css/appearance.css +6 -0
- package/react/components/sdd/css/applications.css +27 -14
- package/react/components/sdd/css/authentication.css +7 -6
- package/react/components/sdd/css/buttons.css +1 -1
- package/react/components/sdd/css/export.css +5 -3
- package/react/components/sdd/css/getting-started.css +2 -2
- package/react/components/sdd/css/nav.css +8 -11
- package/react/components/sdd/css/project-header.css +5 -7
- package/react/components/sdd/css/styles.css +29 -23
- package/react/components/sdd/css/views.css +4 -3
- package/react/components/sdd/fixtures/apps.js +12 -0
- package/react/components/sdd/fixtures/apps.js.map +1 -1
- package/react/components/sdd/fixtures/configTemplate.js +1 -0
- package/react/components/sdd/fixtures/configTemplate.js.map +1 -1
- package/react/components/sdd/fixtures/publishProgress.js +40 -0
- package/react/components/sdd/fixtures/publishProgress.js.map +1 -1
- package/react/components/sdd/sdd_helpers.d.ts +6 -0
- package/react/components/sdd/sdd_helpers.js +6 -0
- package/react/components/sdd/sdd_helpers.js.map +1 -1
- package/react/components/sdd/smartDesktopClient.d.ts +303 -0
- package/react/components/sdd/smartDesktopClient.js +334 -1
- package/react/components/sdd/smartDesktopClient.js.map +1 -1
- package/react/components/sdd/smartDesktopClient.spec.js +5 -2
- package/react/components/sdd/smartDesktopClient.spec.js.map +1 -1
- package/react/components/sdd/stories/AddApp.stories.d.ts +2 -1
- package/react/components/sdd/stories/AddApp.stories.js +8 -0
- package/react/components/sdd/stories/AddApp.stories.js.map +1 -1
- package/react/components/sdd/stories/AppEditPage.stories.d.ts +3 -1
- package/react/components/sdd/stories/AppEditPage.stories.js +3 -0
- package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/sdd/stories/Appearance.stories.js +1 -0
- package/react/components/sdd/stories/Appearance.stories.js.map +1 -1
- package/react/components/sdd/tests/AddApp.spec.js +40 -3
- package/react/components/sdd/tests/AddApp.spec.js.map +1 -1
- package/react/components/sdd/tests/AppEditPage.spec.js +16 -0
- package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/sdd/tests/Application.spec.js +33 -438
- package/react/components/sdd/tests/Application.spec.js.map +1 -1
- package/react/components/sdd/tests/Applications.spec.d.ts +1 -1
- package/react/components/sdd/tests/Applications.spec.js +29 -5
- package/react/components/sdd/tests/Applications.spec.js.map +1 -1
- package/react/components/sdd/tests/Authentication.spec.js +7 -0
- package/react/components/sdd/tests/Authentication.spec.js.map +1 -1
- package/react/components/sdd/tests/ContentHeader.spec.js +2 -0
- package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -1
- package/react/components/sdd/tests/EditPreload.spec.js +13 -0
- package/react/components/sdd/tests/EditPreload.spec.js.map +1 -1
- package/react/components/sdd/tests/Export.spec.js +2 -1
- package/react/components/sdd/tests/Export.spec.js.map +1 -1
- package/react/components/sdd/tests/ItemList.spec.js +4 -0
- package/react/components/sdd/tests/ItemList.spec.js.map +1 -1
- package/react/components/sdd/tests/OptionalSettingsView.spec.js +29 -0
- package/react/components/sdd/tests/OptionalSettingsView.spec.js.map +1 -1
- package/react/components/sdd/tests/ProjectErrors.spec.js +2 -0
- package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -1
- package/react/components/sdd/tests/Themes.spec.js +1 -1
- package/react/components/sdd/tests/Themes.spec.js.map +1 -1
- package/react/components/sdd/tests/Toolbar.spec.js +53 -0
- package/react/components/sdd/tests/Toolbar.spec.js.map +1 -1
- package/react/components/sdd/tests/a11y_helper.js +8 -0
- package/react/components/sdd/tests/a11y_helper.js.map +1 -1
- package/react/components/search/Highlight.d.ts +6 -0
- package/react/components/search/Highlight.js +19 -0
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/SearchBestMatch.d.ts +4 -0
- package/react/components/search/SearchBestMatch.js +11 -0
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchInput.d.ts +5 -0
- package/react/components/search/SearchInput.js +6 -0
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchProviderResults.js +2 -0
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.js +6 -0
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResult.spec.js +7 -0
- package/react/components/search/SearchResult.spec.js.map +1 -1
- package/react/components/search/SearchResult.stories.js +4 -0
- package/react/components/search/SearchResult.stories.js.map +1 -1
- package/react/components/search/SearchResults.js +5 -1
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/search/SearchResults.spec.js +7 -0
- package/react/components/search/SearchResults.spec.js.map +1 -1
- package/react/components/shared/Animate.d.ts +5 -0
- package/react/components/shared/Animate.js +12 -1
- package/react/components/shared/Animate.js.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js +9 -0
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/Tag.d.ts +0 -4
- package/react/components/shared/Tag.js +4 -0
- package/react/components/shared/Tag.js.map +1 -1
- package/react/components/shared/TagsMenu.d.ts +6 -0
- package/react/components/shared/TagsMenu.js +7 -0
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.d.ts +6 -0
- package/react/components/shared/addProtocolToValidURL.js +6 -0
- package/react/components/shared/addProtocolToValidURL.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +4 -4
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/shared/tests/addProtocolToValidURL.spec.js +1 -0
- package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
- package/react/components/shared/validateURL.d.ts +18 -0
- package/react/components/shared/validateURL.js +24 -5
- package/react/components/shared/validateURL.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.css +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.d.ts +3 -0
- package/react/components/singleInputDialog/SingleInputDialog.js +44 -0
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +6 -0
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/system/System.d.ts +22 -0
- package/react/components/system/System.js +23 -1
- package/react/components/system/System.js.map +1 -1
- package/react/components/system/System.stories.js +1 -0
- package/react/components/system/System.stories.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.d.ts +6 -0
- package/react/components/system/SystemTrayComponentShell.js +9 -0
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/toolbar/AutoArrange.d.ts +5 -0
- package/react/components/toolbar/AutoArrange.js +8 -1
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/AutoArrange.spec.js +1 -0
- package/react/components/toolbar/AutoArrange.spec.js.map +1 -1
- package/react/components/toolbar/AutoArrange.stories.js +1 -0
- package/react/components/toolbar/AutoArrange.stories.js.map +1 -1
- package/react/components/toolbar/DragHandle.d.ts +4 -0
- package/react/components/toolbar/DragHandle.js +11 -0
- package/react/components/toolbar/DragHandle.js.map +1 -1
- package/react/components/toolbar/DragHandle.spec.js +1 -0
- package/react/components/toolbar/DragHandle.spec.js.map +1 -1
- package/react/components/toolbar/DragHandle.stories.js +1 -0
- package/react/components/toolbar/DragHandle.stories.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.d.ts +4 -0
- package/react/components/toolbar/MinimizeAll.js +7 -1
- package/react/components/toolbar/MinimizeAll.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.spec.js +1 -0
- package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.stories.js +1 -0
- package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
- package/react/components/toolbar/NotificationControl.d.ts +5 -0
- package/react/components/toolbar/NotificationControl.js +8 -1
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.d.ts +4 -0
- package/react/components/toolbar/RevealAll.js +7 -1
- package/react/components/toolbar/RevealAll.js.map +1 -1
- package/react/components/toolbar/RevealAll.spec.js +1 -0
- package/react/components/toolbar/RevealAll.spec.js.map +1 -1
- package/react/components/toolbar/RevealAll.stories.js +1 -0
- package/react/components/toolbar/RevealAll.stories.js.map +1 -1
- package/react/components/toolbar/SddButton.d.ts +4 -0
- package/react/components/toolbar/SddButton.js +4 -0
- package/react/components/toolbar/SddButton.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.d.ts +4 -0
- package/react/components/toolbar/ToolbarIcon.js +4 -0
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.d.ts +7 -0
- package/react/components/toolbar/ToolbarSection.js +19 -1
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.d.ts +5 -0
- package/react/components/toolbar/ToolbarShell.js +7 -0
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +16 -0
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js +20 -0
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.d.ts +52 -0
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js +58 -0
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.d.ts +5 -0
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js +5 -0
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.d.ts +27 -0
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js +49 -0
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +13 -0
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +14 -0
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +5 -0
- package/react/components/toolbar/advancedAppLauncher/components/Content.js +19 -0
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.d.ts +4 -0
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js +4 -0
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +16 -0
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +39 -0
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts +4 -0
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +9 -0
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js +3 -0
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.d.ts +6 -0
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js +7 -0
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.d.ts +5 -0
- package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js +5 -0
- package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.d.ts +5 -0
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js +5 -0
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.d.ts +37 -0
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js +40 -0
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.d.ts +3 -0
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +82 -0
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.d.ts +10 -0
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +11 -0
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +18 -0
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +20 -0
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +9 -0
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +12 -0
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/appLauncher.css +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +3 -0
- package/react/components/toolbar/appLauncher/components/componentList.js +17 -3
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +6 -0
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +26 -0
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +70 -3
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +5 -0
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +7 -0
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +7 -0
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +16 -0
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js +20 -0
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +26 -0
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +29 -0
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +5 -0
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +6 -0
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +76 -0
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +140 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +8 -18
- package/react/components/userPreferences/NotificationsPreferencesContext.d.ts +4 -0
- package/react/components/userPreferences/NotificationsPreferencesContext.js +4 -0
- package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.d.ts +3 -0
- package/react/components/userPreferences/UserPreferences.d.ts +8 -0
- package/react/components/userPreferences/UserPreferences.js +8 -0
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js +4 -0
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.d.ts +5 -0
- package/react/components/userPreferences/components/LeftNav.d.ts +4 -0
- package/react/components/userPreferences/components/content/DashbarEditor.js +3 -0
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js +3 -0
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +12 -0
- package/react/components/userPreferences/components/content/Workspaces.js +36 -3
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +3 -0
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +3 -0
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +3 -0
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +11 -0
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +20 -10
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +17 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.js +27 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js +1 -0
- package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
- package/react/components/userPreferences/tests/Workspace.spec.js +20 -0
- package/react/components/userPreferences/tests/Workspace.spec.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +111 -0
- package/react/components/windowTitleBar/WindowTitleBarShell.js +218 -47
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +3 -0
- package/react/components/windowTitleBar/components/center/Tab.js +3 -0
- package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +90 -0
- package/react/components/windowTitleBar/components/center/TabList.js +170 -4
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.d.ts +9 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js +25 -9
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +47 -0
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +76 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts +4 -0
- package/react/components/windowTitleBar/components/left/LinkerGroups.js +5 -0
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +18 -0
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +49 -0
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts +17 -0
- package/react/components/windowTitleBar/components/left/ShareButton.js +39 -0
- package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +4 -0
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts +27 -0
- package/react/components/windowTitleBar/components/right/CloseButton.js +27 -0
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +37 -0
- package/react/components/windowTitleBar/components/right/GroupingButton.js +40 -0
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +46 -0
- package/react/components/windowTitleBar/components/right/MaximizeButton.js +54 -0
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +26 -0
- package/react/components/windowTitleBar/components/right/MinimizeButton.js +26 -0
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +40 -0
- package/react/components/windowTitleBar/components/windowTitle.js +172 -10
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +5 -0
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +72 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.css +1 -1
- package/react/components/yesNoDialog/YesNoDialog.d.ts +3 -0
- package/react/components/yesNoDialog/YesNoDialog.js +63 -0
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js +4 -0
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/components/yesNoDialog/timer.js +2 -0
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/enzymeSetup.js +5 -0
- package/react/enzymeSetup.js.map +1 -1
- package/react/hooks/useDashbar.js +10 -0
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useDeepEffect.d.ts +4 -0
- package/react/hooks/useDeepEffect.js +21 -0
- package/react/hooks/useDeepEffect.js.map +1 -1
- package/react/hooks/useFavorites.d.ts +15 -0
- package/react/hooks/useFavorites.js +3 -0
- package/react/hooks/useFavorites.js.map +1 -1
- package/react/hooks/useFavoritesShell.d.ts +4 -0
- package/react/hooks/useFavoritesShell.js +23 -0
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useHotkey.d.ts +6 -0
- package/react/hooks/useHotkey.js +9 -0
- package/react/hooks/useHotkey.js.map +1 -1
- package/react/hooks/useLinker.js +14 -0
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.d.ts +29 -0
- package/react/hooks/useMenu.js +12 -1
- package/react/hooks/useMenu.js.map +1 -1
- package/react/hooks/useNotifications.d.ts +44 -0
- package/react/hooks/useNotifications.js +100 -4
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useOutsideClickDetector.d.ts +3 -0
- package/react/hooks/useOutsideClickDetector.js +3 -0
- package/react/hooks/useOutsideClickDetector.js.map +1 -1
- package/react/hooks/usePubSub.d.ts +17 -0
- package/react/hooks/usePubSub.js +18 -0
- package/react/hooks/usePubSub.js.map +1 -1
- package/react/hooks/useSearch.d.ts +5 -0
- package/react/hooks/useSearch.js +30 -0
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js +52 -0
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/reducers/favoriteReducer.d.ts +3 -0
- package/react/reducers/linkerReducer.d.ts +3 -0
- package/react/reducers/linkerReducer.js +4 -0
- package/react/reducers/linkerReducer.js.map +1 -1
- package/react/reducers/menuReducer.d.ts +28 -0
- package/react/reducers/menuReducer.js +34 -0
- package/react/reducers/menuReducer.js.map +1 -1
- package/react/reducers/rootReducer.js +3 -0
- package/react/reducers/rootReducer.js.map +1 -1
- package/react/reducers/searchReducer.d.ts +7 -0
- package/react/reducers/searchReducer.js +6 -0
- package/react/reducers/searchReducer.js.map +1 -1
- package/react/reducers/workspaceReducer.js +1 -0
- package/react/reducers/workspaceReducer.js.map +1 -1
- package/react/store.d.ts +4 -0
- package/react/store.js +11 -0
- package/react/store.js.map +1 -1
- package/react/tsconfig.tsbuildinfo +1 -1
- package/react/types/fdc3.d.ts +2 -0
- package/react/types/linkerTypes.d.ts +13 -0
- package/react/types/linkerTypes.js +1 -0
- package/react/types/linkerTypes.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +5 -0
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/workspaceTypes.d.ts +8 -0
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React, { Component } from "react";
|
|
6
|
+
//data
|
|
2
7
|
import storeActions from "../stores/storeActions";
|
|
8
|
+
//components
|
|
3
9
|
import AppCard from "./AppCard";
|
|
10
|
+
//consts
|
|
4
11
|
const CARDS_PER_PAGE = 2;
|
|
12
|
+
/**
|
|
13
|
+
* A carousel of AppCards
|
|
14
|
+
* @param {object} props Component props
|
|
15
|
+
* @param {array} props.cards An array of AppCards to display in a carousel
|
|
16
|
+
* @param {string} props.tag The carousel's tag (title)
|
|
17
|
+
* @param {func} props.openAppShowcase Parent function to show the AppShowcase for the selected card
|
|
18
|
+
*/
|
|
5
19
|
export default class Carousel extends Component {
|
|
6
20
|
constructor(props) {
|
|
7
21
|
super(props);
|
|
@@ -21,8 +35,12 @@ export default class Carousel extends Component {
|
|
|
21
35
|
this.notEnoughCards = this.notEnoughCards.bind(this);
|
|
22
36
|
this.buildCarousel = this.buildCarousel.bind(this);
|
|
23
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Pages through the carousel by one card (right)
|
|
40
|
+
*/
|
|
24
41
|
pageUp() {
|
|
25
42
|
let index = this.state.firstIndex;
|
|
43
|
+
//If increasing the carousel's first index will move beyond the array's limits, we reset back to zero
|
|
26
44
|
if (index + 1 <= this.props.cards.length - 1) {
|
|
27
45
|
index++;
|
|
28
46
|
}
|
|
@@ -30,6 +48,9 @@ export default class Carousel extends Component {
|
|
|
30
48
|
firstIndex: index,
|
|
31
49
|
});
|
|
32
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Pages through the carousel by one card (left)
|
|
53
|
+
*/
|
|
33
54
|
pageDown() {
|
|
34
55
|
let index = this.state.firstIndex;
|
|
35
56
|
if (index - 1 >= 0) {
|
|
@@ -38,17 +59,30 @@ export default class Carousel extends Component {
|
|
|
38
59
|
});
|
|
39
60
|
}
|
|
40
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Toggles the highlight on a carousel's title. When a user mouses over, we want to style it so its obvious its a link
|
|
64
|
+
* @param {*} highlight
|
|
65
|
+
*/
|
|
41
66
|
highlightTitle(highlight) {
|
|
42
67
|
this.setState({
|
|
43
68
|
titleHighlighted: highlight,
|
|
44
69
|
});
|
|
45
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Calls the parents seeMore function, which will add the selected tag as a filter
|
|
73
|
+
*/
|
|
46
74
|
seeMore() {
|
|
47
75
|
storeActions.addTag(this.props.tag);
|
|
48
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Spits out a warning if the number of cards supplied to the carousel is < 3
|
|
79
|
+
*/
|
|
49
80
|
notEnoughCards() {
|
|
50
81
|
console.warn("Less than 3 card supplied. This carousel will not display optimally");
|
|
51
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Function to build the items in the carousel
|
|
85
|
+
*/
|
|
52
86
|
buildCarousel() {
|
|
53
87
|
let { cards } = this.props;
|
|
54
88
|
let firstCard = this.state.firstIndex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Carousel.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Carousel.jsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM;AACN,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,YAAY;AACZ,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,QAAQ;AACR,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS;IAC9C,YAAY,KAAK;QAChB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,UAAU,EAAE,CAAC;YACb,gBAAgB,EAAE,KAAK;SACvB,CAAC;QACF,I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E,EAAE,CAAC,CAC9B,oBAAC,OAAO,kBAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAM,IAAI,IAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,IAAI,CACtG,CAAC;gBACD,YAAY,CAAC,MAAM,KAAK,CAAC,IAAI,6BAAK,SAAS,EAAC,sBAAsB,GAAO;gBAAE,GAAG;gBAE/E,2BAAG,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,GAAI,CACtD,CACD,CACN,CAAC;IACH,CAAC;CACD","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React, { Component } from \"react\";\n\n//data\nimport storeActions from \"../stores/storeActions\";\n\n//components\nimport AppCard from \"./AppCard\";\n\n//consts\nconst CARDS_PER_PAGE = 2;\n\n/**\n * A carousel of AppCards\n * @param {object} props Component props\n * @param {array} props.cards An array of AppCards to display in a carousel\n * @param {string} props.tag The carousel's tag (title)\n * @param {func} props.openAppShowcase Parent function to show the AppShowcase for the selected card\n */\nexport default class Carousel extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tfirstIndex: 0,\n\t\t\ttitleHighlighted: false,\n\t\t};\n\t\tthis.bindCorrectContext();\n\t\tif (this.props.cards.length < 3) this.notEnoughCards();\n\t}\n\n\tbindCorrectContext() {\n\t\tthis.pageUp = this.pageUp.bind(this);\n\t\tthis.pageDown = this.pageDown.bind(this);\n\t\tthis.highlightTitle = this.highlightTitle.bind(this);\n\t\tthis.seeMore = this.seeMore.bind(this);\n\t\tthis.notEnoughCards = this.notEnoughCards.bind(this);\n\t\tthis.buildCarousel = this.buildCarousel.bind(this);\n\t}\n\n\t/**\n\t * Pages through the carousel by one card (right)\n\t */\n\tpageUp() {\n\t\tlet index = this.state.firstIndex;\n\n\t\t//If increasing the carousel's first index will move beyond the array's limits, we reset back to zero\n\t\tif (index + 1 <= this.props.cards.length - 1) {\n\t\t\tindex++;\n\t\t}\n\n\t\tthis.setState({\n\t\t\tfirstIndex: index,\n\t\t});\n\t}\n\n\t/**\n\t * Pages through the carousel by one card (left)\n\t */\n\tpageDown() {\n\t\tlet index = this.state.firstIndex;\n\t\tif (index - 1 >= 0) {\n\t\t\tthis.setState({\n\t\t\t\tfirstIndex: index - 1,\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Toggles the highlight on a carousel's title. When a user mouses over, we want to style it so its obvious its a link\n\t * @param {*} highlight\n\t */\n\thighlightTitle(highlight) {\n\t\tthis.setState({\n\t\t\ttitleHighlighted: highlight,\n\t\t});\n\t}\n\n\t/**\n\t * Calls the parents seeMore function, which will add the selected tag as a filter\n\t */\n\tseeMore() {\n\t\tstoreActions.addTag(this.props.tag);\n\t}\n\n\t/**\n\t * Spits out a warning if the number of cards supplied to the carousel is < 3\n\t */\n\tnotEnoughCards() {\n\t\tconsole.warn(\"Less than 3 card supplied. This carousel will not display optimally\");\n\t}\n\n\t/**\n\t * Function to build the items in the carousel\n\t */\n\tbuildCarousel() {\n\t\tlet { cards } = this.props;\n\t\tlet firstCard = this.state.firstIndex;\n\n\t\tlet displayCards = [];\n\t\tfor (let i = 0; i < CARDS_PER_PAGE; i++) {\n\t\t\tif (firstCard >= 0 && firstCard <= cards.length - 1) {\n\t\t\t\tdisplayCards.push(cards[firstCard]);\n\t\t\t\tfirstCard++;\n\t\t\t}\n\t\t}\n\n\t\treturn displayCards;\n\t}\n\n\trender() {\n\t\tlet displayCards = this.buildCarousel();\n\t\tlet titleClass = \"carousel-title\";\n\t\tif (this.state.titleHighlighted) titleClass = `${titleClass} highlight`;\n\n\t\tlet chevron_left_style = \"ff-adp-chevron-left\",\n\t\t\tchevron_right_style = \"ff-adp-chevron-right\";\n\t\tlet left_click = this.pageDown,\n\t\t\tright_click = this.pageUp;\n\n\t\tif (this.state.firstIndex + 2 >= this.props.cards.length - 1) {\n\t\t\tchevron_right_style = `${chevron_right_style} disabled`;\n\t\t\tright_click = Function.prototype;\n\t\t}\n\n\t\tif (this.state.firstIndex === 0) {\n\t\t\tchevron_left_style = `${chevron_left_style} disabled`;\n\t\t\tleft_click = Function.prototype;\n\t\t}\n\n\t\tconst carouselTagHeader = this.props.tag.length >= 50 ? `${this.props.tag.substring(0, 49)}...` : this.props.tag;\n\n\t\treturn (\n\t\t\t<div className=\"carousel-main\">\n\t\t\t\t<div className=\"carousel-header\">\n\t\t\t\t\t<div\n\t\t\t\t\t\ttitle={this.props.tag}\n\t\t\t\t\t\tclassName={titleClass}\n\t\t\t\t\t\tonClick={this.seeMore}\n\t\t\t\t\t\tonMouseEnter={this.highlightTitle.bind(this, true)}\n\t\t\t\t\t\tonMouseLeave={this.highlightTitle.bind(this, false)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{carouselTagHeader}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.props.cards.length > 2 && (\n\t\t\t\t\t\t<button className=\"see-more\" onClick={this.seeMore}>\n\t\t\t\t\t\t\t<span className=\"button-label\">See More</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<div className=\"carousel-content\">\n\t\t\t\t\t<i className={chevron_left_style} onClick={left_click} />\n\t\t\t\t\t{displayCards.map((card, i) => (\n\t\t\t\t\t\t<AppCard key={(card.title || card.name) + i} {...card} viewAppShowcase={this.props.viewAppShowcase} />\n\t\t\t\t\t))}\n\t\t\t\t\t{displayCards.length === 1 && <div className=\"app-card placeholder\"></div>}{\" \"}\n\t\t\t\t\t{/* This is so extremely bad, I hate it. Prevent odd spacing when single card by inserting a blank empty card to consume the space */}\n\t\t\t\t\t<i className={chevron_right_style} onClick={right_click} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React from "react";
|
|
6
|
+
/**
|
|
7
|
+
* Empty Results to show on the search page when filters/search text apply to zero results
|
|
8
|
+
|
|
9
|
+
*/
|
|
2
10
|
const EmptyResults = () => (React.createElement("div", { className: "app-results" },
|
|
3
11
|
React.createElement("h3", { className: "app-results-no-results" }, "No results found. Please try again.")));
|
|
4
12
|
export default EmptyResults;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyResults.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/EmptyResults.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmptyResults.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/EmptyResults.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;GAGG;AACH,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,CAC1B,6BAAK,SAAS,EAAC,aAAa;IAC3B,4BAAI,SAAS,EAAC,wBAAwB,0CAAyC,CAC1E,CACN,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React from \"react\";\n\n/**\n * Empty Results to show on the search page when filters/search text apply to zero results\n\n */\nconst EmptyResults = () => (\n\t<div className=\"app-results\">\n\t\t<h3 className=\"app-results-no-results\">No results found. Please try again.</h3>\n\t</div>\n);\n\nexport default EmptyResults;\n"]}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Copyright 2017 by ChartIQ, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* This component is the name of a component and a pin that will pin that component to all toolbars.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
5
9
|
import { Component } from "react";
|
|
6
10
|
import { AppMetadata } from "../../../types/fdc3";
|
|
7
11
|
declare type Images = {
|
|
@@ -17,10 +21,21 @@ interface IProps {
|
|
|
17
21
|
interface IState {
|
|
18
22
|
active: number;
|
|
19
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* The hero component at the top of the App Catalog homepage. Display images and textual descriptions of showcased apps
|
|
26
|
+
* @param {object} props Component props
|
|
27
|
+
*/
|
|
20
28
|
export default class Hero extends Component<IProps, IState> {
|
|
21
29
|
constructor(props: IProps);
|
|
22
30
|
bindCorrectContext(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Changes the page of the hero component depending on the action its handed
|
|
33
|
+
* @param {string} action One of 'page_down' or 'page_up'. Any other action is ignored
|
|
34
|
+
*/
|
|
23
35
|
changePage(action: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* Called the parent function to open the AppShowcase for the clicked app
|
|
38
|
+
*/
|
|
24
39
|
openApp(): void;
|
|
25
40
|
render(): JSX.Element;
|
|
26
41
|
}
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
* Copyright 2017 by ChartIQ, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* This component is the name of a component and a pin that will pin that component to all toolbars.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
5
9
|
import React, { Component } from "react";
|
|
6
10
|
import { getAppNameIconWhenNoImage } from "./helpers";
|
|
11
|
+
/**
|
|
12
|
+
* The hero component at the top of the App Catalog homepage. Display images and textual descriptions of showcased apps
|
|
13
|
+
* @param {object} props Component props
|
|
14
|
+
*/
|
|
7
15
|
export default class Hero extends Component {
|
|
8
16
|
constructor(props) {
|
|
9
17
|
super(props);
|
|
@@ -16,6 +24,10 @@ export default class Hero extends Component {
|
|
|
16
24
|
this.changePage = this.changePage.bind(this);
|
|
17
25
|
this.openApp = this.openApp.bind(this);
|
|
18
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Changes the page of the hero component depending on the action its handed
|
|
29
|
+
* @param {string} action One of 'page_down' or 'page_up'. Any other action is ignored
|
|
30
|
+
*/
|
|
19
31
|
changePage(action) {
|
|
20
32
|
let { cards } = this.props;
|
|
21
33
|
let newActive = this.state.active;
|
|
@@ -38,6 +50,9 @@ export default class Hero extends Component {
|
|
|
38
50
|
active: newActive,
|
|
39
51
|
});
|
|
40
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Called the parent function to open the AppShowcase for the clicked app
|
|
55
|
+
*/
|
|
41
56
|
openApp() {
|
|
42
57
|
this.props.viewAppShowcase(this.props.cards[this.state.active].appId);
|
|
43
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hero.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Hero.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"Hero.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Hero.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAgBtD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAyB;IAC1D,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,MAAM,EAAE,CAAC;SACT,CAAC;QACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC3B,CAAC;IAED,kBAAkB;QACjB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,MAAW;QACrB,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3B,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,M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AAC;YACpF,CAAC,CAAC,CACG,CACN,CACI,CACN,CAAC;IACH,CAAC;CACD","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\n/**\n * This component is the name of a component and a pin that will pin that component to all toolbars.\n *\n */\nimport React, { Component } from \"react\";\nimport { getAppNameIconWhenNoImage } from \"./helpers\";\nimport { AppMetadata } from \"../../../types/fdc3\";\n\ntype Images = {\n\turl: string;\n};\n\ninterface IProps {\n\tcards: (AppMetadata & { tags: string[]; images: Images[] })[];\n\tviewAppShowcase: (id: AppMetadata[\"appId\"]) => void;\n}\n\ninterface IState {\n\tactive: number;\n}\n\n/**\n * The hero component at the top of the App Catalog homepage. Display images and textual descriptions of showcased apps\n * @param {object} props Component props\n */\nexport default class Hero extends Component<IProps, IState> {\n\tconstructor(props: IProps) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tactive: 0,\n\t\t};\n\t\tthis.bindCorrectContext();\n\t}\n\n\tbindCorrectContext() {\n\t\tthis.changePage = this.changePage.bind(this);\n\t\tthis.openApp = this.openApp.bind(this);\n\t}\n\n\t/**\n\t * Changes the page of the hero component depending on the action its handed\n\t * @param {string} action One of 'page_down' or 'page_up'. Any other action is ignored\n\t */\n\tchangePage(action: any) {\n\t\tlet { cards } = this.props;\n\t\tlet newActive = this.state.active;\n\n\t\tif (typeof action === \"number\") {\n\t\t\tnewActive = action;\n\t\t} else {\n\t\t\tswitch (action) {\n\t\t\t\tcase \"page_down\":\n\t\t\t\t\tnewActive = newActive - 1 < 0 ? cards.length - 1 : newActive - 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"page_up\":\n\t\t\t\t\tnewActive = newActive + 1 > cards.length - 1 ? 0 : newActive + 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tthis.setState({\n\t\t\tactive: newActive,\n\t\t});\n\t}\n\n\t/**\n\t * Called the parent function to open the AppShowcase for the clicked app\n\t */\n\topenApp() {\n\t\tthis.props.viewAppShowcase(this.props.cards[this.state.active].appId);\n\t}\n\n\trender() {\n\t\tlet { active } = this.state;\n\t\tlet { cards } = this.props;\n\t\tlet contentTitle = cards[active].title === undefined ? cards[active].name : cards[active].title;\n\t\tlet contentMsg = cards[active].description;\n\t\tlet imageUrl = cards[active].images ? cards[active].images?.[0].url : null;\n\n\t\treturn (\n\t\t\t<div>\n\t\t\t\t<div className=\"hero-content\">\n\t\t\t\t\t<i className=\"ff-adp-chevron-left\" onClick={this.changePage.bind(this, \"page_down\")} />\n\t\t\t\t\t<div className=\"visible-card\" onClick={this.openApp}>\n\t\t\t\t\t\t<div className=\"app-details\">\n\t\t\t\t\t\t\t<div className=\"app-title\">{contentTitle}</div>\n\t\t\t\t\t\t\t<div className=\"app-description\">{contentMsg}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{imageUrl ? (\n\t\t\t\t\t\t\t<img className=\"app-image\" src={imageUrl} />\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className=\"app-image noimg\">{getAppNameIconWhenNoImage(contentTitle)}</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t<i className=\"ff-adp-chevron-right\" onClick={this.changePage.bind(this, \"page_up\")} />\n\t\t\t\t</div>\n\t\t\t\t<br />\n\t\t\t\t{cards.length >= 2 && cards.length <= 10 && (\n\t\t\t\t\t<div className=\"paginator\">\n\t\t\t\t\t\t{cards.map((card, i) => {\n\t\t\t\t\t\t\tlet classes = \"pagination-oval\";\n\t\t\t\t\t\t\tif (i === active) classes = `${classes} active`;\n\t\t\t\t\t\t\treturn <div key={i} className={classes} onClick={this.changePage.bind(this, i)} />;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
1
|
/// <reference types="react" />
|
|
6
2
|
import { AppMetadata } from "../../../types/fdc3";
|
|
7
3
|
declare type Images = {
|
|
@@ -15,5 +11,11 @@ declare type HomeProps = {
|
|
|
15
11
|
})[];
|
|
16
12
|
viewAppShowcase: (id: AppMetadata["appId"]) => void;
|
|
17
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Home page. Contains carousels and a hero component
|
|
16
|
+
* @param {object} props Component props
|
|
17
|
+
* @param {array} props.cards An Array of app information from FDC
|
|
18
|
+
* @param {func} props.viewAppShowcase Opens the AppShowcase page for a selected app
|
|
19
|
+
*/
|
|
18
20
|
declare const Home: (props: HomeProps) => JSX.Element;
|
|
19
21
|
export default Home;
|
|
@@ -2,10 +2,20 @@
|
|
|
2
2
|
* Copyright 2017 by ChartIQ, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* This component is the name of a component and a pin that will pin that component to all toolbars.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
5
9
|
import React from "react";
|
|
6
10
|
import AppList from "./AppList";
|
|
7
11
|
import Hero from "./Hero";
|
|
8
12
|
import Carousel from "./Carousel";
|
|
13
|
+
/**
|
|
14
|
+
* Home page. Contains carousels and a hero component
|
|
15
|
+
* @param {object} props Component props
|
|
16
|
+
* @param {array} props.cards An Array of app information from FDC
|
|
17
|
+
* @param {func} props.viewAppShowcase Opens the AppShowcase page for a selected app
|
|
18
|
+
*/
|
|
9
19
|
const Home = (props) => (React.createElement("div", { className: "home" },
|
|
10
20
|
React.createElement(Hero, { cards: props.cards, viewAppShowcase: props.viewAppShowcase }),
|
|
11
21
|
props.tags.length > 0 &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Home.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Home.tsx"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"Home.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/Home.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAalC;;;;;GAKG;AACH,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,CAClC,6BAAK,SAAS,EAAC,MAAM;IACpB,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,GAAI;IACnE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;QACrB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YACzB,MAAM,QAAQ,GAAG,GAAG,CAAC;YACrB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;YAEpE,OAAO,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,GAAI,CAAC;QAClG,CAAC,CAAC;IACF,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,GAAI,CAC9F,CACN,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\n/**\n * This component is the name of a component and a pin that will pin that component to all toolbars.\n *\n */\nimport React from \"react\";\nimport AppList from \"./AppList\";\nimport Hero from \"./Hero\";\nimport Carousel from \"./Carousel\";\nimport { AppMetadata } from \"../../../types/fdc3\";\n\ntype Images = {\n\turl: string;\n};\n\ntype HomeProps = {\n\ttags: string[];\n\tcards: (AppMetadata & { tags: string[]; images: Images[] })[];\n\tviewAppShowcase: (id: AppMetadata[\"appId\"]) => void;\n};\n\n/**\n * Home page. Contains carousels and a hero component\n * @param {object} props Component props\n * @param {array} props.cards An Array of app information from FDC\n * @param {func} props.viewAppShowcase Opens the AppShowcase page for a selected app\n */\nconst Home = (props: HomeProps) => (\n\t<div className=\"home\">\n\t\t<Hero cards={props.cards} viewAppShowcase={props.viewAppShowcase} />\n\t\t{props.tags.length > 0 &&\n\t\t\tprops.tags.map((tag, i) => {\n\t\t\t\tconst tagLabel = tag;\n\t\t\t\tconst cards = props.cards.filter((card) => card.tags.includes(tag));\n\n\t\t\t\treturn <Carousel key={i} tag={tagLabel} cards={cards} viewAppShowcase={props.viewAppShowcase} />;\n\t\t\t})}\n\t\t{props.tags.length === 0 && <AppList cards={props.cards} viewAppShowcase={props.viewAppShowcase} />}\n\t</div>\n);\n\nexport default Home;\n"]}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React, { Component } from "react";
|
|
2
6
|
interface IProps {
|
|
3
7
|
backButton?: Boolean;
|
|
@@ -11,14 +15,41 @@ interface IState {
|
|
|
11
15
|
tagSelectorOpen: Boolean;
|
|
12
16
|
searchText: string;
|
|
13
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The search bar, tags filter menu, and any active tags being filtered on
|
|
20
|
+
* @param {object} props Component props
|
|
21
|
+
* @param {boolean} [props.backButton] If true, display a back button for going back to the homepage
|
|
22
|
+
* @param {array} props.tags An array of all available tags for the tags menu
|
|
23
|
+
* @param {array} props.activeTags An array of active tags acting as search criteria
|
|
24
|
+
* @param {func} props.goHome Function to handle sending the app back to the homepage
|
|
25
|
+
* @param {string} props.installationActionTaken Name of action that handles display/hiding the success/failure message from adding/removing an app
|
|
26
|
+
*/
|
|
14
27
|
declare class SearchBar extends Component<IProps, IState> {
|
|
15
28
|
textInput: React.RefObject<HTMLInputElement> | undefined;
|
|
16
29
|
constructor(props: IProps);
|
|
17
30
|
bindCorrectContext(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Handles changing the component state for handling local input value. Also calls parent function to effect the store
|
|
33
|
+
* @param {object} e React Synthetic event
|
|
34
|
+
*/
|
|
18
35
|
changeSearch(e: React.ChangeEvent<HTMLInputElement>): void;
|
|
36
|
+
/**
|
|
37
|
+
* Opens/hides the tag selection menu
|
|
38
|
+
*/
|
|
19
39
|
toggleTagSelector(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Calls parent function to add a tag to filters
|
|
42
|
+
* @param {string} tag The name of the tag
|
|
43
|
+
*/
|
|
20
44
|
selectTag(tag: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Calls parent function to remove a tag from filters
|
|
47
|
+
* @param {string} tag The name of the tag
|
|
48
|
+
*/
|
|
21
49
|
removeTag(tag: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Clears search because 'back' button was clicked
|
|
52
|
+
*/
|
|
22
53
|
goHome(): void;
|
|
23
54
|
focus(): void;
|
|
24
55
|
render(): JSX.Element;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React, { Component } from "react";
|
|
6
|
+
// data
|
|
2
7
|
import storeActions from "../stores/storeActions";
|
|
8
|
+
// components
|
|
3
9
|
import Toast from "./Toast";
|
|
4
10
|
import Tag from "../../shared/Tag";
|
|
5
11
|
import TagsMenu from "../../shared/TagsMenu";
|
|
12
|
+
/**
|
|
13
|
+
* The search bar, tags filter menu, and any active tags being filtered on
|
|
14
|
+
* @param {object} props Component props
|
|
15
|
+
* @param {boolean} [props.backButton] If true, display a back button for going back to the homepage
|
|
16
|
+
* @param {array} props.tags An array of all available tags for the tags menu
|
|
17
|
+
* @param {array} props.activeTags An array of active tags acting as search criteria
|
|
18
|
+
* @param {func} props.goHome Function to handle sending the app back to the homepage
|
|
19
|
+
* @param {string} props.installationActionTaken Name of action that handles display/hiding the success/failure message from adding/removing an app
|
|
20
|
+
*/
|
|
6
21
|
class SearchBar extends Component {
|
|
7
22
|
constructor(props) {
|
|
8
23
|
super(props);
|
|
@@ -21,16 +36,27 @@ class SearchBar extends Component {
|
|
|
21
36
|
this.removeTag = this.removeTag.bind(this);
|
|
22
37
|
this.focus = this.focus.bind(this);
|
|
23
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Handles changing the component state for handling local input value. Also calls parent function to effect the store
|
|
41
|
+
* @param {object} e React Synthetic event
|
|
42
|
+
*/
|
|
24
43
|
changeSearch(e) {
|
|
25
44
|
const { value: searchTerms } = e.target;
|
|
26
45
|
this.setState({ searchText: searchTerms });
|
|
27
46
|
this.props.search(searchTerms);
|
|
28
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Opens/hides the tag selection menu
|
|
50
|
+
*/
|
|
29
51
|
toggleTagSelector() {
|
|
30
52
|
this.setState({
|
|
31
53
|
tagSelectorOpen: !this.state.tagSelectorOpen,
|
|
32
54
|
});
|
|
33
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Calls parent function to add a tag to filters
|
|
58
|
+
* @param {string} tag The name of the tag
|
|
59
|
+
*/
|
|
34
60
|
selectTag(tag) {
|
|
35
61
|
let tags = storeActions.getActiveTags();
|
|
36
62
|
this.setState({
|
|
@@ -44,9 +70,16 @@ class SearchBar extends Component {
|
|
|
44
70
|
}
|
|
45
71
|
});
|
|
46
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Calls parent function to remove a tag from filters
|
|
75
|
+
* @param {string} tag The name of the tag
|
|
76
|
+
*/
|
|
47
77
|
removeTag(tag) {
|
|
48
78
|
storeActions.removeTag(tag);
|
|
49
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Clears search because 'back' button was clicked
|
|
82
|
+
*/
|
|
50
83
|
goHome() {
|
|
51
84
|
this.setState({ searchText: "" });
|
|
52
85
|
this.props.goHome();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/SearchBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../../src/components/appCatalog/components/SearchBar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO;AACP,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD,aAAa;AACb,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAgB7C;;;;;;;;GAQG;AACH,MAAM,SAAU,SAAQ,SAAyB;IAGhD,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG;YACZ,eAAe,EAAE,KAAK;YACtB,UAAU,EAAE,EAAE;SACd,CAAC;QACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC3B,CAAC;IAED,kBAAkB;QACjB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC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AS,EAAC,WAAW,IACxB,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACxB,oBAAC,GAAG,IAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,GAAI,CACvD,CAAC,CACG,CACD,CACN,CAAC;IACH,CAAC;CACD;AAED,eAAe,SAAS,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React, { Component } from \"react\";\n\n// data\nimport storeActions from \"../stores/storeActions\";\n\n// components\nimport Toast from \"./Toast\";\nimport Tag from \"../../shared/Tag\";\nimport TagsMenu from \"../../shared/TagsMenu\";\n\ninterface IProps {\n\tbackButton?: Boolean;\n\ttags: string[];\n\tactiveTags: string[];\n\tgoHome: () => void;\n\tinstallationActionTaken: string;\n\tsearch: (searchTerms: string) => void;\n}\n\ninterface IState {\n\ttagSelectorOpen: Boolean;\n\tsearchText: string;\n}\n\n/**\n * The search bar, tags filter menu, and any active tags being filtered on\n * @param {object} props Component props\n * @param {boolean} [props.backButton] If true, display a back button for going back to the homepage\n * @param {array} props.tags An array of all available tags for the tags menu\n * @param {array} props.activeTags An array of active tags acting as search criteria\n * @param {func} props.goHome Function to handle sending the app back to the homepage\n * @param {string} props.installationActionTaken Name of action that handles display/hiding the success/failure message from adding/removing an app\n */\nclass SearchBar extends Component<IProps, IState> {\n\ttextInput: React.RefObject<HTMLInputElement> | undefined;\n\n\tconstructor(props: IProps) {\n\t\tsuper(props);\n\t\tthis.textInput = React.createRef();\n\t\tthis.state = {\n\t\t\ttagSelectorOpen: false,\n\t\t\tsearchText: \"\",\n\t\t};\n\t\tthis.bindCorrectContext();\n\t}\n\n\tbindCorrectContext() {\n\t\tthis.goHome = this.goHome.bind(this);\n\t\tthis.changeSearch = this.changeSearch.bind(this);\n\t\tthis.toggleTagSelector = this.toggleTagSelector.bind(this);\n\t\tthis.selectTag = this.selectTag.bind(this);\n\t\tthis.removeTag = this.removeTag.bind(this);\n\t\tthis.focus = this.focus.bind(this);\n\t}\n\n\t/**\n\t * Handles changing the component state for handling local input value. Also calls parent function to effect the store\n\t * @param {object} e React Synthetic event\n\t */\n\tchangeSearch(e: React.ChangeEvent<HTMLInputElement>) {\n\t\tconst { value: searchTerms } = e.target;\n\t\tthis.setState({ searchText: searchTerms });\n\t\tthis.props.search(searchTerms);\n\t}\n\n\t/**\n\t * Opens/hides the tag selection menu\n\t */\n\ttoggleTagSelector() {\n\t\tthis.setState({\n\t\t\ttagSelectorOpen: !this.state.tagSelectorOpen,\n\t\t});\n\t}\n\n\t/**\n\t * Calls parent function to add a tag to filters\n\t * @param {string} tag The name of the tag\n\t */\n\tselectTag(tag: string) {\n\t\tlet tags: string[] = storeActions.getActiveTags();\n\n\t\tthis.setState(\n\t\t\t{\n\t\t\t\ttagSelectorOpen: false,\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tif (tags.includes(tag)) {\n\t\t\t\t\tstoreActions.removeTag(tag);\n\t\t\t\t} else {\n\t\t\t\t\tstoreActions.addTag(tag);\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\n\t/**\n\t * Calls parent function to remove a tag from filters\n\t * @param {string} tag The name of the tag\n\t */\n\tremoveTag(tag: string) {\n\t\tstoreActions.removeTag(tag);\n\t}\n\n\t/**\n\t * Clears search because 'back' button was clicked\n\t */\n\tgoHome() {\n\t\tthis.setState({ searchText: \"\" });\n\t\tthis.props.goHome();\n\t}\n\n\tfocus() {\n\t\tthis.textInput?.current?.focus();\n\t}\n\n\trender() {\n\t\tconst activeTags: string[] = storeActions.getActiveTags();\n\n\t\treturn (\n\t\t\t<div className=\"search-main\">\n\t\t\t\t<Toast installationActionTaken={this.props.installationActionTaken} />\n\t\t\t\t<div className=\"search-action-items\">\n\t\t\t\t\t{this.props.backButton ? (\n\t\t\t\t\t\t<div className=\"search-back\" onClick={this.goHome}>\n\t\t\t\t\t\t\t<i className=\"ff-arrow-back\"></i>\n\t\t\t\t\t\t\t<span className=\"button-label\">Back</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) : null}\n\t\t\t\t\t<div className=\"search-input-container\">\n\t\t\t\t\t\t<i className=\"ff-search\"></i>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclassName=\"search-input\"\n\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\tref={this.textInput}\n\t\t\t\t\t\t\tplaceholder=\"Search\"\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tvalue={this.state.searchText}\n\t\t\t\t\t\t\tonChange={this.changeSearch}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<button className=\"close-icon\" onClick={this.goHome} type=\"reset\"></button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<TagsMenu\n\t\t\t\t\t\tactive={activeTags}\n\t\t\t\t\t\tlist={this.props.tags}\n\t\t\t\t\t\tonItemClick={this.selectTag}\n\t\t\t\t\t\tlabel={\"Tags\"}\n\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div className=\"label-bar\">\n\t\t\t\t\t{activeTags.map((tag) => (\n\t\t\t\t\t\t<Tag key={tag} name={tag} removeTag={this.removeTag} />\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default SearchBar;\n"]}
|
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
declare type DescriptionProps = {
|
|
3
3
|
description: string;
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* AppShowcase description section
|
|
7
|
+
* @param {object} props Component props
|
|
8
|
+
* @param {string} props.description The app description
|
|
9
|
+
*/
|
|
5
10
|
declare const AppDescription: ({ description }: DescriptionProps) => JSX.Element;
|
|
6
11
|
export default AppDescription;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React from "react";
|
|
6
|
+
/**
|
|
7
|
+
* AppShowcase description section
|
|
8
|
+
* @param {object} props Component props
|
|
9
|
+
* @param {string} props.description The app description
|
|
10
|
+
*/
|
|
2
11
|
const AppDescription = ({ description }) => (React.createElement("div", { className: "app-notes description" },
|
|
3
12
|
React.createElement("span", { className: "showcase-label" }, "Description"),
|
|
4
13
|
React.createElement("div", { className: "description-content" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppDescription.js","sourceRoot":"","sources":["../../../../../src/components/appCatalog/components/Showcase/AppDescription.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppDescription.js","sourceRoot":"","sources":["../../../../../src/components/appCatalog/components/Showcase/AppDescription.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;GAIG;AACH,MAAM,cAAc,GAAG,CAAC,EAAE,WAAW,EAAoB,EAAE,EAAE,CAAC,CAC7D,6BAAK,SAAS,EAAC,uBAAuB;IACrC,8BAAM,SAAS,EAAC,gBAAgB,kBAAmB;IACnD,6BAAK,SAAS,EAAC,qBAAqB;QACnC,iCAAM,WAAW,CAAO,CACnB,CACD,CACN,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React from \"react\";\n\ntype DescriptionProps = {\n\tdescription: string;\n};\n/**\n * AppShowcase description section\n * @param {object} props Component props\n * @param {string} props.description The app description\n */\nconst AppDescription = ({ description }: DescriptionProps) => (\n\t<div className=\"app-notes description\">\n\t\t<span className=\"showcase-label\">Description</span>\n\t\t<div className=\"description-content\">\n\t\t\t<div>{description}</div>\n\t\t</div>\n\t</div>\n);\n\nexport default AppDescription;\n"]}
|
|
@@ -3,5 +3,12 @@ declare type AppDevNotesProps = {
|
|
|
3
3
|
publisher: string;
|
|
4
4
|
email: string;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* AppShowcase dev notes section. Contains developer information
|
|
8
|
+
* @param {object} props Component props
|
|
9
|
+
* @param {string} props.publisher The name of this app's publisher
|
|
10
|
+
* @param {func} props.openSite Parent function to launch the developer's site in Finsemble window
|
|
11
|
+
* @param {string} props.email The developer's contact email
|
|
12
|
+
*/
|
|
6
13
|
declare const AppDevNotes: (props: AppDevNotesProps) => JSX.Element;
|
|
7
14
|
export default AppDevNotes;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
1
5
|
import React from "react";
|
|
6
|
+
/**
|
|
7
|
+
* AppShowcase dev notes section. Contains developer information
|
|
8
|
+
* @param {object} props Component props
|
|
9
|
+
* @param {string} props.publisher The name of this app's publisher
|
|
10
|
+
* @param {func} props.openSite Parent function to launch the developer's site in Finsemble window
|
|
11
|
+
* @param {string} props.email The developer's contact email
|
|
12
|
+
*/
|
|
2
13
|
const AppDevNotes = (props) => {
|
|
14
|
+
/**
|
|
15
|
+
* Opens the publisher's website.
|
|
16
|
+
*/
|
|
17
|
+
// NOTE: There is currently no prop in the FDC spec that has a dev site.
|
|
3
18
|
const openSite = () => {
|
|
4
19
|
console.log("open the developers site");
|
|
5
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppDevNotes.js","sourceRoot":"","sources":["../../../../../src/components/appCatalog/components/Showcase/AppDevNotes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppDevNotes.js","sourceRoot":"","sources":["../../../../../src/components/appCatalog/components/Showcase/AppDevNotes.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;;;GAMG;AACH,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC/C;;OAEG;IACH,wEAAwE;IACxE,MAAM,QAAQ,GAAG,GAAG,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACzC,CAAC,CAAC;IACF,OAAO,CACN,6BAAK,SAAS,EAAC,qBAAqB;QACnC,8BAAM,SAAS,EAAC,gBAAgB,gBAAiB;QACjD,6BAAK,SAAS,EAAC,mBAAmB;YACjC;gBACE,KAAK,CAAC,SAAS;;gBAAI,GAAG;gBACvB,2BAAG,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,QAAQ,IAC3B,KAAK,CAAC,KAAK,CACT,CACC,CACD,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React from \"react\";\n\ntype AppDevNotesProps = {\n\tpublisher: string;\n\temail: string;\n};\n\n/**\n * AppShowcase dev notes section. Contains developer information\n * @param {object} props Component props\n * @param {string} props.publisher The name of this app's publisher\n * @param {func} props.openSite Parent function to launch the developer's site in Finsemble window\n * @param {string} props.email The developer's contact email\n */\nconst AppDevNotes = (props: AppDevNotesProps) => {\n\t/**\n\t * Opens the publisher's website.\n\t */\n\t// NOTE: There is currently no prop in the FDC spec that has a dev site.\n\tconst openSite = () => {\n\t\tconsole.log(\"open the developers site\");\n\t};\n\treturn (\n\t\t<div className=\"app-notes developer\">\n\t\t\t<span className=\"showcase-label\">Developer</span>\n\t\t\t<div className=\"developer-content\">\n\t\t\t\t<div>\n\t\t\t\t\t{props.publisher} -{\" \"}\n\t\t\t\t\t<a href=\"#\" onClick={openSite}>\n\t\t\t\t\t\t{props.email}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default AppDevNotes;\n"]}
|
|
@@ -2,10 +2,27 @@ export default AppShowcase;
|
|
|
2
2
|
declare class AppShowcase extends React.Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
bindCorrectContext(): void;
|
|
5
|
+
/**
|
|
6
|
+
* Pages right through the app's images.
|
|
7
|
+
*/
|
|
5
8
|
nextImage(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Pages left through the app's images.
|
|
11
|
+
*/
|
|
6
12
|
previousImage(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Opens the image modal (light box). Sets the image to display
|
|
15
|
+
* @param {string} url The image url to display in the light box
|
|
16
|
+
*/
|
|
7
17
|
openModal(url: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* Closes the image modal
|
|
20
|
+
*/
|
|
8
21
|
closeModal(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Calls the parents function to add a tag to list of filters
|
|
24
|
+
* @param {string} name The tag name
|
|
25
|
+
*/
|
|
9
26
|
addTag(name: string): void;
|
|
10
27
|
}
|
|
11
28
|
import React from "react";
|