@finsemble/finsemble-ui 6.4.0 → 6.6.0-beta.2
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 +31 -28
- package/react/actions/smartDesktopDesignerActions.d.ts +6 -2
- package/react/actions/smartDesktopDesignerActions.js +2 -0
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/assets/css/finsemble.css +0 -1
- package/react/assets/css/userPreferences.css +6 -0
- package/react/assets/icons/code-block.svg +15 -0
- package/react/componentTemplateGenerator.js +1 -1
- package/react/componentTemplateGenerator.js.map +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.d.ts +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +1 -1
- package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +2 -2
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.d.ts +1 -1
- package/react/components/common/Checkbox.js +1 -1
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/DropZone.js +3 -1
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/FileInput.d.ts +2 -1
- package/react/components/common/FileInput.js +2 -2
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.js +2 -0
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js +1 -1
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/ImagePreview.js +1 -1
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/Tooltip.js +3 -1
- package/react/components/common/Tooltip.js.map +1 -1
- package/react/components/common/css/application-edit-page.css +4 -1
- package/react/components/common/css/application-list.css +4 -0
- package/react/components/common/css/preload-edit-page.css +37 -0
- package/react/components/common/helpers.js +1 -0
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/FileInput.stories.d.ts +2 -1
- package/react/components/common/stories/FileInput.stories.js +6 -0
- package/react/components/common/stories/FileInput.stories.js.map +1 -1
- package/react/components/common/tests/Accordion.spec.js +1 -1
- package/react/components/common/tests/Accordion.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +8 -1
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +2 -2
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js +1 -1
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/icon/Icon.d.ts +4 -3
- package/react/components/icon/Icon.js +22 -12
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +1 -1
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuPortal.js +20 -1
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.d.ts +1 -1
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/types.d.ts +1 -1
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.d.ts +1 -1
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +4 -11
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +5 -10
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +8 -10
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +0 -2
- package/react/components/processMonitor/constants.js +0 -2
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +0 -11
- package/react/components/processMonitor/helpers.js +1 -9
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +6 -14
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +22 -62
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/AddApp.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AddApp.js +0 -0
- package/react/components/sdd/AddApp.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.js +0 -0
- package/react/components/sdd/AppEditAccess.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.d.ts +2 -1
- package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.js +77 -73
- package/react/components/sdd/AppEditPage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.css +8 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.js +0 -0
- package/react/components/sdd/Appearance.helpers.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.js +0 -0
- package/react/components/sdd/Appearance.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Application.d.ts +10 -3
- package/react/components/sdd/Application.js +220 -0
- package/react/components/sdd/Application.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Applications.d.ts +2 -0
- package/react/components/{smartDesktopDesigner → sdd}/Applications.js +17 -7
- package/react/components/sdd/Applications.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.js +0 -0
- package/react/components/sdd/AssetsPage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Authentication.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Authentication.js +1 -1
- package/react/components/sdd/Authentication.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.js +0 -0
- package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Content.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Content.js +0 -0
- package/react/components/sdd/Content.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.js +0 -0
- package/react/components/sdd/ContentHeader.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/CurrentView.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/CurrentView.js +0 -0
- package/react/components/sdd/CurrentView.js.map +1 -0
- package/react/components/sdd/EditPreload.d.ts +14 -0
- package/react/components/sdd/EditPreload.js +169 -0
- package/react/components/sdd/EditPreload.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Export.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Export.js +0 -0
- package/react/components/sdd/Export.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.js +0 -0
- package/react/components/sdd/ExportCloud.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.js +0 -0
- package/react/components/sdd/ExportDeployInfo.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportZip.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportZip.js +0 -0
- package/react/components/sdd/ExportZip.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.js +0 -0
- package/react/components/sdd/GettingStarted.js.map +1 -0
- package/react/components/sdd/ItemList.d.ts +17 -0
- package/react/components/sdd/ItemList.js +58 -0
- package/react/components/sdd/ItemList.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Navigation.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Navigation.js +0 -0
- package/react/components/sdd/Navigation.js.map +1 -0
- package/react/components/sdd/OptionalSettingsView.d.ts +11 -0
- package/react/components/sdd/OptionalSettingsView.js +71 -0
- package/react/components/sdd/OptionalSettingsView.js.map +1 -0
- package/react/components/sdd/Preloads.d.ts +8 -0
- package/react/components/sdd/Preloads.js +26 -0
- package/react/components/sdd/Preloads.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.js +0 -0
- package/react/components/sdd/ProjectErrors.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Publish.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Publish.js +0 -0
- package/react/components/sdd/Publish.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.js +0 -0
- package/react/components/sdd/PublishProgress.js.map +1 -0
- package/react/components/sdd/SmartDesktopDesigner.d.ts +28 -0
- package/react/components/sdd/SmartDesktopDesigner.js +121 -0
- package/react/components/sdd/SmartDesktopDesigner.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.js +0 -0
- package/react/components/sdd/ThemePage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Themes.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Themes.js +0 -0
- package/react/components/sdd/Themes.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Toolbar.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Toolbar.js +13 -11
- package/react/components/sdd/Toolbar.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/View.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/View.js +0 -0
- package/react/components/sdd/View.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.js +0 -0
- package/react/components/sdd/common/fsbl_functions.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.js +0 -0
- package/react/components/sdd/common/getCSSVars.js.map +1 -0
- package/react/components/{smartDesktopDesigner/fixtures → sdd/common}/views.d.ts +0 -0
- package/react/components/sdd/common/views.js +204 -0
- package/react/components/sdd/common/views.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/appearance.css +3 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/applications.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/authentication.css +5 -1
- package/react/components/{smartDesktopDesigner → sdd}/css/buttons.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/export.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/getting-started.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/nav.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/project-errors.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/project-header.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/styles.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/views.css +0 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.js +27 -5
- package/react/components/sdd/fixtures/apps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.js +0 -0
- package/react/components/sdd/fixtures/authenticationProps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.js +1 -1
- package/react/components/sdd/fixtures/configTemplate.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.js +0 -0
- package/react/components/sdd/fixtures/exportProps.js.map +1 -0
- package/react/components/sdd/fixtures/preloads.d.ts +22 -0
- package/react/components/sdd/fixtures/preloads.js +40 -0
- package/react/components/sdd/fixtures/preloads.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.js +0 -0
- package/react/components/sdd/fixtures/projectErrorsProps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.js +0 -0
- package/react/components/sdd/fixtures/publishProgress.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.js +0 -0
- package/react/components/sdd/fixtures/themeProps.js.map +1 -0
- package/react/components/sdd/fixtures/views.d.ts +3 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/views.js +9 -0
- package/react/components/sdd/fixtures/views.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.js +0 -0
- package/react/components/sdd/sdd_helpers.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.js +1 -0
- package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.js +0 -0
- package/react/components/sdd/stories/Appearance.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.js +0 -0
- package/react/components/sdd/stories/Applications.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.js +0 -0
- package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.js +0 -0
- package/react/components/sdd/stories/Authentication.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.js +0 -0
- package/react/components/sdd/stories/ContentHeader.stories.js.map +1 -0
- package/react/components/sdd/stories/EditPreload.stories.d.ts +11 -0
- package/react/components/sdd/stories/EditPreload.stories.js +35 -0
- package/react/components/sdd/stories/EditPreload.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.js +0 -0
- package/react/components/sdd/stories/Export.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.js +0 -0
- package/react/components/sdd/stories/ExportCloud.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.js +0 -0
- package/react/components/sdd/stories/ExportZip.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.js +0 -0
- package/react/components/sdd/stories/GettingStarted.stories.js.map +1 -0
- package/react/components/sdd/stories/ItemList.stories.d.ts +16 -0
- package/react/components/{smartDesktopDesigner/stories/ApplicationList.stories.js → sdd/stories/ItemList.stories.js} +26 -26
- package/react/components/sdd/stories/ItemList.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.js +0 -0
- package/react/components/sdd/stories/Navigation.stories.js.map +1 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.d.ts +11 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.js +28 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -0
- package/react/components/sdd/stories/Preloads.stories.d.ts +11 -0
- package/react/components/sdd/stories/Preloads.stories.js +31 -0
- package/react/components/sdd/stories/Preloads.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.js +0 -0
- package/react/components/sdd/stories/ProjectErrors.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.js +0 -0
- package/react/components/sdd/stories/Publish.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.js +0 -0
- package/react/components/sdd/stories/PublishProgress.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.js +0 -0
- package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.js +0 -0
- package/react/components/sdd/stories/ThemePage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.js +0 -0
- package/react/components/sdd/stories/Themes.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.js +0 -0
- package/react/components/sdd/stories/Toolbar.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/AppEditPage.spec.d.ts +0 -0
- package/react/components/sdd/tests/AppEditPage.spec.js +1151 -0
- package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → sdd/tests/Application.spec.d.ts} +0 -0
- package/react/components/sdd/tests/Application.spec.js +1478 -0
- package/react/components/sdd/tests/Application.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.js +3 -3
- package/react/components/sdd/tests/Applications.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.js +0 -0
- package/react/components/sdd/tests/Authentication.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.js +0 -0
- package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Export.spec.d.ts → sdd/tests/EditPreload.spec.d.ts} +0 -0
- package/react/components/sdd/tests/EditPreload.spec.js +61 -0
- package/react/components/sdd/tests/EditPreload.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ExportZip.spec.d.ts → sdd/tests/Export.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Export.spec.js +0 -0
- package/react/components/sdd/tests/Export.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Navigation.spec.d.ts → sdd/tests/ExportZip.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ExportZip.spec.js +0 -0
- package/react/components/sdd/tests/ExportZip.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ProjectErrors.spec.d.ts → sdd/tests/ItemList.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.js → sdd/tests/ItemList.spec.js} +8 -8
- package/react/components/sdd/tests/ItemList.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Publish.spec.d.ts → sdd/tests/Navigation.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Navigation.spec.js +0 -0
- package/react/components/sdd/tests/Navigation.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/PublishProgess.spec.d.ts → sdd/tests/Preloads.spec.d.ts} +0 -0
- package/react/components/sdd/tests/Preloads.spec.js +47 -0
- package/react/components/sdd/tests/Preloads.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/SmartDesktopDesigner.spec.d.ts → sdd/tests/ProjectErrors.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ProjectErrors.spec.js +0 -0
- package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Themes.spec.d.ts → sdd/tests/Publish.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Publish.spec.js +0 -0
- package/react/components/sdd/tests/Publish.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/sdd_helpers.spec.d.ts → sdd/tests/PublishProgess.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/PublishProgess.spec.js +0 -0
- package/react/components/sdd/tests/PublishProgess.spec.js.map +1 -0
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/SmartDesktopDesigner.spec.js +6 -0
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -0
- package/react/components/sdd/tests/Themes.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Themes.spec.js +0 -0
- package/react/components/sdd/tests/Themes.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.js +0 -0
- package/react/components/sdd/tests/Toolbar.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.js +0 -0
- package/react/components/sdd/tests/a11y_helper.js.map +1 -0
- package/react/components/sdd/tests/sdd_helpers.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/sdd_helpers.spec.js +0 -0
- package/react/components/sdd/tests/sdd_helpers.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.js +0 -0
- package/react/components/sdd/themeDefinitions.js.map +1 -0
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchProviderResults.d.ts +3 -1
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.d.ts +3 -1
- package/react/components/search/SearchResult.js +11 -8
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +2 -116
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +1 -185
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/toolbar/AutoArrange.js +1 -1
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/AutoArrange.spec.d.ts +1 -0
- package/react/components/toolbar/AutoArrange.spec.js +48 -0
- package/react/components/toolbar/AutoArrange.spec.js.map +1 -0
- package/react/components/toolbar/AutoArrange.stories.d.ts +11 -0
- package/react/components/toolbar/AutoArrange.stories.js +21 -0
- package/react/components/toolbar/AutoArrange.stories.js.map +1 -0
- package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
- package/react/components/toolbar/DragHandle.spec.js +31 -0
- package/react/components/toolbar/DragHandle.spec.js.map +1 -0
- package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
- package/react/components/toolbar/DragHandle.stories.js +39 -0
- package/react/components/toolbar/DragHandle.stories.js.map +1 -0
- package/react/components/toolbar/SddButton.d.ts +2 -0
- package/react/components/toolbar/SddButton.js +23 -0
- package/react/components/toolbar/SddButton.js.map +1 -0
- package/react/components/toolbar/ToolbarShell.js +4 -1
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +3 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +15 -4
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
- package/react/components/toolbar/appLauncher/components/componentList.js +3 -4
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +11 -12
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +72 -13
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +6 -1
- package/react/components/userPreferences/components/content/Workspaces.js +59 -18
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.d.ts +2 -0
- package/react/components/userPreferences/components/general/ScheduledRestart.js +10 -2
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +2 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js +6 -6
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +5 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.js +70 -59
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -2
- package/react/components/windowTitleBar/components/center/TabList.js +5 -2
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -2
- package/react/components/windowTitleBar/components/windowTitle.js +99 -94
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +218 -219
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js +1 -1
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useNotifications.d.ts +1 -1
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useSearch.d.ts +2 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js +6 -0
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +11 -3
- package/react/reducers/smartDesktopDesignerReducer.js +8 -0
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/store.d.ts +22 -6
- package/react/types/advancedAppLauncherTypes.d.ts +5 -3
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/favoriteTypes.d.ts +4 -2
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.d.ts +2 -2
- package/react/types/fdc3.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/windowTitleBar.d.ts +1 -1
- package/react/types/windowTitleBar.js.map +1 -1
- package/react/components/smartDesktopDesigner/AddApp.js.map +0 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +0 -1
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +0 -1
- package/react/components/smartDesktopDesigner/Appearance.js.map +0 -1
- package/react/components/smartDesktopDesigner/Application.js +0 -228
- package/react/components/smartDesktopDesigner/Application.js.map +0 -1
- package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -16
- package/react/components/smartDesktopDesigner/ApplicationList.js +0 -60
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
- package/react/components/smartDesktopDesigner/Applications.js.map +0 -1
- package/react/components/smartDesktopDesigner/AssetsPage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Authentication.js.map +0 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +0 -1
- package/react/components/smartDesktopDesigner/Content.js.map +0 -1
- package/react/components/smartDesktopDesigner/ContentHeader.js.map +0 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +0 -1
- package/react/components/smartDesktopDesigner/Export.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportZip.js.map +0 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +0 -1
- package/react/components/smartDesktopDesigner/Navigation.js.map +0 -1
- package/react/components/smartDesktopDesigner/ProjectErrors.js.map +0 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +0 -1
- package/react/components/smartDesktopDesigner/PublishProgress.js.map +0 -1
- package/react/components/smartDesktopDesigner/ThemePage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Themes.js.map +0 -1
- package/react/components/smartDesktopDesigner/Toolbar.js.map +0 -1
- package/react/components/smartDesktopDesigner/View.js.map +0 -1
- package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +0 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +0 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -16
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +0 -310
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/themeDefinitions.js.map +0 -1
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.d.ts +0 -6
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js +0 -23
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +0 -1
- package/react/hooks/useWorkspace.d.ts +0 -5
- package/react/hooks/useWorkspace.js +0 -26
- package/react/hooks/useWorkspace.js.map +0 -1
- package/react/types/iconTypes.d.ts +0 -11
- package/react/types/iconTypes.js +0 -2
- package/react/types/iconTypes.js.map +0 -1
- package/react/types/searchTypes.d.ts +0 -29
- package/react/types/searchTypes.js +0 -2
- package/react/types/searchTypes.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Applications.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Applications.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAqB,MAAM,iBAAiB,CAAC;AAClE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAe;IACd,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,YAAY;CACvB,CAAC;AAEF,MAAM,QAAQ,GAA6B,CAAC,IAAuB,EAAE,EAAE;IACtE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB,IAAC,KAAK,EAAE,WAAW,EAAE;QACtC,oBAAC,YAAY,oBAAK,IAAI,EAAI,CACP,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IACtC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE9C,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE;IACxC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE;IACzB,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAE7C,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE;IAC9C,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAElD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC","sourcesContent":["import React from \"react\";\nimport { Applications, ApplicationsProps } from \"../Applications\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\nimport { createStore } from \"../../../store\";\n\nexport default {\n\ttitle: \"Views/Applications\",\n\tcomponent: Applications,\n};\n\nconst Template: Story<ApplicationsProps> = (args: ApplicationsProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider store={createStore()}>\n\t\t\t<Applications {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const EmptyApplications = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"empty\");\n\n\treturn Component;\n})();\n\nexport const DefaultApplications = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"default\");\n\n\treturn Component;\n})();\n\nexport const Long = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"long\");\n\n\treturn Component;\n})();\n\nexport const ApplicationsWithTemporary = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"temporary\");\n\n\treturn Component;\n})();\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssetsPage.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/AssetsPage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAC;AAC5D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,eAAe;IACd,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAkB,UAAU,EAAE;IAC5D,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,iBAAiB,EAAE,EAAE;IACrB,cAAc,EAAE,CAAC,CAAS,EAAE,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,cAAc,EAAE,CAAC,CAAS,EAAE,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,gBAAgB,EAAE,CAAC,CAAS,EAAE,EAAE;QAC/B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,iBAAiB,EAAE,CAAC,CAAS,EAAE,EAAE;QAChC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,oBAAoB,EAAE,CAAC,CAAS,EAAE,EAAE;QACnC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,eAAe,EAAE,CAAC,CAAS,EAAE,EAAE;QAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC;IACD,kBAAkB,EAAE,cAAc;IAClC,iBAAiB,EAAE,cAAc;IACjC,iBAAiB,EAAE,cAAc;IACjC,oBAAoB,EAAE,cAAc;IACpC,mBAAmB,EAAE,cAAc;CACnC,CAAC,CAAC","sourcesContent":["import { createStory, uploadFunction } from \"../../common/helpers\";\nimport { AssetsPage, AssetsPageProps } from \"../AssetsPage\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/AssetsPage\",\n\tcomponent: AssetsPage,\n};\n\nexport const Page = createStory<AssetsPageProps>(AssetsPage, {\n\tbaseURL: \"\",\n\ttoolbarIcon: \"\",\n\ttaskbarIcon: \"\",\n\tinstallerIcon: \"\",\n\tsystemTrayIcon: \"\",\n\tsplashScreenImage: \"\",\n\tsetToolbarIcon: (s: string) => {\n\t\tconsole.log(s);\n\t},\n\tsetTaskbarIcon: (s: string) => {\n\t\tconsole.log(s);\n\t},\n\tsetInstallerIcon: (s: string) => {\n\t\tconsole.log(s);\n\t},\n\tsetSystemTrayIcon: (s: string) => {\n\t\tconsole.log(s);\n\t},\n\tsetSplashScreenImage: (s: string) => {\n\t\tconsole.log(s);\n\t},\n\tsetIconsChanged: (n: number) => {\n\t\tconsole.log(n);\n\t},\n\tupdateSplashScreen: uploadFunction,\n\tupdateToolbarIcon: uploadFunction,\n\tupdateTaskbarIcon: uploadFunction,\n\tupdateSystemTrayIcon: uploadFunction,\n\tupdateInstallerIcon: uploadFunction,\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Authentication.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Authentication.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAuB,MAAM,mBAAmB,CAAC;AACxE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAA0B,MAAM,0CAA0C,CAAC;AAEtG,eAAe;IACd,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,cAAc;CACzB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE;IAC1E,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,cAAc,oBAAK,IAAI,EAAI,CACT,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtC,IAAI,CAAC,IAAI,qBAAQ,4BAA4B,CAAE,CAAC;AAEhD,MAAM,0BAA0B,GAAG,GAAsC,EAAE,CAC1E,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC;QACP;YACC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,kBAAkB,CAAC,MAAM;YAC/B,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,IAAI;YACZ,YAAY,EAAE,EAAE;YAChB,KAAK,EAAE,KAAK;SACZ;KACD,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,mCACZ,4BAA4B,KAC/B,0BAA0B,GAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,mCACV,4BAA4B,KAC/B,0BAA0B,EAC1B,0BAA0B,EAAE,GAAG,EAAE,CAChC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC/B,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC/B,CAAC,CAAC,GACH,CAAC","sourcesContent":["import { initFSBL } from \"../../common/helpers\";\nimport { Authentication, AuthenticationProps } from \"../Authentication\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport React from \"react\";\nimport { default_authentication_props } from \"../fixtures/authenticationProps\";\nimport { AuthenticationType, AuthenticationProvider } from \"../../../types/smartDesktopDesignerTypes\";\n\nexport default {\n\ttitle: \"Views/Authentication\",\n\tcomponent: Authentication,\n};\n\nconst Template: Story<AuthenticationProps> = (args: AuthenticationProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<Authentication {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const Page = Template.bind({});\nPage.args = { ...default_authentication_props };\n\nconst getAuthenticationProviders = (): Promise<AuthenticationProvider[]> =>\n\tnew Promise((resolve) => {\n\t\tresolve([\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\tenabled: true,\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: \"\",\n\t\t\t\tsecret: null,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t]);\n\t});\n\nexport const OneSelected = Template.bind({});\nOneSelected.args = {\n\t...default_authentication_props,\n\tgetAuthenticationProviders,\n};\n\nexport const AuthError = Template.bind({});\nAuthError.args = {\n\t...default_authentication_props,\n\tgetAuthenticationProviders,\n\ttestAuthenticationProvider: () =>\n\t\tnew Promise((resolve, reject) => {\n\t\t\treject(\"Invalid auth config\");\n\t\t}),\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ContentHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAE9D,OAAO,mCAAmC,CAAC;AAE3C,eAAe;IACd,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,aAAa;CACxB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,aAAa,oBAAK,IAAI,EAAI,CAAC;AAExF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,eAAe;CACrB,CAAC","sourcesContent":["import React from \"react\";\nimport { ContentHeader, HeaderProps } from \"../ContentHeader\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport \"../../../assets/css/finsemble.css\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/Content Header\",\n\tcomponent: ContentHeader,\n};\n\nconst Template: Story<HeaderProps> = (args: HeaderProps) => <ContentHeader {...args} />;\n\nexport const BasicStory = Template.bind({});\nBasicStory.args = {\n\tname: \"Project Title\",\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Export.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Export.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,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,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAe;IACd,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE;IAC1D,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,MAAM,oBAAK,IAAI,EAAI,CACD,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,qBAAQ,aAAa,CAAE,CAAC","sourcesContent":["import React from \"react\";\nimport { Export, ExportProps } from \"../Export\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { DEFAULT_PROPS } from \"../fixtures/exportProps\";\n\nexport default {\n\ttitle: \"Views/Export\",\n\tcomponent: Export,\n};\n\nconst Template: Story<ExportProps> = (args: ExportProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<Export {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultExport = Template.bind({});\nDefaultExport.args = { ...DEFAULT_PROPS };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExportCloud.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ExportCloud.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,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,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,eAAe;IACd,KAAK,EAAE,oCAAoC;IAC3C,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE;IAC1D,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,WAAW,oBAAK,IAAI,IAAE,KAAK,EAAE,IAAI,IAAI,CACnB,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,qBAAQ,aAAa,CAAE,CAAC","sourcesContent":["import React from \"react\";\nimport { ExportProps } from \"../Export\";\nimport { ExportCloud } from \"../ExportCloud\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { DEFAULT_PROPS } from \"../fixtures/exportProps\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/ExportCloud\",\n\tcomponent: ExportCloud,\n};\n\nconst Template: Story<ExportProps> = (args: ExportProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<ExportCloud {...args} valid={true} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultExportCloud = Template.bind({});\nDefaultExportCloud.args = { ...DEFAULT_PROPS };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExportZip.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ExportZip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,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,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAG3F,eAAe;IACd,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE;IAC1D,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,KAAK,CAAC,QAAQ,CACb,2BAA2B,CAAC,gBAAgB,iCACvC,KAAK,CAAC,QAAQ,EAAE,CAAC,oBAAkD,CAAC,WAAW,KACnF,IAAI,EAAE,MAAM,IACX,CACF,CAAC;IAEF,OAAO,CACN,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK;QAC9B,oBAAC,SAAS,oBAAK,IAAI,IAAE,KAAK,EAAE,IAAI,IAAI,CACjB,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,qBAAQ,aAAa,CAAE,CAAC;AAE7C,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,mCACf,aAAa,KAChB,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC/B,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC/B,CAAC,CAAC,GACH,CAAC","sourcesContent":["import React from \"react\";\nimport { ExportProps } from \"../Export\";\nimport { ExportZip } from \"../ExportZip\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { DEFAULT_PROPS } from \"../fixtures/exportProps\";\nimport { store } from \"../../../store\";\nimport { SmartDesktopDesignerActions } from \"../../../actions/smartDesktopDesignerActions\";\nimport { SmartDesktopDesignerState } from \"../../../types/smartDesktopDesignerTypes\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/ExportZip\",\n\tcomponent: ExportZip,\n};\n\nconst Template: Story<ExportProps> = (args: ExportProps) => {\n\tinitFSBL(window);\n\n\tstore.dispatch(\n\t\tSmartDesktopDesignerActions.set_project_info({\n\t\t\t...(store.getState().smartDesktopDesigner as SmartDesktopDesignerState).projectInfo,\n\t\t\tname: \"test\",\n\t\t})\n\t);\n\n\treturn (\n\t\t<FinsembleProvider store={store}>\n\t\t\t<ExportZip {...args} valid={true} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultExportZip = Template.bind({});\nDefaultExportZip.args = { ...DEFAULT_PROPS };\n\nexport const ErrorExportZip = Template.bind({});\nErrorExportZip.args = {\n\t...DEFAULT_PROPS,\n\tcopyProjectFiles: () =>\n\t\tnew Promise((resolve, reject) => {\n\t\t\treject(\"error copying files\");\n\t\t}),\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/GettingStarted.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAuB,MAAM,mBAAmB,CAAC;AACxE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,eAAe;IACd,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,cAAc;CACzB,CAAC;AAEF,MAAM,QAAQ,GAA+B,CAAC,IAAyB,EAAE,EAAE;IAC1E,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,cAAc,oBAAK,IAAI,EAAI,CACT,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,qBAAqB,CAAC,IAAI,GAAG,EAAE,CAAC","sourcesContent":["import React from \"react\";\nimport { GettingStarted, GettingStartedProps } from \"../GettingStarted\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\n\nexport default {\n\ttitle: \"Views/GettingStarted\",\n\tcomponent: GettingStarted,\n};\n\nconst Template: Story<GettingStartedProps> = (args: GettingStartedProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<GettingStarted {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultGettingStarted = Template.bind({});\nDefaultGettingStarted.args = {};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Navigation.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAC;AAC5D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAGrC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAe;IACd,KAAK,EAAE,4CAA4C;IACnD,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,QAAQ,GAA2B,CAAC,IAAqB,EAAE,EAAE;IAClE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACrB,oBAAC,UAAU,oBAAK,IAAI,EAAI,CACd,CACX,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnD,iBAAiB,CAAC,IAAI,GAAG;IACxB,KAAK;CACL,CAAC","sourcesContent":["import React from \"react\";\nimport { Provider } from \"react-redux\";\nimport { Navigation, NavigationProps } from \"../Navigation\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nimport views from \"../fixtures/views\";\nimport { store } from \"../../../store\";\nimport { initFSBL } from \"../../common/helpers\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/NavigationComponent\",\n\tcomponent: Navigation,\n};\n\nconst Template: Story<NavigationProps> = (args: NavigationProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<Provider store={store}>\n\t\t\t<Navigation {...args} />\n\t\t</Provider>\n\t);\n};\n\nexport const DefaultNavigation = Template.bind({});\nDefaultNavigation.args = {\n\tviews,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectErrors.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ProjectErrors.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AACrE,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,oBAAoB,MAAM,gCAAgC,CAAC;AAElE,eAAe;IACd,KAAK,EAAE,sCAAsC;IAC7C,SAAS,EAAE,aAAa;CACxB,CAAC;AAEF,MAAM,QAAQ,GAA8B,CAAC,IAAwB,EAAE,EAAE;IACxE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB,IAAC,KAAK,EAAE,WAAW,EAAE;QACtC,oBAAC,aAAa,oBAAK,IAAI,EAAI,CACR,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,qBACR,oBAAoB,CACvB,CAAC","sourcesContent":["import React from \"react\";\nimport { ProjectErrors, ProjectErrorsProps } from \"../ProjectErrors\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider, createStore } from \"../../FinsembleProvider\";\nimport PROJECT_ERRORS_PROPS from \"../fixtures/projectErrorsProps\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/ProjectErrors\",\n\tcomponent: ProjectErrors,\n};\n\nconst Template: Story<ProjectErrorsProps> = (args: ProjectErrorsProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider store={createStore()}>\n\t\t\t<ProjectErrors {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n\t...PROJECT_ERRORS_PROPS,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
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,CA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\"../Export\";\nimport { Publish } from \"../Publish\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport publishTests from \"../fixtures/publishProgress\";\nimport { useDispatch } from \"../../../store\";\nimport { SmartDesktopDesignerActions } from \"../../../actions/smartDesktopDesignerActions\";\nimport { DEFAULT_PROPS } from \"../fixtures/exportProps\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/Publish\",\n\tcomponent: Publish,\n};\n\nconst Dispatcher = (props: ExportProps) => {\n\tconst dispatch = useDispatch();\n\n\tif (props.publishToCosaicCloud) {\n\t\tprops\n\t\t\t.publishToCosaicCloud()\n\t\t\t.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))\n\t\t\t.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));\n\t}\n\n\treturn <></>;\n};\n\nconst Template: Story<ExportProps> = (args: ExportProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<Publish {...args} />\n\t\t\t<Dispatcher {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultPublish = Template.bind({});\nDefaultPublish.args = { ...DEFAULT_PROPS };\n\nexport const Error1Publish = Template.bind({});\nError1Publish.args = {\n\t...DEFAULT_PROPS,\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-1-fail\")!.states[0]);\n\t\t}),\n};\n\nexport const Error2Publish = Template.bind({});\nError2Publish.args = {\n\t...DEFAULT_PROPS,\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-2-fail\")!.states[0]);\n\t\t}),\n};\n\nexport const Error3Publish = Template.bind({});\nError3Publish.args = {\n\t...DEFAULT_PROPS,\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-3-fail\")!.states[0]);\n\t\t}),\n};\n\nexport const Error4Publish = Template.bind({});\nError4Publish.args = {\n\t...DEFAULT_PROPS,\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests.find((test) => test.name === \"step-4-fail\")!.states[0]);\n\t\t}),\n};\n\nexport const SuccessPublish = Template.bind({});\nSuccessPublish.args = {\n\t...DEFAULT_PROPS,\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests.find((test) => test.name === \"success\")!.states[0]);\n\t\t}),\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
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\";\nimport { PublishProgress, PublishProgressProps } from \"../PublishProgress\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/PublishProgress\",\n\tcomponent: PublishProgress,\n};\n\nconst Template: Story<PublishProgressProps> = (args: PublishProgressProps) => <PublishProgress {...args} />;\n\nexport const InitialPublishProgress = Template.bind({});\nInitialPublishProgress.args = {\n\tpercentComplete: 0,\n};\n\nexport const QuarterPublishProgress = Template.bind({});\nQuarterPublishProgress.args = {\n\tpercentComplete: 25,\n};\n\nexport const HalfPublishProgress = Template.bind({});\nHalfPublishProgress.args = {\n\tpercentComplete: 50,\n};\n\nexport const FullPublishProgress = Template.bind({});\nFullPublishProgress.args = {\n\tpercentComplete: 100,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
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;AACnD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAKtC,MAAM,aAAa,GAAG;IACrB,KAAK;IACL,SAAS,EAAE,CAAC,MAAW,EAAE,QAAa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martDesktopDesignerProps } from \"../SmartDesktopDesigner\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { createStory } from \"../../common/helpers\";\nimport views from \"../fixtures/views\";\nimport { FEA } from \"@finsemble/finsemble-core\";\n\ntype SDServerInfo = FEA.SDServerInfo;\n\nconst DEFAULT_PROPS = {\n\tviews,\n\tgetConfig: (params: any, callback: any) =>\n\t\tnew Promise<{ data: any; err: string | null }>(() => {\n\t\t\tcallback(null, {\n\t\t\t\tfinsemble: {\n\t\t\t\t\tsystem: {\n\t\t\t\t\t\tFSBLVersion: \"test\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t});\n\t\t}),\n\tresetProject: () => new Promise<[Error | null, any]>(() => {}),\n\tgetSDServerInfo: () =>\n\t\tnew Promise<SDServerInfo>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tenabled: true,\n\t\t\t\tapplicationRoot: \"http://localhost/\",\n\t\t\t\tprojectConfig: {},\n\t\t\t} as SDServerInfo);\n\t\t}),\n\tgetProjectSettings: () =>\n\t\tnew Promise<{\n\t\t\tsettings: {\n\t\t\t\tname: string;\n\t\t\t\tpath?: string;\n\t\t\t\tversion?: string;\n\t\t\t\tauthors?: string;\n\t\t\t\tdescription?: string;\n\t\t\t};\n\t\t\terr: any;\n\t\t}>((resolve) => {\n\t\t\tresolve({\n\t\t\t\tsettings: {\n\t\t\t\t\tname: \"default\",\n\t\t\t\t\tpath: \"/Users/administrator/Library/Application Support/Electron/smartDesktops/projects/default\",\n\t\t\t\t},\n\t\t\t\terr: null,\n\t\t\t});\n\t\t}),\n\tupdateProjectSettings: () => new Promise<{ err: any }>(() => {}),\n\tonThemeUpdated: () => () => {},\n\tselectProjectPath: () =>\n\t\tnew Promise<string>((resolve) => {\n\t\t\tresolve(\"/tmp\");\n\t\t}),\n\trestartFinsemble: () => {},\n};\n\nexport default {\n\ttitle: \"Components/Smart Desktop Designer\",\n\tcomponent: SmartDesktopDesigner,\n};\n\nexport const DefaultSDD = createStory<SmartDesktopDesignerProps>(SmartDesktopDesigner, { ...DEFAULT_PROPS });\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemePage.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ThemePage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAkB,MAAM,cAAc,CAAC;AACzD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,eAAe;IACd,KAAK,EAAE,kCAAkC;IACzC,SAAS,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAiB,SAAS,EAAE;IAC1D,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,CAAC,EAAU,EAAE,QAAgB,EAAE,EAAE;QAC9C,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC;CACD,CAAC,CAAC","sourcesContent":["import { createStory } from \"../../common/helpers\";\nimport { ThemePage, ThemePageProps } from \"../ThemePage\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { darkTheme } from \"../themeDefinitions\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/ThemePage\",\n\tcomponent: ThemePage,\n};\n\nexport const Page = createStory<ThemePageProps>(ThemePage, {\n\ttheme: darkTheme,\n\tupdateThemes: (id: string, newValue: string) => {\n\t\tconsole.log(`ID: ${id}, Theme: ${newValue}`);\n\t},\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Themes.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Themes.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAA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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\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { action } from \"@storybook/addon-actions\";\nimport { darkTheme } from \"../themeDefinitions\";\nimport { createStory } from \"../../common/helpers\";\n\nexport default {\n\ttitle: \"Views/Themes\",\n\tcomponent: Themes,\n};\n\nexport const Page = createStory<ThemeProps>(Themes, {\n\tgetSDServerInfo: (cb: Function) => {\n\t\tcb({\n\t\t\tapplicationRoot: \"\",\n\t\t\tname: \"\",\n\t\t\tuser: {\n\t\t\t\tfirstName: \"\",\n\t\t\t\tlastName: \"\",\n\t\t\t\tcompany: \"\",\n\t\t\t\temail: \"\",\n\t\t\t},\n\t\t\texport: {\n\t\t\t\tauthor: \"\",\n\t\t\t\tcompanyName: \"\",\n\t\t\t\tdescription: \"\",\n\t\t\t\ttoolbarIcon: \"\",\n\t\t\t\tinstallerIcon: \"\",\n\t\t\t\ttaskbarIcon: \"\",\n\t\t\t\tsystemTrayIcon: \"\",\n\t\t\t\tsplashScreenImage: \"\",\n\t\t\t},\n\t\t});\n\t},\n\tupdateProjectSettings: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({ err: undefined });\n\t\t}),\n\tupdateSplashScreen: action(\"updateSplashScreen\"),\n\tupdateToolbarIcon: action(\"updateToolbarIcon\"),\n\tupdateTaskbarIcon: action(\"updateTaskbarIcon\"),\n\tupdateSystemTrayIcon: action(\"updateSystemTrayIcon\"),\n\tupdateInstallerIcon: action(\"updateInstallerIcon\"),\n\tareYouSure: (cb: Function) => {\n\t\tcb();\n\t},\n\tupdateThemes: action(\"updateTheme\"),\n\ttheme: {\n\t\tthemes: {\n\t\t\tDefault: darkTheme,\n\t\t},\n\t},\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Toolbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAe;IACd,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,OAAO;CAClB,CAAC;AAEF,MAAM,QAAQ,GAAwB,CAAC,IAAkB,EAAE,EAAE;IAC5D,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB,IAAC,KAAK,EAAE,WAAW,EAAE;QACtC,oBAAC,OAAO,oBAAK,IAAI,EAAI,CACF,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IACtC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE9C,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE;IACxC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE;IACzB,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAE7C,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE;IAC9C,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEpC,SAAS,CAAC,IAAI,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAElD,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC,EAAE,CAAC","sourcesContent":["import React from \"react\";\nimport { Toolbar, ToolbarProps } from \"../Toolbar\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\nimport { createStore } from \"../../../store\";\n\nexport default {\n\ttitle: \"Views/Toolbar\",\n\tcomponent: Toolbar,\n};\n\nconst Template: Story<ToolbarProps> = (args: ToolbarProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider store={createStore()}>\n\t\t\t<Toolbar {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const EmptyApplications = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"empty\");\n\n\treturn Component;\n})();\n\nexport const DefaultApplications = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"default\");\n\n\treturn Component;\n})();\n\nexport const Long = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"long\");\n\n\treturn Component;\n})();\n\nexport const ApplicationsWithTemporary = (() => {\n\tconst Component = Template.bind({});\n\n\tComponent.args = getApplicationsArgs(\"temporary\");\n\n\treturn Component;\n})();\n"]}
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { mount } from "enzyme";
|
|
3
|
-
import { afterEach, describe, it } from "mocha";
|
|
4
|
-
import { expect } from "chai";
|
|
5
|
-
import sinon from "sinon";
|
|
6
|
-
import { Page, EmptyPage, NativePage } from "../stories/AppEditPage.stories";
|
|
7
|
-
import { accessibilityAssessor } from "./a11y_helper";
|
|
8
|
-
describe("<AppEditPage/>", () => {
|
|
9
|
-
afterEach(() => {
|
|
10
|
-
sinon.restore();
|
|
11
|
-
});
|
|
12
|
-
it.skip("should pass accessibility scans (Page)", async function () {
|
|
13
|
-
this.timeout(5000);
|
|
14
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
15
|
-
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
16
|
-
});
|
|
17
|
-
it.skip("should pass accessibility scans (EmptyPage)", async () => {
|
|
18
|
-
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
19
|
-
expect(await accessibilityAssessor(wrapper)).to.be.true;
|
|
20
|
-
});
|
|
21
|
-
it("should display starting name in Name field, if name field is set", () => {
|
|
22
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
23
|
-
expect(wrapper.find("#app-name").first().prop("value")).to.equal("Test");
|
|
24
|
-
});
|
|
25
|
-
it("should not display starting name in Name field, if no name field is set", () => {
|
|
26
|
-
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
27
|
-
expect(wrapper.find("#app-name").first().prop("value")).to.equal("");
|
|
28
|
-
});
|
|
29
|
-
it("should display Name as a valid field, even if the given name is duplicate", () => {
|
|
30
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
31
|
-
const appName = wrapper.find("#app-name").at(0);
|
|
32
|
-
appName.simulate("change", {
|
|
33
|
-
target: {
|
|
34
|
-
value: "Used",
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
expect(wrapper.find("#app-name").at(0).prop("value")).to.equal("Used");
|
|
38
|
-
expect(!!wrapper.find("#app-name").at(0).prop("aria-invalid")).to.be.false;
|
|
39
|
-
});
|
|
40
|
-
it("should display invalid state for App URL if provided URL is invalid", () => {
|
|
41
|
-
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
42
|
-
wrapper
|
|
43
|
-
.find("#app-url")
|
|
44
|
-
.at(0)
|
|
45
|
-
.simulate("change", {
|
|
46
|
-
target: {
|
|
47
|
-
value: "invalid",
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
expect(wrapper.find("#app-url").at(0).prop("aria-invalid")).to.be.true;
|
|
51
|
-
});
|
|
52
|
-
it("should display invalid state for width if provided a negative number", () => {
|
|
53
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
54
|
-
wrapper
|
|
55
|
-
.find("#app-width")
|
|
56
|
-
.at(0)
|
|
57
|
-
.simulate("change", {
|
|
58
|
-
target: {
|
|
59
|
-
value: "-999",
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
expect(wrapper.find("#app-width").at(0).prop("aria-invalid")).to.be.true;
|
|
63
|
-
});
|
|
64
|
-
it("should display invalid state for width if provided an empty value", () => {
|
|
65
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
66
|
-
wrapper
|
|
67
|
-
.find("#app-width")
|
|
68
|
-
.at(0)
|
|
69
|
-
.simulate("change", {
|
|
70
|
-
target: {
|
|
71
|
-
value: "",
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
expect(wrapper.find("#app-width").at(0).prop("aria-invalid")).to.be.true;
|
|
75
|
-
});
|
|
76
|
-
it("should display invalid state for height if provided a negative number", () => {
|
|
77
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
78
|
-
wrapper
|
|
79
|
-
.find("#app-height")
|
|
80
|
-
.at(0)
|
|
81
|
-
.simulate("change", {
|
|
82
|
-
target: {
|
|
83
|
-
value: "-999",
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
expect(wrapper.find("#app-height").at(0).prop("aria-invalid")).to.be.true;
|
|
87
|
-
});
|
|
88
|
-
it("should display invalid state for height if provided an empty value", () => {
|
|
89
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
90
|
-
wrapper
|
|
91
|
-
.find("#app-height")
|
|
92
|
-
.at(0)
|
|
93
|
-
.simulate("change", {
|
|
94
|
-
target: {
|
|
95
|
-
value: "",
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
expect(wrapper.find("#app-height").at(0).prop("aria-invalid")).to.be.true;
|
|
99
|
-
});
|
|
100
|
-
it("should display only App URL if App type = Web", () => {
|
|
101
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
102
|
-
expect(wrapper.contains("App URL")).to.be.true;
|
|
103
|
-
expect(wrapper.contains("File Path")).to.be.false;
|
|
104
|
-
});
|
|
105
|
-
it("should display only File Path, API Access and Arguments if App type = Native", () => {
|
|
106
|
-
const wrapper = mount(React.createElement(NativePage, Object.assign({}, NativePage.args)));
|
|
107
|
-
expect(wrapper.contains("File Path")).to.be.true;
|
|
108
|
-
expect(wrapper.contains("Arguments")).to.be.true;
|
|
109
|
-
expect(wrapper.contains("API access")).to.be.true;
|
|
110
|
-
expect(wrapper.contains("App URL")).to.be.false;
|
|
111
|
-
});
|
|
112
|
-
it("should have a disabled Save button if the name field is emptied", () => {
|
|
113
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
114
|
-
wrapper
|
|
115
|
-
.find("#app-name")
|
|
116
|
-
.at(0)
|
|
117
|
-
.simulate("change", {
|
|
118
|
-
target: {
|
|
119
|
-
value: "",
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
123
|
-
});
|
|
124
|
-
it("should have a disabled Save button if the App URL field is emptied", () => {
|
|
125
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
126
|
-
wrapper
|
|
127
|
-
.find("#app-url")
|
|
128
|
-
.at(0)
|
|
129
|
-
.simulate("change", {
|
|
130
|
-
target: {
|
|
131
|
-
value: "",
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
135
|
-
});
|
|
136
|
-
it("should have a disabled Save button if the width field is emptied", () => {
|
|
137
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
138
|
-
wrapper
|
|
139
|
-
.find("#app-width")
|
|
140
|
-
.at(0)
|
|
141
|
-
.simulate("change", {
|
|
142
|
-
target: {
|
|
143
|
-
value: "",
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
147
|
-
});
|
|
148
|
-
it("should have a disabled Save button if the height field is emptied", () => {
|
|
149
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
150
|
-
wrapper
|
|
151
|
-
.find("#app-height")
|
|
152
|
-
.at(0)
|
|
153
|
-
.simulate("change", {
|
|
154
|
-
target: {
|
|
155
|
-
value: "",
|
|
156
|
-
},
|
|
157
|
-
});
|
|
158
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
159
|
-
});
|
|
160
|
-
it("should have a disabled Save button if the width field is negative", () => {
|
|
161
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
162
|
-
wrapper
|
|
163
|
-
.find("#app-width")
|
|
164
|
-
.at(0)
|
|
165
|
-
.simulate("change", {
|
|
166
|
-
target: {
|
|
167
|
-
value: "-999",
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
171
|
-
});
|
|
172
|
-
it("should have a disabled Save button if the height field is negative", () => {
|
|
173
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
174
|
-
wrapper
|
|
175
|
-
.find("#app-height")
|
|
176
|
-
.at(0)
|
|
177
|
-
.simulate("change", {
|
|
178
|
-
target: {
|
|
179
|
-
value: "-999",
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
expect(wrapper.find("button").last().prop("disabled")).to.be.true;
|
|
183
|
-
});
|
|
184
|
-
it("should call the passed-in cancel function when the cancel button is clicked", () => {
|
|
185
|
-
const buttonSpy = sinon.spy(Page.args, "cancelFn");
|
|
186
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
187
|
-
const collection = wrapper.find("button");
|
|
188
|
-
collection.at(collection.length - 2).simulate("click");
|
|
189
|
-
expect(buttonSpy.calledOnce).to.be.true;
|
|
190
|
-
});
|
|
191
|
-
it("should call the passed-in Remove Application function when the Remove Application button is clicked", () => {
|
|
192
|
-
const buttonSpy = sinon.spy(Page.args, "removeApplicationFn");
|
|
193
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
194
|
-
const collection = wrapper.find("button");
|
|
195
|
-
collection.at(collection.length - 3).simulate("click");
|
|
196
|
-
expect(buttonSpy.calledOnce).to.be.true;
|
|
197
|
-
sinon.restore();
|
|
198
|
-
});
|
|
199
|
-
it("should call the passed-in submit function with relevant data when the submit button is clicked", () => {
|
|
200
|
-
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
201
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
202
|
-
wrapper.find("button").last().simulate("click");
|
|
203
|
-
expect(buttonSpy.calledOnce).to.be.true;
|
|
204
|
-
expect(buttonSpy.firstCall.args[0]).to.deep.equal({
|
|
205
|
-
name: "Test",
|
|
206
|
-
abstractPosition: 0,
|
|
207
|
-
addToWorkspace: true,
|
|
208
|
-
allowAutoArrange: true,
|
|
209
|
-
allowGrouping: true,
|
|
210
|
-
allowMaximize: true,
|
|
211
|
-
allowMinimize: true,
|
|
212
|
-
allowSnapping: true,
|
|
213
|
-
allowTabbing: true,
|
|
214
|
-
allowTiling: true,
|
|
215
|
-
alwaysOnTop: false,
|
|
216
|
-
appArguments: "",
|
|
217
|
-
appType: "web",
|
|
218
|
-
autoConnect: false,
|
|
219
|
-
description: "",
|
|
220
|
-
enableAOT: false,
|
|
221
|
-
enableTitleBar: true,
|
|
222
|
-
grpc: false,
|
|
223
|
-
height: 600,
|
|
224
|
-
hideClose: false,
|
|
225
|
-
hideMaximize: false,
|
|
226
|
-
hideMinimize: false,
|
|
227
|
-
iconURL: "",
|
|
228
|
-
intents: [],
|
|
229
|
-
isEvergreen: false,
|
|
230
|
-
launchableByUser: true,
|
|
231
|
-
native_windowSpawnTimeout: 30,
|
|
232
|
-
opacity: 1,
|
|
233
|
-
path: "",
|
|
234
|
-
persistPath: true,
|
|
235
|
-
persistURL: true,
|
|
236
|
-
resizable: true,
|
|
237
|
-
rules: [],
|
|
238
|
-
security: "trusted",
|
|
239
|
-
singleton: false,
|
|
240
|
-
spawnOnStartup: false,
|
|
241
|
-
url: "http://www.google.com",
|
|
242
|
-
width: 1280,
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
it("should click submit button when pressing enter on Name field", () => {
|
|
246
|
-
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
247
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
248
|
-
wrapper
|
|
249
|
-
.find("#app-name")
|
|
250
|
-
.at(0)
|
|
251
|
-
.simulate("keydown", {
|
|
252
|
-
key: "Enter",
|
|
253
|
-
preventDefault: () => { },
|
|
254
|
-
});
|
|
255
|
-
expect(buttonSpy.calledOnce).to.be.true;
|
|
256
|
-
});
|
|
257
|
-
it("should not click submit button when pressing a key other than enter on Name field", () => {
|
|
258
|
-
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
259
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
260
|
-
wrapper
|
|
261
|
-
.find("#app-name")
|
|
262
|
-
.at(0)
|
|
263
|
-
.simulate("keydown", {
|
|
264
|
-
key: "a",
|
|
265
|
-
preventDefault: () => { },
|
|
266
|
-
});
|
|
267
|
-
expect(buttonSpy.calledOnce).to.be.false;
|
|
268
|
-
});
|
|
269
|
-
it("should not submit when pressing enter on Name field IF the submit button is disabled", () => {
|
|
270
|
-
const buttonSpy = sinon.spy(EmptyPage.args, "submitFn");
|
|
271
|
-
const wrapper = mount(React.createElement(EmptyPage, Object.assign({}, EmptyPage.args)));
|
|
272
|
-
wrapper
|
|
273
|
-
.find("#app-name")
|
|
274
|
-
.at(0)
|
|
275
|
-
.simulate("keydown", {
|
|
276
|
-
key: "Enter",
|
|
277
|
-
preventDefault: () => { },
|
|
278
|
-
});
|
|
279
|
-
expect(buttonSpy.calledOnce).to.be.false;
|
|
280
|
-
});
|
|
281
|
-
it("should click submit button when pressing enter on App URL field", () => {
|
|
282
|
-
const buttonSpy = sinon.spy(Page.args, "submitFn");
|
|
283
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
284
|
-
wrapper
|
|
285
|
-
.find("#app-url")
|
|
286
|
-
.at(0)
|
|
287
|
-
.simulate("keydown", {
|
|
288
|
-
key: "Enter",
|
|
289
|
-
preventDefault: () => { },
|
|
290
|
-
});
|
|
291
|
-
expect(buttonSpy.calledOnce).to.be.true;
|
|
292
|
-
});
|
|
293
|
-
it("confirm that the AOT radio buttons stay independent", () => {
|
|
294
|
-
const wrapper = mount(React.createElement(Page, Object.assign({}, Page.args)));
|
|
295
|
-
const aotLocator = "input[type='radio'][name='alwaysOnTop']";
|
|
296
|
-
wrapper.find(aotLocator).at(0).simulate("change");
|
|
297
|
-
expect(wrapper.find(aotLocator).at(0).prop("checked"), "First (clicked) radio button is checked").to.be.true;
|
|
298
|
-
expect(wrapper.find(aotLocator).at(1).prop("checked"), "Second radio button is not checked").to.be.false;
|
|
299
|
-
expect(wrapper.find(aotLocator).at(2).prop("checked"), "Third radio button is not checked").to.be.false;
|
|
300
|
-
wrapper.find(aotLocator).at(1).simulate("change");
|
|
301
|
-
expect(wrapper.find(aotLocator).at(0).prop("checked"), "First radio button is not checked").to.be.false;
|
|
302
|
-
expect(wrapper.find(aotLocator).at(1).prop("checked"), "Second (clicked) radio button is checked").to.be.true;
|
|
303
|
-
expect(wrapper.find(aotLocator).at(2).prop("checked"), "Third radio button is not checked").to.be.false;
|
|
304
|
-
wrapper.find(aotLocator).at(2).simulate("change");
|
|
305
|
-
expect(wrapper.find(aotLocator).at(0).prop("checked"), "First radio button is not checked").to.be.false;
|
|
306
|
-
expect(wrapper.find(aotLocator).at(1).prop("checked"), "Second radio button is checked").to.be.false;
|
|
307
|
-
expect(wrapper.find(aotLocator).at(2).prop("checked"), "Third (clicked) radio button is not checked").to.be.true;
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
//# sourceMappingURL=AppEditPage.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,UAAU,EAAE,MAA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AAmC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACxG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,gCAAgC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QACrG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,6CAA6C,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAClH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { afterEach, describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport sinon from \"sinon\";\nimport { AppEditPageProps } from \"../AppEditPage\";\nimport { Page, EmptyPage, NativePage } from \"../stories/AppEditPage.stories\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<AppEditPage/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit.skip(\"should pass accessibility scans (Page)\", async function () {\n\t\tthis.timeout(5000);\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit.skip(\"should pass accessibility scans (EmptyPage)\", async () => {\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should display starting name in Name field, if name field is set\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"Test\");\n\t});\n\tit(\"should not display starting name in Name field, if no name field is set\", () => {\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\n\n\t\texpect(wrapper.find(\"#app-name\").first().prop(\"value\")).to.equal(\"\");\n\t});\n\tit(\"should display Name as a valid field, even if the given name is duplicate\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\tconst appName = wrapper.find(\"#app-name\").at(0);\n\t\tappName.simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"Used\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"#app-name\").at(0).prop(\"value\")).to.equal(\"Used\");\n\t\texpect(!!wrapper.find(\"#app-name\").at(0).prop(\"aria-invalid\")).to.be.false;\n\t});\n\tit(\"should display invalid state for App URL if provided URL is invalid\", () => {\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\n\n\t\twrapper\n\t\t\t.find(\"#app-url\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"invalid\",\n\t\t\t\t},\n\t\t\t});\n\n\t\texpect(wrapper.find(\"#app-url\").at(0).prop(\"aria-invalid\")).to.be.true;\n\t});\n\tit(\"should display invalid state for width if provided a negative number\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\twrapper\n\t\t\t.find(\"#app-width\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"-999\",\n\t\t\t\t},\n\t\t\t});\n\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\n\t});\n\tit(\"should display invalid state for width if provided an empty value\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\twrapper\n\t\t\t.find(\"#app-width\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\n\t\texpect(wrapper.find(\"#app-width\").at(0).prop(\"aria-invalid\")).to.be.true;\n\t});\n\tit(\"should display invalid state for height if provided a negative number\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\twrapper\n\t\t\t.find(\"#app-height\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"-999\",\n\t\t\t\t},\n\t\t\t});\n\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\n\t});\n\tit(\"should display invalid state for height if provided an empty value\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\twrapper\n\t\t\t.find(\"#app-height\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\n\t\texpect(wrapper.find(\"#app-height\").at(0).prop(\"aria-invalid\")).to.be.true;\n\t});\n\tit(\"should display only App URL if App type = Web\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\texpect(wrapper.contains(\"App URL\")).to.be.true;\n\t\texpect(wrapper.contains(\"File Path\")).to.be.false;\n\t});\n\tit(\"should display only File Path, API Access and Arguments if App type = Native\", () => {\n\t\tconst wrapper = mount(<NativePage {...(NativePage.args as AppEditPageProps)} />);\n\t\texpect(wrapper.contains(\"File Path\")).to.be.true;\n\t\texpect(wrapper.contains(\"Arguments\")).to.be.true;\n\t\texpect(wrapper.contains(\"API access\")).to.be.true;\n\t\texpect(wrapper.contains(\"App URL\")).to.be.false;\n\t});\n\n\tit(\"should have a disabled Save button if the name field is emptied\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"should have a disabled Save button if the App URL field is emptied\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-url\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"should have a disabled Save button if the width field is emptied\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-width\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"should have a disabled Save button if the height field is emptied\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-height\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"should have a disabled Save button if the width field is negative\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-width\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"-999\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"should have a disabled Save button if the height field is negative\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-height\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"-999\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").last().prop(\"disabled\")).to.be.true;\n\t});\n\n\tit(\"should call the passed-in cancel function when the cancel button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"cancelFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\tconst collection = wrapper.find(\"button\");\n\t\tcollection.at(collection.length - 2).simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should call the passed-in Remove Application function when the Remove Application button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"removeApplicationFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\tconst collection = wrapper.find(\"button\");\n\t\tcollection.at(collection.length - 3).simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t\tsinon.restore();\n\t});\n\tit(\"should call the passed-in submit function with relevant data when the submit button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\twrapper.find(\"button\").last().simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t\texpect(buttonSpy.firstCall.args[0]).to.deep.equal({\n\t\t\tname: \"Test\",\n\t\t\tabstractPosition: 0,\n\t\t\taddToWorkspace: true,\n\t\t\tallowAutoArrange: true,\n\t\t\tallowGrouping: true,\n\t\t\tallowMaximize: true,\n\t\t\tallowMinimize: true,\n\t\t\tallowSnapping: true,\n\t\t\tallowTabbing: true,\n\t\t\tallowTiling: true,\n\t\t\talwaysOnTop: false,\n\t\t\tappArguments: \"\",\n\t\t\tappType: \"web\",\n\t\t\tautoConnect: false,\n\t\t\tdescription: \"\",\n\t\t\tenableAOT: false,\n\t\t\tenableTitleBar: true,\n\t\t\tgrpc: false,\n\t\t\theight: 600,\n\t\t\thideClose: false,\n\t\t\thideMaximize: false,\n\t\t\thideMinimize: false,\n\t\t\ticonURL: \"\",\n\t\t\tintents: [],\n\t\t\tisEvergreen: false,\n\t\t\tlaunchableByUser: true,\n\t\t\tnative_windowSpawnTimeout: 30,\n\t\t\topacity: 1,\n\t\t\tpath: \"\",\n\t\t\tpersistPath: true,\n\t\t\tpersistURL: true,\n\t\t\tresizable: true,\n\t\t\trules: [],\n\t\t\tsecurity: \"trusted\",\n\t\t\tsingleton: false,\n\t\t\tspawnOnStartup: false,\n\t\t\turl: \"http://www.google.com\",\n\t\t\twidth: 1280,\n\t\t});\n\t});\n\n\tit(\"should click submit button when pressing enter on Name field\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keydown\", {\n\t\t\t\tkey: \"Enter\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should not click submit button when pressing a key other than enter on Name field\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keydown\", {\n\t\t\t\tkey: \"a\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.false;\n\t});\n\tit(\"should not submit when pressing enter on Name field IF the submit button is disabled\", () => {\n\t\tconst buttonSpy = sinon.spy(EmptyPage.args as AppEditPageProps, \"submitFn\");\n\t\tconst wrapper = mount(<EmptyPage {...(EmptyPage.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keydown\", {\n\t\t\t\tkey: \"Enter\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.false;\n\t});\n\tit(\"should click submit button when pressing enter on App URL field\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as AppEditPageProps, \"submitFn\");\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\t\twrapper\n\t\t\t.find(\"#app-url\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keydown\", {\n\t\t\t\tkey: \"Enter\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"confirm that the AOT radio buttons stay independent\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as AppEditPageProps)} />);\n\n\t\tconst aotLocator = \"input[type='radio'][name='alwaysOnTop']\";\n\n\t\t// Click the first AOT radio button\n\t\twrapper.find(aotLocator).at(0).simulate(\"change\");\n\t\texpect(wrapper.find(aotLocator).at(0).prop(\"checked\"), \"First (clicked) radio button is checked\").to.be.true;\n\t\texpect(wrapper.find(aotLocator).at(1).prop(\"checked\"), \"Second radio button is not checked\").to.be.false;\n\t\texpect(wrapper.find(aotLocator).at(2).prop(\"checked\"), \"Third radio button is not checked\").to.be.false;\n\n\t\t// Click the second AOT radio button\n\t\twrapper.find(aotLocator).at(1).simulate(\"change\");\n\t\texpect(wrapper.find(aotLocator).at(0).prop(\"checked\"), \"First radio button is not checked\").to.be.false;\n\t\texpect(wrapper.find(aotLocator).at(1).prop(\"checked\"), \"Second (clicked) radio button is checked\").to.be.true;\n\t\texpect(wrapper.find(aotLocator).at(2).prop(\"checked\"), \"Third radio button is not checked\").to.be.false;\n\n\t\t// Click the second AOT radio button\n\t\twrapper.find(aotLocator).at(2).simulate(\"change\");\n\t\texpect(wrapper.find(aotLocator).at(0).prop(\"checked\"), \"First radio button is not checked\").to.be.false;\n\t\texpect(wrapper.find(aotLocator).at(1).prop(\"checked\"), \"Second radio button is checked\").to.be.false;\n\t\texpect(wrapper.find(aotLocator).at(2).prop(\"checked\"), \"Third (clicked) radio button is not checked\").to.be.true;\n\t});\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationList.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ApplicationList.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,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC7D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,YAAY,oBAAM,YAAY,CAAC,IAA6B,EA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C,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,kFAAkF,EAAE,GAAG,EAAE;QAC3F,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAA4B,EAAE,WAAW,CAAC,CAAC;QACrF,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,aAAa,oBAAM,aAAa,CAAC,IAA6B,EAAI,CAAC,CAAC;QAC3F,OAAO;aACL,IAAI,CAAC,eAAe,CAAC;aACrB,EAAE,CAAC,CAAC,CAAC;aACL,QAAQ,CAAC,SAAS,EAAE;YACpB,GAAG,EAAE,QAAQ;YACb,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;SACzB,CAAC,CAAC;QACJ,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzC,CAAC,CAAC,CAAC;AAIJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { afterEach, describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport sinon from \"sinon\";\nimport { ApplicationListProps } from \"../ApplicationList\";\nimport { EmptyAppList, OneAppInList, AppWithoutDisplayName, SampleAppList } from \"../stories/ApplicationList.stories\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<ApplicationList/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should pass accessibility scans (when empty)\", async () => {\n\t\tconst wrapper = mount(<EmptyAppList {...(EmptyAppList.args as ApplicationListProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should pass accessibility scans (Sample)\", async () => {\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should show a zero state message when there are no apps to display\", () => {\n\t\tconst wrapper = mount(<EmptyAppList {...(EmptyAppList.args as ApplicationListProps)} />);\n\n\t\texpect(wrapper.find(\".app-list-empty\").first().text()).to.contain(\"There’s nothing here\");\n\t});\n\n\tit(\"should show an app title and a delete icon when 1 app is provided\", () => {\n\t\tconst wrapper = mount(<OneAppInList {...(OneAppInList.args as ApplicationListProps)} />);\n\n\t\texpect(wrapper.find(\".app-list-row .app-name\").exists()).to.be.true;\n\t\texpect(wrapper.find(\".app-list-row .icon-delete\").exists()).to.be.true;\n\t});\n\n\tit(\"should show an appId if no displayname is provided\", () => {\n\t\tconst wrapper = mount(<AppWithoutDisplayName {...(AppWithoutDisplayName.args as ApplicationListProps)} />);\n\t\texpect(wrapper.find(\".app-list-row .app-name\").text()).to.equal(\"NoDisplayName\");\n\t});\n\tit(\"should show 3 apps when 3 apps are provided\", () => {\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\texpect(wrapper.find(\".app-list-row\")).to.have.lengthOf(3);\n\t});\n\tit(\"should delete an app when the delete button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ApplicationListProps, \"deleteApp\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row button\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"click\", { stopPropagation: () => {} });\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ApplicationListProps, \"clickApp\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"click\", { preventDefault: () => {} });\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is in focus and the Enter key is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ApplicationListProps, \"clickApp\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \"Enter\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should perform the launch action when the app name is in focus and the spacebar is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ApplicationListProps, \"clickApp\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \" \",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should delete an app when the app name is in focus and the delete key is pressed\", () => {\n\t\tconst buttonSpy = sinon.spy(SampleAppList.args as ApplicationListProps, \"deleteApp\");\n\t\tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t\twrapper\n\t\t\t.find(\".app-list-row\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \"Delete\",\n\t\t\t\tstopPropagation: () => {},\n\t\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\t// it(\"should not perform the launch action when the delete name is clicked\", () => {\n\t// \tconst wrapper = mount(<SampleAppList {...(SampleAppList.args as ApplicationListProps)} />);\n\t// });\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Applications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C,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACnE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,iFAAiF,EAAE,KAAK,IAAI,EAAE;QAChG,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,mBAAmB,oBAAK,mBAAmB,CAAC,SAAS,CAAC,EAAI,CAAC,CAAC;QAEnF,MAAM,QAAQ,EAAE,CAAC;QAGjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAGjB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAGjB,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE;YAClD,MAAM,EAAE;gBACP,KAAK,EAAE,oBAAoB;aAC3B;SACD,CAAC,CAAC;QAGH,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAGxD,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAGjB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACnE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultApplications, EmptyApplications } from \"../stories/Applications.stories\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\nexport const ADD_NEW_APP_BUTTON = \".icon-before-add button\",\n\tACTIVE_TAB_APP_LIST_TABLE_ROW = \".app-list-row\",\n\tAPP_LIST_EMPTY_MESSAGE = \".app-list-empty\",\n\tPAGE_HEADER = \".view-title .leftSide\",\n\tPAGE_HEADER_BUTTON = \".view-title .leftSide button\",\n\tSETUP_WIZARD_BUTTON = \".tile-type-buttons .icon-wizard button\",\n\tSETUP_MANUAL_BUTTON = \".tile-type-buttons .icon-manual button\",\n\tAPP_ACCESS_RULE = \".app-edit-access-item\",\n\tAPP_ACCESS_BLOCKED = \".app-edit-access-blocked\",\n\tQUICK_ADD_APP = \".quick-add-app\",\n\tQUICK_ADD_APP_URL = \".quick-add-app #app-url\",\n\tQUICK_ADD_APP_BUTTON = \".save-button-container button\";\n\ndescribe(\"<Applications/>\", () => {\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should pass accessibility scans (empty)\", async () => {\n\t\tconst wrapper = mount(<EmptyApplications {...getApplicationsArgs(\"empty\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should contain add button app list when not empty\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".view-content button\").first().text()).to.contain(\"Add\");\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.greaterThan(0);\n\t\texpect(wrapper.find(APP_LIST_EMPTY_MESSAGE).length).to.equal(0);\n\t});\n\tit(\"should contain add button and empty message when empty\", async () => {\n\t\tconst wrapper = mount(<EmptyApplications {...getApplicationsArgs(\"empty\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".view-content button\").first().text()).to.contain(\"Add\");\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.equal(0);\n\t\texpect(wrapper.find(APP_LIST_EMPTY_MESSAGE).first().text()).to.contain(\"nothing here\");\n\t});\n\tit(\"should be able to edit a web app\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"App list contains items\").to.be.greaterThan(0);\n\n\t\tconst app = wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first();\n\n\t\tconst appName = app.find(\".app-name\").text();\n\n\t\tconst newName = `${appName} modified`;\n\t\tapp.find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\tconst input = wrapper.find(\"input#app-name\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"change\", { target: { value: newName } });\n\n\t\twrapper.find(\".app-edit-actions .button-container-secondary button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(\n\t\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).someWhere((node) => node.find(\".app-name\").text() === newName),\n\t\t\t\"App list contains newly renamed name\"\n\t\t).to.be.true;\n\t});\n\tit(\"should be able to grant selectConnect access between two apps\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"3 apps are listed in the table\").to.be.equal(3);\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first().find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\twrapper.find(\"input[name='interop-trust'][value='false']\").simulate(\"click\");\n\n\t\texpect(wrapper.find(APP_ACCESS_RULE).length, \"SelectConnect access rules visible initially\").to.equal(2);\n\n\t\texpect(wrapper.find(APP_ACCESS_BLOCKED).length, \"Inbound SelectConnect blocked\").to.equal(2);\n\n\t\twrapper.find(\".finsembleToggle input\").first().simulate(\"change\");\n\n\t\texpect(wrapper.find(\".finsembleToggle-on\").length, \"should be toggled on\").to.equal(1);\n\n\t\twrapper.find(\".app-edit-actions button\").last().simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(1).find(\".icon-edit button\").at(0).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(\"input[name='interop-trust'][value='false']\").simulate(\"click\");\n\t\texpect(wrapper.find(APP_ACCESS_RULE).length, \"SelectConnect access rules visible\").to.equal(2);\n\t});\n});\n\ndescribe(\"<Applications/> - Quick Add\", () => {\n\tit(\"should be able to quick add a web app\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Everything starts the way I expect\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Start out with 3 items in the list\").to.equal(3);\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add doesn't display\").to.be.true;\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// expect quick add to display\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add displays\").to.be.false;\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.facebook.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Add button\n\t\twrapper.find(QUICK_ADD_APP_BUTTON).simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// expect updates\n\t\texpect(wrapper.find(QUICK_ADD_APP).is(\".collapsed\"), \"Quick Add doesn't display\").to.be.true;\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"App list shows 4 items\").to.equal(4);\n\t\texpect(\n\t\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).filterWhere((node: any) => node.text().includes(\"Facebook\")).length,\n\t\t\t\"App list includes 'Facebook'\"\n\t\t);\n\t});\n\n\tit(\"if you add a URL, the App name should pre-fill with a generated name\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.google.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"#app-name\").prop(\"value\"), \"Pre-filled generated name\").to.equal(\"Google\");\n\t\texpect(wrapper.find(QUICK_ADD_APP_BUTTON).prop(\"disabled\"), \"Save button should be enabled\").to.be.false;\n\t});\n\n\tit(\"if you add a URL without an auto-name, the App name should be empty\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\"#app-name\").prop(\"value\"), \"Pre-filled generated name\").to.equal(\"\");\n\t\texpect(wrapper.find(QUICK_ADD_APP_BUTTON).prop(\"disabled\"), \"Save button should be disabled\").to.be.true;\n\t});\n\n\tit(\"if you add a URL, the path field should be disabled\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\texpect(wrapper.find(\".file-input-container button\").prop(\"disabled\"), \"File input disabled\").to.be.true;\n\t});\n\n\tit(\"if you add a URL and then save it, the URL should be cleared on re-open\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Add button\n\t\twrapper.find(QUICK_ADD_APP_BUTTON).simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(QUICK_ADD_APP_URL).prop(\"value\")).to.be.empty;\n\t});\n\tit(\"if you add a URL and then close quick add, the URL should be cleared on re-open\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getApplicationsArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\t// wait for async effects to finish\n\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// in the URL input, add \"http://www.facebook.com\"\n\t\twrapper.find(QUICK_ADD_APP_URL).simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: \"http://www.cnn.com\",\n\t\t\t},\n\t\t});\n\n\t\t// click the Close button\n\t\twrapper.find(\"button[title='Close']\").simulate(\"click\");\n\n\t\t// wait tick\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click the \"Add App\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).simulate(\"click\");\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(QUICK_ADD_APP_URL).prop(\"value\")).to.be.empty;\n\t});\n});\n"]}
|