@finsemble/finsemble-ui 6.2.0 → 6.3.0-beta.20211008
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +17 -16
- package/react/actions/smartDesktopDesignerActions.d.ts +7 -8
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/actions/toolbarActions.d.ts +2 -3
- package/react/actions/toolbarActions.js.map +1 -1
- package/react/assets/css/notificationsCenter.css +4 -2
- package/react/assets/css/userPreferences.css +1 -0
- package/react/assets/css/windowTitleBar.css +33 -1
- package/react/components/FinsembleProvider.js +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppList.d.ts +7 -1
- package/react/components/appCatalog/components/AppList.js +1 -1
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.d.ts +10 -8
- package/react/components/appCatalog/components/AppResults.js +1 -1
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.js +1 -1
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.d.ts +2 -1
- package/react/components/appCatalog/components/EmptyResults.js +2 -4
- package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
- package/react/components/appCatalog/components/Hero.d.ts +24 -4
- package/react/components/appCatalog/components/Hero.js +2 -1
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.d.ts +18 -4
- package/react/components/appCatalog/components/Home.js.map +1 -1
- package/react/components/appCatalog/components/SearchBar.d.ts +20 -7
- package/react/components/appCatalog/components/SearchBar.js +4 -7
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +5 -3
- package/react/components/appCatalog/components/Showcase/AppDescription.js +4 -6
- package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +5 -4
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.d.ts +13 -5
- package/react/components/appCatalog/components/Showcase/Header.js +2 -2
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.d.ts +7 -4
- package/react/components/appCatalog/components/Showcase/Modal.js +6 -6
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
- package/react/components/appCatalog/components/Tag.d.ts +6 -4
- package/react/components/appCatalog/components/Tag.js.map +1 -1
- package/react/components/appCatalog/components/Toast.d.ts +5 -3
- package/react/components/appCatalog/components/Toast.js +5 -4
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.d.ts +5 -1
- package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
- package/react/components/appCatalog/modules/FDC3.d.ts +12 -11
- package/react/components/appCatalog/modules/FDC3.js +20 -18
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +9 -2
- package/react/components/appCatalog/stores/appStore.js +10 -4
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/common/Button.d.ts +4 -4
- package/react/components/common/Button.js +1 -1
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.js +1 -1
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ColorPicker.js +1 -1
- package/react/components/common/ColorPicker.js.map +1 -1
- package/react/components/common/DropZone.d.ts +0 -5
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/DropdownButton.js +1 -1
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FileInput.d.ts +0 -5
- package/react/components/common/FileInput.js +7 -9
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +2 -2
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js +2 -5
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/FinsembleToggle.js +2 -2
- package/react/components/common/FinsembleToggle.js.map +1 -1
- package/react/components/common/FontSizeSelector.js +2 -2
- package/react/components/common/FontSizeSelector.js.map +1 -1
- package/react/components/common/ImagePreview.js +2 -2
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/Tab.js +2 -1
- package/react/components/common/Tab.js.map +1 -1
- package/react/components/common/file_helpers.js +3 -2
- package/react/components/common/file_helpers.js.map +1 -1
- package/react/components/common/helpers.js +8 -10
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/Button.stories.js +1 -1
- package/react/components/common/stories/Button.stories.js.map +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js +1 -1
- package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
- package/react/components/common/stories/ButtonRow.stories.js +2 -2
- package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
- package/react/components/common/stories/ButtonTile.stories.js +1 -1
- package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
- package/react/components/common/stories/Checkbox.stories.js +1 -1
- package/react/components/common/stories/Checkbox.stories.js.map +1 -1
- package/react/components/common/stories/ColorPicker.stories.js +1 -1
- package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
- package/react/components/common/stories/DropZone.stories.js +1 -1
- package/react/components/common/stories/DropZone.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js +1 -1
- package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
- package/react/components/common/stories/FinsembleToggle.stories.js +3 -1
- package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
- package/react/components/common/stories/FontSizeSelector.stories.js +1 -1
- package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
- package/react/components/common/stories/Header.stories.js +1 -1
- package/react/components/common/stories/Header.stories.js.map +1 -1
- package/react/components/common/tests/Checkbox.spec.js +4 -4
- package/react/components/common/tests/Checkbox.spec.js.map +1 -1
- package/react/components/common/tests/ColorPicker.spec.js +6 -6
- package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
- package/react/components/common/tests/DropZone.spec.js +4 -4
- package/react/components/common/tests/DropZone.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +5 -5
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js +12 -11
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +8 -2
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/common/tests/Header.spec.js +3 -3
- package/react/components/common/tests/Header.spec.js.map +1 -1
- package/react/components/common/tests/ImagePreview.spec.js +8 -8
- package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
- package/react/components/common/tests/Tab.spec.js +3 -3
- package/react/components/common/tests/Tab.spec.js.map +1 -1
- package/react/components/common/tests/Tooltip.spec.js +5 -5
- package/react/components/common/tests/Tooltip.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.d.ts +0 -5
- package/react/components/favorites/FavoriteMaker.js +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.js +1 -1
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js +7 -7
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js +5 -4
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +2 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +13 -13
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +5 -5
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
- package/react/components/icon/Icon.js +5 -4
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js +4 -3
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js +2 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js +8 -5
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +18 -17
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +3 -3
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js +2 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
- package/react/components/legacyControls/FinsembleMenuSection.js +6 -3
- package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js +1 -1
- package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js +1 -1
- package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js +8 -7
- package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js +7 -5
- package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +13 -12
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js +4 -3
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +10 -42
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.d.ts +1 -1
- package/react/components/menu/Menu.js +1 -1
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuPortal.js +7 -6
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/keyboardNavigation.js +14 -15
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.js +2 -4
- package/react/components/notifications/components/NoNotifications.js.map +1 -1
- package/react/components/notifications/components/drawer/Drawer.js +2 -4
- package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerControls.js +2 -4
- package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/drawer/DrawerHeader.js +1 -4
- package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +28 -43
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +10 -9
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +2 -2
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +3 -5
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +3 -2
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.d.ts +2 -1
- package/react/components/notifications/components/shared/OverflowMenu.js +6 -5
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +2 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +3 -2
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js +15 -24
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.d.ts +2 -2
- package/react/components/notifications/components/views/ListView.js +9 -9
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.d.ts +2 -2
- package/react/components/notifications/components/views/NotificationDetailsView.js +2 -6
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/types.d.ts +7 -6
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.d.ts +6 -4
- package/react/components/notifications/utils.js +26 -32
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts +3 -1
- package/react/components/processMonitor/ProcessMonitor.js +17 -10
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +33 -0
- package/react/components/processMonitor/ProcessMonitorTypes.js +6 -0
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -0
- package/react/components/processMonitor/components/ChildWindow.d.ts +10 -3
- package/react/components/processMonitor/components/ChildWindow.js +19 -10
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +17 -4
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +11 -3
- package/react/components/processMonitor/components/ProcessStatistics.js +25 -18
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +11 -16
- package/react/components/processMonitor/constants.js +3 -1
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +25 -5
- package/react/components/processMonitor/helpers.js +28 -20
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/helpers.spec.d.ts +1 -0
- package/react/components/processMonitor/helpers.spec.js +44 -0
- package/react/components/processMonitor/helpers.spec.js.map +1 -0
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +30 -15
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +101 -86
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.d.ts +4 -1
- package/react/components/quickComponentForm/QuickComponentForm.js +13 -14
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/search/Highlight.js +2 -2
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Highlight.spec.js +3 -3
- package/react/components/search/Highlight.spec.js.map +1 -1
- package/react/components/search/Highlight.stories.js +1 -1
- package/react/components/search/Highlight.stories.js.map +1 -1
- package/react/components/search/Search.js +17 -8
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.js +2 -1
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchProviderResults.js +4 -5
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.js +3 -2
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.js +1 -1
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/shared/Button.js +2 -4
- package/react/components/shared/Button.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 +9 -11
- package/react/components/shared/NavigationButton.js.map +1 -1
- package/react/components/shared/Tag.d.ts +11 -1
- package/react/components/shared/Tag.js.map +1 -1
- package/react/components/shared/TagsMenu.d.ts +26 -6
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/linkerUtil.d.ts +3 -1
- package/react/components/shared/linkerUtil.js.map +1 -1
- package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js +6 -6
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.d.ts +1 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.js +17 -34
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditPage.d.ts +4 -4
- package/react/components/smartDesktopDesigner/AppEditPage.js +2 -2
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.js +3 -5
- package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
- package/react/components/smartDesktopDesigner/Application.d.ts +4 -4
- package/react/components/smartDesktopDesigner/Application.js +84 -92
- package/react/components/smartDesktopDesigner/Application.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +1 -1
- package/react/components/smartDesktopDesigner/ApplicationEdit.js +68 -51
- package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationList.d.ts +4 -2
- package/react/components/smartDesktopDesigner/ApplicationList.js +23 -20
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
- package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +4 -3
- package/react/components/smartDesktopDesigner/ApplicationSetup.js +8 -20
- package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
- package/react/components/smartDesktopDesigner/Applications.d.ts +0 -1
- package/react/components/smartDesktopDesigner/Applications.js +73 -62
- package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
- package/react/components/smartDesktopDesigner/Authentication.js +2 -8
- package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +1 -8
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
- package/react/components/smartDesktopDesigner/Content.js.map +1 -1
- package/react/components/smartDesktopDesigner/CurrentView.js +1 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
- package/react/components/smartDesktopDesigner/Export.js +3 -3
- package/react/components/smartDesktopDesigner/Export.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js +1 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js +1 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
- package/react/components/smartDesktopDesigner/ExportZip.js +0 -1
- package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js +1 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.js +1 -1
- package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
- package/react/components/smartDesktopDesigner/Publish.js +1 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -24
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/Themes.js +2 -8
- package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
- package/react/components/smartDesktopDesigner/View.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.d.ts +1 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js +2 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.d.ts +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +4 -14
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +4 -4
- package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +2 -2
- package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js +2 -3
- package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +4 -70
- package/react/components/smartDesktopDesigner/fixtures/apps.js +9 -20
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +2 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js +4 -4
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js +2 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -4
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +8 -8
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js +7 -7
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +3 -7
- package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +9 -2
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +3 -10
- package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js +7 -14
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Export.stories.js +2 -2
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +2 -2
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +5 -11
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js +2 -4
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js +13 -28
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +3 -3
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js +1 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +32 -32
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +6 -5
- package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js +11 -11
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +9 -7
- package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js +35 -35
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js +6 -18
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Export.spec.js +14 -22
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +2 -6
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +2 -2
- package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js +3 -10
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js +2 -6
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +3 -3
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js +7 -7
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js +2 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
- package/react/components/system/System.spec.js +1 -1
- package/react/components/system/System.spec.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js +1 -1
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/toolbar/MinimizeAll.spec.js +5 -5
- package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
- package/react/components/toolbar/NotificationControl.js +3 -2
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.spec.js +5 -5
- package/react/components/toolbar/RevealAll.spec.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +14 -2
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +22 -5
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js +11 -6
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +21 -9
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.d.ts +33 -10
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js +24 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.d.ts +3 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js +0 -3
- package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.d.ts +24 -8
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js +4 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +18 -4
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +5 -4
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.d.ts +14 -6
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js +2 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +34 -13
- package/react/components/toolbar/advancedAppLauncher/components/Content.js +23 -29
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.d.ts +15 -5
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js +4 -3
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +38 -21
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +13 -8
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts +18 -3
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +7 -3
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.d.ts +10 -3
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js +1 -3
- package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.d.ts +15 -6
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js +11 -6
- package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.d.ts +11 -4
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js +3 -2
- package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +18 -6
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js +2 -2
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.d.ts +20 -4
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js +2 -4
- package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.d.ts +5 -1
- package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.d.ts +15 -10
- package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +5 -2
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +5 -4
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.d.ts +7 -6
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +11 -13
- package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +3 -3
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +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 +25 -3
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +3 -10
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +34 -6
- package/react/components/toolbar/appLauncher/components/componentList.js +24 -21
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +32 -32
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +37 -55
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +2 -3
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +28 -5
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +17 -23
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +25 -3
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +13 -8
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +2 -2
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +16 -8
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +0 -3
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +65 -11
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +95 -145
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.d.ts +5 -0
- package/react/components/userPreferences/UserPreferenceTypes.js +2 -0
- package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -0
- package/react/components/userPreferences/UserPreferencesBase.js +2 -2
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +2 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.d.ts +1 -1
- package/react/components/userPreferences/components/LeftNav.js +1 -1
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js +2 -0
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +21 -10
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +48 -51
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +9 -9
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +4 -6
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +6 -6
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js +0 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +3 -4
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +5 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +8 -5
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +15 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +16 -2
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +12 -12
- package/react/components/userPreferences/stores/UserPreferencesStore.js +9 -16
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js +1 -1
- package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
- package/react/components/userPreferences/stories/DashbarEditorItem.stories.js +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/NotificationsSourceTypes.stories.js +1 -1
- package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
- package/react/components/userPreferences/stories/NotificationsSources.stories.js +1 -1
- package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.d.ts +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.js +1 -1
- package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceButton.stories.d.ts +5 -9
- package/react/components/userPreferences/stories/WorkspaceButton.stories.js +10 -3
- package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
- package/react/components/userPreferences/stories/WorkspaceItem.stories.js +2 -2
- 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 +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.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceButton.spec.js +17 -3
- package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
- package/react/components/userPreferences/tests/WorkspaceComponents.spec.js +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 +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +58 -31
- package/react/components/windowTitleBar/WindowTitleBarShell.js +47 -50
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +27 -7
- 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 +43 -30
- package/react/components/windowTitleBar/components/center/TabList.js +111 -37
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js +5 -4
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +1 -21
- package/react/components/windowTitleBar/components/left/LinkerGroups.js +6 -8
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts +1 -21
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts +12 -25
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +17 -26
- package/react/components/windowTitleBar/components/right/GroupingButton.js +2 -2
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +1 -21
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +12 -25
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.js +11 -6
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +51 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +63 -56
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +42 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts +9 -9
- package/react/components/windowTitleBar/windowTitleBarContext.js +2 -4
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js +2 -2
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/Timer.stories.js +1 -1
- package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js +5 -5
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js +1 -1
- package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useLinker.js +1 -1
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.js +1 -1
- package/react/hooks/useMenu.js.map +1 -1
- package/react/hooks/useNotifications.d.ts +6 -6
- package/react/hooks/useNotifications.js +16 -17
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useSearch.js +1 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/hooks/useWorkspace.js +1 -1
- package/react/hooks/useWorkspace.js.map +1 -1
- package/react/reducers/favoriteReducer.js +1 -1
- package/react/reducers/favoriteReducer.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +3 -4
- package/react/reducers/toolbarReducer.js +1 -1
- package/react/reducers/toolbarReducer.js.map +1 -1
- package/react/store.d.ts +6 -7
- package/react/types/advancedAppLauncherTypes.d.ts +28 -1
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/favoriteTypes.d.ts +1 -1
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.d.ts +22 -0
- package/react/types/fdc3.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +11 -9
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/windowTitleBar.d.ts +46 -0
- package/react/types/windowTitleBar.js +2 -0
- package/react/types/windowTitleBar.js.map +1 -0
- package/react/components/processMonitor/components/ChildWindows.d.ts +0 -4
- package/react/components/processMonitor/components/ChildWindows.js +0 -11
- package/react/components/processMonitor/components/ChildWindows.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.d.ts +0 -4
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js +0 -14
- package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Publish.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Publish.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAe;IACd,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;CAClB,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,KAAkB,EAAE,EAAE;IACzC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,IAAI,KAAK,CAAC,oBAAoB,EAAE;QAC/B,KAAK;aACH,oBAAoB,EAAE;aACtB,IAAI,CAAC,CAAC,iBAAiB,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;aACrG,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACnF;IAED,OAAO,yCAAK,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE;IAC1D,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Publish.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Publish.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,mCAAmC,CAAC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Aa,KAChB,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC,CAAC,GACH,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,mCACf,aAAa,KAChB,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,GACH,CAAC","sourcesContent":["import React from \"react\";\r\nimport { ExportProps } from \"../Export\";\r\nimport { Publish } from \"../Publish\";\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 } from \"../../FinsembleProvider\";\r\nimport publishTests from \"../fixtures/publishProgress\";\r\nimport { useDispatch } from \"../../../store\";\r\nimport { SmartDesktopDesignerActions } from \"../../../actions/smartDesktopDesignerActions\";\r\nimport { DEFAULT_PROPS } from \"../fixtures/exportProps\";\r\n\r\nexport default {\r\n\ttitle: \"Smart Desktop Designer/Publish\",\r\n\tcomponent: Publish,\r\n};\r\n\r\nconst Dispatcher = (props: ExportProps) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tif (props.publishToCosaicCloud) {\r\n\t\tprops\r\n\t\t\t.publishToCosaicCloud()\r\n\t\t\t.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))\r\n\t\t\t.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));\r\n\t}\r\n\r\n\treturn <></>;\r\n};\r\n\r\nconst Template: Story<ExportProps> = (args: ExportProps) => {\r\n\tinitFSBL(window);\r\n\r\n\treturn (\r\n\t\t<FinsembleProvider>\r\n\t\t\t<Publish {...args} />\r\n\t\t\t<Dispatcher {...args} />\r\n\t\t</FinsembleProvider>\r\n\t);\r\n};\r\n\r\nexport const DefaultPublish = Template.bind({});\r\nDefaultPublish.args = { ...DEFAULT_PROPS };\r\n\r\nexport const Error1Publish = Template.bind({});\r\nError1Publish.args = {\r\n\t...DEFAULT_PROPS,\r\n\tgetPublishProgress: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-1-fail\")!.states[0]);\r\n\t\t}),\r\n};\r\n\r\nexport const Error2Publish = Template.bind({});\r\nError2Publish.args = {\r\n\t...DEFAULT_PROPS,\r\n\tgetPublishProgress: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-2-fail\")!.states[0]);\r\n\t\t}),\r\n};\r\n\r\nexport const Error3Publish = Template.bind({});\r\nError3Publish.args = {\r\n\t...DEFAULT_PROPS,\r\n\tgetPublishProgress: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-3-fail\")!.states[0]);\r\n\t\t}),\r\n};\r\n\r\nexport const Error4Publish = Template.bind({});\r\nError4Publish.args = {\r\n\t...DEFAULT_PROPS,\r\n\tgetPublishProgress: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-4-fail\")!.states[0]);\r\n\t\t}),\r\n};\r\n\r\nexport const SuccessPublish = Template.bind({});\r\nSuccessPublish.args = {\r\n\t...DEFAULT_PROPS,\r\n\tgetPublishProgress: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve(publishTests.find((test) => test.name === \"success\")!.states[0]);\r\n\t\t}),\r\n};\r\n"]}
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
title: "Smart Desktop Designer/PublishProgress",
|
|
7
7
|
component: PublishProgress,
|
|
8
8
|
};
|
|
9
|
-
const Template = (args) => React.createElement(PublishProgress, {
|
|
9
|
+
const Template = (args) => React.createElement(PublishProgress, Object.assign({}, args));
|
|
10
10
|
export const InitialPublishProgress = Template.bind({});
|
|
11
11
|
InitialPublishProgress.args = {
|
|
12
12
|
percentComplete: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishProgress.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/PublishProgress.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;AAGrC,eAAe;IACd,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"PublishProgress.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/PublishProgress.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;AAGrC,eAAe;IACd,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxD,sBAAsB,CAAC,IAAI,GAAG;IAC7B,eAAe,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxD,sBAAsB,CAAC,IAAI,GAAG;IAC7B,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG;IAC1B,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG;IAC1B,eAAe,EAAE,GAAG;CACpB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { PublishProgress, PublishProgressProps } from \"../PublishProgress\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../../common/css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Smart Desktop Designer/PublishProgress\",\r\n\tcomponent: PublishProgress,\r\n};\r\n\r\nconst Template: Story<PublishProgressProps> = (args: PublishProgressProps) => <PublishProgress {...args} />;\r\n\r\nexport const InitialPublishProgress = Template.bind({});\r\nInitialPublishProgress.args = {\r\n\tpercentComplete: 0,\r\n};\r\n\r\nexport const QuarterPublishProgress = Template.bind({});\r\nQuarterPublishProgress.args = {\r\n\tpercentComplete: 25,\r\n};\r\n\r\nexport const HalfPublishProgress = Template.bind({});\r\nHalfPublishProgress.args = {\r\n\tpercentComplete: 50,\r\n};\r\n\r\nexport const FullPublishProgress = Template.bind({});\r\nFullPublishProgress.args = {\r\n\tpercentComplete: 100,\r\n};\r\n"]}
|
|
@@ -5,7 +5,7 @@ import { createStory } from "../../common/helpers";
|
|
|
5
5
|
import views from "../fixtures/views";
|
|
6
6
|
const DEFAULT_PROPS = {
|
|
7
7
|
views,
|
|
8
|
-
getConfig: (params, callback) => new Promise((
|
|
8
|
+
getConfig: (params, callback) => new Promise(() => {
|
|
9
9
|
callback();
|
|
10
10
|
}),
|
|
11
11
|
resetProject: () => new Promise(() => { }),
|
|
@@ -27,7 +27,7 @@ const DEFAULT_PROPS = {
|
|
|
27
27
|
}),
|
|
28
28
|
updateProjectSettings: () => new Promise(() => { }),
|
|
29
29
|
onThemeUpdated: () => () => { },
|
|
30
|
-
selectProjectPath: () => new Promise((resolve
|
|
30
|
+
selectProjectPath: () => new Promise((resolve) => {
|
|
31
31
|
resolve("/tmp");
|
|
32
32
|
}),
|
|
33
33
|
restartFinsemble: () => { },
|
|
@@ -36,5 +36,5 @@ export default {
|
|
|
36
36
|
title: "Components/Smart Desktop Designer",
|
|
37
37
|
component: SmartDesktopDesigner,
|
|
38
38
|
};
|
|
39
|
-
export const DefaultSDD = createStory(SmartDesktopDesigner, {
|
|
39
|
+
export const DefaultSDD = createStory(SmartDesktopDesigner, Object.assign({}, DEFAULT_PROPS));
|
|
40
40
|
//# sourceMappingURL=SmartDesktopDesigner.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmartDesktopDesigner.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA6B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"SmartDesktopDesigner.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.tsx"],"names":[],"mappings":"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AAe;IACd,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,oBAAoB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAA4B,oBAAoB,oBAAO,aAAa,EAAG,CAAC","sourcesContent":["import { SmartDesktopDesigner, SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../../common/css/styles.css\";\r\nimport { createStory } from \"../../common/helpers\";\r\nimport views from \"../fixtures/views\";\r\nimport { FEA } from \"@finsemble/finsemble-core\";\r\n\r\ntype SDServerInfo = FEA.SDServerInfo;\r\n\r\nconst DEFAULT_PROPS = {\r\n\tviews,\r\n\tgetConfig: (params: any, callback: any) =>\r\n\t\tnew Promise<{ data: any; err: string | null }>(() => {\r\n\t\t\tcallback();\r\n\t\t}),\r\n\tresetProject: () => new Promise<[Error | null, any]>(() => {}),\r\n\tgetSDServerInfo: () =>\r\n\t\tnew Promise<SDServerInfo>((resolve) => {\r\n\t\t\tresolve({\r\n\t\t\t\tenabled: true,\r\n\t\t\t\tapplicationRoot: \"http://localhost/\",\r\n\t\t\t\tprojectConfig: {},\r\n\t\t\t} as SDServerInfo);\r\n\t\t}),\r\n\tgetProjectSettings: () =>\r\n\t\tnew Promise<{\r\n\t\t\tsettings: {\r\n\t\t\t\tname: string;\r\n\t\t\t\tpath?: string;\r\n\t\t\t\tversion?: string;\r\n\t\t\t\tauthors?: string;\r\n\t\t\t\tdescription?: string;\r\n\t\t\t};\r\n\t\t\terr: any;\r\n\t\t}>((resolve) => {\r\n\t\t\tresolve({\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tname: \"default\",\r\n\t\t\t\t\tpath: \"/Users/administrator/Library/Application Support/Electron/smartDesktops/projects/default\",\r\n\t\t\t\t},\r\n\t\t\t\terr: null,\r\n\t\t\t});\r\n\t\t}),\r\n\tupdateProjectSettings: () => new Promise<{ err: any }>(() => {}),\r\n\tonThemeUpdated: () => () => {},\r\n\tselectProjectPath: () =>\r\n\t\tnew Promise<string>((resolve) => {\r\n\t\t\tresolve(\"/tmp\");\r\n\t\t}),\r\n\trestartFinsemble: () => {},\r\n};\r\n\r\nexport default {\r\n\ttitle: \"Components/Smart Desktop Designer\",\r\n\tcomponent: SmartDesktopDesigner,\r\n};\r\n\r\nexport const DefaultSDD = createStory<SmartDesktopDesignerProps>(SmartDesktopDesigner, { ...DEFAULT_PROPS });\r\n"]}
|
|
@@ -31,7 +31,7 @@ export const Page = createStory(Themes, {
|
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
|
-
updateProjectSettings: (
|
|
34
|
+
updateProjectSettings: () => new Promise((resolve) => {
|
|
35
35
|
resolve({ err: undefined });
|
|
36
36
|
}),
|
|
37
37
|
updateSplashScreen: action("updateSplashScreen"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Themes.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Themes.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAe;IACd,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAa,MAAM,EAAE;IACnD,eAAe,EAAE,CAAC,EAAY,EAAE,EAAE;QACjC,EAAE,CAAC;YACF,eAAe,EAAE,EAAE;YACnB,IAAI,EAAE,EAAE;YACR,IAAI,EAAE;gBACL,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;gBACZ,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;aACT;YACD,MAAM,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,cAAc,EAAE,EAAE;gBAClB,iBAAiB,EAAE,EAAE;aACrB;SACD,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"Themes.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Themes.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAC/C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAe;IACd,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAa,MAAM,EAAE;IACnD,eAAe,EAAE,CAAC,EAAY,EAAE,EAAE;QACjC,EAAE,CAAC;YACF,eAAe,EAAE,EAAE;YACnB,IAAI,EAAE,EAAE;YACR,IAAI,EAAE;gBACL,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;gBACZ,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,EAAE;aACT;YACD,MAAM,EAAE;gBACP,MAAM,EAAE,EAAE;gBACV,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,cAAc,EAAE,EAAE;gBAClB,iBAAiB,EAAE,EAAE;aACrB;SACD,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB,EAAE,GAAG,EAAE,CAC3B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC;IACH,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,UAAU,EAAE,CAAC,EAAY,EAAE,EAAE;QAC5B,EAAE,EAAE,CAAC;IACN,CAAC;IACD,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC;IACnC,KAAK,EAAE;QACN,MAAM,EAAE;YACP,OAAO,EAAE,SAAS;SAClB;KACD;CACD,CAAC,CAAC","sourcesContent":["import { Themes, ThemeProps } from \"../Themes\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../../common/css/styles.css\";\r\nimport { action } from \"@storybook/addon-actions\";\r\nimport { darkTheme } from \"../themeDefinitions\";\r\nimport { createStory } from \"../../common/helpers\";\r\n\r\nexport default {\r\n\ttitle: \"Views/Themes\",\r\n\tcomponent: Themes,\r\n};\r\n\r\nexport const Page = createStory<ThemeProps>(Themes, {\r\n\tgetSDServerInfo: (cb: Function) => {\r\n\t\tcb({\r\n\t\t\tapplicationRoot: \"\",\r\n\t\t\tname: \"\",\r\n\t\t\tuser: {\r\n\t\t\t\tfirstName: \"\",\r\n\t\t\t\tlastName: \"\",\r\n\t\t\t\tcompany: \"\",\r\n\t\t\t\temail: \"\",\r\n\t\t\t},\r\n\t\t\texport: {\r\n\t\t\t\tauthor: \"\",\r\n\t\t\t\tcompanyName: \"\",\r\n\t\t\t\tdescription: \"\",\r\n\t\t\t\ttoolbarIcon: \"\",\r\n\t\t\t\tinstallerIcon: \"\",\r\n\t\t\t\ttaskbarIcon: \"\",\r\n\t\t\t\tsystemTrayIcon: \"\",\r\n\t\t\t\tsplashScreenImage: \"\",\r\n\t\t\t},\r\n\t\t});\r\n\t},\r\n\tupdateProjectSettings: () =>\r\n\t\tnew Promise((resolve) => {\r\n\t\t\tresolve({ err: undefined });\r\n\t\t}),\r\n\tupdateSplashScreen: action(\"updateSplashScreen\"),\r\n\tupdateToolbarIcon: action(\"updateToolbarIcon\"),\r\n\tupdateTaskbarIcon: action(\"updateTaskbarIcon\"),\r\n\tupdateSystemTrayIcon: action(\"updateSystemTrayIcon\"),\r\n\tupdateInstallerIcon: action(\"updateInstallerIcon\"),\r\n\tareYouSure: (cb: Function) => {\r\n\t\tcb();\r\n\t},\r\n\tupdateThemes: action(\"updateTheme\"),\r\n\ttheme: {\r\n\t\tthemes: {\r\n\t\t\tDefault: darkTheme,\r\n\t\t},\r\n\t},\r\n});\r\n"]}
|
|
@@ -10,23 +10,23 @@ describe("<AppEditPage/>", () => {
|
|
|
10
10
|
sinon.restore();
|
|
11
11
|
});
|
|
12
12
|
it("should pass accessibility scans (Page)", async () => {
|
|
13
|
-
const wrapper = mount(React.createElement(Page, {
|
|
13
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
14
14
|
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
15
15
|
});
|
|
16
16
|
it("should pass accessibility scans (EmptyPage)", async () => {
|
|
17
|
-
const wrapper = mount(React.createElement(EmptyPage, {
|
|
17
|
+
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
18
18
|
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
19
19
|
});
|
|
20
20
|
it("should display starting name in Name field, if name field is set", () => {
|
|
21
|
-
const wrapper = mount(React.createElement(Page, {
|
|
21
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
22
22
|
expect(wrapper.find("#app-name").first().prop("value")).to.equal("Test");
|
|
23
23
|
});
|
|
24
24
|
it("should not display starting name in Name field, if no name field is set", () => {
|
|
25
|
-
const wrapper = mount(React.createElement(EmptyPage, {
|
|
25
|
+
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
26
26
|
expect(wrapper.find("#app-name").first().prop("value")).to.equal("");
|
|
27
27
|
});
|
|
28
28
|
it("should display Name as a valid field, even if the given name is duplicate", () => {
|
|
29
|
-
const wrapper = mount(React.createElement(Page, {
|
|
29
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
30
30
|
const appName = wrapper.find("#app-name").at(0);
|
|
31
31
|
appName.simulate("change", {
|
|
32
32
|
target: {
|
|
@@ -37,7 +37,7 @@ describe("<AppEditPage/>", () => {
|
|
|
37
37
|
expect(!!wrapper.find("#app-name").at(0).prop("aria-invalid")).to.be.false;
|
|
38
38
|
});
|
|
39
39
|
it("should display invalid state for Web URL if provided URL is invalid", () => {
|
|
40
|
-
const wrapper = mount(React.createElement(EmptyPage, {
|
|
40
|
+
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
41
41
|
wrapper
|
|
42
42
|
.find("#app-url")
|
|
43
43
|
.at(0)
|
|
@@ -49,7 +49,7 @@ describe("<AppEditPage/>", () => {
|
|
|
49
49
|
expect(wrapper.find("#app-url").at(0).prop("aria-invalid")).to.be.true;
|
|
50
50
|
});
|
|
51
51
|
it("should display invalid state for width if provided a negative number", () => {
|
|
52
|
-
const wrapper = mount(React.createElement(Page, {
|
|
52
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
53
53
|
wrapper
|
|
54
54
|
.find("#app-width")
|
|
55
55
|
.at(0)
|
|
@@ -61,7 +61,7 @@ describe("<AppEditPage/>", () => {
|
|
|
61
61
|
expect(wrapper.find("#app-width").at(0).prop("aria-invalid")).to.be.true;
|
|
62
62
|
});
|
|
63
63
|
it("should display invalid state for width if provided an empty value", () => {
|
|
64
|
-
const wrapper = mount(React.createElement(Page, {
|
|
64
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
65
65
|
wrapper
|
|
66
66
|
.find("#app-width")
|
|
67
67
|
.at(0)
|
|
@@ -73,7 +73,7 @@ describe("<AppEditPage/>", () => {
|
|
|
73
73
|
expect(wrapper.find("#app-width").at(0).prop("aria-invalid")).to.be.true;
|
|
74
74
|
});
|
|
75
75
|
it("should display invalid state for height if provided a negative number", () => {
|
|
76
|
-
const wrapper = mount(React.createElement(Page, {
|
|
76
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
77
77
|
wrapper
|
|
78
78
|
.find("#app-height")
|
|
79
79
|
.at(0)
|
|
@@ -85,7 +85,7 @@ describe("<AppEditPage/>", () => {
|
|
|
85
85
|
expect(wrapper.find("#app-height").at(0).prop("aria-invalid")).to.be.true;
|
|
86
86
|
});
|
|
87
87
|
it("should display invalid state for height if provided an empty value", () => {
|
|
88
|
-
const wrapper = mount(React.createElement(Page, {
|
|
88
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
89
89
|
wrapper
|
|
90
90
|
.find("#app-height")
|
|
91
91
|
.at(0)
|
|
@@ -97,15 +97,15 @@ describe("<AppEditPage/>", () => {
|
|
|
97
97
|
expect(wrapper.find("#app-height").at(0).prop("aria-invalid")).to.be.true;
|
|
98
98
|
});
|
|
99
99
|
it("should display App type field if isSetupWizard is false", () => {
|
|
100
|
-
const wrapper = mount(React.createElement(EmptyPage, {
|
|
100
|
+
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
101
101
|
expect(wrapper.contains("App type")).to.be.false;
|
|
102
102
|
});
|
|
103
103
|
it("should display App type filed if isSetupWizard is true", () => {
|
|
104
|
-
const wrapper = mount(React.createElement(Page, {
|
|
104
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
105
105
|
expect(wrapper.contains("App type")).to.be.true;
|
|
106
106
|
});
|
|
107
107
|
it("should display only Web URL if App type = Web", () => {
|
|
108
|
-
const wrapper = mount(React.createElement(Page, {
|
|
108
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
109
109
|
wrapper
|
|
110
110
|
.find("#app-type-web")
|
|
111
111
|
.at(0)
|
|
@@ -118,7 +118,7 @@ describe("<AppEditPage/>", () => {
|
|
|
118
118
|
expect(wrapper.contains("File Path")).to.be.false;
|
|
119
119
|
});
|
|
120
120
|
it("should display only File Path if App type = Native", () => {
|
|
121
|
-
const wrapper = mount(React.createElement(Page, {
|
|
121
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
122
122
|
wrapper
|
|
123
123
|
.find("#app-type-web")
|
|
124
124
|
.at(0)
|
|
@@ -131,7 +131,7 @@ describe("<AppEditPage/>", () => {
|
|
|
131
131
|
expect(wrapper.contains("Web URL")).to.be.false;
|
|
132
132
|
});
|
|
133
133
|
it("should have a disabled Save button if the name field is emptied", () => {
|
|
134
|
-
const wrapper = mount(React.createElement(Page, {
|
|
134
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
135
135
|
wrapper
|
|
136
136
|
.find("#app-name")
|
|
137
137
|
.at(0)
|
|
@@ -143,7 +143,7 @@ describe("<AppEditPage/>", () => {
|
|
|
143
143
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
144
144
|
});
|
|
145
145
|
it("should have a disabled Save button if the Web URL field is emptied", () => {
|
|
146
|
-
const wrapper = mount(React.createElement(Page, {
|
|
146
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
147
147
|
wrapper
|
|
148
148
|
.find("#app-type-web")
|
|
149
149
|
.at(0)
|
|
@@ -163,7 +163,7 @@ describe("<AppEditPage/>", () => {
|
|
|
163
163
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
164
164
|
});
|
|
165
165
|
it("should have a disabled Save button if the Web URL field is emptied", () => {
|
|
166
|
-
const wrapper = mount(React.createElement(Page, {
|
|
166
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
167
167
|
wrapper
|
|
168
168
|
.find("#app-type-web")
|
|
169
169
|
.at(0)
|
|
@@ -183,7 +183,7 @@ describe("<AppEditPage/>", () => {
|
|
|
183
183
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
184
184
|
});
|
|
185
185
|
it("should have a disabled Save button if the width field is emptied", () => {
|
|
186
|
-
const wrapper = mount(React.createElement(Page, {
|
|
186
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
187
187
|
wrapper
|
|
188
188
|
.find("#app-width")
|
|
189
189
|
.at(0)
|
|
@@ -195,7 +195,7 @@ describe("<AppEditPage/>", () => {
|
|
|
195
195
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
196
196
|
});
|
|
197
197
|
it("should have a disabled Save button if the height field is emptied", () => {
|
|
198
|
-
const wrapper = mount(React.createElement(Page, {
|
|
198
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
199
199
|
wrapper
|
|
200
200
|
.find("#app-height")
|
|
201
201
|
.at(0)
|
|
@@ -207,7 +207,7 @@ describe("<AppEditPage/>", () => {
|
|
|
207
207
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
208
208
|
});
|
|
209
209
|
it("should have a disabled Save button if the width field is negative", () => {
|
|
210
|
-
const wrapper = mount(React.createElement(Page, {
|
|
210
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
211
211
|
wrapper
|
|
212
212
|
.find("#app-width")
|
|
213
213
|
.at(0)
|
|
@@ -219,7 +219,7 @@ describe("<AppEditPage/>", () => {
|
|
|
219
219
|
expect(wrapper.find("button").at(2).prop("disabled")).to.be.true;
|
|
220
220
|
});
|
|
221
221
|
it("should have a disabled Save button if the height field is negative", () => {
|
|
222
|
-
const wrapper = mount(React.createElement(Page, {
|
|
222
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
223
223
|
wrapper
|
|
224
224
|
.find("#app-height")
|
|
225
225
|
.at(0)
|
|
@@ -232,20 +232,20 @@ describe("<AppEditPage/>", () => {
|
|
|
232
232
|
});
|
|
233
233
|
it("should call the passed-in cancel function when the cancel button is clicked", () => {
|
|
234
234
|
const buttonSpy = sinon.spy(Page.args, "cancelFn");
|
|
235
|
-
const wrapper = mount(React.createElement(Page, {
|
|
235
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
236
236
|
wrapper.find("button").at(1).simulate("click");
|
|
237
237
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
238
238
|
});
|
|
239
239
|
it("should call the passed-in Remove Application function when the Remove Application button is clicked", () => {
|
|
240
240
|
const buttonSpy = sinon.spy(Page.args, "removeApplicationFn");
|
|
241
|
-
const wrapper = mount(React.createElement(Page, {
|
|
241
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
242
242
|
wrapper.find("button").at(0).simulate("click");
|
|
243
243
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
244
244
|
sinon.restore();
|
|
245
245
|
});
|
|
246
246
|
it("should call the passed-in submit function with relevant data when the submit button is clicked", () => {
|
|
247
247
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
248
|
-
const wrapper = mount(React.createElement(Page, {
|
|
248
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
249
249
|
wrapper.find("button").at(2).simulate("click");
|
|
250
250
|
expect(buttonSpy.calledOnce).to.be.true;
|
|
251
251
|
expect(buttonSpy.firstCall.args[0]).to.deep.equal({
|
|
@@ -261,7 +261,7 @@ describe("<AppEditPage/>", () => {
|
|
|
261
261
|
});
|
|
262
262
|
it("should click submit button when pressing enter on Name field", () => {
|
|
263
263
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
264
|
-
const wrapper = mount(React.createElement(Page, {
|
|
264
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
265
265
|
wrapper
|
|
266
266
|
.find("#app-name")
|
|
267
267
|
.at(0)
|
|
@@ -273,7 +273,7 @@ describe("<AppEditPage/>", () => {
|
|
|
273
273
|
});
|
|
274
274
|
it("should not click submit button when pressing a key other than enter on Name field", () => {
|
|
275
275
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
276
|
-
const wrapper = mount(React.createElement(Page, {
|
|
276
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
277
277
|
wrapper
|
|
278
278
|
.find("#app-name")
|
|
279
279
|
.at(0)
|
|
@@ -285,7 +285,7 @@ describe("<AppEditPage/>", () => {
|
|
|
285
285
|
});
|
|
286
286
|
it("should not submit when pressing enter on Name field IF the submit button is disabled", () => {
|
|
287
287
|
const buttonSpy = sinon.spy(EmptyPage.args, "submitFn");
|
|
288
|
-
const wrapper = mount(React.createElement(EmptyPage, {
|
|
288
|
+
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
289
289
|
wrapper
|
|
290
290
|
.find("#app-name")
|
|
291
291
|
.at(0)
|
|
@@ -297,7 +297,7 @@ describe("<AppEditPage/>", () => {
|
|
|
297
297
|
});
|
|
298
298
|
it("should click submit button when pressing enter on App type web field", () => {
|
|
299
299
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
300
|
-
const wrapper = mount(React.createElement(Page, {
|
|
300
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
301
301
|
wrapper
|
|
302
302
|
.find("#app-type-web")
|
|
303
303
|
.at(0)
|
|
@@ -309,7 +309,7 @@ describe("<AppEditPage/>", () => {
|
|
|
309
309
|
});
|
|
310
310
|
it("should click submit button when pressing enter on App type native field", () => {
|
|
311
311
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
312
|
-
const wrapper = mount(React.createElement(Page, {
|
|
312
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
313
313
|
wrapper
|
|
314
314
|
.find("#app-type-native")
|
|
315
315
|
.at(0)
|
|
@@ -321,7 +321,7 @@ describe("<AppEditPage/>", () => {
|
|
|
321
321
|
});
|
|
322
322
|
it("should click submit button when pressing enter on Web URL field", () => {
|
|
323
323
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
324
|
-
const wrapper = mount(React.createElement(Page, {
|
|
324
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
325
325
|
wrapper
|
|
326
326
|
.find("#app-url")
|
|
327
327
|
.at(0)
|
|
@@ -333,7 +333,7 @@ describe("<AppEditPage/>", () => {
|
|
|
333
333
|
});
|
|
334
334
|
it("should click submit button when pressing enter on Width field", () => {
|
|
335
335
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
336
|
-
const wrapper = mount(React.createElement(Page, {
|
|
336
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
337
337
|
wrapper
|
|
338
338
|
.find("#app-width")
|
|
339
339
|
.at(0)
|
|
@@ -345,7 +345,7 @@ describe("<AppEditPage/>", () => {
|
|
|
345
345
|
});
|
|
346
346
|
it("should click submit button when pressing enter on Height field", () => {
|
|
347
347
|
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
348
|
-
const wrapper = mount(React.createElement(Page, {
|
|
348
|
+
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
349
349
|
wrapper
|
|
350
350
|
.find("#app-height")
|
|
351
351
|
.at(0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppEditPage.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/AppEditPage.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAA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CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { afterEach, describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { AppEditPageProps } from \"../AppEditPage\";\r\nimport { Page, EmptyPage } from \"../stories/AppEditPage.stories\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<AppEditPage/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should pass accessibility scans (Page)\", async () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\tit(\"should pass accessibility scans (EmptyPage)\", async () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display starting name in Name field, if name field is set\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"Test\");\r\n\t});\r\n\tit(\"should not display starting name in Name field, if no name field is set\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"\");\r\n\t});\r\n\tit(\"should display Name as a valid field, even if the given name is duplicate\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\tconst appName = wrapper.find(\"#app-name\").at(0);\r\n\t\tappName.simulate(\"change\", {\r\n\t\t\ttarget: {\r\n\t\t\t\tvalue: \"Used\",\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").at(0).prop(\"value\")).to.equal(\"Used\");\r\n\t\texpect(!!wrapper.find(\"#app-name\").at(0).prop(\"aria-invalid\")).to.be.false;\r\n\t});\r\n\tit(\"should display invalid state for Web URL if provided URL is invalid\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"invalid\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-url\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for width if provided a negative number\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for width if provided an empty value\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for height if provided a negative number\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for height if provided an empty value\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display App type field if isSetupWizard is false\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.contains(\"App type\")).to.be.false;\r\n\t});\r\n\tit(\"should display App type filed if isSetupWizard is true\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\texpect(wrapper.contains(\"App type\")).to.be.true;\r\n\t});\r\n\tit(\"should display only Web URL if App type = Web\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.contains(\"Web URL\")).to.be.true;\r\n\t\texpect(wrapper.contains(\"File Path\")).to.be.false;\r\n\t});\r\n\tit(\"should display only File Path if App type = Native\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"native\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.contains(\"File Path\")).to.be.true;\r\n\t\texpect(wrapper.contains(\"Web URL\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should have a disabled Save button if the name field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the Web URL field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the Web URL field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the width field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the height field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the width field is negative\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the height field is negative\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should call the passed-in cancel function when the cancel button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"cancelFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should call the passed-in Remove Application function when the Remove Application button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"removeApplicationFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(0).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t\tsinon.restore();\r\n\t});\r\n\tit(\"should call the passed-in submit function with relevant data when the submit button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(2).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t\texpect(buttonSpy.firstCall.args[0]).to.deep.equal({\r\n\t\t\tname: \"Test\",\r\n\t\t\turl: \"http://www.google.com\",\r\n\t\t\tpath: \"\",\r\n\t\t\tappType: \"web\",\r\n\t\t\twidth: 1280,\r\n\t\t\theight: 600,\r\n\t\t\tdescription: \"\",\r\n\t\t\trules: [],\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"should click submit button when pressing enter on Name field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should not click submit button when pressing a key other than enter on Name field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"a\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n\tit(\"should not submit when pressing enter on Name field IF the submit button is disabled\", () => {\r\n\t\tconst buttonSpy = sinon.spy(EmptyPage.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on App type web field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on App type native field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-native\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Web URL field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Width field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Height field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n});\r\n"]}
|
|
1
|
+
{"version":3,"file":"AppEditPage.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/AppEditPage.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC/B,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,IAAI,oBAAM,IAAI,CAAC,IAAyB,EAAI,CAAC,CAAC;QAErE,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,SAAS,oBAAM,SAAS,CAAC,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AS,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAwB,EAAE,UAAU,CAAC,CAAC;QACvE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,IAAI,oBAAM,IAAI,CAAC,IAAyB,EAAI,CAAC,CAAC;QACrE,OAAO;aACL,IAAI,CAAC,aAAa,CAAC;aACnB,EAAE,CAAC,CAAC,CAAC;aACL,QAAQ,CAAC,SAAS,EAAE;YACpB,GAAG,EAAE,OAAO;YACZ,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;SACxB,CAAC,CAAC;QACJ,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { afterEach, describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { AppEditPageProps } from \"../AppEditPage\";\r\nimport { Page, EmptyPage } from \"../stories/AppEditPage.stories\";\r\nimport { accessibilityAssessor } from \"./a11y_helper\";\r\n\r\ndescribe(\"<AppEditPage/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should pass accessibility scans (Page)\", async () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\tit(\"should pass accessibility scans (EmptyPage)\", async () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display starting name in Name field, if name field is set\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"Test\");\r\n\t});\r\n\tit(\"should not display starting name in Name field, if no name field is set\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"\");\r\n\t});\r\n\tit(\"should display Name as a valid field, even if the given name is duplicate\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\tconst appName = wrapper.find(\"#app-name\").at(0);\r\n\t\tappName.simulate(\"change\", {\r\n\t\t\ttarget: {\r\n\t\t\t\tvalue: \"Used\",\r\n\t\t\t},\r\n\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-name\").at(0).prop(\"value\")).to.equal(\"Used\");\r\n\t\texpect(!!wrapper.find(\"#app-name\").at(0).prop(\"aria-invalid\")).to.be.false;\r\n\t});\r\n\tit(\"should display invalid state for Web URL if provided URL is invalid\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"invalid\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-url\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for width if provided a negative number\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for width if provided an empty value\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for height if provided a negative number\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display invalid state for height if provided an empty value\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\r\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\tit(\"should display App type field if isSetupWizard is false\", () => {\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\r\n\t\texpect(wrapper.contains(\"App type\")).to.be.false;\r\n\t});\r\n\tit(\"should display App type filed if isSetupWizard is true\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\texpect(wrapper.contains(\"App type\")).to.be.true;\r\n\t});\r\n\tit(\"should display only Web URL if App type = Web\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.contains(\"Web URL\")).to.be.true;\r\n\t\texpect(wrapper.contains(\"File Path\")).to.be.false;\r\n\t});\r\n\tit(\"should display only File Path if App type = Native\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"native\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.contains(\"File Path\")).to.be.true;\r\n\t\texpect(wrapper.contains(\"Web URL\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should have a disabled Save button if the name field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the Web URL field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the Web URL field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"web\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the width field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the height field is emptied\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the width field is negative\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\tit(\"should have a disabled Save button if the height field is negative\", () => {\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"change\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"-999\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"button\").at(2).prop(\"disabled\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should call the passed-in cancel function when the cancel button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"cancelFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should call the passed-in Remove Application function when the Remove Application button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"removeApplicationFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(0).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t\tsinon.restore();\r\n\t});\r\n\tit(\"should call the passed-in submit function with relevant data when the submit button is clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\r\n\t\twrapper.find(\"button\").at(2).simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t\texpect(buttonSpy.firstCall.args[0]).to.deep.equal({\r\n\t\t\tname: \"Test\",\r\n\t\t\turl: \"http://www.google.com\",\r\n\t\t\tpath: \"\",\r\n\t\t\tappType: \"web\",\r\n\t\t\twidth: 1280,\r\n\t\t\theight: 600,\r\n\t\t\tdescription: \"\",\r\n\t\t\trules: [],\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"should click submit button when pressing enter on Name field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should not click submit button when pressing a key other than enter on Name field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"a\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n\tit(\"should not submit when pressing enter on Name field IF the submit button is disabled\", () => {\r\n\t\tconst buttonSpy = sinon.spy(EmptyPage.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-name\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on App type web field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-web\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on App type native field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-type-native\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Web URL field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-url\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Width field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-width\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should click submit button when pressing enter on Height field\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\r\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"#app-height\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"keydown\", {\r\n\t\t\t\tkey: \"Enter\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n});\r\n"]}
|
|
@@ -39,23 +39,24 @@ const WEB_APP_INPUT_FIELDS = [
|
|
|
39
39
|
const SAVE_BUTTON = ".app-edit-actions .button-container-secondary button", REMOVE_BUTTON = ".app-edit-actions .button-container-danger button", SUCCESS_CONTAINER = ".app-edit-success";
|
|
40
40
|
describe("<ApplicationEdit/>", () => {
|
|
41
41
|
it("should have default field values when adding new", async () => {
|
|
42
|
-
const wrapper = mount(React.createElement(AddApp, {
|
|
42
|
+
const wrapper = mount(React.createElement(AddApp, Object.assign({}, AddApp.args)));
|
|
43
43
|
WEB_APP_INPUT_FIELDS.forEach((field) => {
|
|
44
44
|
expect(wrapper.find(field.selector).prop("value"), field.name).to.equal(field.defaultValue);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
it("should have filled-in field values when editing existing", async () => {
|
|
48
|
-
const wrapper = mount(React.createElement(EditApp, {
|
|
48
|
+
const wrapper = mount(React.createElement(EditApp, Object.assign({}, EditApp.args)));
|
|
49
49
|
WEB_APP_INPUT_FIELDS.forEach((field) => {
|
|
50
|
-
|
|
50
|
+
var _a;
|
|
51
|
+
expect(wrapper.find(field.selector).prop("value"), field.name).to.equal(((_a = EditApp.args) === null || _a === void 0 ? void 0 : _a.data)[field.key]);
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
it("should have remove application button when editing existing", async () => {
|
|
54
|
-
const wrapper = mount(React.createElement(EditApp, {
|
|
55
|
+
const wrapper = mount(React.createElement(EditApp, Object.assign({}, EditApp.args)));
|
|
55
56
|
expect(wrapper.find(REMOVE_BUTTON).length, "Remove button").to.equal(1);
|
|
56
57
|
});
|
|
57
58
|
it("should continue to the success screen", async () => {
|
|
58
|
-
const wrapper = mount(React.createElement(EditApp, {
|
|
59
|
+
const wrapper = mount(React.createElement(EditApp, Object.assign({}, EditApp.args)));
|
|
59
60
|
wrapper.find(SAVE_BUTTON).simulate("click");
|
|
60
61
|
await waitTick();
|
|
61
62
|
wrapper.update();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationEdit.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ApplicationEdit.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,oBAAoB,GAAG;IAC5B;QACC,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,2BAA2B;QACrC,YAAY,EAAE,EAAE;KAChB;IACD;QACC,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,0BAA0B;QACpC,YAAY,EAAE,EAAE;KAChB;IACD;QACC,GAAG,EAAE,aAAa;QAClB,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,kCAAkC;QAC5C,YAAY,EAAE,EAAE;KAChB;IACD;QACC,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,4BAA4B;QACtC,YAAY,EAAE,IAAI;KAClB;IACD;QACC,GAAG,EAAE,QAAQ;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,6BAA6B;QACvC,YAAY,EAAE,GAAG;KACjB;CACD,CAAC;AAEF,MAAM,WAAW,GAAG,sDAAsD,EACzE,aAAa,GAAG,mDAAmD,EACnE,iBAAiB,GAAG,mBAAmB,CAAC;AAEzC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,kDAAkD,EAAE,KAAK,IAAI,EAAE;QACjE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"ApplicationEdit.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ApplicationEdit.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,oBAAoB,GAAG;IAC5B;QACC,GAAG,EAAE,MAAM;QAC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{ expect } from \"chai\";\r\nimport { ApplicationEditProps } from \"../ApplicationEdit\";\r\nimport { AddApp, EditApp } from \"../stories/ApplicationEdit.stories\";\r\nimport { waitTick } from \"../sdd_helpers\";\r\n\r\nconst WEB_APP_INPUT_FIELDS = [\r\n\t{\r\n\t\tkey: \"name\",\r\n\t\tname: \"Name\",\r\n\t\tselector: \".app-edit-field #app-name\",\r\n\t\tdefaultValue: \"\",\r\n\t},\r\n\t{\r\n\t\tkey: \"url\",\r\n\t\tname: \"URL\",\r\n\t\tselector: \".app-edit-field #app-url\",\r\n\t\tdefaultValue: \"\",\r\n\t},\r\n\t{\r\n\t\tkey: \"description\",\r\n\t\tname: \"Description\",\r\n\t\tselector: \".app-edit-field #app-description\",\r\n\t\tdefaultValue: \"\",\r\n\t},\r\n\t{\r\n\t\tkey: \"width\",\r\n\t\tname: \"Width\",\r\n\t\tselector: \".app-edit-field #app-width\",\r\n\t\tdefaultValue: 1280,\r\n\t},\r\n\t{\r\n\t\tkey: \"height\",\r\n\t\tname: \"Height\",\r\n\t\tselector: \".app-edit-field #app-height\",\r\n\t\tdefaultValue: 600,\r\n\t},\r\n];\r\n\r\nconst SAVE_BUTTON = \".app-edit-actions .button-container-secondary button\",\r\n\tREMOVE_BUTTON = \".app-edit-actions .button-container-danger button\",\r\n\tSUCCESS_CONTAINER = \".app-edit-success\";\r\n\r\ndescribe(\"<ApplicationEdit/>\", () => {\r\n\tit(\"should have default field values when adding new\", async () => {\r\n\t\tconst wrapper = mount(<AddApp {...(AddApp.args as ApplicationEditProps)} />);\r\n\r\n\t\tWEB_APP_INPUT_FIELDS.forEach((field) => {\r\n\t\t\texpect(wrapper.find(field.selector).prop(\"value\"), field.name).to.equal(field.defaultValue);\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"should have filled-in field values when editing existing\", async () => {\r\n\t\tconst wrapper = mount(<EditApp {...(EditApp.args as ApplicationEditProps)} />);\r\n\r\n\t\tWEB_APP_INPUT_FIELDS.forEach((field) => {\r\n\t\t\texpect(wrapper.find(field.selector).prop(\"value\"), field.name).to.equal((EditApp.args?.data as any)[field.key]);\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"should have remove application button when editing existing\", async () => {\r\n\t\tconst wrapper = mount(<EditApp {...(EditApp.args as ApplicationEditProps)} />);\r\n\r\n\t\texpect(wrapper.find(REMOVE_BUTTON).length, \"Remove button\").to.equal(1);\r\n\t});\r\n\r\n\tit(\"should continue to the success screen\", async () => {\r\n\t\tconst wrapper = mount(<EditApp {...(EditApp.args as ApplicationEditProps)} />);\r\n\r\n\t\twrapper.find(SAVE_BUTTON).simulate(\"click\");\r\n\r\n\t\tawait waitTick();\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(SUCCESS_CONTAINER).length, \"Success container\").to.equal(1);\r\n\t});\r\n});\r\n"]}
|