@finsemble/finsemble-ui 6.4.0 → 6.5.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 +19 -18
- 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/icons/code-block.svg +15 -0
- package/react/components/FinsembleProvider.js.map +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/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/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/Tooltip.js +3 -1
- package/react/components/common/Tooltip.js.map +1 -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/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.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/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 +19 -0
- 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/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/stores/ProcessMonitorStore.d.ts +3 -3
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/search/SearchResult.js +4 -3
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
- package/react/components/smartDesktopDesigner/AppEditPage.d.ts +2 -1
- package/react/components/smartDesktopDesigner/AppEditPage.js +77 -73
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
- package/react/components/smartDesktopDesigner/Appearance.css +8 -0
- package/react/components/smartDesktopDesigner/Application.d.ts +10 -3
- package/react/components/smartDesktopDesigner/Application.js +35 -42
- package/react/components/smartDesktopDesigner/Application.js.map +1 -1
- package/react/components/smartDesktopDesigner/Applications.d.ts +2 -0
- package/react/components/smartDesktopDesigner/Applications.js +17 -7
- package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
- package/react/components/smartDesktopDesigner/EditPreload.d.ts +14 -0
- package/react/components/smartDesktopDesigner/EditPreload.js +169 -0
- package/react/components/smartDesktopDesigner/EditPreload.js.map +1 -0
- package/react/components/smartDesktopDesigner/ItemList.d.ts +17 -0
- package/react/components/smartDesktopDesigner/ItemList.js +58 -0
- package/react/components/smartDesktopDesigner/ItemList.js.map +1 -0
- package/react/components/smartDesktopDesigner/OptionalSettingsView.d.ts +11 -0
- package/react/components/smartDesktopDesigner/OptionalSettingsView.js +71 -0
- package/react/components/smartDesktopDesigner/OptionalSettingsView.js.map +1 -0
- package/react/components/smartDesktopDesigner/Preloads.d.ts +8 -0
- package/react/components/smartDesktopDesigner/Preloads.js +26 -0
- package/react/components/smartDesktopDesigner/Preloads.js.map +1 -0
- package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/Toolbar.js +5 -5
- package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +18 -0
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/css/appearance.css +3 -0
- package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +1 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.js +23 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/preloads.d.ts +22 -0
- package/react/components/smartDesktopDesigner/fixtures/preloads.js +40 -0
- package/react/components/smartDesktopDesigner/fixtures/preloads.js.map +1 -0
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +1 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js +9 -0
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +1 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +1 -0
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/stories/EditPreload.stories.d.ts +11 -0
- package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js +35 -0
- package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/stories/ItemList.stories.d.ts +16 -0
- package/react/components/smartDesktopDesigner/stories/{ApplicationList.stories.js → ItemList.stories.js} +26 -26
- package/react/components/smartDesktopDesigner/stories/ItemList.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.d.ts +11 -0
- package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js +28 -0
- package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/stories/Preloads.stories.d.ts +11 -0
- package/react/components/smartDesktopDesigner/stories/Preloads.stories.js +31 -0
- package/react/components/smartDesktopDesigner/stories/Preloads.stories.js.map +1 -0
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +1099 -258
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/{ApplicationList.spec.d.ts → Application.spec.d.ts} +0 -0
- package/react/components/smartDesktopDesigner/tests/Application.spec.js +1496 -0
- package/react/components/smartDesktopDesigner/tests/Application.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js +3 -3
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/tests/EditPreload.spec.d.ts +1 -0
- package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js +61 -0
- package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/ItemList.spec.d.ts +1 -0
- package/react/components/smartDesktopDesigner/tests/{ApplicationList.spec.js → ItemList.spec.js} +8 -8
- package/react/components/smartDesktopDesigner/tests/ItemList.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/Preloads.spec.d.ts +1 -0
- package/react/components/smartDesktopDesigner/tests/Preloads.spec.js +47 -0
- package/react/components/smartDesktopDesigner/tests/Preloads.spec.js.map +1 -0
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +6 -0
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
- 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/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.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/components/componentList.d.ts +2 -2
- 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 +9 -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 +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +1 -1
- 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/stores/UserPreferencesStore.d.ts +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +4 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.js +60 -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 +3 -0
- 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 +93 -89
- 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 +213 -217
- package/react/components/windowTitleBar/stores/windowTitleBarStore.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/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/fdc3.d.ts +2 -2
- package/react/types/fdc3.js.map +1 -1
- package/react/types/searchTypes.d.ts +1 -8
- package/react/types/searchTypes.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/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/stories/ApplicationList.stories.d.ts +0 -16
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/apps.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAM9C,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC5C;QACC,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE;YACT,MAAM,EAAE;gBACP,GAAG,EAAE,8FAA8F;gBACnG,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,OAAO,EAAE;oBACR,QAAQ,EAAE,EAAE;oBACZ,cAAc,EAAE,SAAS;iBACzB;aACD;YACD,OAAO,EAAE;gBACR,QAAQ,EAAE;oBACT,cAAc,EAAE;wBACf,YAAY,EAAE,IAAI;qBAClB;iBACD;gBACD,UAAU,EAAE;oBACX,cAAc,EAAE;wBACf,gBAAgB,EAAE,IAAI;qBACtB;oBACD,OAAO,EAAE;wBACR,SAAS,EAAE,mBAAmB;qBAC9B;oBACD,gBAAgB,EAAE;wBACjB,UAAU,EAAE,IAAI;wBAChB,kBAAkB,EAAE,IAAI;qBACxB;iBACD;aACD;YACD,SAAS,E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AO,CAAC;YAChB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;KACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { ApplicationsProps } from \"../Applications\";\nimport configTemplate from \"./configTemplate\";\nimport { clone } from \"../Appearance.helpers\";\nimport { services } from \"@finsemble/finsemble-core\";\nimport { ToolbarProps } from \"../Toolbar\";\n\ntype AppDefinition = services.Interop.types.AppDefinition;\n\nexport const default_apps: AppDefinition[] = [\n\t{\n\t\tappId: \"Example Charts App\",\n\t\tname: \"Example Charts App\",\n\t\ttype: \"component\",\n\t\tdescription: \"Visualize market data in the leading technical chart.\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"https://salesdemo-dev.finsemble.com/components/chartiq/chartiq/technical-analysis-chart.html\",\n\t\t\t\twidth: 800,\n\t\t\t\theight: 600,\n\t\t\t\toptions: {\n\t\t\t\t\tminWidth: 75,\n\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tservices: {\n\t\t\t\t\tdockingService: {\n\t\t\t\t\t\tisArrangable: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t},\n\t\t\t\t\tToolbar: {\n\t\t\t\t\t\ticonClass: \"ff-chart-advanced\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tcomponent: {\n\t\t\t\tpreload: [\"https://salesdemo-dev.finsemble.com/components/chartiq/chartiq.js\"],\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"finsemble\",\n\t\tversion: \"1.0.0\",\n\t\treleaseNotes: \"This is the only version.\",\n\t\ttooltip: \"ChartIQ Advanced Chart\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/10C3LdH.png\",\n\t\t\t\ttooltip: \"Candle Chart\",\n\t\t\t},\n\t\t],\n\t\ttags: [\"charts\", \"market data\", \"visualization\", \"graphics\"],\n\t\tcontactEmail: \"info@cosaic.io\",\n\t\tsupportEmail: \"support@finsemble.com\",\n\t\tpublisher: \"Cosaic\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/mpBdiHd.png\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"Example News App\",\n\t\tname: \"Example News App\",\n\t\ttype: \"component\",\n\t\tdescription: \"Financial news headlines.\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"https://finsemble.chartiq.com/components/widgets/news/news.html\",\n\t\t\t\twidth: 354,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tservices: {\n\t\t\t\t\tdockingService: {\n\t\t\t\t\t\tisArrangable: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcomponents: {\n\t\t\t\t\tToolbar: {\n\t\t\t\t\t\ticonClass: \"ff-news\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"finsemble\",\n\t\tversion: \"1.0.0\",\n\t\treleaseNotes: \"This is the only version of News\",\n\t\ttooltip: \"News\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/6oZjqP7.png\",\n\t\t\t\ttooltip: \"News\",\n\t\t\t},\n\t\t],\n\t\ttags: [\"news\"],\n\t\tcontactEmail: \"info@cosaic.io\",\n\t\tsupportEmail: \"support@finsemble.com\",\n\t\tpublisher: \"Cosaic\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/gHfwucS.png\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"Google\",\n\t\tname: \"Google\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"http://google.com\",\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"vendor_type\",\n\t\tversion: \"1\",\n\t\ttitle: \"app title\",\n\t\ttooltip: \"app tip\",\n\t\tdescription: \"\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"string\",\n\t\t\t},\n\t\t],\n\t\tcontactEmail: \"string\",\n\t\tsupportEmail: \"string\",\n\t\tpublisher: \"string\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\ticon: \"string\",\n\t\t\t},\n\t\t],\n\t\tcustomConfig: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tvalue: \"string\",\n\t\t\t},\n\t\t],\n\t\tintents: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tdisplayName: \"string\",\n\t\t\t\tcontexts: [\"string\"],\n\t\t\t\tcustomConfig: {},\n\t\t\t},\n\t\t],\n\t},\n] as AppDefinition[];\n\nconst default_menus = {\n\t1: {\n\t\tdisplayName: \"Examples\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n};\n\nconst long_menus = {\n\t1: {\n\t\tdisplayName: \"A\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t2: {\n\t\tdisplayName: \"B\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t3: {\n\t\tdisplayName: \"C\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t4: {\n\t\tdisplayName: \"D\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t5: {\n\t\tdisplayName: \"E\",\n\t\tapplications: [],\n\t},\n};\n\nexport const temporary_apps: AppDefinition[] = [\n\t{\n\t\tappId: \"Google\",\n\t\tname: \"Google\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"http://google.com\",\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"vendor_type\",\n\t\tversion: \"1\",\n\t\ttitle: \"app title\",\n\t\ttooltip: \"app tip\",\n\t\tdescription: \"\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"string\",\n\t\t\t},\n\t\t],\n\t\tcontactEmail: \"string\",\n\t\tsupportEmail: \"string\",\n\t\tpublisher: \"string\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\ticon: \"string\",\n\t\t\t},\n\t\t],\n\t\tcustomConfig: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tvalue: \"string\",\n\t\t\t},\n\t\t],\n\t\tintents: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tdisplayName: \"string\",\n\t\t\t\tcontexts: [\"string\"],\n\t\t\t\tcustomConfig: {},\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"123456789\",\n\t\tname: \"OtherApp\",\n\t\tmanifest: {\n\t\t\ttemporary: true,\n\t\t},\n\t},\n] as AppDefinition[];\n\nexport const getApplicationsArgs = (init: \"default\" | \"empty\" | \"long\" | \"temporary\"): ApplicationsProps => {\n\tlet apps: AppDefinition[] = [];\n\tlet menus: any = {};\n\n\tif (init === \"default\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(default_menus);\n\t} else if (init === \"temporary\") {\n\t\tapps = JSON.parse(JSON.stringify(temporary_apps));\n\t} else if (init === \"long\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(long_menus);\n\t}\n\n\treturn {\n\t\tgetApps: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null, apps });\n\t\t\t}),\n\t\taddApp: (_: string, appConfig: AppDefinition) => {\n\t\t\tapps = [...apps, appConfig];\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t\tdeleteApp: (appId: string) => {\n\t\t\tapps = apps.filter((app) => app.appId !== appId);\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t\tgetAppConfigTemplate: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ config: { ...configTemplate } });\n\t\t\t}),\n\t\tgetMenus: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({\n\t\t\t\t\terr: null,\n\t\t\t\t\tmenus,\n\t\t\t\t});\n\t\t\t}),\n\t\taddMenu: (menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst length = String(Object.keys(menus).length + 1);\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[length]: menuConfig,\n\t\t\t\t};\n\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tupdateMenu: (menuId: string, menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[menuId]: menuConfig,\n\t\t\t\t};\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tisInboundInteropAuthorized: (sourceApp: AppDefinition, targetApp: AppDefinition) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve(\n\t\t\t\t\ttargetApp.manifest?.interop?.selectConnect?.some((rule) =>\n\t\t\t\t\t\trule.authorize?.some((app) => app.name === sourceApp.name)\n\t\t\t\t\t) || false\n\t\t\t\t);\n\t\t\t}),\n\t\tisOutboundInteropAuthorized: (sourceApp: AppDefinition, targetApp: AppDefinition) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve(\n\t\t\t\t\tsourceApp.manifest?.interop?.selectConnect?.some((rule) =>\n\t\t\t\t\t\trule.authorize?.some((app) => app.name === targetApp.name)\n\t\t\t\t\t) || false\n\t\t\t\t);\n\t\t\t}),\n\t};\n};\n\nexport const getToolbarArgs = (init: \"default\" | \"empty\" | \"long\" | \"temporary\"): ToolbarProps => {\n\tlet apps: AppDefinition[] = [];\n\tlet menus: any = {};\n\n\tif (init === \"default\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(default_menus);\n\t} else if (init === \"temporary\") {\n\t\tapps = JSON.parse(JSON.stringify(temporary_apps));\n\t} else if (init === \"long\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(long_menus);\n\t}\n\n\treturn {\n\t\tgetApps: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null, apps });\n\t\t\t}),\n\t\tgetMenus: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({\n\t\t\t\t\terr: null,\n\t\t\t\t\tmenus,\n\t\t\t\t});\n\t\t\t}),\n\t\taddMenu: (menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst length = String(Object.keys(menus).length + 1);\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[length]: menuConfig,\n\t\t\t\t};\n\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tupdateMenu: (menuId: string, menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[menuId]: menuConfig,\n\t\t\t\t};\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tdeleteMenu: (menuId: string) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst newMenu = clone(menus);\n\t\t\t\tdelete newMenu[menuId];\n\t\t\t\tmenus = newMenu;\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t};\n};\n"]}
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/apps.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAO9C,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC5C;QACC,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE;YACT,MAAM,EAAE;gBACP,GAAG,EAAE,8FAA8F;gBACnG,KAAK,EAAE,GAAG;gBACV,MAAM,EAAE,GAAG;gBACX,OAAO,EAAE;oBACR,QAAQ,EAAE,EAAE;oBACZ,cAAc,EAAE,SAAS;iBACzB;aACD;YACD,OAAO,EAAE;gBACR,QAAQ,EAAE;oBACT,cAAc,EAAE;wBACf,YAAY,EAAE,IAAI;qBAClB;iBACD;gBACD,UAAU,EAAE;oBACX,cAAc,EAAE;wBACf,gBAAgB,EAAE,IAAI;qBACtB;oBACD,OAAO,EAAE;wBACR,SAAS,EAAE,mBAAmB;qBAC9B;oBACD,gBAAgB,EAAE;wBACjB,UAAU,EAAE,IAAI;wBAChB,kBAAkB,EAAE,IAAI;qBACxB;iBACD;aACD;YACD,SAAS,EAAE;gBACV,OAAO,EAAE,CAAC,mEAAmE,EAAE,MAAM,CAAC;aACtF;SACD;QACD,YAAY,EAAE,WAAW;QACzB,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,2BAA2B;QACzC,OAAO,EAAE,wBAAwB;QACjC,MAAM,EAAE;YACP;gBACC,GAAG,EAAE,iC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I,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;QACH,UAAU,EAAE,CAAC,MAAc,EAAE,UAAe,EAAE,EAAE,CAC/C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvB,KAAK,mCACD,KAAK,KACR,CAAC,MAAM,CAAC,EAAE,UAAU,GACpB,CAAC;YACF,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;QACH,UAAU,EAAE,CAAC,MAAc,EAAE,EAAE,CAC9B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;YAC7B,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;YACvB,KAAK,GAAG,OAAO,CAAC;YAChB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;KACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { ApplicationsProps } from \"../Applications\";\nimport configTemplate from \"./configTemplate\";\nimport { clone } from \"../Appearance.helpers\";\nimport { services } from \"@finsemble/finsemble-api\";\nimport { ToolbarProps } from \"../Toolbar\";\nimport { PreloadType } from \"../../../types/smartDesktopDesignerTypes\";\n\ntype AppDefinition = services.Interop.types.AppDefinition;\n\nexport const default_apps: AppDefinition[] = [\n\t{\n\t\tappId: \"Example Charts App\",\n\t\tname: \"Example Charts App\",\n\t\ttype: \"component\",\n\t\tdescription: \"Visualize market data in the leading technical chart.\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"https://salesdemo-dev.finsemble.com/components/chartiq/chartiq/technical-analysis-chart.html\",\n\t\t\t\twidth: 800,\n\t\t\t\theight: 600,\n\t\t\t\toptions: {\n\t\t\t\t\tminWidth: 75,\n\t\t\t\t\tsecurityPolicy: \"trusted\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tservices: {\n\t\t\t\t\tdockingService: {\n\t\t\t\t\t\tisArrangable: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\tlaunchableByUser: true,\n\t\t\t\t\t},\n\t\t\t\t\tToolbar: {\n\t\t\t\t\t\ticonClass: \"ff-chart-advanced\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tcomponent: {\n\t\t\t\tpreload: [\"https://salesdemo-dev.finsemble.com/components/chartiq/chartiq.js\", \"zoom\"],\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"finsemble\",\n\t\tversion: \"1.0.0\",\n\t\treleaseNotes: \"This is the only version.\",\n\t\ttooltip: \"ChartIQ Advanced Chart\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/10C3LdH.png\",\n\t\t\t\ttooltip: \"Candle Chart\",\n\t\t\t},\n\t\t],\n\t\ttags: [\"charts\", \"market data\", \"visualization\", \"graphics\"],\n\t\tcontactEmail: \"info@cosaic.io\",\n\t\tsupportEmail: \"support@finsemble.com\",\n\t\tpublisher: \"Cosaic\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/mpBdiHd.png\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"Example News App\",\n\t\tname: \"Example News App\",\n\t\ttype: \"component\",\n\t\tdescription: \"Financial news headlines.\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"https://finsemble.chartiq.com/components/widgets/news/news.html\",\n\t\t\t\twidth: 354,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tservices: {\n\t\t\t\t\tdockingService: {\n\t\t\t\t\t\tisArrangable: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcomponents: {\n\t\t\t\t\tToolbar: {\n\t\t\t\t\t\ticonClass: \"ff-news\",\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"finsemble\",\n\t\tversion: \"1.0.0\",\n\t\treleaseNotes: \"This is the only version of News\",\n\t\ttooltip: \"News\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/6oZjqP7.png\",\n\t\t\t\ttooltip: \"News\",\n\t\t\t},\n\t\t],\n\t\ttags: [\"news\"],\n\t\tcontactEmail: \"info@cosaic.io\",\n\t\tsupportEmail: \"support@finsemble.com\",\n\t\tpublisher: \"Cosaic\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\turl: \"https://i.imgur.com/gHfwucS.png\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"Google\",\n\t\tname: \"Google\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"http://google.com\",\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"vendor_type\",\n\t\tversion: \"1\",\n\t\ttitle: \"app title\",\n\t\ttooltip: \"app tip\",\n\t\tdescription: \"\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"string\",\n\t\t\t},\n\t\t],\n\t\tcontactEmail: \"string\",\n\t\tsupportEmail: \"string\",\n\t\tpublisher: \"string\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\ticon: \"string\",\n\t\t\t},\n\t\t],\n\t\tcustomConfig: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tvalue: \"string\",\n\t\t\t},\n\t\t],\n\t\tintents: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tdisplayName: \"string\",\n\t\t\t\tcontexts: [\"string\"],\n\t\t\t\tcustomConfig: {},\n\t\t\t},\n\t\t],\n\t},\n] as AppDefinition[];\n\nconst default_menus = {\n\t1: {\n\t\tdisplayName: \"Examples\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n};\n\nconst long_menus = {\n\t1: {\n\t\tdisplayName: \"A\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t2: {\n\t\tdisplayName: \"B\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t3: {\n\t\tdisplayName: \"C\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t4: {\n\t\tdisplayName: \"D\",\n\t\tapplications: [\"Example Charts App\", \"Example News App\"],\n\t},\n\t5: {\n\t\tdisplayName: \"E\",\n\t\tapplications: [],\n\t},\n};\n\nexport const temporary_apps: AppDefinition[] = [\n\t{\n\t\tappId: \"Google\",\n\t\tname: \"Google\",\n\t\tmanifest: {\n\t\t\twindow: {\n\t\t\t\turl: \"http://google.com\",\n\t\t\t\twidth: 1280,\n\t\t\t\theight: 600,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\tcomponents: {\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\tpersistWindowState: true,\n\t\t\t\t\t\tFSBLHeader: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tmanifestType: \"vendor_type\",\n\t\tversion: \"1\",\n\t\ttitle: \"app title\",\n\t\ttooltip: \"app tip\",\n\t\tdescription: \"\",\n\t\timages: [\n\t\t\t{\n\t\t\t\turl: \"string\",\n\t\t\t},\n\t\t],\n\t\tcontactEmail: \"string\",\n\t\tsupportEmail: \"string\",\n\t\tpublisher: \"string\",\n\t\ticons: [\n\t\t\t{\n\t\t\t\ticon: \"string\",\n\t\t\t},\n\t\t],\n\t\tcustomConfig: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tvalue: \"string\",\n\t\t\t},\n\t\t],\n\t\tintents: [\n\t\t\t{\n\t\t\t\tname: \"string\",\n\t\t\t\tdisplayName: \"string\",\n\t\t\t\tcontexts: [\"string\"],\n\t\t\t\tcustomConfig: {},\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tappId: \"123456789\",\n\t\tname: \"OtherApp\",\n\t\tmanifest: {\n\t\t\ttemporary: true,\n\t\t},\n\t},\n] as AppDefinition[];\n\nexport const getApplicationsArgs = (init: \"default\" | \"empty\" | \"long\" | \"temporary\"): ApplicationsProps => {\n\tlet apps: AppDefinition[] = [];\n\tlet menus: any = {};\n\n\tif (init === \"default\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(default_menus);\n\t} else if (init === \"temporary\") {\n\t\tapps = JSON.parse(JSON.stringify(temporary_apps));\n\t} else if (init === \"long\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(long_menus);\n\t}\n\n\treturn {\n\t\tgetApps: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null, apps });\n\t\t\t}),\n\t\taddApp: (_: string, appConfig: AppDefinition) => {\n\t\t\tapps = [...apps, appConfig];\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t\tupdateApp: (appId: string, appConfig: AppDefinition) => {\n\t\t\tapps = apps.filter((app) => app.appId !== appId);\n\t\t\tapps = [...apps, appConfig];\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t\tdeleteApp: (appId: string) => {\n\t\t\tapps = apps.filter((app) => app.appId !== appId);\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t\tgetAppConfigTemplate: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ config: { ...configTemplate } });\n\t\t\t}),\n\t\tgetMenus: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({\n\t\t\t\t\terr: null,\n\t\t\t\t\tmenus,\n\t\t\t\t});\n\t\t\t}),\n\t\taddMenu: (menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst length = String(Object.keys(menus).length + 1);\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[length]: menuConfig,\n\t\t\t\t};\n\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tupdateMenu: (menuId: string, menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[menuId]: menuConfig,\n\t\t\t\t};\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tgetPreloads: (): Promise<{ err: any; preloads: PreloadType[] }> =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({\n\t\t\t\t\terr: null,\n\t\t\t\t\tpreloads: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talias: \"zoom\",\n\t\t\t\t\t\t\turl: \"http://localhost:3375/build/preloads/zoom.js\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\talias: \"native-overrides\",\n\t\t\t\t\t\t\turl: \"http://localhost:3375/build/preloads/nativeoverrides.js\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t});\n\t\t\t}),\n\t\tisInboundInteropAuthorized: (sourceApp: AppDefinition, targetApp: AppDefinition) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve(\n\t\t\t\t\ttargetApp.manifest?.interop?.selectConnect?.some((rule) =>\n\t\t\t\t\t\trule.authorize?.some((app) => app.name === sourceApp.name)\n\t\t\t\t\t) || false\n\t\t\t\t);\n\t\t\t}),\n\t\tisOutboundInteropAuthorized: (sourceApp: AppDefinition, targetApp: AppDefinition) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve(\n\t\t\t\t\tsourceApp.manifest?.interop?.selectConnect?.some((rule) =>\n\t\t\t\t\t\trule.authorize?.some((app) => app.name === targetApp.name)\n\t\t\t\t\t) || false\n\t\t\t\t);\n\t\t\t}),\n\t};\n};\n\nexport const getToolbarArgs = (init: \"default\" | \"empty\" | \"long\" | \"temporary\"): ToolbarProps => {\n\tlet apps: AppDefinition[] = [];\n\tlet menus: any = {};\n\n\tif (init === \"default\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(default_menus);\n\t} else if (init === \"temporary\") {\n\t\tapps = JSON.parse(JSON.stringify(temporary_apps));\n\t} else if (init === \"long\") {\n\t\tapps = clone(default_apps);\n\t\tmenus = clone(long_menus);\n\t}\n\n\treturn {\n\t\tgetApps: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null, apps });\n\t\t\t}),\n\t\tgetMenus: () =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({\n\t\t\t\t\terr: null,\n\t\t\t\t\tmenus,\n\t\t\t\t});\n\t\t\t}),\n\t\taddMenu: (menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst length = String(Object.keys(menus).length + 1);\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[length]: menuConfig,\n\t\t\t\t};\n\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tupdateMenu: (menuId: string, menuConfig: any) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tmenus = {\n\t\t\t\t\t...menus,\n\t\t\t\t\t[menuId]: menuConfig,\n\t\t\t\t};\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tdeleteMenu: (menuId: string) =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tconst newMenu = clone(menus);\n\t\t\t\tdelete newMenu[menuId];\n\t\t\t\tmenus = newMenu;\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t};\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/exportProps.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAM7C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,qBAAqB,EAAE,IAAI;IAC3B,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP,IAAI,EAAE,EAAE;SACS,CAAC,CAAC;IACrB,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC,CAAC;IACH,oBAAoB,EAAE,GAAG,EAAE,CAC1B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,oBAAoB;YAClC,WAAW,EAAE,oBAAoB;SACnB,CAAC,CAAC;IAClB,CAAC,CAAC;IACH,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP;gBACC,MAAM,EAAE,kBAAkB;gBAC1B,MAAM,EAAE,mBAAmB;aAC3B;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,qBAAqB,EAAE,GAAG,EAAE,CAC3B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACtB,CAAC,CAAC;CACY,CAAC","sourcesContent":["import { ExportProps } from \"../Export\";\nimport publishTests from \"./publishProgress\";\nimport { FEA } from \"@finsemble/finsemble-
|
|
1
|
+
{"version":3,"file":"exportProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/exportProps.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAM7C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,qBAAqB,EAAE,IAAI;IAC3B,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP,IAAI,EAAE,EAAE;SACS,CAAC,CAAC;IACrB,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC,CAAC;IACH,oBAAoB,EAAE,GAAG,EAAE,CAC1B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,oBAAoB;YAClC,WAAW,EAAE,oBAAoB;SACnB,CAAC,CAAC;IAClB,CAAC,CAAC;IACH,kBAAkB,EAAE,GAAG,EAAE,CACxB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC;IACH,gBAAgB,EAAE,GAAG,EAAE,CACtB,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC;YACP;gBACC,MAAM,EAAE,kBAAkB;gBAC1B,MAAM,EAAE,mBAAmB;aAC3B;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;IACH,qBAAqB,EAAE,GAAG,EAAE,CAC3B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACtB,CAAC,CAAC;CACY,CAAC","sourcesContent":["import { ExportProps } from \"../Export\";\nimport publishTests from \"./publishProgress\";\nimport { FEA } from \"@finsemble/finsemble-api\";\n\ntype ProjectConfig = FEA.ProjectConfig;\ntype DeployInfo = FEA.DeployInfo;\n\nexport const DEFAULT_PROPS = {\n\tprogressCheckInterval: 1000,\n\tgetProjectConfig: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({\n\t\t\t\tname: \"\",\n\t\t\t} as ProjectConfig);\n\t\t}),\n\tcreateProjectZip: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(\"test.zip\");\n\t\t}),\n\tpublishToCosaicCloud: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({\n\t\t\t\tuuid: \"123\",\n\t\t\t\tinstallerURL: \"https://cosaic.io/\",\n\t\t\t\tmanifestURL: \"https://cosaic.io/\",\n\t\t\t} as DeployInfo);\n\t\t}),\n\tgetPublishProgress: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve(publishTests[0].states[0]);\n\t\t}),\n\tcopyProjectFiles: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve([\n\t\t\t\t{\n\t\t\t\t\tsource: \"/tmp/config.json\",\n\t\t\t\t\ttarget: \"/seed/config.json\",\n\t\t\t\t},\n\t\t\t]);\n\t\t}),\n\tupdateProjectSettings: () =>\n\t\tnew Promise((resolve) => {\n\t\t\tresolve({ err: \"\" });\n\t\t}),\n} as ExportProps;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PreloadType } from "../../../types/smartDesktopDesignerTypes";
|
|
2
|
+
export declare const getPreloadsArgs: () => {
|
|
3
|
+
getConfig: (params: any, callback: any) => Promise<{
|
|
4
|
+
data: any;
|
|
5
|
+
err: string | null;
|
|
6
|
+
}>;
|
|
7
|
+
getApps: () => Promise<{
|
|
8
|
+
err: any;
|
|
9
|
+
apps: any;
|
|
10
|
+
}>;
|
|
11
|
+
addPreload: (preload: PreloadType) => Promise<{
|
|
12
|
+
err: any;
|
|
13
|
+
}>;
|
|
14
|
+
setEditView: () => void;
|
|
15
|
+
getPreloads: () => Promise<{
|
|
16
|
+
err: any;
|
|
17
|
+
preloads: PreloadType[];
|
|
18
|
+
}>;
|
|
19
|
+
deletePreload: (alias: string) => Promise<{
|
|
20
|
+
err: any;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { clone } from "../Appearance.helpers";
|
|
2
|
+
import { getApplicationsArgs } from "./apps";
|
|
3
|
+
const applicationArgs = getApplicationsArgs("default");
|
|
4
|
+
const default_preloads = [
|
|
5
|
+
{
|
|
6
|
+
url: "http://localhost:3375/build/preloads/zoom.js",
|
|
7
|
+
alias: "zoom",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
url: "http://localhost:3375/build/preloads/nativeOverrides.js",
|
|
11
|
+
alias: "native-overrides",
|
|
12
|
+
},
|
|
13
|
+
];
|
|
14
|
+
const PRELOAD_CONFIG = {
|
|
15
|
+
allComponents: ["native-overrides"],
|
|
16
|
+
launchableComponents: [],
|
|
17
|
+
};
|
|
18
|
+
export const getPreloadsArgs = () => {
|
|
19
|
+
let preloads = clone(default_preloads);
|
|
20
|
+
return {
|
|
21
|
+
getConfig: (params, callback) => new Promise((resolve) => {
|
|
22
|
+
resolve({ err: null, data: PRELOAD_CONFIG });
|
|
23
|
+
}),
|
|
24
|
+
getApps: applicationArgs.getApps,
|
|
25
|
+
addPreload: (preload) => new Promise((resolve) => {
|
|
26
|
+
resolve({ err: null });
|
|
27
|
+
}),
|
|
28
|
+
setEditView: () => { },
|
|
29
|
+
getPreloads: () => new Promise((resolve) => {
|
|
30
|
+
resolve({ err: null, preloads });
|
|
31
|
+
}),
|
|
32
|
+
deletePreload: (alias) => {
|
|
33
|
+
preloads = preloads.filter((preload) => preload.alias !== alias);
|
|
34
|
+
return new Promise((resolve) => {
|
|
35
|
+
resolve({ err: null });
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=preloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preloads.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/preloads.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAEvD,MAAM,gBAAgB,GAAkB;IACvC;QACC,GAAG,EAAE,8CAA8C;QACnD,KAAK,EAAE,MAAM;KACb;IACD;QACC,GAAG,EAAE,yDAAyD;QAC9D,KAAK,EAAE,kBAAkB;KACzB;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,aAAa,EAAE,CAAC,kBAAkB,CAAC;IACnC,oBAAoB,EAAE,EAAE;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,IAAI,QAAQ,GAAkB,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAEtD,OAAO;QACN,SAAS,EAAE,CAAC,MAAW,EAAE,QAAa,EAAE,EAAE,CACzC,IAAI,OAAO,CAAoC,CAAC,OAAO,EAAE,EAAE;YAC1D,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC;QAC9C,CAAC,CAAC;QACH,OAAO,EAAE,eAAe,CAAC,OAAO;QAChC,UAAU,EAAE,CAAC,OAAoB,EAAyB,EAAE,CAC3D,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;QACH,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;QACrB,WAAW,EAAE,GAAmD,EAAE,CACjE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAClC,CAAC,CAAC;QACH,aAAa,EAAE,CAAC,KAAa,EAAyB,EAAE;YACvD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;YAEjE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC9B,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;QACJ,CAAC;KACD,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { PreloadType } from \"../../../types/smartDesktopDesignerTypes\";\nimport { clone } from \"../Appearance.helpers\";\nimport { getApplicationsArgs } from \"./apps\";\nconst applicationArgs = getApplicationsArgs(\"default\");\n\nconst default_preloads: PreloadType[] = [\n\t{\n\t\turl: \"http://localhost:3375/build/preloads/zoom.js\",\n\t\talias: \"zoom\",\n\t},\n\t{\n\t\turl: \"http://localhost:3375/build/preloads/nativeOverrides.js\",\n\t\talias: \"native-overrides\",\n\t},\n];\n\nconst PRELOAD_CONFIG = {\n\tallComponents: [\"native-overrides\"],\n\tlaunchableComponents: [],\n};\n\nexport const getPreloadsArgs = () => {\n\tlet preloads: PreloadType[] = clone(default_preloads);\n\n\treturn {\n\t\tgetConfig: (params: any, callback: any) =>\n\t\t\tnew Promise<{ data: any; err: string | null }>((resolve) => {\n\t\t\t\tresolve({ err: null, data: PRELOAD_CONFIG });\n\t\t\t}),\n\t\tgetApps: applicationArgs.getApps,\n\t\taddPreload: (preload: PreloadType): Promise<{ err: any }> =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t}),\n\t\tsetEditView: () => {},\n\t\tgetPreloads: (): Promise<{ err: any; preloads: PreloadType[] }> =>\n\t\t\tnew Promise((resolve) => {\n\t\t\t\tresolve({ err: null, preloads });\n\t\t\t}),\n\t\tdeletePreload: (alias: string): Promise<{ err: any }> => {\n\t\t\tpreloads = preloads.filter((preload) => preload.alias !== alias);\n\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\t},\n\t};\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publishProgress.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/publishProgress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAMzE,eAAe;IACd;QACC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACP;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;wBACX,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,aAAa,CAAC,OAAO;wBAC5B,eAAe,EAAE,EAAE;qBAEH;oBACjB,GAAG,EAAE;wBACJ,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;oBACjB,MAAM,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;oBACjB,KAAK,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;iBACjB;gBACD,WAAW,EAAE,YAAY;aACzB;YACD;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;wBACX,IAA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AAE,EAAE;wBACnB,KAAK,EAAE,eAAe;qBACN;iBACjB;gBACD,WAAW,EAAE,OAAO;aACpB;SACD;KACD;IACD;QACC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACP;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;wBACX,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,GAAG,EAAE;wBACJ,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,MAAM,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,KAAK,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;iBACjB;gBACD,WAAW,EAAE,IAAI;aACjB;SACD;KACD;CAIC,CAAC","sourcesContent":["import { ProgressState } from \"../../../types/smartDesktopDesignerTypes\";\nimport { FEA } from \"@finsemble/finsemble-core\";\n\ntype ProgressItem = FEA.ProgressItem;\ntype Progress = FEA.Progress;\n\nexport default [\n\t{\n\t\tname: \"success\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"initialize\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"zip\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"upload\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: null,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-1-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"initialize\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-2-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"zip\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-3-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"upload\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-4-started\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-4-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"success\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: null,\n\t\t\t},\n\t\t],\n\t},\n] as {\n\tname: string;\n\tstates: Progress[];\n}[];\n"]}
|
|
1
|
+
{"version":3,"file":"publishProgress.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/publishProgress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAMzE,eAAe;IACd;QACC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACP;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;wBACX,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,aAAa,CAAC,OAAO;wBAC5B,eAAe,EAAE,EAAE;qBAEH;oBACjB,GAAG,EAAE;wBACJ,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;oBACjB,MAAM,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;oBACjB,KAAK,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,aAAa,CAAC,UAAU;wBAC/B,eAAe,EAAE,CAAC;qBAEF;iBACjB;gBACD,WAAW,EAAE,YAAY;aACzB;YACD;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;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B,eAAe,EAAE,EAAE;wBACnB,KAAK,EAAE,eAAe;qBACN;iBACjB;gBACD,WAAW,EAAE,OAAO;aACpB;SACD;KACD;IACD;QACC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE;YACP;gBACC,KAAK,EAAE;oBACN,UAAU,EAAE;wBACX,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,GAAG,EAAE;wBACJ,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,MAAM,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;oBACjB,KAAK,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,aAAa,CAAC,QAAQ;wBAC7B,eAAe,EAAE,GAAG;qBAEJ;iBACjB;gBACD,WAAW,EAAE,IAAI;aACjB;SACD;KACD;CAIC,CAAC","sourcesContent":["import { ProgressState } from \"../../../types/smartDesktopDesignerTypes\";\nimport { FEA } from \"@finsemble/finsemble-api\";\n\ntype ProgressItem = FEA.ProgressItem;\ntype Progress = FEA.Progress;\n\nexport default [\n\t{\n\t\tname: \"success\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"initialize\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"zip\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"upload\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: null,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-1-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"initialize\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-2-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"zip\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-3-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.NotStarted,\n\t\t\t\t\t\tpercentComplete: 0,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"upload\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-4-started\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Started,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"step-4-fail\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Error,\n\t\t\t\t\t\tpercentComplete: 50,\n\t\t\t\t\t\terror: \"error message\",\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: \"cloud\",\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tname: \"success\",\n\t\tstates: [\n\t\t\t{\n\t\t\t\tsteps: {\n\t\t\t\t\tinitialize: {\n\t\t\t\t\t\tstep: \"initialize\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tzip: {\n\t\t\t\t\t\tstep: \"zip\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tupload: {\n\t\t\t\t\t\tstep: \"upload\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t\tcloud: {\n\t\t\t\t\t\tstep: \"cloud\",\n\t\t\t\t\t\tstate: ProgressState.Finished,\n\t\t\t\t\t\tpercentComplete: 100,\n\t\t\t\t\t\t// error: '',\n\t\t\t\t\t} as ProgressItem,\n\t\t\t\t},\n\t\t\t\tcurrentStep: null,\n\t\t\t},\n\t\t],\n\t},\n] as {\n\tname: string;\n\tstates: Progress[];\n}[];\n"]}
|
|
@@ -8,6 +8,8 @@ import { Authentication } from "../Authentication";
|
|
|
8
8
|
import { default_authentication_props } from "./authenticationProps";
|
|
9
9
|
import { getApplicationsArgs } from "./apps";
|
|
10
10
|
import { Toolbar } from "../Toolbar";
|
|
11
|
+
import { OptionalSettingsView } from "../OptionalSettingsView";
|
|
12
|
+
import { getPreloadsArgs } from "./preloads";
|
|
11
13
|
export default [
|
|
12
14
|
{
|
|
13
15
|
showLabel: false,
|
|
@@ -32,6 +34,13 @@ export default [
|
|
|
32
34
|
component: Applications,
|
|
33
35
|
props: Object.assign({}, getApplicationsArgs("empty")),
|
|
34
36
|
},
|
|
37
|
+
{
|
|
38
|
+
id: "applications-optional",
|
|
39
|
+
icon: "code-block",
|
|
40
|
+
name: "Optional",
|
|
41
|
+
component: OptionalSettingsView,
|
|
42
|
+
props: Object.assign({}, getPreloadsArgs()),
|
|
43
|
+
},
|
|
35
44
|
],
|
|
36
45
|
},
|
|
37
46
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/views.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB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EAAE,MAAM;gBACjB,KAAK,oBAAO,aAAa,CAAE;aAC3B;SACD;KACD;CACoB,CAAC","sourcesContent":["import { GettingStarted } from \"../GettingStarted\";\nimport { Applications } from \"../Applications\";\nimport { ViewSectionInfo } from \"../../../types/smartDesktopDesignerTypes\";\nimport { Themes } from \"../Themes\";\nimport { Export } from \"../Export\";\nimport { DEFAULT_PROPS } from \"./exportProps\";\nimport { default_theme_props } from \"./themeProps\";\nimport { Authentication } from \"../Authentication\";\nimport { default_authentication_props } from \"./authenticationProps\";\nimport { getApplicationsArgs } from \"./apps\";\nimport { Toolbar } from \"../Toolbar\";\nimport { OptionalSettingsView } from \"../OptionalSettingsView\";\nimport { getPreloadsArgs } from \"./preloads\";\n\nexport default [\n\t{\n\t\tshowLabel: false,\n\t\tlabel: \"\",\n\t\tviews: [\n\t\t\t{\n\t\t\t\tid: \"getting-started\",\n\t\t\t\ticon: \"flag\",\n\t\t\t\tname: \"Start\",\n\t\t\t\tcomponent: GettingStarted,\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tshowLabel: true,\n\t\tlabel: \"Apps\",\n\t\tviews: [\n\t\t\t{\n\t\t\t\tid: \"applications\",\n\t\t\t\ticon: \"window\",\n\t\t\t\tname: \"Manage apps\",\n\t\t\t\tcomponent: Applications,\n\t\t\t\tprops: { ...getApplicationsArgs(\"empty\") },\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"applications-optional\",\n\t\t\t\ticon: \"code-block\",\n\t\t\t\tname: \"Optional\",\n\t\t\t\tcomponent: OptionalSettingsView,\n\t\t\t\tprops: { ...getPreloadsArgs() },\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tshowLabel: true,\n\t\tlabel: \"Desktop Customization\",\n\t\tviews: [\n\t\t\t{\n\t\t\t\tid: \"themes\",\n\t\t\t\ticon: \"paint-roller\",\n\t\t\t\tname: \"Theme\",\n\t\t\t\tcomponent: Themes,\n\t\t\t\tprops: { ...default_theme_props },\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"toolbar\",\n\t\t\t\ticon: \"toolbar\",\n\t\t\t\tname: \"Toolbar\",\n\t\t\t\tcomponent: Toolbar,\n\t\t\t\tprops: { ...getApplicationsArgs(\"empty\") },\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"authentication\",\n\t\t\t\ticon: \"key\",\n\t\t\t\tname: \"Authentication\",\n\t\t\t\tcomponent: Authentication,\n\t\t\t\tprops: { ...default_authentication_props },\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tshowLabel: true,\n\t\tlabel: \"Deploy\",\n\t\tviews: [\n\t\t\t{\n\t\t\t\tid: \"export\",\n\t\t\t\ticon: \"upload\",\n\t\t\t\tname: \"Finish\",\n\t\t\t\tcomponent: Export,\n\t\t\t\tprops: { ...DEFAULT_PROPS },\n\t\t\t},\n\t\t],\n\t},\n] as ViewSectionInfo[];\n"]}
|
|
@@ -4,7 +4,7 @@ import "../../../assets/css/finsemble.css";
|
|
|
4
4
|
import "../../common/css/styles.css";
|
|
5
5
|
declare const _default: {
|
|
6
6
|
title: string;
|
|
7
|
-
component: ({ startingDisplayName, startingAppType, startingWindowURL, startingNativePath, appData, validateURL, removeApplicationFn, cancelFn, submitFn, addApp, isInboundInteropAuthorized, isOutboundInteropAuthorized, }: AppEditPageProps) => JSX.Element;
|
|
7
|
+
component: ({ startingDisplayName, startingAppType, startingWindowURL, startingNativePath, appData, validateURL, removeApplicationFn, cancelFn, submitFn, addApp, isInboundInteropAuthorized, isOutboundInteropAuthorized, preloadAliasList, }: AppEditPageProps) => JSX.Element;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
10
|
export declare const Page: import("@storybook/react").Story<AppEditPageProps>;
|
|
@@ -26,6 +26,7 @@ const defaultProps = {
|
|
|
26
26
|
isInboundInteropAuthorized: resolvePromiseAsTrue,
|
|
27
27
|
isOutboundInteropAuthorized: resolvePromiseAsTrue,
|
|
28
28
|
addApp: resolvePromiseErrorNull,
|
|
29
|
+
preloadAliasList: [],
|
|
29
30
|
};
|
|
30
31
|
export const Page = createStory(AppEditPage, defaultProps);
|
|
31
32
|
export const PageWithIconURL = createStory(AppEditPage, Object.assign(Object.assign({}, defaultProps), { appData: Object.assign(Object.assign({}, defaultAppData), { iconURL: "https://assets.finsemble.com/components/fdc3-workbench/fdc3-icon-256.png" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppEditPage.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/AppEditPage.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,oCAAoC;IAC3C,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAkB,EAAE,CAChD,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC;AAEJ,MAAM,uBAAuB,GAAG,GAA2B,EAAE,CAC5D,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEJ,MAAM,YAAY,GAAG;IACpB,mBAAmB,EAAE,MAAM;IAC3B,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,uBAAuB;IAC1C,kBAAkB,EAAE,EAAE;IACtB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;IACvB,mBAAmB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,0BAA0B,EAAE,oBAAoB;IAChD,2BAA2B,EAAE,oBAAoB;IACjD,MAAM,EAAE,uBAAuB;
|
|
1
|
+
{"version":3,"file":"AppEditPage.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/AppEditPage.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,oCAAoC;IAC3C,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAkB,EAAE,CAChD,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC;AAEJ,MAAM,uBAAuB,GAAG,GAA2B,EAAE,CAC5D,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEJ,MAAM,YAAY,GAAG;IACpB,mBAAmB,EAAE,MAAM;IAC3B,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,uBAAuB;IAC1C,kBAAkB,EAAE,EAAE;IACtB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI;IACvB,mBAAmB,EAAE,MAAM,CAAC,oBAAoB,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC1B,0BAA0B,EAAE,oBAAoB;IAChD,2BAA2B,EAAE,oBAAoB;IACjD,MAAM,EAAE,uBAAuB;IAC/B,gBAAgB,EAAE,EAAE;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAmB,WAAW,EAAE,YAAY,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAmB,WAAW,kCACpE,YAAY,KACf,OAAO,kCACH,cAAc,KACjB,OAAO,EAAE,0EAA0E,OAEnF,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAmB,WAAW,kCAC/D,YAAY,KACf,eAAe,EAAE,QAAQ,EACzB,kBAAkB,EAAE,UAAU,EAC9B,OAAO,EAAE,cAAc,IACtB,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAmB,WAAW,kCAC9D,YAAY,KACf,mBAAmB,EAAE,EAAE,EACvB,iBAAiB,EAAE,EAAE,EACrB,WAAW,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IACjD,CAAC","sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport React from \"react\"; // This must be imported, or storybook will choke on this page\nimport { AppEditPage, AppEditPageProps, defaultAppData } from \"../AppEditPage\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { createStory } from \"../../common/helpers\";\nimport { action } from \"@storybook/addon-actions\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/AppEditPage\",\n\tcomponent: AppEditPage,\n};\n\nconst resolvePromiseAsTrue = (): Promise<true> =>\n\tnew Promise((resolve) => {\n\t\tresolve(true);\n\t});\n\nconst resolvePromiseErrorNull = (): Promise<{ err: null }> =>\n\tnew Promise((resolve) => {\n\t\tresolve({ err: null });\n\t});\n\nconst defaultProps = {\n\tstartingDisplayName: \"Test\",\n\tstartingAppType: \"web\",\n\tstartingWindowURL: \"http://www.google.com\",\n\tstartingNativePath: \"\",\n\tappData: defaultAppData,\n\tvalidateURL: () => true,\n\tremoveApplicationFn: action(\"Remove application\"),\n\tcancelFn: action(\"Cancel\"),\n\tsubmitFn: action(\"Submit\"),\n\tisInboundInteropAuthorized: resolvePromiseAsTrue,\n\tisOutboundInteropAuthorized: resolvePromiseAsTrue,\n\taddApp: resolvePromiseErrorNull,\n\tpreloadAliasList: [],\n};\n\nexport const Page = createStory<AppEditPageProps>(AppEditPage, defaultProps);\n\nexport const PageWithIconURL = createStory<AppEditPageProps>(AppEditPage, {\n\t...defaultProps,\n\tappData: {\n\t\t...defaultAppData,\n\t\ticonURL: \"https://assets.finsemble.com/components/fdc3-workbench/fdc3-icon-256.png\",\n\t},\n});\n\nexport const NativePage = createStory<AppEditPageProps>(AppEditPage, {\n\t...defaultProps,\n\tstartingAppType: \"native\",\n\tstartingNativePath: \"test.exe\",\n\tappData: defaultAppData,\n});\n\nexport const EmptyPage = createStory<AppEditPageProps>(AppEditPage, {\n\t...defaultProps,\n\tstartingDisplayName: \"\",\n\tstartingWindowURL: \"\",\n\tvalidateURL: (s: string) => !s.includes(\"invalid\"),\n});\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EditPreloadProps } from "../EditPreload";
|
|
3
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
4
|
+
import "../../../assets/css/finsemble.css";
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: React.FunctionComponent<EditPreloadProps>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const AddNewPreload: Story<EditPreloadProps>;
|
|
11
|
+
export declare const EditExistingPreload: Story<EditPreloadProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EditPreload } from "../EditPreload";
|
|
3
|
+
import "../../../assets/css/finsemble.css";
|
|
4
|
+
import { getApplicationsArgs } from "../fixtures/apps";
|
|
5
|
+
import { getPreloadsArgs } from "../fixtures/preloads";
|
|
6
|
+
const args = getApplicationsArgs("default");
|
|
7
|
+
const preloadArgs = getPreloadsArgs();
|
|
8
|
+
export default {
|
|
9
|
+
title: "Views/Preloads/EditPreload",
|
|
10
|
+
component: EditPreload,
|
|
11
|
+
};
|
|
12
|
+
const Template = (props) => React.createElement(EditPreload, Object.assign({}, props));
|
|
13
|
+
export const AddNewPreload = Template.bind({});
|
|
14
|
+
AddNewPreload.args = {
|
|
15
|
+
preload: { alias: "", url: "" },
|
|
16
|
+
getApps: args.getApps,
|
|
17
|
+
getConfig: preloadArgs.getConfig,
|
|
18
|
+
cancelFunction: console.log,
|
|
19
|
+
deletePreload: (al) => {
|
|
20
|
+
console.log(al);
|
|
21
|
+
},
|
|
22
|
+
addPreload: console.log,
|
|
23
|
+
};
|
|
24
|
+
export const EditExistingPreload = Template.bind({});
|
|
25
|
+
EditExistingPreload.args = {
|
|
26
|
+
preload: { alias: "zoom", url: "https://test.com" },
|
|
27
|
+
getApps: args.getApps,
|
|
28
|
+
getConfig: preloadArgs.getConfig,
|
|
29
|
+
cancelFunction: console.log,
|
|
30
|
+
deletePreload: (al) => {
|
|
31
|
+
console.log(al);
|
|
32
|
+
},
|
|
33
|
+
addPreload: console.log,
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=EditPreload.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditPreload.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/EditPreload.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAE/D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,IAAI,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,WAAW,GAAG,eAAe,EAAE,CAAC;AAEtC,eAAe;IACd,KAAK,EAAE,4BAA4B;IACnC,SAAS,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,QAAQ,GAA4B,CAAC,KAAuB,EAAE,EAAE,CAAC,oBAAC,WAAW,oBAAK,KAAK,EAAI,CAAC;AAElG,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACpB,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,SAAS,EAAE,WAAW,CAAC,SAAS;IAChC,cAAc,EAAE,OAAO,CAAC,GAAU;IAClC,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,UAAU,EAAE,OAAO,CAAC,GAAU;CACV,CAAC;AAEtB,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,mBAAmB,CAAC,IAAI,GAAG;IAC1B,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,EAAE;IACnD,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,SAAS,EAAE,WAAW,CAAC,SAAS;IAChC,cAAc,EAAE,OAAO,CAAC,GAAU;IAClC,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,UAAU,EAAE,OAAO,CAAC,GAAU;CACV,CAAC","sourcesContent":["import React from \"react\";\nimport { EditPreload, EditPreloadProps } from \"../EditPreload\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport \"../../../assets/css/finsemble.css\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\nimport { getPreloadsArgs } from \"../fixtures/preloads\";\n\nconst args = getApplicationsArgs(\"default\");\nconst preloadArgs = getPreloadsArgs();\n\nexport default {\n\ttitle: \"Views/Preloads/EditPreload\",\n\tcomponent: EditPreload,\n};\n\nconst Template: Story<EditPreloadProps> = (props: EditPreloadProps) => <EditPreload {...props} />;\n\nexport const AddNewPreload = Template.bind({});\nAddNewPreload.args = {\n\tpreload: { alias: \"\", url: \"\" },\n\tgetApps: args.getApps,\n\tgetConfig: preloadArgs.getConfig,\n\tcancelFunction: console.log as any,\n\tdeletePreload: (al) => {\n\t\tconsole.log(al);\n\t},\n\taddPreload: console.log as any,\n} as EditPreloadProps;\n\nexport const EditExistingPreload = Template.bind({});\nEditExistingPreload.args = {\n\tpreload: { alias: \"zoom\", url: \"https://test.com\" },\n\tgetApps: args.getApps,\n\tgetConfig: preloadArgs.getConfig,\n\tcancelFunction: console.log as any,\n\tdeletePreload: (al) => {\n\t\tconsole.log(al);\n\t},\n\taddPreload: console.log as any,\n} as EditPreloadProps;\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ItemListProps } from "../ItemList";
|
|
3
|
+
import "../../../assets/css/finsemble.css";
|
|
4
|
+
import "../../common/css/styles.css";
|
|
5
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: ({ items, clickItem, deleteItem, editItem, getItemId, getItemDisplayName, emptyListMessage, className, }: ItemListProps) => JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const EmptyAppList: Story<ItemListProps>;
|
|
12
|
+
export declare const OneAppInList: Story<ItemListProps>;
|
|
13
|
+
export declare const AppWithoutDisplayName: Story<ItemListProps>;
|
|
14
|
+
export declare const SampleAppList: Story<ItemListProps>;
|
|
15
|
+
export declare const AppListWithEdit: Story<ItemListProps>;
|
|
16
|
+
export declare const appsWithWarnings: Story<ItemListProps>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ItemList } from "../ItemList";
|
|
3
3
|
import "../../../assets/css/finsemble.css";
|
|
4
4
|
import "../../common/css/styles.css";
|
|
5
5
|
import { action } from "@storybook/addon-actions";
|
|
6
6
|
export default {
|
|
7
|
-
title: "Smart Desktop Designer/
|
|
8
|
-
component:
|
|
7
|
+
title: "Smart Desktop Designer/ItemList",
|
|
8
|
+
component: ItemList,
|
|
9
9
|
};
|
|
10
|
-
const Template = (args) => React.createElement(
|
|
10
|
+
const Template = (args) => React.createElement(ItemList, Object.assign({}, args));
|
|
11
11
|
const sampleApps = [
|
|
12
12
|
{
|
|
13
13
|
appId: "1",
|
|
@@ -46,49 +46,49 @@ const warningApps = [
|
|
|
46
46
|
icons: "warning",
|
|
47
47
|
},
|
|
48
48
|
];
|
|
49
|
-
const
|
|
50
|
-
const
|
|
49
|
+
const clickItem = action("Clicked app");
|
|
50
|
+
const deleteItem = (appID) => {
|
|
51
51
|
var _a;
|
|
52
52
|
const element = document.getElementById(`app-list-row-${appID}`);
|
|
53
53
|
(_a = element === null || element === void 0 ? void 0 : element.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(element);
|
|
54
54
|
};
|
|
55
55
|
export const EmptyAppList = Template.bind({});
|
|
56
56
|
EmptyAppList.args = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
items: [],
|
|
58
|
+
clickItem,
|
|
59
|
+
deleteItem,
|
|
60
60
|
};
|
|
61
61
|
export const OneAppInList = Template.bind({});
|
|
62
62
|
OneAppInList.args = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
items: sampleApps.slice(0, 1),
|
|
64
|
+
clickItem,
|
|
65
|
+
deleteItem,
|
|
66
66
|
};
|
|
67
67
|
export const AppWithoutDisplayName = Template.bind({});
|
|
68
68
|
AppWithoutDisplayName.args = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
items: sampleApps.slice(2, 3),
|
|
70
|
+
clickItem,
|
|
71
|
+
deleteItem,
|
|
72
72
|
};
|
|
73
73
|
const deepClone = (json) => JSON.parse(JSON.stringify(json));
|
|
74
74
|
const longList = deepClone(sampleApps);
|
|
75
75
|
export const SampleAppList = Template.bind({});
|
|
76
76
|
SampleAppList.args = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
items: longList,
|
|
78
|
+
clickItem,
|
|
79
|
+
deleteItem,
|
|
80
80
|
};
|
|
81
81
|
export const AppListWithEdit = Template.bind({});
|
|
82
82
|
AppListWithEdit.args = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
items: longList,
|
|
84
|
+
clickItem,
|
|
85
|
+
deleteItem,
|
|
86
|
+
editItem: action("edit"),
|
|
87
87
|
};
|
|
88
88
|
export const appsWithWarnings = Template.bind({});
|
|
89
89
|
appsWithWarnings.args = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
items: warningApps,
|
|
91
|
+
clickItem,
|
|
92
|
+
deleteItem,
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=
|
|
94
|
+
//# sourceMappingURL=ItemList.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemList.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ItemList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,aAAa,CAAC;AACtD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,iCAAiC;IACxC,SAAS,E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AC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IACnB,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7B,SAAS;IACT,UAAU;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,qBAAqB,CAAC,IAAI,GAAG;IAC5B,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7B,SAAS;IACT,UAAU;CACV,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,IAAuB,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAChF,MAAM,QAAQ,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/C,aAAa,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE,QAAQ;IACf,SAAS;IACT,UAAU;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,KAAK,EAAE,QAAQ;IACf,SAAS;IACT,UAAU;IACV,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACvB,KAAK,EAAE,WAAW;IAClB,SAAS;IACT,UAAU;CACV,CAAC","sourcesContent":["import React from \"react\";\nimport { ItemList, ItemListProps } from \"../ItemList\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { action } from \"@storybook/addon-actions\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/ItemList\",\n\tcomponent: ItemList,\n};\n\nconst Template: Story<ItemListProps> = (args: ItemListProps) => <ItemList {...args} />;\nconst sampleApps = [\n\t{\n\t\tappId: \"1\",\n\t\tname: \"1\",\n\t\tcomponents: {\n\t\t\tdisplayName: \"Hello World\",\n\t\t},\n\t},\n\t{\n\t\tappId: \"Example\",\n\t\tname: \"Example\",\n\t\tcomponents: {\n\t\t\tdisplayName: \"Example\",\n\t\t},\n\t},\n\t{\n\t\tappId: \"NoDisplayName\",\n\t\tname: \"NoDisplayName\",\n\t},\n];\nconst warningApps = [\n\t{\n\t\tappId: \"1\",\n\t\tname: \"1\",\n\t\tcomponents: {\n\t\t\tdisplayName: \"Hello World\",\n\t\t},\n\t},\n\t{\n\t\tappId: \"NoDisplayName\",\n\t\tname: \"NoDisplayName\",\n\t},\n\t{\n\t\tappId: \"Test\",\n\t\tname: \"Test\",\n\t\ticons: \"warning\",\n\t},\n] as ItemListProps[\"items\"];\nconst clickItem = action(\"Clicked app\");\n\nconst deleteItem = (appID: string) => {\n\tconst element = document.getElementById(`app-list-row-${appID}`);\n\telement?.parentNode?.removeChild(element);\n};\n\nexport const EmptyAppList = Template.bind({});\nEmptyAppList.args = {\n\titems: [],\n\tclickItem,\n\tdeleteItem,\n};\n\nexport const OneAppInList = Template.bind({});\nOneAppInList.args = {\n\titems: sampleApps.slice(0, 1),\n\tclickItem,\n\tdeleteItem,\n};\n\nexport const AppWithoutDisplayName = Template.bind({});\nAppWithoutDisplayName.args = {\n\titems: sampleApps.slice(2, 3),\n\tclickItem,\n\tdeleteItem,\n};\n\nconst deepClone = (json: object | object[]) => JSON.parse(JSON.stringify(json));\nconst longList = deepClone(sampleApps);\n\nexport const SampleAppList = Template.bind({});\nSampleAppList.args = {\n\titems: longList,\n\tclickItem,\n\tdeleteItem,\n};\n\nexport const AppListWithEdit = Template.bind({});\nAppListWithEdit.args = {\n\titems: longList,\n\tclickItem,\n\tdeleteItem,\n\teditItem: action(\"edit\"),\n};\n\nexport const appsWithWarnings = Template.bind({});\nappsWithWarnings.args = {\n\titems: warningApps,\n\tclickItem,\n\tdeleteItem,\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OptionalSettingsViewProps } from "../OptionalSettingsView";
|
|
3
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
4
|
+
import "../../../assets/css/finsemble.css";
|
|
5
|
+
import "../../common/css/styles.css";
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: React.FunctionComponent<OptionalSettingsViewProps>;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const DefaultExport: Story<OptionalSettingsViewProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OptionalSettingsView } from "../OptionalSettingsView";
|
|
3
|
+
import { initFSBL } from "../../common/helpers";
|
|
4
|
+
import { FinsembleProvider } from "../../FinsembleProvider";
|
|
5
|
+
import "../../../assets/css/finsemble.css";
|
|
6
|
+
import "../../common/css/styles.css";
|
|
7
|
+
import { getPreloadsArgs } from "../fixtures/preloads";
|
|
8
|
+
import { getApplicationsArgs } from "../fixtures/apps";
|
|
9
|
+
const applicationArgs = getApplicationsArgs("default");
|
|
10
|
+
export default {
|
|
11
|
+
title: "Views/OptionalSettings",
|
|
12
|
+
component: OptionalSettingsView,
|
|
13
|
+
};
|
|
14
|
+
const Template = (args) => {
|
|
15
|
+
initFSBL(window);
|
|
16
|
+
return (React.createElement(FinsembleProvider, null,
|
|
17
|
+
React.createElement(OptionalSettingsView, Object.assign({}, args))));
|
|
18
|
+
};
|
|
19
|
+
export const DefaultExport = Template.bind({});
|
|
20
|
+
const props = getPreloadsArgs();
|
|
21
|
+
DefaultExport.args = {
|
|
22
|
+
getConfig: props.getConfig,
|
|
23
|
+
getApps: applicationArgs.getApps,
|
|
24
|
+
addPreload: props.addPreload,
|
|
25
|
+
deletePreload: props.deletePreload,
|
|
26
|
+
getPreloads: props.getPreloads,
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=OptionalSettingsView.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptionalSettingsView.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAA6B,MAAM,yBAAyB,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAEvD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,oBAAoB;CAC/B,CAAC;AAEF,MAAM,QAAQ,GAAqC,CAAC,IAA+B,EAAE,EAAE;IACtF,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,oBAAoB,oBAAK,IAAI,EAAI,CACf,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;AAEhC,aAAa,CAAC,IAAI,GAAG;IACpB,SAAS,EAAE,KAAK,CAAC,SAAS;IAC1B,OAAO,EAAE,eAAe,CAAC,OAAO;IAChC,UAAU,EAAE,KAAK,CAAC,UAAU;IAC5B,aAAa,EAAE,KAAK,CAAC,aAAa;IAClC,WAAW,EAAE,KAAK,CAAC,WAAW;CAC9B,CAAC","sourcesContent":["import React from \"react\";\nimport { OptionalSettingsView, OptionalSettingsViewProps } from \"../OptionalSettingsView\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../../common/helpers\";\nimport { FinsembleProvider } from \"../../FinsembleProvider\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { getPreloadsArgs } from \"../fixtures/preloads\";\nimport { getApplicationsArgs } from \"../fixtures/apps\";\n\nconst applicationArgs = getApplicationsArgs(\"default\");\n\nexport default {\n\ttitle: \"Views/OptionalSettings\",\n\tcomponent: OptionalSettingsView,\n};\n\nconst Template: Story<OptionalSettingsViewProps> = (args: OptionalSettingsViewProps) => {\n\tinitFSBL(window);\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<OptionalSettingsView {...args} />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const DefaultExport = Template.bind({});\n\nconst props = getPreloadsArgs();\n\nDefaultExport.args = {\n\tgetConfig: props.getConfig,\n\tgetApps: applicationArgs.getApps,\n\taddPreload: props.addPreload,\n\tdeletePreload: props.deletePreload,\n\tgetPreloads: props.getPreloads,\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PreloadListProps } from "../Preloads";
|
|
3
|
+
import { Story } from "@storybook/react/types-6-0";
|
|
4
|
+
import "../../../assets/css/finsemble.css";
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: React.FunctionComponent<PreloadListProps>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const EmptyList: Story<PreloadListProps>;
|
|
11
|
+
export declare const PopulatedList: Story<PreloadListProps>;
|