@finsemble/finsemble-ui 6.3.1 → 6.4.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/README.md +28 -28
- package/package.json +21 -33
- package/react/actions/favoriteActions.js.map +1 -1
- package/react/actions/linkerActions.js.map +1 -1
- package/react/actions/menuActions.js.map +1 -1
- package/react/actions/rootActions.js.map +1 -1
- package/react/actions/searchActions.js.map +1 -1
- package/react/actions/smartDesktopDesignerActions.d.ts +1 -3
- package/react/actions/smartDesktopDesignerActions.js +0 -1
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/actions/toolbarActions.js.map +1 -1
- package/react/actions/workspaceActions.js.map +1 -1
- package/react/assets/css/advancedAppLauncher.css +636 -636
- package/react/assets/css/appCatalog.css +1069 -1069
- package/react/assets/css/authentication.css +78 -78
- package/react/assets/css/button.css +220 -220
- package/react/assets/css/core/formElements.css +23 -23
- package/react/assets/css/core/icons.css +69 -69
- package/react/assets/css/core/notifications.css +75 -75
- package/react/assets/css/core/windowFrame.css +36 -36
- package/react/assets/css/dashbar.css +78 -78
- package/react/assets/css/defaultTheme.css +356 -356
- package/react/assets/css/dialogs.css +158 -158
- package/react/assets/css/favorites.css +101 -101
- package/react/assets/css/finsemble.css +38 -38
- package/react/assets/css/focus.css +4 -4
- package/react/assets/css/font-finance.css +385 -385
- package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
- package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
- package/react/assets/css/fonts/font-finance.svg +124 -124
- package/react/assets/css/fonts/icons-reference.html +1174 -1174
- package/react/assets/css/linkerWindow.css +124 -124
- package/react/assets/css/menus.css +195 -195
- package/react/assets/css/notificationsCenter.css +597 -597
- package/react/assets/css/processMonitor.css +213 -213
- package/react/assets/css/search.css +128 -128
- package/react/assets/css/shared/animations.css +99 -99
- package/react/assets/css/tags.css +136 -136
- package/react/assets/css/toolbar.css +413 -413
- package/react/assets/css/userPreferences.css +538 -568
- package/react/assets/css/windowTitleBar.css +653 -652
- package/react/assets/icons/always-on-top.svg +20 -0
- package/react/assets/icons/caret.svg +7 -0
- package/react/assets/icons/check-square.svg +5 -5
- package/react/assets/icons/check.svg +3 -3
- package/react/assets/icons/chevron-left.svg +3 -3
- package/react/assets/icons/chevron-right.svg +3 -3
- package/react/assets/icons/close.svg +11 -0
- package/react/assets/icons/copy.svg +10 -10
- package/react/assets/icons/documentation.svg +20 -0
- package/react/assets/icons/exclamation-circle.svg +4 -4
- package/react/assets/icons/external-link.svg +12 -12
- package/react/assets/icons/flag.svg +10 -10
- package/react/assets/icons/folder.svg +3 -3
- package/react/assets/icons/font.svg +3 -3
- package/react/assets/icons/globe.svg +3 -3
- package/react/assets/icons/hdd.svg +9 -9
- package/react/assets/icons/key.svg +10 -10
- package/react/assets/icons/life-ring.svg +3 -3
- package/react/assets/icons/linker.svg +18 -0
- package/react/assets/icons/lock.svg +5 -5
- package/react/assets/icons/magic.svg +15 -15
- package/react/assets/icons/maximize.svg +16 -0
- package/react/assets/icons/minimize.svg +15 -0
- package/react/assets/icons/moon.svg +10 -10
- package/react/assets/icons/paint-roller.svg +3 -3
- package/react/assets/icons/pencil.svg +10 -10
- package/react/assets/icons/plus.svg +3 -3
- package/react/assets/icons/question-circle.svg +5 -5
- package/react/assets/icons/search.svg +3 -3
- package/react/assets/icons/sun.svg +9 -9
- package/react/assets/icons/times.svg +3 -3
- package/react/assets/icons/toggle-off.svg +6 -6
- package/react/assets/icons/toggle-on.svg +6 -6
- package/react/assets/icons/toolbar.svg +12 -0
- package/react/assets/icons/tools.svg +3 -3
- package/react/assets/icons/trash.svg +12 -12
- package/react/assets/icons/upload.svg +10 -10
- package/react/assets/icons/window.svg +3 -3
- package/react/assets/img/finsemble-display.png +0 -0
- package/react/componentTemplateGenerator.js +85 -85
- package/react/componentTemplateGenerator.js.map +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalog.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppCard.js.map +1 -1
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.js.map +1 -1
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
- package/react/components/appCatalog/components/Tag.js.map +1 -1
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/components/helpers.js.map +1 -1
- package/react/components/appCatalog/index.js.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/common/Accordion.d.ts +11 -0
- package/react/components/common/Accordion.js +20 -0
- package/react/components/common/Accordion.js.map +1 -0
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/ButtonTile.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +1 -0
- package/react/components/common/Checkbox.js +3 -1
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ColorPicker.js.map +1 -1
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FileInput.d.ts +2 -1
- package/react/components/common/FileInput.js +9 -4
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.js +16 -0
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/FinsembleToggle.js.map +1 -1
- package/react/components/common/Header.js +1 -1
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/InputTable.d.ts +11 -0
- package/react/components/common/InputTable.js +50 -0
- package/react/components/common/InputTable.js.map +1 -0
- package/react/components/common/LoadingSpinner.js.map +1 -1
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/Tooltip.js.map +1 -1
- package/react/components/common/css/accordion.css +99 -0
- package/react/components/common/css/application-edit-page.css +324 -117
- package/react/components/common/css/application-list.css +49 -47
- package/react/components/common/css/button.css +166 -164
- package/react/components/common/css/checkbox.css +30 -0
- package/react/components/common/css/color-picker.css +52 -52
- package/react/components/common/css/drop-zone.css +17 -17
- package/react/components/common/css/file-input.css +65 -49
- package/react/components/common/css/header.css +30 -43
- package/react/components/common/css/icon.css +13 -13
- package/react/components/common/css/image-preview.css +57 -57
- package/react/components/common/css/loading-spinner.css +39 -39
- package/react/components/common/css/selector.css +51 -51
- package/react/components/common/css/styles.css +127 -128
- package/react/components/common/css/tab.css +56 -56
- package/react/components/common/css/toggle.css +32 -32
- package/react/components/common/css/tooltip.css +78 -78
- package/react/components/common/file_helpers.js.map +1 -1
- package/react/components/common/fixtures/FinsembleIcon.css +4 -4
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/Accordion.stories.d.ts +14 -0
- package/react/components/common/stories/Accordion.stories.js +42 -0
- package/react/components/common/stories/Accordion.stories.js.map +1 -0
- package/react/components/common/stories/Button.stories.js.map +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
- package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
- package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
- package/react/components/common/stories/Checkbox.stories.js.map +1 -1
- package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
- package/react/components/common/stories/DropZone.stories.js.map +1 -1
- package/react/components/common/stories/DropdownButton.stories.d.ts +11 -0
- package/react/components/common/stories/DropdownButton.stories.js +12 -0
- package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
- package/react/components/common/stories/FileInput.stories.d.ts +2 -1
- package/react/components/common/stories/FileInput.stories.js +6 -0
- package/react/components/common/stories/FileInput.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleIcon.stories.js +1 -0
- package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
- package/react/components/common/stories/Header.stories.js.map +1 -1
- package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
- package/react/components/common/stories/InputTable.stories.d.ts +12 -0
- package/react/components/common/stories/InputTable.stories.js +35 -0
- package/react/components/common/stories/InputTable.stories.js.map +1 -0
- package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
- package/react/components/common/stories/Tab.stories.js.map +1 -1
- package/react/components/common/stories/Tooltip.stories.js.map +1 -1
- package/react/components/{smartDesktopDesigner/tests/ApplicationEdit.spec.d.ts → common/tests/Accordion.spec.d.ts} +0 -0
- package/react/components/common/tests/Accordion.spec.js +53 -0
- package/react/components/common/tests/Accordion.spec.js.map +1 -0
- package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
- package/react/components/common/tests/Checkbox.spec.js +5 -3
- package/react/components/common/tests/Checkbox.spec.js.map +1 -1
- package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
- package/react/components/common/tests/DropZone.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +20 -5
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/Header.spec.js +6 -2
- package/react/components/common/tests/Header.spec.js.map +1 -1
- package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
- package/react/components/{smartDesktopDesigner/tests/ApplicationSetup.spec.d.ts → common/tests/InputTable.spec.d.ts} +0 -0
- package/react/components/common/tests/InputTable.spec.js +166 -0
- package/react/components/common/tests/InputTable.spec.js.map +1 -0
- package/react/components/common/tests/Tab.spec.js.map +1 -1
- package/react/components/common/tests/Tooltip.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/favorites/index.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.css +126 -126
- package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js +13 -0
- package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/icon/index.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
- package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/index.js.map +1 -1
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.d.ts +1 -0
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.d.ts +2 -1
- package/react/components/menu/MenuAutoResizer.js +4 -3
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuContent.js.map +1 -1
- package/react/components/menu/MenuHotKey.js.map +1 -1
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.js +99 -92
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuShell.d.ts +1 -0
- package/react/components/menu/MenuShell.js +3 -2
- package/react/components/menu/MenuShell.js.map +1 -1
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/index.js.map +1 -1
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/menu/menuContext.d.ts +1 -0
- package/react/components/menu/menuContext.js.map +1 -1
- package/react/components/menu/menuHelpers.d.ts +1 -1
- package/react/components/menu/menuHelpers.js +2 -2
- package/react/components/menu/menuHelpers.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.js.map +1 -1
- package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js +30 -6
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +2 -0
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +20 -27
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +5 -1
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.js +5 -1
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.js +1 -1
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/constants.js.map +1 -1
- package/react/components/notifications/icons/Card.js.map +1 -1
- package/react/components/notifications/icons/Chevron.js.map +1 -1
- package/react/components/notifications/icons/CloseIcon.js.map +1 -1
- package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
- package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
- package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
- package/react/components/notifications/index.js.map +1 -1
- package/react/components/notifications/notificationsContext.js.map +1 -1
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/helpers.spec.js.map +1 -1
- package/react/components/processMonitor/index.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +49 -49
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/quickComponentForm/index.js.map +1 -1
- package/react/components/quickComponentForm/quickComponent.css +3 -3
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Highlight.spec.js.map +1 -1
- package/react/components/search/Highlight.stories.js.map +1 -1
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/search/index.js.map +1 -1
- package/react/components/shared/Animate.js.map +1 -1
- package/react/components/shared/BellIcon.js.map +1 -1
- package/react/components/shared/BellIconCrossed.js.map +1 -1
- package/react/components/shared/Button.js.map +1 -1
- package/react/components/shared/ConditionalWrapper.js.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js +1 -1
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/NavigationButton.js.map +1 -1
- package/react/components/shared/Tag.js.map +1 -1
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.js.map +1 -1
- package/react/components/shared/linkerUtil.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
- package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
- package/react/components/shared/validateURL.js.map +1 -1
- package/react/components/shared/validateURL.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
- package/react/components/singleInputDialog/index.js.map +1 -1
- package/react/components/smartDesktopDesigner/AddApp.d.ts +14 -0
- package/react/components/smartDesktopDesigner/AddApp.js +60 -0
- package/react/components/smartDesktopDesigner/AddApp.js.map +1 -0
- package/react/components/smartDesktopDesigner/AppEditAccess.js +16 -32
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditPage.d.ts +5 -19
- package/react/components/smartDesktopDesigner/AppEditPage.js +548 -59
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.css +27 -94
- package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.js +1 -1
- package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
- package/react/components/smartDesktopDesigner/Application.d.ts +1 -0
- package/react/components/smartDesktopDesigner/Application.js +151 -93
- package/react/components/smartDesktopDesigner/Application.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationList.d.ts +2 -1
- package/react/components/smartDesktopDesigner/ApplicationList.js +7 -3
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
- package/react/components/smartDesktopDesigner/Applications.d.ts +0 -3
- package/react/components/smartDesktopDesigner/Applications.js +52 -102
- package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
- package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
- package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Authentication.js +2 -9
- package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +8 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
- package/react/components/smartDesktopDesigner/Content.js.map +1 -1
- package/react/components/smartDesktopDesigner/ContentHeader.d.ts +5 -0
- package/react/components/smartDesktopDesigner/ContentHeader.js +10 -0
- package/react/components/smartDesktopDesigner/ContentHeader.js.map +1 -0
- package/react/components/smartDesktopDesigner/CurrentView.js +2 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
- package/react/components/smartDesktopDesigner/Export.d.ts +1 -0
- package/react/components/smartDesktopDesigner/Export.js +40 -9
- package/react/components/smartDesktopDesigner/Export.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.d.ts +3 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js +4 -6
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportZip.d.ts +3 -1
- package/react/components/smartDesktopDesigner/ExportZip.js +8 -3
- package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -0
- package/react/components/smartDesktopDesigner/GettingStarted.js +11 -25
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
- package/react/components/smartDesktopDesigner/Navigation.d.ts +2 -2
- package/react/components/smartDesktopDesigner/Navigation.js +17 -15
- package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
- package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
- package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +3 -3
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -17
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/ThemePage.css +109 -110
- package/react/components/smartDesktopDesigner/ThemePage.js +0 -7
- package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Themes.js +0 -2
- package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
- package/react/components/smartDesktopDesigner/Toolbar.d.ts +15 -0
- package/react/components/smartDesktopDesigner/Toolbar.js +123 -0
- package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -0
- package/react/components/smartDesktopDesigner/View.js +1 -1
- package/react/components/smartDesktopDesigner/View.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/fsbl_functions.d.ts +1 -1
- package/react/components/smartDesktopDesigner/common/fsbl_functions.js +2 -2
- package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.d.ts +2 -36
- package/react/components/smartDesktopDesigner/common/views.js +150 -111
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/css/appearance.css +18 -10
- package/react/components/smartDesktopDesigner/css/applications.css +167 -127
- package/react/components/smartDesktopDesigner/css/authentication.css +119 -125
- package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
- package/react/components/smartDesktopDesigner/css/export.css +176 -163
- package/react/components/smartDesktopDesigner/css/getting-started.css +28 -6
- package/react/components/smartDesktopDesigner/css/nav.css +120 -93
- package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
- package/react/components/smartDesktopDesigner/css/project-header.css +124 -121
- package/react/components/smartDesktopDesigner/css/styles.css +178 -179
- package/react/components/smartDesktopDesigner/css/views.css +23 -16
- package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +2 -0
- package/react/components/smartDesktopDesigner/fixtures/apps.js +41 -6
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js +3 -0
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/views.d.ts +2 -2
- package/react/components/smartDesktopDesigner/fixtures/views.js +58 -26
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.d.ts +1 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js +4 -3
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +12 -33
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +2 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +8 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.d.ts +10 -0
- package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js +13 -0
- package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +7 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Toolbar.stories.d.ts +14 -0
- package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js +38 -0
- package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +73 -122
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.d.ts +1 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js +61 -560
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/{ProjectHeader.spec.d.ts → ContentHeader.spec.d.ts} +0 -0
- package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js +31 -0
- package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/Export.spec.js +129 -0
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +7 -0
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +3 -14
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +2 -31
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Toolbar.spec.d.ts +1 -0
- package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js +203 -0
- package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.d.ts +1 -0
- package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js +18 -0
- package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
- package/react/components/system/System.js.map +1 -1
- package/react/components/system/System.spec.js.map +1 -1
- package/react/components/system/System.stories.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/system/index.js.map +1 -1
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/DragHandle.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.js.map +1 -1
- package/react/components/toolbar/RevealAll.spec.js.map +1 -1
- package/react/components/toolbar/RevealAll.stories.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +47 -45
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +1 -0
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +1 -0
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +17 -34
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +3 -1
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/index.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +90 -90
- package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -1
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditorItem.js.map +1 -1
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
- package/react/components/userPreferences/index.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
- package/react/components/userPreferences/stories/General.stories.js.map +1 -1
- package/react/components/userPreferences/stories/Notifications.stories.js.map +1 -1
- package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
- package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceComponents.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
- package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
- package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
- package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
- package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
- package/react/components/userPreferences/tests/General.spec.js.map +1 -1
- package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
- package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
- package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js +1 -1
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js +8 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -1
- package/react/components/windowTitleBar/components/center/Tab.js +2 -2
- package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -1
- package/react/components/windowTitleBar/components/center/TabList.js +16 -79
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +7 -0
- package/react/components/windowTitleBar/components/right/MaximizeButton.js +11 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +6 -5
- package/react/components/windowTitleBar/components/windowTitle.js +143 -35
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/index.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +5 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.css +3 -3
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
- package/react/components/yesNoDialog/index.js.map +1 -1
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/enzymeSetup.js +1 -1
- package/react/enzymeSetup.js.map +1 -1
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/useAuth.js.map +1 -1
- package/react/hooks/useDashbar.d.ts +8 -0
- package/react/hooks/useDashbar.js +104 -0
- package/react/hooks/useDashbar.js.map +1 -0
- package/react/hooks/useDeepEffect.js.map +1 -1
- package/react/hooks/useFavorites.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useHotkey.js.map +1 -1
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.js.map +1 -1
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useOutsideClickDetector.js.map +1 -1
- package/react/hooks/usePubSub.js.map +1 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.d.ts +0 -6
- package/react/hooks/useToolbar.js +0 -101
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/hooks/useWorkspace.js.map +1 -1
- package/react/reducers/favoriteReducer.js.map +1 -1
- package/react/reducers/linkerReducer.js.map +1 -1
- package/react/reducers/menuReducer.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +0 -4
- package/react/reducers/rootReducer.js.map +1 -1
- package/react/reducers/searchReducer.js.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.js +0 -3
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/reducers/toolbarReducer.js.map +1 -1
- package/react/reducers/workspaceReducer.js.map +1 -1
- package/react/store.d.ts +0 -8
- package/react/store.js.map +1 -1
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/dashbarTypes.js.map +1 -1
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.d.ts +7 -35
- package/react/types/fdc3.js.map +1 -1
- package/react/types/hotkeyTypes.js.map +1 -1
- package/react/types/iconTypes.js.map +1 -1
- package/react/types/linkerTypes.js.map +1 -1
- package/react/types/searchTypes.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +45 -5
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/windowTitleBar.d.ts +4 -2
- package/react/types/windowTitleBar.js.map +1 -1
- package/react/types/workspaceTypes.js.map +1 -1
- package/react/components/common/FontSizeSelector.d.ts +0 -7
- package/react/components/common/FontSizeSelector.js +0 -42
- package/react/components/common/FontSizeSelector.js.map +0 -1
- package/react/components/common/stories/FontSizeSelector.stories.d.ts +0 -12
- package/react/components/common/stories/FontSizeSelector.stories.js +0 -24
- package/react/components/common/stories/FontSizeSelector.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +0 -25
- package/react/components/smartDesktopDesigner/ApplicationEdit.js +0 -103
- package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +0 -1
- package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +0 -23
- package/react/components/smartDesktopDesigner/ApplicationSetup.js +0 -73
- package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +0 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +0 -14
- package/react/components/smartDesktopDesigner/ProjectHeader.js +0 -70
- package/react/components/smartDesktopDesigner/ProjectHeader.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.d.ts +0 -4
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +0 -45
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.d.ts +0 -3
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +0 -29
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.d.ts +0 -12
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +0 -21
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.d.ts +0 -12
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +0 -28
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +0 -10
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +0 -19
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +0 -66
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +0 -41
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +0 -27
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FontSize } from "../FontSizeSelector";
|
|
3
|
-
import "../../../assets/css/finsemble.css";
|
|
4
|
-
import "../css/styles.css";
|
|
5
|
-
export default {
|
|
6
|
-
title: "Common/FontSize",
|
|
7
|
-
component: FontSize,
|
|
8
|
-
};
|
|
9
|
-
const Template = (args) => React.createElement(FontSize, Object.assign({}, args));
|
|
10
|
-
export const EmptyField = Template.bind({});
|
|
11
|
-
EmptyField.args = {
|
|
12
|
-
startSize: "",
|
|
13
|
-
updateSize: (newSize) => {
|
|
14
|
-
console.log(newSize);
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
export const Large = Template.bind({});
|
|
18
|
-
Large.args = {
|
|
19
|
-
startSize: "large",
|
|
20
|
-
updateSize: (newSize) => {
|
|
21
|
-
console.log(newSize);
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=FontSizeSelector.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FontSizeSelector.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FontSizeSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FontSize, FontSizeProps } from \"../FontSizeSelector\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FontSize\",\r\n\tcomponent: FontSize,\r\n};\r\n\r\nconst Template: Story<FontSizeProps> = (args: FontSizeProps) => <FontSize {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartSize: \"\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n\r\nexport const Large = Template.bind({});\r\nLarge.args = {\r\n\tstartSize: \"large\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { ApplicationSaveData } from "../../types/smartDesktopDesignerTypes";
|
|
7
|
-
import { AppDefinition } from "@finsemble/finsemble-core/types/services/Interop/types";
|
|
8
|
-
export declare type ApplicationEditProps = {
|
|
9
|
-
id: string;
|
|
10
|
-
isEditMode: boolean;
|
|
11
|
-
isSetupWizard: boolean;
|
|
12
|
-
onClickBackButton?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
13
|
-
setCurrentComponentID: (id: string | null) => void;
|
|
14
|
-
removeAppID: (id: string) => void;
|
|
15
|
-
removeComponentID?: (id: string) => void;
|
|
16
|
-
onSaveData: (data: ApplicationSaveData) => Promise<any>;
|
|
17
|
-
apps: object[];
|
|
18
|
-
data: ApplicationSaveData;
|
|
19
|
-
addApp: (appId: string, config: AppDefinition) => Promise<{
|
|
20
|
-
err: null;
|
|
21
|
-
}>;
|
|
22
|
-
isInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;
|
|
23
|
-
isOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;
|
|
24
|
-
};
|
|
25
|
-
export declare const ApplicationEdit: (props: ApplicationEditProps) => JSX.Element;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useState } from "react";
|
|
6
|
-
import { View } from "./View";
|
|
7
|
-
import { Header } from "../common/Header";
|
|
8
|
-
import { Content } from "./Content";
|
|
9
|
-
import { Button } from "../common/Button";
|
|
10
|
-
import { AppEditPage } from "./AppEditPage";
|
|
11
|
-
import { generateDefaultConfig } from "./sdd_helpers";
|
|
12
|
-
import { launchTutorialLink } from "./common/fsbl_functions";
|
|
13
|
-
export const ApplicationEdit = (props) => {
|
|
14
|
-
var _a;
|
|
15
|
-
const [setupComplete, setSetupComplete] = useState(false);
|
|
16
|
-
const { displayName, windowURL, nativePath, currentAppType } = generateDefaultConfig(props.data);
|
|
17
|
-
const submitFn = (data) => {
|
|
18
|
-
var _a;
|
|
19
|
-
(_a = props === null || props === void 0 ? void 0 : props.onSaveData) === null || _a === void 0 ? void 0 : _a.call(props, Object.assign(Object.assign({}, data), { tags: props.data.tags })).then(() => {
|
|
20
|
-
var _a;
|
|
21
|
-
setSetupComplete(true);
|
|
22
|
-
if (props === null || props === void 0 ? void 0 : props.isEditMode) {
|
|
23
|
-
(_a = props === null || props === void 0 ? void 0 : props.setCurrentComponentID) === null || _a === void 0 ? void 0 : _a.call(props, "");
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const cancelFn = () => {
|
|
28
|
-
if (!props.isEditMode) {
|
|
29
|
-
props.removeAppID(props.id);
|
|
30
|
-
}
|
|
31
|
-
props.setCurrentComponentID(null);
|
|
32
|
-
};
|
|
33
|
-
const removeApplicationFn = () => {
|
|
34
|
-
props.removeAppID(props.id);
|
|
35
|
-
props.setCurrentComponentID("");
|
|
36
|
-
};
|
|
37
|
-
const validateURL = (url) => FSBL.Clients.SmartDesktopClient.checkValidURL(url);
|
|
38
|
-
const seeItNow = (e) => {
|
|
39
|
-
FSBL.Clients.LauncherClient.spawn(props.id, {}, (err, response) => {
|
|
40
|
-
if (err) {
|
|
41
|
-
FSBL.Clients.Logger.system.error("ApplicationEdit spawn error:", err);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
FSBL.Clients.Logger.system.log("ApplicationEdit spawn response:", response);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
};
|
|
49
|
-
const backFunction = (e) => {
|
|
50
|
-
setSetupComplete(false);
|
|
51
|
-
if (!props.isEditMode) {
|
|
52
|
-
props.removeAppID(props.id);
|
|
53
|
-
}
|
|
54
|
-
if (typeof props.onClickBackButton === "function") {
|
|
55
|
-
return props.onClickBackButton(e);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const helpFunction = () => {
|
|
59
|
-
const helpLink = props.isEditMode ? "editing-applications" : "adding-applications";
|
|
60
|
-
launchTutorialLink(helpLink);
|
|
61
|
-
};
|
|
62
|
-
const appEditPageProps = {
|
|
63
|
-
startingDisplayName: displayName,
|
|
64
|
-
isSetupWizard: props.isSetupWizard,
|
|
65
|
-
isEditMode: props.isEditMode,
|
|
66
|
-
startingAppType: currentAppType,
|
|
67
|
-
startingWindowURL: windowURL,
|
|
68
|
-
startingNativePath: nativePath,
|
|
69
|
-
startingDescription: ((_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a.description) || "",
|
|
70
|
-
validateURL,
|
|
71
|
-
startingWidth: props.data.width || 0,
|
|
72
|
-
startingHeight: props.data.height || 0,
|
|
73
|
-
startingRules: props.data.rules || [],
|
|
74
|
-
removeApplicationFn,
|
|
75
|
-
cancelFn,
|
|
76
|
-
submitFn,
|
|
77
|
-
addApp: props.addApp,
|
|
78
|
-
isInboundInteropAuthorized: props.isInboundInteropAuthorized,
|
|
79
|
-
isOutboundInteropAuthorized: props.isOutboundInteropAuthorized,
|
|
80
|
-
};
|
|
81
|
-
return (React.createElement("div", { className: "app-edit" },
|
|
82
|
-
React.createElement(View, null,
|
|
83
|
-
React.createElement("div", null,
|
|
84
|
-
React.createElement("form", { onSubmit: (e) => e.preventDefault() },
|
|
85
|
-
React.createElement("fieldset", { className: "app-edit-fieldset" },
|
|
86
|
-
React.createElement("legend", null,
|
|
87
|
-
React.createElement(Header, Object.assign({ helpFunction: helpFunction }, (setupComplete ? {} : { backFunction: backFunction })), props.isEditMode ? "Edit App" : "Add an app")),
|
|
88
|
-
React.createElement(Content, null, !setupComplete ? (React.createElement(AppEditPage, Object.assign({}, appEditPageProps))) : (React.createElement("div", { className: "app-edit-success" },
|
|
89
|
-
React.createElement("h2", null, "Your application is added"),
|
|
90
|
-
React.createElement("div", { className: "app-edit-success-content" },
|
|
91
|
-
React.createElement("div", { className: "app-trial-wrapper" },
|
|
92
|
-
React.createElement("p", null, "Want to test it out?"),
|
|
93
|
-
React.createElement(Button, { fashion: "primary", text: "See it Now", onClick: seeItNow })),
|
|
94
|
-
React.createElement("p", null, "Your application is now available to be launched in the toolbar under \u201CApps\u201D."),
|
|
95
|
-
React.createElement("div", { className: "app-edit-success-actions" },
|
|
96
|
-
React.createElement(Button, { fashion: "secondary", text: "Add Another Application", onClick: () => {
|
|
97
|
-
props.setCurrentComponentID("new");
|
|
98
|
-
} }),
|
|
99
|
-
React.createElement(Button, { fashion: "secondary", text: "Return to List", onClick: () => {
|
|
100
|
-
props.setCurrentComponentID("");
|
|
101
|
-
} }))))))))))));
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=ApplicationEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationEdit.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CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,GAGxD,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CACrC,CACD;wBAET,oBAAC,OAAO,QACN,CAAC,aAAa,CAAC,CAAC,CAAC,CACjB,oBAAC,WAAW,oBAAK,gBAAgB,EAAI,CACrC,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,kBAAkB;4BAChC,4DAAkC;4BAElC,6BAAK,SAAS,EAAC,0BAA0B;gCACxC,6BAAK,SAAS,EAAC,mBAAmB;oCACjC,sDAA2B;oCAC3B,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,EAAC,OAAO,EAAE,QAAQ,GAAI,CAC5D;gCACN,yHAAoF;gCACpF,6BAAK,SAAS,EAAC,0BAA0B;oCACxC,oBAAC,MAAM,IACN,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,yBAAyB,EAC9B,OAAO,EAAE,GAAG,EAAE;4CACb,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;wCACpC,CAAC,GACA;oCACF,oBAAC,MAAM,IACN,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,gBAAgB,EACrB,OAAO,EAAE,GAAG,EAAE;4CACb,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;wCACjC,CAAC,GACA,CACG,CACD,CACD,CACN,CACQ,CACA,CACL,CACF,CACA,CACF,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useState } from \"react\";\r\nimport { View } from \"./View\";\r\nimport { Header } from \"../common/Header\";\r\nimport { Content } from \"./Content\";\r\nimport { Button } from \"../common/Button\";\r\nimport { AppEditPage, SubmittedDataProps } from \"./AppEditPage\";\r\nimport { generateDefaultConfig } from \"./sdd_helpers\";\r\nimport { ApplicationSaveData } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\r\nimport { AppEditPageProps } from \"./AppEditPage\";\r\nimport { AppDefinition } from \"@finsemble/finsemble-core/types/services/Interop/types\";\r\n\r\nexport type ApplicationEditProps = {\r\n\tid: string;\r\n\tisEditMode: boolean;\r\n\tisSetupWizard: boolean;\r\n\tonClickBackButton?: (e: React.MouseEvent<HTMLElement>) => void;\r\n\tsetCurrentComponentID: (id: string | null) => void;\r\n\tremoveAppID: (id: string) => void;\r\n\tremoveComponentID?: (id: string) => void;\r\n\tonSaveData: (data: ApplicationSaveData) => Promise<any>;\r\n\tapps: object[];\r\n\tdata: ApplicationSaveData;\r\n\taddApp: (appId: string, config: AppDefinition) => Promise<{ err: null }>;\r\n\tisInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;\r\n\tisOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;\r\n};\r\n\r\nexport const ApplicationEdit = (props: ApplicationEditProps) => {\r\n\tconst [setupComplete, setSetupComplete] = useState(false);\r\n\tconst { displayName, windowURL, nativePath, currentAppType } = generateDefaultConfig(props.data);\r\n\r\n\tconst submitFn = (data: SubmittedDataProps) => {\r\n\t\tprops\r\n\t\t\t?.onSaveData?.({\r\n\t\t\t\t...data,\r\n\t\t\t\ttags: props.data.tags,\r\n\t\t\t})\r\n\t\t\t.then(() => {\r\n\t\t\t\tsetSetupComplete(true);\r\n\r\n\t\t\t\tif (props?.isEditMode) {\r\n\t\t\t\t\tprops?.setCurrentComponentID?.(\"\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst cancelFn = () => {\r\n\t\tif (!props.isEditMode) {\r\n\t\t\tprops.removeAppID(props.id);\r\n\t\t}\r\n\r\n\t\tprops.setCurrentComponentID(null);\r\n\t};\r\n\r\n\tconst removeApplicationFn = () => {\r\n\t\tprops.removeAppID(props.id);\r\n\t\tprops.setCurrentComponentID(\"\");\r\n\t};\r\n\r\n\tconst validateURL = (url: string) => FSBL.Clients.SmartDesktopClient.checkValidURL(url);\r\n\r\n\tconst seeItNow = (e: React.MouseEvent<HTMLButtonElement>) => {\r\n\t\tFSBL.Clients.LauncherClient.spawn(props.id, {}, (err: any, response: any) => {\r\n\t\t\tif (err) {\r\n\t\t\t\tFSBL.Clients.Logger.system.error(\"ApplicationEdit spawn error:\", err);\r\n\t\t\t} else {\r\n\t\t\t\tFSBL.Clients.Logger.system.log(\"ApplicationEdit spawn response:\", response);\r\n\t\t\t}\r\n\t\t});\r\n\t\te.preventDefault();\r\n\t};\r\n\r\n\tconst backFunction = (e: React.MouseEvent<HTMLButtonElement>) => {\r\n\t\tsetSetupComplete(false);\r\n\r\n\t\tif (!props.isEditMode) {\r\n\t\t\tprops.removeAppID(props.id);\r\n\t\t}\r\n\r\n\t\tif (typeof props.onClickBackButton === \"function\") {\r\n\t\t\t// we're a child of of ApplicationSetup\r\n\t\t\treturn props.onClickBackButton(e);\r\n\t\t}\r\n\t};\r\n\r\n\tconst helpFunction = () => {\r\n\t\tconst helpLink = props.isEditMode ? \"editing-applications\" : \"adding-applications\";\r\n\t\tlaunchTutorialLink(helpLink);\r\n\t};\r\n\r\n\tconst appEditPageProps: AppEditPageProps = {\r\n\t\tstartingDisplayName: displayName,\r\n\t\tisSetupWizard: props.isSetupWizard,\r\n\t\tisEditMode: props.isEditMode,\r\n\t\tstartingAppType: currentAppType,\r\n\t\tstartingWindowURL: windowURL,\r\n\t\tstartingNativePath: nativePath,\r\n\t\tstartingDescription: props?.data?.description || \"\",\r\n\t\tvalidateURL,\r\n\t\tstartingWidth: props.data.width || 0,\r\n\t\tstartingHeight: props.data.height || 0,\r\n\t\tstartingRules: props.data.rules || [],\r\n\t\tremoveApplicationFn,\r\n\t\tcancelFn,\r\n\t\tsubmitFn,\r\n\t\taddApp: props.addApp,\r\n\t\tisInboundInteropAuthorized: props.isInboundInteropAuthorized,\r\n\t\tisOutboundInteropAuthorized: props.isOutboundInteropAuthorized,\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div className=\"app-edit\">\r\n\t\t\t<View>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<form onSubmit={(e) => e.preventDefault()}>\r\n\t\t\t\t\t\t<fieldset className=\"app-edit-fieldset\">\r\n\t\t\t\t\t\t\t<legend>\r\n\t\t\t\t\t\t\t\t<Header\r\n\t\t\t\t\t\t\t\t\thelpFunction={helpFunction}\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t// Only display the back button during setup. Once setup is complete, hide the back button.\r\n\t\t\t\t\t\t\t\t\t\t...(setupComplete ? {} : { backFunction: backFunction })\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t{props.isEditMode ? \"Edit App\" : \"Add an app\"}\r\n\t\t\t\t\t\t\t\t</Header>\r\n\t\t\t\t\t\t\t</legend>\r\n\r\n\t\t\t\t\t\t\t<Content>\r\n\t\t\t\t\t\t\t\t{!setupComplete ? (\r\n\t\t\t\t\t\t\t\t\t<AppEditPage {...appEditPageProps} />\r\n\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t<div className=\"app-edit-success\">\r\n\t\t\t\t\t\t\t\t\t\t<h2>Your application is added</h2>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div className=\"app-edit-success-content\">\r\n\t\t\t\t\t\t\t\t\t\t\t<div className=\"app-trial-wrapper\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<p>Want to test it out?</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Button fashion=\"primary\" text=\"See it Now\" onClick={seeItNow} />\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t<p>Your application is now available to be launched in the toolbar under “Apps”.</p>\r\n\t\t\t\t\t\t\t\t\t\t\t<div className=\"app-edit-success-actions\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tfashion=\"secondary\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttext=\"Add Another Application\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tprops.setCurrentComponentID(\"new\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tfashion=\"secondary\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttext=\"Return to List\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tprops.setCurrentComponentID(\"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t</Content>\r\n\t\t\t\t\t\t</fieldset>\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>\r\n\t\t\t</View>\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
/// <reference types="react" />
|
|
6
|
-
import { ApplicationSaveData } from "../../types/smartDesktopDesignerTypes";
|
|
7
|
-
import { services } from "@finsemble/finsemble-core";
|
|
8
|
-
declare type AppDefinition = services.Interop.types.AppDefinition;
|
|
9
|
-
export declare type ApplicationSetupProps = {
|
|
10
|
-
id: string;
|
|
11
|
-
setCurrentComponentID: (id: string | null) => void;
|
|
12
|
-
onClickBackButton?: () => void;
|
|
13
|
-
removeAppID: (id: string) => void;
|
|
14
|
-
onSaveData: (data: ApplicationSaveData) => Promise<any>;
|
|
15
|
-
backFunction: () => void;
|
|
16
|
-
apps: AppDefinition[];
|
|
17
|
-
data: ApplicationSaveData;
|
|
18
|
-
addApp: typeof FSBL.Clients.SmartDesktopClient.prototype.addApp;
|
|
19
|
-
isInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;
|
|
20
|
-
isOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;
|
|
21
|
-
};
|
|
22
|
-
export declare const ApplicationSetup: (props: ApplicationSetupProps) => JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useState, useEffect } from "react";
|
|
6
|
-
import { View } from "./View";
|
|
7
|
-
import { Header } from "../common/Header";
|
|
8
|
-
import { Content } from "./Content";
|
|
9
|
-
import { ApplicationEdit } from "./ApplicationEdit";
|
|
10
|
-
import { FileInput } from "../common/FileInput";
|
|
11
|
-
import { Button } from "../common/Button";
|
|
12
|
-
import { ButtonTile } from "../common/ButtonTile";
|
|
13
|
-
import { launchTutorialLink } from "./common/fsbl_functions";
|
|
14
|
-
import { validateFilename, VALID_APP_EXTENSIONS } from "../common/file_helpers";
|
|
15
|
-
export const ApplicationSetup = (props) => {
|
|
16
|
-
const [currentAppType, setCurrentAppType] = useState("");
|
|
17
|
-
const [currentAppPath, setCurrentAppPath] = useState("");
|
|
18
|
-
const [savedAppPath, setSavedAppPath] = useState(false);
|
|
19
|
-
const [isAppPathValid, setIsAppPathValid] = useState(true);
|
|
20
|
-
const invalidWeb = currentAppType === "web" && (!isAppPathValid || currentAppPath.length === 0);
|
|
21
|
-
const invalidNative = currentAppType === "native" && (currentAppPath === "" || validateFilename(VALID_APP_EXTENSIONS, currentAppPath));
|
|
22
|
-
const disableNext = invalidWeb || invalidNative;
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
setIsAppPathValid(FSBL.Clients.SmartDesktopClient.checkValidURL(currentAppPath));
|
|
25
|
-
}, [currentAppPath]);
|
|
26
|
-
const onClickBackButton = () => {
|
|
27
|
-
if (savedAppPath) {
|
|
28
|
-
setSavedAppPath(false);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof props.onClickBackButton === "function") {
|
|
31
|
-
return props.onClickBackButton();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const applicationEditProps = Object.assign(Object.assign({}, props), { isSetupWizard: true, isEditMode: false, onSaveData: props.onSaveData, apps: props.apps, data: Object.assign(Object.assign({}, props.data), { url: currentAppType === "web" ? currentAppPath : "", path: currentAppType === "native" ? currentAppPath : "" }), onClickBackButton });
|
|
35
|
-
return (React.createElement("div", { className: "app-edit" },
|
|
36
|
-
React.createElement(View, null,
|
|
37
|
-
React.createElement(Header, { helpFunction: () => {
|
|
38
|
-
launchTutorialLink("adding-applications");
|
|
39
|
-
}, backFunction: onClickBackButton }, "Add an app"),
|
|
40
|
-
React.createElement(Content, null, !savedAppPath ? (React.createElement(React.Fragment, null,
|
|
41
|
-
React.createElement("h2", { className: "setup-type-heading" }, "Is your app web or native?"),
|
|
42
|
-
React.createElement("div", { className: `tile-type-buttons active-${currentAppType}` },
|
|
43
|
-
React.createElement(ButtonTile, { className: "icon-web", icon: "globe", text: "Web app", onClick: () => {
|
|
44
|
-
setCurrentAppType === null || setCurrentAppType === void 0 ? void 0 : setCurrentAppType("web");
|
|
45
|
-
setCurrentAppPath === null || setCurrentAppPath === void 0 ? void 0 : setCurrentAppPath(props.data.url || "");
|
|
46
|
-
setSavedAppPath === null || setSavedAppPath === void 0 ? void 0 : setSavedAppPath(false);
|
|
47
|
-
} }),
|
|
48
|
-
React.createElement(ButtonTile, { className: "icon-native", icon: "hdd", text: "Native app", onClick: () => {
|
|
49
|
-
setCurrentAppType === null || setCurrentAppType === void 0 ? void 0 : setCurrentAppType("native");
|
|
50
|
-
setCurrentAppPath === null || setCurrentAppPath === void 0 ? void 0 : setCurrentAppPath(props.data.path || "");
|
|
51
|
-
setSavedAppPath === null || setSavedAppPath === void 0 ? void 0 : setSavedAppPath(false);
|
|
52
|
-
} })),
|
|
53
|
-
currentAppType && !savedAppPath && (React.createElement(React.Fragment, null,
|
|
54
|
-
React.createElement("div", { className: "app-setup-url-field" },
|
|
55
|
-
React.createElement("label", { htmlFor: "app-url" }, currentAppType === "web" ? (React.createElement(React.Fragment, null, "Enter the full URL of the application")) : (React.createElement(React.Fragment, null, "Choose your application"))),
|
|
56
|
-
currentAppType === "web" ? (React.createElement("div", { className: "app-url-container" },
|
|
57
|
-
React.createElement("input", { type: "text", placeholder: "https://...", id: "app-url", value: currentAppPath, "aria-invalid": !isAppPathValid, "aria-errormessage": "app-url-error-message", onChange: (e) => {
|
|
58
|
-
setCurrentAppPath(e.target.value);
|
|
59
|
-
}, onKeyUp: (e) => {
|
|
60
|
-
setCurrentAppPath(e.currentTarget.value);
|
|
61
|
-
} }),
|
|
62
|
-
!isAppPathValid ? (React.createElement("div", { id: "app-url-error-message", className: "invalid-message" }, "URL must be valid (e.g., https://cosaic.io/). Only http and https prototcols are supported.")) : (""))) : (React.createElement(FileInput, { acceptTypes: VALID_APP_EXTENSIONS, shouldUpload: false, value: currentAppPath, onSetValue: (value) => {
|
|
63
|
-
setCurrentAppPath(value);
|
|
64
|
-
} }))),
|
|
65
|
-
React.createElement("div", { className: "app-edit-actions" },
|
|
66
|
-
React.createElement("div", null),
|
|
67
|
-
React.createElement("div", null,
|
|
68
|
-
React.createElement(Button, { fashion: "secondary", text: "Next", disabled: disableNext, onClick: () => {
|
|
69
|
-
setSavedAppPath(true);
|
|
70
|
-
} }))))))) : (React.createElement(React.Fragment, null,
|
|
71
|
-
React.createElement(ApplicationEdit, Object.assign({}, applicationEditProps))))))));
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=ApplicationSetup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationSetup.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ApplicationSetup.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAoBhF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAChE,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3D,MAAM,UAAU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port React, { useState, useEffect } from \"react\";\r\nimport { View } from \"./View\";\r\nimport { Header } from \"../common/Header\";\r\nimport { Content } from \"./Content\";\r\nimport { ApplicationEdit } from \"./ApplicationEdit\";\r\nimport { FileInput } from \"../common/FileInput\";\r\nimport { Button } from \"../common/Button\";\r\nimport { ButtonTile } from \"../common/ButtonTile\";\r\nimport { ApplicationSaveData } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\r\nimport { validateFilename, VALID_APP_EXTENSIONS } from \"../common/file_helpers\";\r\nimport { ApplicationEditProps } from \"./ApplicationEdit\";\r\nimport { services } from \"@finsemble/finsemble-core\";\r\n\r\ntype AppDefinition = services.Interop.types.AppDefinition;\r\n\r\nexport type ApplicationSetupProps = {\r\n\tid: string;\r\n\tsetCurrentComponentID: (id: string | null) => void;\r\n\tonClickBackButton?: () => void;\r\n\tremoveAppID: (id: string) => void;\r\n\tonSaveData: (data: ApplicationSaveData) => Promise<any>;\r\n\tbackFunction: () => void;\r\n\tapps: AppDefinition[];\r\n\tdata: ApplicationSaveData;\r\n\taddApp: typeof FSBL.Clients.SmartDesktopClient.prototype.addApp;\r\n\tisInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;\r\n\tisOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;\r\n};\r\n\r\nexport const ApplicationSetup = (props: ApplicationSetupProps) => {\r\n\tconst [currentAppType, setCurrentAppType] = useState(\"\");\r\n\tconst [currentAppPath, setCurrentAppPath] = useState(\"\");\r\n\tconst [savedAppPath, setSavedAppPath] = useState(false);\r\n\tconst [isAppPathValid, setIsAppPathValid] = useState(true);\r\n\r\n\tconst invalidWeb = currentAppType === \"web\" && (!isAppPathValid || currentAppPath.length === 0);\r\n\tconst invalidNative =\r\n\t\tcurrentAppType === \"native\" && (currentAppPath === \"\" || validateFilename(VALID_APP_EXTENSIONS, currentAppPath));\r\n\tconst disableNext = invalidWeb || invalidNative;\r\n\r\n\tuseEffect(() => {\r\n\t\tsetIsAppPathValid(FSBL.Clients.SmartDesktopClient.checkValidURL(currentAppPath));\r\n\t}, [currentAppPath]);\r\n\r\n\tconst onClickBackButton = () => {\r\n\t\t// setSavedAppCompatibility(false);\r\n\t\tif (savedAppPath) {\r\n\t\t\tsetSavedAppPath(false);\r\n\t\t} else if (typeof props.onClickBackButton === \"function\") {\r\n\t\t\t// we're a child of of Application\r\n\t\t\treturn props.onClickBackButton();\r\n\t\t}\r\n\t};\r\n\r\n\tconst applicationEditProps: ApplicationEditProps = {\r\n\t\t...props,\r\n\t\tisSetupWizard: true,\r\n\t\tisEditMode: false,\r\n\t\tonSaveData: props.onSaveData,\r\n\t\tapps: props.apps,\r\n\t\tdata: {\r\n\t\t\t...props.data,\r\n\t\t\turl: currentAppType === \"web\" ? currentAppPath : \"\",\r\n\t\t\tpath: currentAppType === \"native\" ? currentAppPath : \"\",\r\n\t\t},\r\n\t\tonClickBackButton,\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div className=\"app-edit\">\r\n\t\t\t<View>\r\n\t\t\t\t<Header\r\n\t\t\t\t\thelpFunction={() => {\r\n\t\t\t\t\t\tlaunchTutorialLink(\"adding-applications\");\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tbackFunction={onClickBackButton}\r\n\t\t\t\t>\r\n\t\t\t\t\tAdd an app\r\n\t\t\t\t</Header>\r\n\r\n\t\t\t\t<Content>\r\n\t\t\t\t\t{!savedAppPath ? (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t<h2 className=\"setup-type-heading\">Is your app web or native?</h2>\r\n\r\n\t\t\t\t\t\t\t<div className={`tile-type-buttons active-${currentAppType}`}>\r\n\t\t\t\t\t\t\t\t<ButtonTile\r\n\t\t\t\t\t\t\t\t\tclassName=\"icon-web\"\r\n\t\t\t\t\t\t\t\t\ticon=\"globe\"\r\n\t\t\t\t\t\t\t\t\ttext=\"Web app\"\r\n\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\tsetCurrentAppType?.(\"web\");\r\n\t\t\t\t\t\t\t\t\t\tsetCurrentAppPath?.(props.data.url || \"\");\r\n\t\t\t\t\t\t\t\t\t\tsetSavedAppPath?.(false);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t<ButtonTile\r\n\t\t\t\t\t\t\t\t\tclassName=\"icon-native\"\r\n\t\t\t\t\t\t\t\t\ticon=\"hdd\"\r\n\t\t\t\t\t\t\t\t\ttext=\"Native app\"\r\n\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\tsetCurrentAppType?.(\"native\");\r\n\t\t\t\t\t\t\t\t\t\tsetCurrentAppPath?.(props.data.path || \"\");\r\n\t\t\t\t\t\t\t\t\t\tsetSavedAppPath?.(false);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t{currentAppType && !savedAppPath && (\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t<div className=\"app-setup-url-field\">\r\n\t\t\t\t\t\t\t\t\t\t<label htmlFor=\"app-url\">\r\n\t\t\t\t\t\t\t\t\t\t\t{currentAppType === \"web\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<>Enter the full URL of the application</>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<>Choose your application</>\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t{currentAppType === \"web\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t<div className=\"app-url-container\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"https://...\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tid=\"app-url\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={currentAppPath}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-invalid={!isAppPathValid}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\taria-errormessage=\"app-url-error-message\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetCurrentAppPath(e.target.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonKeyUp={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetCurrentAppPath(e.currentTarget.value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{!isAppPathValid ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div id=\"app-url-error-message\" className=\"invalid-message\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tURL must be valid (e.g., https://cosaic.io/). Only http and https prototcols are supported.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t<FileInput\r\n\t\t\t\t\t\t\t\t\t\t\t\tacceptTypes={VALID_APP_EXTENSIONS}\r\n\t\t\t\t\t\t\t\t\t\t\t\tshouldUpload={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={currentAppPath}\r\n\t\t\t\t\t\t\t\t\t\t\t\tonSetValue={(value: string) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetCurrentAppPath(value);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t></FileInput>\r\n\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t<div className=\"app-edit-actions\">\r\n\t\t\t\t\t\t\t\t\t\t<div></div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\t\t\t\t\tfashion=\"secondary\"\r\n\t\t\t\t\t\t\t\t\t\t\t\ttext=\"Next\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={disableNext}\r\n\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsetSavedAppPath(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</>\r\n\t\t\t\t\t) : (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t<ApplicationEdit {...applicationEditProps}></ApplicationEdit>\r\n\t\t\t\t\t\t</>\r\n\t\t\t\t\t)}\r\n\t\t\t\t</Content>\r\n\t\t\t</View>\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
/// <reference types="react" />
|
|
6
|
-
import "./css/project-header.css";
|
|
7
|
-
export declare type ProjectHeaderProps = {
|
|
8
|
-
onSaveProjectName: Function;
|
|
9
|
-
projectName: string;
|
|
10
|
-
projectPath: string;
|
|
11
|
-
selectProjectPath: typeof FSBL.Clients.SmartDesktopClient.prototype.selectProjectPath;
|
|
12
|
-
onSaveProjectPath: Function;
|
|
13
|
-
};
|
|
14
|
-
export declare const ProjectHeader: ({ projectName, onSaveProjectName, selectProjectPath, onSaveProjectPath, }: ProjectHeaderProps) => JSX.Element;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useEffect, useState } from "react";
|
|
6
|
-
import AutosizeInput from "react-input-autosize";
|
|
7
|
-
import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
|
|
8
|
-
import { useDispatch, useSelector } from "../../store";
|
|
9
|
-
import { Tooltip } from "../common/Tooltip";
|
|
10
|
-
import "./css/project-header.css";
|
|
11
|
-
import { ButtonIcon } from "../common/ButtonIcon";
|
|
12
|
-
const INVALID_NAME_ERROR = {
|
|
13
|
-
viewId: "export",
|
|
14
|
-
message: "Invalid project name",
|
|
15
|
-
};
|
|
16
|
-
export const ProjectHeader = ({ projectName = "", onSaveProjectName, selectProjectPath, onSaveProjectPath, }) => {
|
|
17
|
-
const projectSettings = useSelector((store) => store.smartDesktopDesigner.projectInfo);
|
|
18
|
-
const dispatch = useDispatch();
|
|
19
|
-
const [isEditingProjectName, setIsEditingProjectName] = useState(false);
|
|
20
|
-
const [tmpProjectName, setTmpProjectName] = useState(projectName);
|
|
21
|
-
const isProjectNameValid = FSBL.Clients.SmartDesktopClient.checkValidProjectName(tmpProjectName);
|
|
22
|
-
const error = useSelector((state) => state.smartDesktopDesigner.errors.find((err) => err.viewId === "export"));
|
|
23
|
-
const isReviewingErrors = useSelector((state) => state.smartDesktopDesigner.isReviewingErrors);
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
if (isProjectNameValid) {
|
|
26
|
-
dispatch(SmartDesktopDesignerActions.delete_project_error(INVALID_NAME_ERROR));
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
dispatch(SmartDesktopDesignerActions.set_project_error(INVALID_NAME_ERROR));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return (React.createElement("form", { className: [
|
|
33
|
-
"project-header",
|
|
34
|
-
isEditingProjectName ? "is-editing-project-name" : "",
|
|
35
|
-
isProjectNameValid ? "" : "is-invalid-project-name",
|
|
36
|
-
].join(" "), onSubmit: (e) => {
|
|
37
|
-
e.preventDefault();
|
|
38
|
-
} },
|
|
39
|
-
isReviewingErrors && !isProjectNameValid && error && (React.createElement("div", { className: "project-name-error-icon" },
|
|
40
|
-
React.createElement(Tooltip, { type: "warn" }, error.message))),
|
|
41
|
-
React.createElement("div", { className: "project-name-container", "aria-label": "Project Name", onClick: () => {
|
|
42
|
-
setIsEditingProjectName(true);
|
|
43
|
-
} },
|
|
44
|
-
React.createElement(AutosizeInput, { className: "project-name-field", id: "project-name", name: "project-name", type: "text", placeholder: "Untitled", value: tmpProjectName, style: { fontSize: 14 }, onInput: (e) => {
|
|
45
|
-
setTmpProjectName(e.target.value);
|
|
46
|
-
}, onKeyDown: (e) => {
|
|
47
|
-
if (e.key === "Enter") {
|
|
48
|
-
e.currentTarget.blur();
|
|
49
|
-
}
|
|
50
|
-
}, onBlur: () => {
|
|
51
|
-
if (isProjectNameValid) {
|
|
52
|
-
onSaveProjectName(tmpProjectName);
|
|
53
|
-
setIsEditingProjectName(false);
|
|
54
|
-
}
|
|
55
|
-
} })),
|
|
56
|
-
React.createElement("div", { className: "project-path-container", onClick: (e) => {
|
|
57
|
-
const path = e.currentTarget.dataset.targetUploadPath;
|
|
58
|
-
if (path) {
|
|
59
|
-
onSaveProjectPath(path);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
selectProjectPath().then((selectedProjectPath) => {
|
|
63
|
-
onSaveProjectPath(selectedProjectPath);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
} },
|
|
67
|
-
React.createElement(ButtonIcon, { text: "Change path", icon: "folder", buttonAttributes: { "data-target-upload-path": "" }, className: "change-project-path-button" }),
|
|
68
|
-
React.createElement("div", { className: "current-project-path" }, projectSettings.path))));
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=ProjectHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectHeader.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ProjectHeader.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAUlD,MAAM,kBAAkB,GAAiB;IACxC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,sBAAsB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC7B,WAAW,GAAG,EAAE,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GACG,EAAE,EAAE;IACxB,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAElG,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxE,MAAM,CAAC,cAAc,EAAE,iBAA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D,SAAS,EAAC,4BAA4B,GACrC;YACF,6BAAK,SAAS,EAAC,sBAAsB,IAAE,eAAe,CAAC,IAAI,CAAO,CAC7D,CACA,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React, { useEffect, useState } from \"react\";\r\n\r\nimport AutosizeInput from \"react-input-autosize\";\r\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\r\nimport { RootState } from \"../../reducers/rootReducer\";\r\nimport { useDispatch, useSelector } from \"../../store\";\r\nimport { ProjectError } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { Tooltip } from \"../common/Tooltip\";\r\nimport \"./css/project-header.css\";\r\nimport { ButtonIcon } from \"../common/ButtonIcon\";\r\n\r\nexport type ProjectHeaderProps = {\r\n\tonSaveProjectName: Function;\r\n\tprojectName: string;\r\n\tprojectPath: string;\r\n\tselectProjectPath: typeof FSBL.Clients.SmartDesktopClient.prototype.selectProjectPath;\r\n\tonSaveProjectPath: Function;\r\n};\r\n\r\nconst INVALID_NAME_ERROR: ProjectError = {\r\n\tviewId: \"export\",\r\n\tmessage: \"Invalid project name\",\r\n};\r\n\r\nexport const ProjectHeader = ({\r\n\tprojectName = \"\",\r\n\tonSaveProjectName,\r\n\tselectProjectPath,\r\n\tonSaveProjectPath,\r\n}: ProjectHeaderProps) => {\r\n\tconst projectSettings = useSelector((store: RootState) => store.smartDesktopDesigner.projectInfo);\r\n\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [isEditingProjectName, setIsEditingProjectName] = useState(false);\r\n\tconst [tmpProjectName, setTmpProjectName] = useState(projectName);\r\n\r\n\tconst isProjectNameValid = FSBL.Clients.SmartDesktopClient.checkValidProjectName(tmpProjectName);\r\n\tconst error = useSelector((state: RootState) =>\r\n\t\tstate.smartDesktopDesigner.errors.find((err) => err.viewId === \"export\")\r\n\t);\r\n\tconst isReviewingErrors = useSelector((state: RootState) => state.smartDesktopDesigner.isReviewingErrors);\r\n\r\n\tuseEffect(() => {\r\n\t\tif (isProjectNameValid) {\r\n\t\t\tdispatch(SmartDesktopDesignerActions.delete_project_error(INVALID_NAME_ERROR));\r\n\t\t} else {\r\n\t\t\tdispatch(SmartDesktopDesignerActions.set_project_error(INVALID_NAME_ERROR));\r\n\t\t}\r\n\t});\r\n\r\n\treturn (\r\n\t\t<form\r\n\t\t\tclassName={[\r\n\t\t\t\t\"project-header\",\r\n\t\t\t\tisEditingProjectName ? \"is-editing-project-name\" : \"\",\r\n\t\t\t\tisProjectNameValid ? \"\" : \"is-invalid-project-name\",\r\n\t\t\t].join(\" \")}\r\n\t\t\tonSubmit={(e) => {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t{isReviewingErrors && !isProjectNameValid && error && (\r\n\t\t\t\t<div className=\"project-name-error-icon\">\r\n\t\t\t\t\t<Tooltip type=\"warn\">{error.message}</Tooltip>\r\n\t\t\t\t</div>\r\n\t\t\t)}\r\n\t\t\t{/* <div className=\"project-title-icon\"></div> */}\r\n\t\t\t<div\r\n\t\t\t\tclassName=\"project-name-container\"\r\n\t\t\t\taria-label=\"Project Name\"\r\n\t\t\t\tonClick={() => {\r\n\t\t\t\t\tsetIsEditingProjectName(true);\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<AutosizeInput\r\n\t\t\t\t\tclassName=\"project-name-field\"\r\n\t\t\t\t\tid=\"project-name\"\r\n\t\t\t\t\tname=\"project-name\"\r\n\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\tplaceholder=\"Untitled\"\r\n\t\t\t\t\tvalue={tmpProjectName}\r\n\t\t\t\t\tstyle={{ fontSize: 14 }}\r\n\t\t\t\t\tonInput={(e: React.ChangeEvent<HTMLInputElement>) => {\r\n\t\t\t\t\t\tsetTmpProjectName(e.target.value);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonKeyDown={(e) => {\r\n\t\t\t\t\t\tif (e.key === \"Enter\") {\r\n\t\t\t\t\t\t\te.currentTarget.blur();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonBlur={() => {\r\n\t\t\t\t\t\tif (isProjectNameValid) {\r\n\t\t\t\t\t\t\tonSaveProjectName(tmpProjectName);\r\n\t\t\t\t\t\t\tsetIsEditingProjectName(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}\r\n\t\t\t\t/>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div\r\n\t\t\t\tclassName=\"project-path-container\"\r\n\t\t\t\tonClick={(e) => {\r\n\t\t\t\t\tconst path = e.currentTarget.dataset.targetUploadPath;\r\n\r\n\t\t\t\t\tif (path) {\r\n\t\t\t\t\t\tonSaveProjectPath(path);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tselectProjectPath().then((selectedProjectPath: string) => {\r\n\t\t\t\t\t\t\tonSaveProjectPath(selectedProjectPath);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<ButtonIcon\r\n\t\t\t\t\ttext=\"Change path\"\r\n\t\t\t\t\ticon=\"folder\"\r\n\t\t\t\t\tbuttonAttributes={{ \"data-target-upload-path\": \"\" }}\r\n\t\t\t\t\tclassName=\"change-project-path-button\"\r\n\t\t\t\t/>\r\n\t\t\t\t<div className=\"current-project-path\">{projectSettings.path}</div>\r\n\t\t\t</div>\r\n\t\t</form>\r\n\t);\r\n};\r\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { default_apps } from "../fixtures/apps";
|
|
2
|
-
import { appConfigToAppData } from "../Application";
|
|
3
|
-
const defaultCallback = () => new Promise((resolve) => {
|
|
4
|
-
resolve(true);
|
|
5
|
-
});
|
|
6
|
-
const resolveNullError = () => new Promise((resolve) => {
|
|
7
|
-
resolve({ err: null });
|
|
8
|
-
});
|
|
9
|
-
const APP_CREATE_PROPS = {
|
|
10
|
-
id: "new",
|
|
11
|
-
isEditMode: false,
|
|
12
|
-
isSetupWizard: false,
|
|
13
|
-
setCurrentComponentID: () => { },
|
|
14
|
-
removeAppID: () => { },
|
|
15
|
-
onSaveData: () => new Promise((resolve) => {
|
|
16
|
-
resolve({});
|
|
17
|
-
}),
|
|
18
|
-
apps: Object.assign({}, default_apps),
|
|
19
|
-
data: {
|
|
20
|
-
name: "",
|
|
21
|
-
description: "",
|
|
22
|
-
path: "",
|
|
23
|
-
url: "",
|
|
24
|
-
height: 0,
|
|
25
|
-
width: 0,
|
|
26
|
-
},
|
|
27
|
-
isInboundInteropAuthorized: defaultCallback,
|
|
28
|
-
isOutboundInteropAuthorized: defaultCallback,
|
|
29
|
-
addApp: resolveNullError,
|
|
30
|
-
};
|
|
31
|
-
const APP_EDIT_PROPS = {
|
|
32
|
-
id: default_apps[0].appId,
|
|
33
|
-
isEditMode: true,
|
|
34
|
-
isSetupWizard: false,
|
|
35
|
-
setCurrentComponentID: () => { },
|
|
36
|
-
removeAppID: () => { },
|
|
37
|
-
onSaveData: defaultCallback,
|
|
38
|
-
apps: Object.assign({}, default_apps),
|
|
39
|
-
data: appConfigToAppData(default_apps[0]),
|
|
40
|
-
isInboundInteropAuthorized: defaultCallback,
|
|
41
|
-
isOutboundInteropAuthorized: defaultCallback,
|
|
42
|
-
addApp: resolveNullError,
|
|
43
|
-
};
|
|
44
|
-
export { APP_CREATE_PROPS, APP_EDIT_PROPS };
|
|
45
|
-
//# sourceMappingURL=applicationEditProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicationEditProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/applicationEditProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,eAAe,GAAG,GAAqB,EAAE,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,EAAE,eAAe;IAC3C,2BAA2B,EAAE,eAAe;IAC5C,MAAM,EAAE,gBAAgB;CACxB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { ApplicationEditProps } from \"../ApplicationEdit\";\r\nimport { default_apps } from \"../fixtures/apps\";\r\nimport { appConfigToAppData } from \"../Application\";\r\n\r\nconst defaultCallback = (): Promise<boolean> =>\r\n\tnew Promise((resolve) => {\r\n\t\tresolve(true);\r\n\t});\r\n\r\nconst resolveNullError = (): Promise<{ err: null }> =>\r\n\tnew Promise((resolve) => {\r\n\t\tresolve({ err: null });\r\n\t});\r\n\r\nconst APP_CREATE_PROPS: ApplicationEditProps = {\r\n\tid: \"new\",\r\n\tisEditMode: false,\r\n\tisSetupWizard: false,\r\n\tsetCurrentComponentID: () => {},\r\n\tremoveAppID: () => {},\r\n\tonSaveData: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve({});\r\n\t\t}),\r\n\tapps: { ...default_apps },\r\n\tdata: {\r\n\t\tname: \"\",\r\n\t\tdescription: \"\",\r\n\t\tpath: \"\",\r\n\t\turl: \"\",\r\n\t\theight: 0,\r\n\t\twidth: 0,\r\n\t},\r\n\tisInboundInteropAuthorized: defaultCallback,\r\n\tisOutboundInteropAuthorized: defaultCallback,\r\n\taddApp: resolveNullError,\r\n};\r\nconst APP_EDIT_PROPS: ApplicationEditProps = {\r\n\tid: default_apps[0].appId,\r\n\tisEditMode: true,\r\n\tisSetupWizard: false,\r\n\tsetCurrentComponentID: () => {},\r\n\tremoveAppID: () => {},\r\n\tonSaveData: defaultCallback,\r\n\tapps: { ...default_apps },\r\n\tdata: appConfigToAppData(default_apps[0]),\r\n\tisInboundInteropAuthorized: defaultCallback,\r\n\tisOutboundInteropAuthorized: defaultCallback,\r\n\taddApp: resolveNullError,\r\n};\r\n\r\nexport { APP_CREATE_PROPS, APP_EDIT_PROPS };\r\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default_apps } from "../fixtures/apps";
|
|
2
|
-
const resolvePromiseTrue = () => new Promise((resolve) => {
|
|
3
|
-
resolve(true);
|
|
4
|
-
});
|
|
5
|
-
const DEFAULT_APP_SETUP_PROPS = {
|
|
6
|
-
id: "new",
|
|
7
|
-
setCurrentComponentID: () => { },
|
|
8
|
-
removeAppID: () => { },
|
|
9
|
-
onSaveData: () => new Promise((resolve) => {
|
|
10
|
-
resolve({});
|
|
11
|
-
}),
|
|
12
|
-
backFunction: () => { },
|
|
13
|
-
apps: Object.assign({}, default_apps),
|
|
14
|
-
data: {
|
|
15
|
-
name: "",
|
|
16
|
-
description: "",
|
|
17
|
-
path: "",
|
|
18
|
-
url: "",
|
|
19
|
-
height: 0,
|
|
20
|
-
width: 0,
|
|
21
|
-
},
|
|
22
|
-
isInboundInteropAuthorized: resolvePromiseTrue,
|
|
23
|
-
isOutboundInteropAuthorized: resolvePromiseTrue,
|
|
24
|
-
addApp: () => new Promise((resolve) => {
|
|
25
|
-
resolve({ err: null });
|
|
26
|
-
}),
|
|
27
|
-
};
|
|
28
|
-
export default DEFAULT_APP_SETUP_PROPS;
|
|
29
|
-
//# sourceMappingURL=applicationSetupProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicationSetupProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/applicationSetupProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,kBAAkB,GAAG,GAAqB,EAAE,CACjD,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC;AAEJ,MAAM,uBAAuB,GAA0B;IACtD,EAAE,EAAE,KAAK;IACT,qBAAqB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC/B,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;IACrB,UAAU,EAAE,GAAG,EAAE,CAChB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,CAAC,CAAC;IACb,CAAC,CAAC;IACH,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;IACtB,IAAI,oBAAO,YAAY,CAAE;IACzB,IAAI,EAAE;QACL,IAAI,EAAE,EAAE;QACR,WAAW,EAAE,EAAE;QACf,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,CAAC;KACR;IACD,0BAA0B,EAAE,kBAAkB;IAC9C,2BAA2B,EAAE,kBAAkB;IAC/C,MAAM,EAAE,GAAG,EAAE,CACZ,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC;CACH,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { ApplicationSetupProps } from \"../ApplicationSetup\";\r\nimport { default_apps } from \"../fixtures/apps\";\r\n\r\nconst resolvePromiseTrue = (): Promise<boolean> =>\r\n\tnew Promise((resolve) => {\r\n\t\tresolve(true);\r\n\t});\r\n\r\nconst DEFAULT_APP_SETUP_PROPS: ApplicationSetupProps = {\r\n\tid: \"new\",\r\n\tsetCurrentComponentID: () => {},\r\n\tremoveAppID: () => {},\r\n\tonSaveData: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve({});\r\n\t\t}),\r\n\tbackFunction: () => {},\r\n\tapps: { ...default_apps },\r\n\tdata: {\r\n\t\tname: \"\",\r\n\t\tdescription: \"\",\r\n\t\tpath: \"\",\r\n\t\turl: \"\",\r\n\t\theight: 0,\r\n\t\twidth: 0,\r\n\t},\r\n\tisInboundInteropAuthorized: resolvePromiseTrue,\r\n\tisOutboundInteropAuthorized: resolvePromiseTrue,\r\n\taddApp: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve({ err: null });\r\n\t\t}),\r\n};\r\n\r\nexport default DEFAULT_APP_SETUP_PROPS;\r\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ApplicationEditProps } from "../ApplicationEdit";
|
|
3
|
-
import "../../../assets/css/finsemble.css";
|
|
4
|
-
import "../../common/css/styles.css";
|
|
5
|
-
import { Story } from "@storybook/react/types-6-0";
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: ApplicationEditProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const AddApp: Story<ApplicationEditProps>;
|
|
12
|
-
export declare const EditApp: Story<ApplicationEditProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ApplicationEdit } from "../ApplicationEdit";
|
|
3
|
-
import "../../../assets/css/finsemble.css";
|
|
4
|
-
import "../../common/css/styles.css";
|
|
5
|
-
import { initFSBL } from "../../common/helpers";
|
|
6
|
-
import { FinsembleProvider, createStore } from "../../FinsembleProvider";
|
|
7
|
-
import { APP_CREATE_PROPS, APP_EDIT_PROPS } from "../fixtures/applicationEditProps";
|
|
8
|
-
export default {
|
|
9
|
-
title: "Smart Desktop Designer/ApplicationEdit",
|
|
10
|
-
component: ApplicationEdit,
|
|
11
|
-
};
|
|
12
|
-
const Template = (args) => {
|
|
13
|
-
initFSBL(window);
|
|
14
|
-
return (React.createElement(FinsembleProvider, { store: createStore() },
|
|
15
|
-
React.createElement(ApplicationEdit, Object.assign({}, args))));
|
|
16
|
-
};
|
|
17
|
-
export const AddApp = Template.bind({});
|
|
18
|
-
AddApp.args = Object.assign({}, APP_CREATE_PROPS);
|
|
19
|
-
export const EditApp = Template.bind({});
|
|
20
|
-
EditApp.args = Object.assign({}, APP_EDIT_PROPS);
|
|
21
|
-
//# sourceMappingURL=ApplicationEdit.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationEdit.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ApplicationEdit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEpF,eAAe;IACd,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE;IAC5E,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB,IAAC,KAAK,EAAE,WAAW,EAAE;QACtC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CACV,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,qBACP,gBAAgB,CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,qBACR,cAAc,CACjB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ApplicationEdit, ApplicationEditProps } from \"../ApplicationEdit\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../../common/css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { initFSBL } from \"../../common/helpers\";\r\nimport { FinsembleProvider, createStore } from \"../../FinsembleProvider\";\r\nimport { APP_CREATE_PROPS, APP_EDIT_PROPS } from \"../fixtures/applicationEditProps\";\r\n\r\nexport default {\r\n\ttitle: \"Smart Desktop Designer/ApplicationEdit\",\r\n\tcomponent: ApplicationEdit,\r\n};\r\n\r\nconst Template: Story<ApplicationEditProps> = (args: ApplicationEditProps) => {\r\n\tinitFSBL(window);\r\n\r\n\treturn (\r\n\t\t<FinsembleProvider store={createStore()}>\r\n\t\t\t<ApplicationEdit {...args} />\r\n\t\t</FinsembleProvider>\r\n\t);\r\n};\r\n\r\nexport const AddApp = Template.bind({});\r\nAddApp.args = {\r\n\t...APP_CREATE_PROPS,\r\n};\r\n\r\nexport const EditApp = Template.bind({});\r\nEditApp.args = {\r\n\t...APP_EDIT_PROPS,\r\n};\r\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ApplicationSetupProps } from "../ApplicationSetup";
|
|
3
|
-
import "../../../assets/css/finsemble.css";
|
|
4
|
-
import "../../common/css/styles.css";
|
|
5
|
-
import { Story } from "@storybook/react/types-6-0";
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: ApplicationSetupProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const AddNewApp: Story<ApplicationSetupProps>;
|
|
12
|
-
export declare const EditExistingApp: Story<ApplicationSetupProps>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ApplicationSetup } from "../ApplicationSetup";
|
|
3
|
-
import "../../../assets/css/finsemble.css";
|
|
4
|
-
import "../../common/css/styles.css";
|
|
5
|
-
import { FinsembleProvider } from "../../FinsembleProvider";
|
|
6
|
-
import { initFSBL } from "../../common/helpers";
|
|
7
|
-
import DEFAULT_APP_SETUP_PROPS from "../fixtures/applicationSetupProps";
|
|
8
|
-
import { appConfigToAppData } from "../Application";
|
|
9
|
-
export default {
|
|
10
|
-
title: "Smart Desktop Designer/Application Setup (Wizard)",
|
|
11
|
-
component: ApplicationSetup,
|
|
12
|
-
};
|
|
13
|
-
const Template = (args) => {
|
|
14
|
-
initFSBL(window);
|
|
15
|
-
return (React.createElement(FinsembleProvider, null,
|
|
16
|
-
React.createElement(ApplicationSetup, Object.assign({}, args))));
|
|
17
|
-
};
|
|
18
|
-
export const AddNewApp = (() => {
|
|
19
|
-
const Component = Template.bind({});
|
|
20
|
-
Component.args = Object.assign(Object.assign({}, DEFAULT_APP_SETUP_PROPS), { id: "new" });
|
|
21
|
-
return Component;
|
|
22
|
-
})();
|
|
23
|
-
export const EditExistingApp = (() => {
|
|
24
|
-
const Component = Template.bind({});
|
|
25
|
-
Component.args = Object.assign(Object.assign({}, DEFAULT_APP_SETUP_PROPS), { id: DEFAULT_APP_SETUP_PROPS.apps[0].appId, data: appConfigToAppData(DEFAULT_APP_SETUP_PROPS.apps[0]) });
|
|
26
|
-
return Component;
|
|
27
|
-
})();
|
|
28
|
-
//# sourceMappingURL=ApplicationSetup.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationSetup.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ApplicationSetup.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAyB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAe;IACd,KAAK,EAAE,mDAAmD;IAC1D,SAAS,EAAE,gBAAgB;CAC3B,CAAC;AAEF,MAAM,QAAQ,GAAiC,CAAC,IAA2B,EAAE,EAAE;IAC9E,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CACX,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,mCACV,uBAAuB,KAC1B,EAAE,EAAE,KAAK,GACT,CAAC;IAEF,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IACpC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,mCACV,uBAAuB,KAC1B,EAAE,EAAG,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAS,CAAC,KAAK,EAClD,IAAI,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GACzD,CAAC;IAEF,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ApplicationSetup, ApplicationSetupProps } from \"../ApplicationSetup\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../../common/css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\r\nimport { initFSBL } from \"../../common/helpers\";\r\nimport DEFAULT_APP_SETUP_PROPS from \"../fixtures/applicationSetupProps\";\r\nimport { appConfigToAppData } from \"../Application\";\r\n\r\nexport default {\r\n\ttitle: \"Smart Desktop Designer/Application Setup (Wizard)\",\r\n\tcomponent: ApplicationSetup,\r\n};\r\n\r\nconst Template: Story<ApplicationSetupProps> = (args: ApplicationSetupProps) => {\r\n\tinitFSBL(window);\r\n\r\n\treturn (\r\n\t\t<FinsembleProvider>\r\n\t\t\t<ApplicationSetup {...args} />\r\n\t\t</FinsembleProvider>\r\n\t);\r\n};\r\n\r\nexport const AddNewApp = (() => {\r\n\tconst Component = Template.bind({});\r\n\r\n\tComponent.args = {\r\n\t\t...DEFAULT_APP_SETUP_PROPS,\r\n\t\tid: \"new\",\r\n\t};\r\n\r\n\treturn Component;\r\n})();\r\n\r\nexport const EditExistingApp = (() => {\r\n\tconst Component = Template.bind({});\r\n\r\n\tComponent.args = {\r\n\t\t...DEFAULT_APP_SETUP_PROPS,\r\n\t\tid: (DEFAULT_APP_SETUP_PROPS.apps[0] as any).appId,\r\n\t\tdata: appConfigToAppData(DEFAULT_APP_SETUP_PROPS.apps[0]),\r\n\t};\r\n\r\n\treturn Component;\r\n})();\r\n"]}
|