@finsemble/finsemble-ui 6.4.0 → 6.6.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (595) hide show
  1. package/package.json +31 -28
  2. package/react/actions/smartDesktopDesignerActions.d.ts +6 -2
  3. package/react/actions/smartDesktopDesignerActions.js +2 -0
  4. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  5. package/react/assets/css/finsemble.css +0 -1
  6. package/react/assets/css/userPreferences.css +6 -0
  7. package/react/assets/icons/code-block.svg +15 -0
  8. package/react/componentTemplateGenerator.js +1 -1
  9. package/react/componentTemplateGenerator.js.map +1 -1
  10. package/react/components/FinsembleProvider.js.map +1 -1
  11. package/react/components/appCatalog/AppCatalogComponent.d.ts +1 -1
  12. package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +3 -3
  13. package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +1 -1
  14. package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
  15. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  16. package/react/components/appCatalog/stores/appStore.d.ts +2 -2
  17. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  18. package/react/components/appCatalog/stores/storeActions.d.ts +1 -1
  19. package/react/components/common/Checkbox.js +1 -1
  20. package/react/components/common/Checkbox.js.map +1 -1
  21. package/react/components/common/DropZone.js +3 -1
  22. package/react/components/common/DropZone.js.map +1 -1
  23. package/react/components/common/FileInput.d.ts +2 -1
  24. package/react/components/common/FileInput.js +2 -2
  25. package/react/components/common/FileInput.js.map +1 -1
  26. package/react/components/common/FinsembleIcon.d.ts +1 -1
  27. package/react/components/common/FinsembleIcon.js +2 -0
  28. package/react/components/common/FinsembleIcon.js.map +1 -1
  29. package/react/components/common/FinsembleSelect.js +1 -1
  30. package/react/components/common/FinsembleSelect.js.map +1 -1
  31. package/react/components/common/ImagePreview.js +1 -1
  32. package/react/components/common/ImagePreview.js.map +1 -1
  33. package/react/components/common/Tooltip.js +3 -1
  34. package/react/components/common/Tooltip.js.map +1 -1
  35. package/react/components/common/css/application-edit-page.css +4 -1
  36. package/react/components/common/css/application-list.css +4 -0
  37. package/react/components/common/css/preload-edit-page.css +37 -0
  38. package/react/components/common/helpers.js +1 -0
  39. package/react/components/common/helpers.js.map +1 -1
  40. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  41. package/react/components/common/stories/FileInput.stories.js +6 -0
  42. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  43. package/react/components/common/tests/Accordion.spec.js +1 -1
  44. package/react/components/common/tests/Accordion.spec.js.map +1 -1
  45. package/react/components/common/tests/FileInput.spec.js +8 -1
  46. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  47. package/react/components/common/tests/FinsembleSelect.spec.js +1 -1
  48. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  49. package/react/components/common/tests/FinsembleToggle.spec.js +2 -2
  50. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  51. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  52. package/react/components/favorites/FavoritesShell.spec.js +1 -1
  53. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  54. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  55. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  56. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  57. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  58. package/react/components/icon/Icon.d.ts +4 -3
  59. package/react/components/icon/Icon.js +22 -12
  60. package/react/components/icon/Icon.js.map +1 -1
  61. package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
  62. package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
  63. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  64. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -1
  65. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  66. package/react/components/linker/LinkerMenu.js.map +1 -1
  67. package/react/components/linker/remoteRedux.d.ts +1 -1
  68. package/react/components/linker/remoteRedux.js.map +1 -1
  69. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  70. package/react/components/menu/MenuPortal.js +20 -1
  71. package/react/components/menu/MenuPortal.js.map +1 -1
  72. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  73. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  74. package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
  75. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  76. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  77. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  78. package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
  79. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  80. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
  81. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  82. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
  83. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  84. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  85. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  86. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  87. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  88. package/react/components/notifications/components/views/CardView.js.map +1 -1
  89. package/react/components/notifications/components/views/ListView.d.ts +1 -1
  90. package/react/components/notifications/components/views/ListView.js.map +1 -1
  91. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
  92. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  93. package/react/components/notifications/types.d.ts +1 -1
  94. package/react/components/notifications/types.js.map +1 -1
  95. package/react/components/notifications/utils.d.ts +1 -1
  96. package/react/components/notifications/utils.js.map +1 -1
  97. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  98. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +4 -11
  99. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  100. package/react/components/processMonitor/components/ChildWindow.js +5 -10
  101. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  102. package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
  103. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  104. package/react/components/processMonitor/components/ProcessStatistics.js +8 -10
  105. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  106. package/react/components/processMonitor/constants.d.ts +0 -2
  107. package/react/components/processMonitor/constants.js +0 -2
  108. package/react/components/processMonitor/constants.js.map +1 -1
  109. package/react/components/processMonitor/helpers.d.ts +0 -11
  110. package/react/components/processMonitor/helpers.js +1 -9
  111. package/react/components/processMonitor/helpers.js.map +1 -1
  112. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +6 -14
  113. package/react/components/processMonitor/stores/ProcessMonitorStore.js +22 -62
  114. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  115. package/react/components/{smartDesktopDesigner → sdd}/AddApp.d.ts +0 -0
  116. package/react/components/{smartDesktopDesigner → sdd}/AddApp.js +0 -0
  117. package/react/components/sdd/AddApp.js.map +1 -0
  118. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.d.ts +0 -0
  119. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.js +0 -0
  120. package/react/components/sdd/AppEditAccess.js.map +1 -0
  121. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.d.ts +2 -1
  122. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.js +77 -73
  123. package/react/components/sdd/AppEditPage.js.map +1 -0
  124. package/react/components/{smartDesktopDesigner → sdd}/Appearance.css +8 -0
  125. package/react/components/{smartDesktopDesigner → sdd}/Appearance.d.ts +0 -0
  126. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.d.ts +0 -0
  127. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.js +0 -0
  128. package/react/components/sdd/Appearance.helpers.js.map +1 -0
  129. package/react/components/{smartDesktopDesigner → sdd}/Appearance.js +0 -0
  130. package/react/components/sdd/Appearance.js.map +1 -0
  131. package/react/components/{smartDesktopDesigner → sdd}/Application.d.ts +10 -3
  132. package/react/components/sdd/Application.js +220 -0
  133. package/react/components/sdd/Application.js.map +1 -0
  134. package/react/components/{smartDesktopDesigner → sdd}/Applications.d.ts +2 -0
  135. package/react/components/{smartDesktopDesigner → sdd}/Applications.js +17 -7
  136. package/react/components/sdd/Applications.js.map +1 -0
  137. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.css +0 -0
  138. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.d.ts +0 -0
  139. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.js +0 -0
  140. package/react/components/sdd/AssetsPage.js.map +1 -0
  141. package/react/components/{smartDesktopDesigner → sdd}/Authentication.d.ts +0 -0
  142. package/react/components/{smartDesktopDesigner → sdd}/Authentication.js +1 -1
  143. package/react/components/sdd/Authentication.js.map +1 -0
  144. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.d.ts +0 -0
  145. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.js +0 -0
  146. package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -0
  147. package/react/components/{smartDesktopDesigner → sdd}/Content.d.ts +0 -0
  148. package/react/components/{smartDesktopDesigner → sdd}/Content.js +0 -0
  149. package/react/components/sdd/Content.js.map +1 -0
  150. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.d.ts +0 -0
  151. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.js +0 -0
  152. package/react/components/sdd/ContentHeader.js.map +1 -0
  153. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.d.ts +0 -0
  154. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.js +0 -0
  155. package/react/components/sdd/CurrentView.js.map +1 -0
  156. package/react/components/sdd/EditPreload.d.ts +14 -0
  157. package/react/components/sdd/EditPreload.js +169 -0
  158. package/react/components/sdd/EditPreload.js.map +1 -0
  159. package/react/components/{smartDesktopDesigner → sdd}/Export.d.ts +0 -0
  160. package/react/components/{smartDesktopDesigner → sdd}/Export.js +0 -0
  161. package/react/components/sdd/Export.js.map +1 -0
  162. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.d.ts +0 -0
  163. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.js +0 -0
  164. package/react/components/sdd/ExportCloud.js.map +1 -0
  165. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.d.ts +0 -0
  166. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.js +0 -0
  167. package/react/components/sdd/ExportDeployInfo.js.map +1 -0
  168. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.d.ts +0 -0
  169. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.js +0 -0
  170. package/react/components/sdd/ExportZip.js.map +1 -0
  171. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.d.ts +0 -0
  172. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.js +0 -0
  173. package/react/components/sdd/GettingStarted.js.map +1 -0
  174. package/react/components/sdd/ItemList.d.ts +17 -0
  175. package/react/components/sdd/ItemList.js +58 -0
  176. package/react/components/sdd/ItemList.js.map +1 -0
  177. package/react/components/{smartDesktopDesigner → sdd}/Navigation.d.ts +0 -0
  178. package/react/components/{smartDesktopDesigner → sdd}/Navigation.js +0 -0
  179. package/react/components/sdd/Navigation.js.map +1 -0
  180. package/react/components/sdd/OptionalSettingsView.d.ts +11 -0
  181. package/react/components/sdd/OptionalSettingsView.js +71 -0
  182. package/react/components/sdd/OptionalSettingsView.js.map +1 -0
  183. package/react/components/sdd/Preloads.d.ts +8 -0
  184. package/react/components/sdd/Preloads.js +26 -0
  185. package/react/components/sdd/Preloads.js.map +1 -0
  186. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.d.ts +0 -0
  187. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.js +0 -0
  188. package/react/components/sdd/ProjectErrors.js.map +1 -0
  189. package/react/components/{smartDesktopDesigner → sdd}/Publish.d.ts +0 -0
  190. package/react/components/{smartDesktopDesigner → sdd}/Publish.js +0 -0
  191. package/react/components/sdd/Publish.js.map +1 -0
  192. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.d.ts +0 -0
  193. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.js +0 -0
  194. package/react/components/sdd/PublishProgress.js.map +1 -0
  195. package/react/components/sdd/SmartDesktopDesigner.d.ts +28 -0
  196. package/react/components/sdd/SmartDesktopDesigner.js +121 -0
  197. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -0
  198. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.css +0 -0
  199. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.d.ts +0 -0
  200. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.js +0 -0
  201. package/react/components/sdd/ThemePage.js.map +1 -0
  202. package/react/components/{smartDesktopDesigner → sdd}/Themes.d.ts +0 -0
  203. package/react/components/{smartDesktopDesigner → sdd}/Themes.js +0 -0
  204. package/react/components/sdd/Themes.js.map +1 -0
  205. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.d.ts +0 -0
  206. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.js +13 -11
  207. package/react/components/sdd/Toolbar.js.map +1 -0
  208. package/react/components/{smartDesktopDesigner → sdd}/View.d.ts +0 -0
  209. package/react/components/{smartDesktopDesigner → sdd}/View.js +0 -0
  210. package/react/components/sdd/View.js.map +1 -0
  211. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.d.ts +0 -0
  212. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.js +0 -0
  213. package/react/components/sdd/common/fsbl_functions.js.map +1 -0
  214. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.d.ts +0 -0
  215. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.js +0 -0
  216. package/react/components/sdd/common/getCSSVars.js.map +1 -0
  217. package/react/components/{smartDesktopDesigner/fixtures → sdd/common}/views.d.ts +0 -0
  218. package/react/components/sdd/common/views.js +204 -0
  219. package/react/components/sdd/common/views.js.map +1 -0
  220. package/react/components/{smartDesktopDesigner → sdd}/css/appearance.css +3 -0
  221. package/react/components/{smartDesktopDesigner → sdd}/css/applications.css +0 -0
  222. package/react/components/{smartDesktopDesigner → sdd}/css/authentication.css +5 -1
  223. package/react/components/{smartDesktopDesigner → sdd}/css/buttons.css +0 -0
  224. package/react/components/{smartDesktopDesigner → sdd}/css/export.css +0 -0
  225. package/react/components/{smartDesktopDesigner → sdd}/css/getting-started.css +0 -0
  226. package/react/components/{smartDesktopDesigner → sdd}/css/nav.css +0 -0
  227. package/react/components/{smartDesktopDesigner → sdd}/css/project-errors.css +0 -0
  228. package/react/components/{smartDesktopDesigner → sdd}/css/project-header.css +0 -0
  229. package/react/components/{smartDesktopDesigner → sdd}/css/styles.css +0 -0
  230. package/react/components/{smartDesktopDesigner → sdd}/css/views.css +0 -1
  231. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.d.ts +1 -1
  232. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.js +27 -5
  233. package/react/components/sdd/fixtures/apps.js.map +1 -0
  234. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.d.ts +0 -0
  235. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.js +0 -0
  236. package/react/components/sdd/fixtures/authenticationProps.js.map +1 -0
  237. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.d.ts +1 -1
  238. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.js +1 -1
  239. package/react/components/sdd/fixtures/configTemplate.js.map +1 -0
  240. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.d.ts +0 -0
  241. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.js +0 -0
  242. package/react/components/sdd/fixtures/exportProps.js.map +1 -0
  243. package/react/components/sdd/fixtures/preloads.d.ts +22 -0
  244. package/react/components/sdd/fixtures/preloads.js +40 -0
  245. package/react/components/sdd/fixtures/preloads.js.map +1 -0
  246. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.d.ts +0 -0
  247. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.js +0 -0
  248. package/react/components/sdd/fixtures/projectErrorsProps.js.map +1 -0
  249. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.d.ts +1 -1
  250. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.js +0 -0
  251. package/react/components/sdd/fixtures/publishProgress.js.map +1 -0
  252. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.d.ts +0 -0
  253. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.js +0 -0
  254. package/react/components/sdd/fixtures/themeProps.js.map +1 -0
  255. package/react/components/sdd/fixtures/views.d.ts +3 -0
  256. package/react/components/{smartDesktopDesigner → sdd}/fixtures/views.js +9 -0
  257. package/react/components/sdd/fixtures/views.js.map +1 -0
  258. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.d.ts +0 -0
  259. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.js +0 -0
  260. package/react/components/sdd/sdd_helpers.js.map +1 -0
  261. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.d.ts +1 -1
  262. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.js +1 -0
  263. package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -0
  264. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.d.ts +0 -0
  265. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.js +0 -0
  266. package/react/components/sdd/stories/Appearance.stories.js.map +1 -0
  267. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.d.ts +0 -0
  268. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.js +0 -0
  269. package/react/components/sdd/stories/Applications.stories.js.map +1 -0
  270. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.d.ts +0 -0
  271. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.js +0 -0
  272. package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -0
  273. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.d.ts +0 -0
  274. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.js +0 -0
  275. package/react/components/sdd/stories/Authentication.stories.js.map +1 -0
  276. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.d.ts +0 -0
  277. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.js +0 -0
  278. package/react/components/sdd/stories/ContentHeader.stories.js.map +1 -0
  279. package/react/components/sdd/stories/EditPreload.stories.d.ts +11 -0
  280. package/react/components/sdd/stories/EditPreload.stories.js +35 -0
  281. package/react/components/sdd/stories/EditPreload.stories.js.map +1 -0
  282. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.d.ts +0 -0
  283. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.js +0 -0
  284. package/react/components/sdd/stories/Export.stories.js.map +1 -0
  285. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.d.ts +0 -0
  286. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.js +0 -0
  287. package/react/components/sdd/stories/ExportCloud.stories.js.map +1 -0
  288. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.d.ts +0 -0
  289. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.js +0 -0
  290. package/react/components/sdd/stories/ExportZip.stories.js.map +1 -0
  291. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.d.ts +0 -0
  292. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.js +0 -0
  293. package/react/components/sdd/stories/GettingStarted.stories.js.map +1 -0
  294. package/react/components/sdd/stories/ItemList.stories.d.ts +16 -0
  295. package/react/components/{smartDesktopDesigner/stories/ApplicationList.stories.js → sdd/stories/ItemList.stories.js} +26 -26
  296. package/react/components/sdd/stories/ItemList.stories.js.map +1 -0
  297. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.d.ts +0 -0
  298. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.js +0 -0
  299. package/react/components/sdd/stories/Navigation.stories.js.map +1 -0
  300. package/react/components/sdd/stories/OptionalSettingsView.stories.d.ts +11 -0
  301. package/react/components/sdd/stories/OptionalSettingsView.stories.js +28 -0
  302. package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -0
  303. package/react/components/sdd/stories/Preloads.stories.d.ts +11 -0
  304. package/react/components/sdd/stories/Preloads.stories.js +31 -0
  305. package/react/components/sdd/stories/Preloads.stories.js.map +1 -0
  306. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.d.ts +0 -0
  307. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.js +0 -0
  308. package/react/components/sdd/stories/ProjectErrors.stories.js.map +1 -0
  309. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.d.ts +0 -0
  310. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.js +0 -0
  311. package/react/components/sdd/stories/Publish.stories.js.map +1 -0
  312. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.d.ts +0 -0
  313. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.js +0 -0
  314. package/react/components/sdd/stories/PublishProgress.stories.js.map +1 -0
  315. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.d.ts +0 -0
  316. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.js +0 -0
  317. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -0
  318. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.d.ts +0 -0
  319. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.js +0 -0
  320. package/react/components/sdd/stories/ThemePage.stories.js.map +1 -0
  321. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.d.ts +0 -0
  322. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.js +0 -0
  323. package/react/components/sdd/stories/Themes.stories.js.map +1 -0
  324. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.d.ts +0 -0
  325. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.js +0 -0
  326. package/react/components/sdd/stories/Toolbar.stories.js.map +1 -0
  327. package/react/components/{smartDesktopDesigner → sdd}/tests/AppEditPage.spec.d.ts +0 -0
  328. package/react/components/sdd/tests/AppEditPage.spec.js +1151 -0
  329. package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -0
  330. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → sdd/tests/Application.spec.d.ts} +0 -0
  331. package/react/components/sdd/tests/Application.spec.js +1478 -0
  332. package/react/components/sdd/tests/Application.spec.js.map +1 -0
  333. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.d.ts +0 -0
  334. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.js +3 -3
  335. package/react/components/sdd/tests/Applications.spec.js.map +1 -0
  336. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.d.ts +0 -0
  337. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.js +0 -0
  338. package/react/components/sdd/tests/Authentication.spec.js.map +1 -0
  339. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.d.ts +0 -0
  340. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.js +0 -0
  341. package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -0
  342. package/react/components/{smartDesktopDesigner/tests/Export.spec.d.ts → sdd/tests/EditPreload.spec.d.ts} +0 -0
  343. package/react/components/sdd/tests/EditPreload.spec.js +61 -0
  344. package/react/components/sdd/tests/EditPreload.spec.js.map +1 -0
  345. package/react/components/{smartDesktopDesigner/tests/ExportZip.spec.d.ts → sdd/tests/Export.spec.d.ts} +0 -0
  346. package/react/components/{smartDesktopDesigner → sdd}/tests/Export.spec.js +0 -0
  347. package/react/components/sdd/tests/Export.spec.js.map +1 -0
  348. package/react/components/{smartDesktopDesigner/tests/Navigation.spec.d.ts → sdd/tests/ExportZip.spec.d.ts} +0 -0
  349. package/react/components/{smartDesktopDesigner → sdd}/tests/ExportZip.spec.js +0 -0
  350. package/react/components/sdd/tests/ExportZip.spec.js.map +1 -0
  351. package/react/components/{smartDesktopDesigner/tests/ProjectErrors.spec.d.ts → sdd/tests/ItemList.spec.d.ts} +0 -0
  352. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.js → sdd/tests/ItemList.spec.js} +8 -8
  353. package/react/components/sdd/tests/ItemList.spec.js.map +1 -0
  354. package/react/components/{smartDesktopDesigner/tests/Publish.spec.d.ts → sdd/tests/Navigation.spec.d.ts} +0 -0
  355. package/react/components/{smartDesktopDesigner → sdd}/tests/Navigation.spec.js +0 -0
  356. package/react/components/sdd/tests/Navigation.spec.js.map +1 -0
  357. package/react/components/{smartDesktopDesigner/tests/PublishProgess.spec.d.ts → sdd/tests/Preloads.spec.d.ts} +0 -0
  358. package/react/components/sdd/tests/Preloads.spec.js +47 -0
  359. package/react/components/sdd/tests/Preloads.spec.js.map +1 -0
  360. package/react/components/{smartDesktopDesigner/tests/SmartDesktopDesigner.spec.d.ts → sdd/tests/ProjectErrors.spec.d.ts} +0 -0
  361. package/react/components/{smartDesktopDesigner → sdd}/tests/ProjectErrors.spec.js +0 -0
  362. package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -0
  363. package/react/components/{smartDesktopDesigner/tests/Themes.spec.d.ts → sdd/tests/Publish.spec.d.ts} +0 -0
  364. package/react/components/{smartDesktopDesigner → sdd}/tests/Publish.spec.js +0 -0
  365. package/react/components/sdd/tests/Publish.spec.js.map +1 -0
  366. package/react/components/{smartDesktopDesigner/tests/sdd_helpers.spec.d.ts → sdd/tests/PublishProgess.spec.d.ts} +0 -0
  367. package/react/components/{smartDesktopDesigner → sdd}/tests/PublishProgess.spec.js +0 -0
  368. package/react/components/sdd/tests/PublishProgess.spec.js.map +1 -0
  369. package/react/components/sdd/tests/SmartDesktopDesigner.spec.d.ts +1 -0
  370. package/react/components/{smartDesktopDesigner → sdd}/tests/SmartDesktopDesigner.spec.js +6 -0
  371. package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -0
  372. package/react/components/sdd/tests/Themes.spec.d.ts +1 -0
  373. package/react/components/{smartDesktopDesigner → sdd}/tests/Themes.spec.js +0 -0
  374. package/react/components/sdd/tests/Themes.spec.js.map +1 -0
  375. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.d.ts +0 -0
  376. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.js +0 -0
  377. package/react/components/sdd/tests/Toolbar.spec.js.map +1 -0
  378. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.d.ts +0 -0
  379. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.js +0 -0
  380. package/react/components/sdd/tests/a11y_helper.js.map +1 -0
  381. package/react/components/sdd/tests/sdd_helpers.spec.d.ts +1 -0
  382. package/react/components/{smartDesktopDesigner → sdd}/tests/sdd_helpers.spec.js +0 -0
  383. package/react/components/sdd/tests/sdd_helpers.spec.js.map +1 -0
  384. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.d.ts +0 -0
  385. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.js +0 -0
  386. package/react/components/sdd/themeDefinitions.js.map +1 -0
  387. package/react/components/search/SearchBestMatch.js.map +1 -1
  388. package/react/components/search/SearchProviderResults.d.ts +3 -1
  389. package/react/components/search/SearchProviderResults.js.map +1 -1
  390. package/react/components/search/SearchResult.d.ts +3 -1
  391. package/react/components/search/SearchResult.js +11 -8
  392. package/react/components/search/SearchResult.js.map +1 -1
  393. package/react/components/singleInputDialog/SingleInputDialog.spec.js +1 -1
  394. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  395. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
  396. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +2 -116
  397. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  398. package/react/components/smartDesktopDesigner/common/views.js +1 -185
  399. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  400. package/react/components/toolbar/AutoArrange.js +1 -1
  401. package/react/components/toolbar/AutoArrange.js.map +1 -1
  402. package/react/components/toolbar/AutoArrange.spec.d.ts +1 -0
  403. package/react/components/toolbar/AutoArrange.spec.js +48 -0
  404. package/react/components/toolbar/AutoArrange.spec.js.map +1 -0
  405. package/react/components/toolbar/AutoArrange.stories.d.ts +11 -0
  406. package/react/components/toolbar/AutoArrange.stories.js +21 -0
  407. package/react/components/toolbar/AutoArrange.stories.js.map +1 -0
  408. package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
  409. package/react/components/toolbar/DragHandle.spec.js +31 -0
  410. package/react/components/toolbar/DragHandle.spec.js.map +1 -0
  411. package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
  412. package/react/components/toolbar/DragHandle.stories.js +39 -0
  413. package/react/components/toolbar/DragHandle.stories.js.map +1 -0
  414. package/react/components/toolbar/SddButton.d.ts +2 -0
  415. package/react/components/toolbar/SddButton.js +23 -0
  416. package/react/components/toolbar/SddButton.js.map +1 -0
  417. package/react/components/toolbar/ToolbarShell.js +4 -1
  418. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  419. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
  420. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  421. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +3 -2
  422. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  423. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
  424. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  425. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  426. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
  427. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  428. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
  429. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  430. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
  431. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  432. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  433. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +15 -4
  434. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  435. package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
  436. package/react/components/toolbar/appLauncher/components/componentList.js +3 -4
  437. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  438. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
  439. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  440. package/react/components/toolbar/dashbar/Dashbar.js +11 -12
  441. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  442. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
  443. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  444. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  445. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  446. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  447. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  448. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
  449. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +72 -13
  450. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  451. package/react/components/userPreferences/components/content/Workspaces.d.ts +6 -1
  452. package/react/components/userPreferences/components/content/Workspaces.js +59 -18
  453. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  454. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  455. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  456. package/react/components/userPreferences/components/general/ScheduledRestart.d.ts +2 -0
  457. package/react/components/userPreferences/components/general/ScheduledRestart.js +10 -2
  458. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  459. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +2 -1
  460. package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -0
  461. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  462. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +6 -6
  463. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  464. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +5 -2
  465. package/react/components/windowTitleBar/WindowTitleBarShell.js +70 -59
  466. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  467. package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -2
  468. package/react/components/windowTitleBar/components/center/TabList.js +5 -2
  469. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  470. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  471. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  472. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  473. package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -2
  474. package/react/components/windowTitleBar/components/windowTitle.js +99 -94
  475. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  476. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
  477. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +218 -219
  478. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  479. package/react/components/yesNoDialog/Timer.spec.js +1 -1
  480. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  481. package/react/components/yesNoDialog/YesNoDialog.spec.js +1 -1
  482. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  483. package/react/hooks/useDashbar.js.map +1 -1
  484. package/react/hooks/useFavoritesShell.js.map +1 -1
  485. package/react/hooks/useNotifications.d.ts +1 -1
  486. package/react/hooks/useNotifications.js.map +1 -1
  487. package/react/hooks/useSearch.d.ts +2 -1
  488. package/react/hooks/useSearch.js.map +1 -1
  489. package/react/hooks/useToolbar.js +6 -0
  490. package/react/hooks/useToolbar.js.map +1 -1
  491. package/react/reducers/rootReducer.d.ts +11 -3
  492. package/react/reducers/smartDesktopDesignerReducer.js +8 -0
  493. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  494. package/react/store.d.ts +22 -6
  495. package/react/types/advancedAppLauncherTypes.d.ts +5 -3
  496. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  497. package/react/types/favoriteTypes.d.ts +4 -2
  498. package/react/types/favoriteTypes.js.map +1 -1
  499. package/react/types/fdc3.d.ts +2 -2
  500. package/react/types/fdc3.js.map +1 -1
  501. package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
  502. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  503. package/react/types/windowTitleBar.d.ts +1 -1
  504. package/react/types/windowTitleBar.js.map +1 -1
  505. package/react/components/smartDesktopDesigner/AddApp.js.map +0 -1
  506. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +0 -1
  507. package/react/components/smartDesktopDesigner/AppEditPage.js.map +0 -1
  508. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +0 -1
  509. package/react/components/smartDesktopDesigner/Appearance.js.map +0 -1
  510. package/react/components/smartDesktopDesigner/Application.js +0 -228
  511. package/react/components/smartDesktopDesigner/Application.js.map +0 -1
  512. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -16
  513. package/react/components/smartDesktopDesigner/ApplicationList.js +0 -60
  514. package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
  515. package/react/components/smartDesktopDesigner/Applications.js.map +0 -1
  516. package/react/components/smartDesktopDesigner/AssetsPage.js.map +0 -1
  517. package/react/components/smartDesktopDesigner/Authentication.js.map +0 -1
  518. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +0 -1
  519. package/react/components/smartDesktopDesigner/Content.js.map +0 -1
  520. package/react/components/smartDesktopDesigner/ContentHeader.js.map +0 -1
  521. package/react/components/smartDesktopDesigner/CurrentView.js.map +0 -1
  522. package/react/components/smartDesktopDesigner/Export.js.map +0 -1
  523. package/react/components/smartDesktopDesigner/ExportCloud.js.map +0 -1
  524. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +0 -1
  525. package/react/components/smartDesktopDesigner/ExportZip.js.map +0 -1
  526. package/react/components/smartDesktopDesigner/GettingStarted.js.map +0 -1
  527. package/react/components/smartDesktopDesigner/Navigation.js.map +0 -1
  528. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +0 -1
  529. package/react/components/smartDesktopDesigner/Publish.js.map +0 -1
  530. package/react/components/smartDesktopDesigner/PublishProgress.js.map +0 -1
  531. package/react/components/smartDesktopDesigner/ThemePage.js.map +0 -1
  532. package/react/components/smartDesktopDesigner/Themes.js.map +0 -1
  533. package/react/components/smartDesktopDesigner/Toolbar.js.map +0 -1
  534. package/react/components/smartDesktopDesigner/View.js.map +0 -1
  535. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +0 -1
  536. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +0 -1
  537. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +0 -1
  538. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +0 -1
  539. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +0 -1
  540. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +0 -1
  541. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +0 -1
  542. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +0 -1
  543. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +0 -1
  544. package/react/components/smartDesktopDesigner/fixtures/views.js.map +0 -1
  545. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +0 -1
  546. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +0 -1
  547. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +0 -1
  548. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -16
  549. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
  550. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +0 -1
  551. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +0 -1
  552. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +0 -1
  553. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +0 -1
  554. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +0 -1
  555. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +0 -1
  556. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +0 -1
  557. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +0 -1
  558. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +0 -1
  559. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +0 -1
  560. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +0 -1
  561. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +0 -1
  562. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +0 -1
  563. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +0 -1
  564. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +0 -1
  565. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +0 -1
  566. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +0 -310
  567. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +0 -1
  568. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
  569. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +0 -1
  570. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +0 -1
  571. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +0 -1
  572. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +0 -1
  573. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +0 -1
  574. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +0 -1
  575. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +0 -1
  576. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +0 -1
  577. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +0 -1
  578. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +0 -1
  579. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +0 -1
  580. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +0 -1
  581. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +0 -1
  582. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +0 -1
  583. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +0 -1
  584. package/react/components/toolbar/appLauncher/DynamicAppLauncher.d.ts +0 -6
  585. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js +0 -23
  586. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +0 -1
  587. package/react/hooks/useWorkspace.d.ts +0 -5
  588. package/react/hooks/useWorkspace.js +0 -26
  589. package/react/hooks/useWorkspace.js.map +0 -1
  590. package/react/types/iconTypes.d.ts +0 -11
  591. package/react/types/iconTypes.js +0 -2
  592. package/react/types/iconTypes.js.map +0 -1
  593. package/react/types/searchTypes.d.ts +0 -29
  594. package/react/types/searchTypes.js +0 -2
  595. package/react/types/searchTypes.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Applications.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Applications.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,QAAQ,EAAgB,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB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MAAM;gBACrB,6BAAK,SAAS,EAAC,aAAa,iDAAiD;gBAC7E,oBAAC,MAAM,IAAC,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAC,SAAS,EAAC,UAAU,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAE,MAAM,GAAI;gBAEtG,oBAAC,MAAM,IACN,IAAI,EAAE,QAAQ,EACd,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,aAAa,EAC5D,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,MAAM,GACZ;gBAEF,oBAAC,QAAQ,IAAC,WAAW,EAAE,aAAa;oBACnC,oBAAC,eAAe,oBAAK,aAAa,EAAI,CAC5B,CACN,CAEG,CACJ,CACP,CACC,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { View } from \"./View\";\n// import { Tab } from \"../common/Tab\";\nimport { Header } from \"../common/Header\";\nimport { Button } from \"../common/Button\";\nimport { Content } from \"./Content\";\nimport { Application, ApplicationCloseReason } from \"./Application\";\nimport { ApplicationList } from \"./ApplicationList\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { DropZone, FileWithPath } from \"../common/DropZone\";\nimport { generateDefaultConfig } from \"./sdd_helpers\";\nimport { MenuType, ProjectError } from \"../../types/smartDesktopDesignerTypes\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\nimport { validateFilename, VALID_APP_EXTENSIONS } from \"../common/file_helpers\";\nimport { ApplicationProps } from \"./Application\";\nimport { ApplicationListProps } from \"./ApplicationList\";\nimport { services } from \"@finsemble/finsemble-core/\";\nimport { AddApp } from \"./AddApp\";\n\ntype AppDefinition = services.Interop.types.AppDefinition;\n\nexport type ApplicationsProps = {\n\tgetApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;\n\taddApp: typeof FSBL.Clients.SmartDesktopClient.prototype.addApp;\n\tdeleteApp: typeof FSBL.Clients.SmartDesktopClient.prototype.deleteApp;\n\tgetAppConfigTemplate: typeof FSBL.Clients.SmartDesktopClient.prototype.getAppConfigTemplate;\n\tgetMenus: typeof FSBL.Clients.SmartDesktopClient.prototype.getMenus;\n\taddMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.addMenu;\n\tupdateMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.updateMenu;\n\tisInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;\n\tisOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;\n};\n\nconst EMPTY_MENU_ERROR: ProjectError = {\n\tviewId: \"applications\",\n\tmessage: \"One or more of your app menus is empty\",\n};\n\nexport const Applications = (props: ApplicationsProps) => {\n\tconst dispatch = useDispatch();\n\tconst [editMode, setEditMode] = useState(false);\n\n\tconst apps = useSelector((state: RootState) => state.smartDesktopDesigner.apps);\n\tconst menus = useSelector<MenuType>((state: RootState) => state.smartDesktopDesigner.menus);\n\n\tconst newAppID = useSelector((state: RootState) => state.smartDesktopDesigner.newAppId);\n\n\tconst currentAppID = useSelector((state: RootState) => state.smartDesktopDesigner.currentAppId);\n\n\tif (Object.values(menus).every((menu) => menu.applications.length > 0)) {\n\t\tdispatch(SmartDesktopDesignerActions.delete_project_error(EMPTY_MENU_ERROR));\n\t} else {\n\t\tdispatch(SmartDesktopDesignerActions.set_project_error(EMPTY_MENU_ERROR));\n\t}\n\n\tfunction updateAppList() {\n\t\tprops.getApps().then((response: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_apps(response.apps));\n\t\t});\n\t}\n\n\tfunction setCurrentAppID(id: string | null) {\n\t\tif (id === null) {\n\t\t\tdispatch(SmartDesktopDesignerActions.new_app(null));\n\t\t}\n\n\t\tdispatch(SmartDesktopDesignerActions.set_current_app_id(id));\n\t\tupdateAppList();\n\t}\n\n\tconst removeAppID = (id: string) => {\n\t\t// Delete app from list of apps\n\t\tprops.deleteApp(id).then(({ err }: { err: string }) => {\n\t\t\tif (err) {\n\t\t\t\talert(err);\n\t\t\t}\n\t\t\tupdateAppList();\n\n\t\t\t// Remove reference to app from all menus\n\t\t\tprops.getMenus().then(({ menus: grabbedMenus }: { menus: MenuType }) => {\n\t\t\t\tObject.keys(grabbedMenus).forEach((menuId) => {\n\t\t\t\t\tif (!grabbedMenus[menuId].applications.includes(id)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tgrabbedMenus[menuId].applications.splice(grabbedMenus[menuId].applications.indexOf(id), 1);\n\t\t\t\t\tprops.updateMenu(menuId, grabbedMenus[menuId]).then(() => {\n\t\t\t\t\t\tupdateAppList();\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t};\n\n\t/********* Lifecycle effects *********/\n\n\t// Call updateAppList once the component has mounted\n\t// Can't call out of an effect, or it will cause an endless loop\n\tuseEffect(updateAppList, []);\n\n\tconst addDroppedApp = (file: FileWithPath, index: number) => {\n\t\tconst appId = String(new Date().getTime() + index);\n\t\tconst { path } = file;\n\n\t\t// Confirm that the file is an executable\n\t\tif (path !== undefined && validateFilename(VALID_APP_EXTENSIONS, path)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Generate defaults and then add app with those defaults\n\t\tprops.getAppConfigTemplate().then((response: any) => {\n\t\t\tconst { config }: { config: AppDefinition } = response;\n\t\t\t// Get generated displayName\n\t\t\tconst { displayName } = generateDefaultConfig({\n\t\t\t\t...config,\n\t\t\t\tpath,\n\t\t\t});\n\t\t\tconfig.name = displayName;\n\n\t\t\t// We generated appId above\n\t\t\tconfig.appId = appId;\n\n\t\t\t// A file was dropped, so we know this was a file, not a URL\n\t\t\tconfig.manifest = config.manifest ?? {};\n\t\t\tconfig.manifest.window = config.manifest.window ?? {};\n\t\t\tconfig.manifest.window.windowType = \"assimilation\";\n\t\t\tconfig.manifest.window.path = path;\n\t\t\tdelete config.manifest.window.url;\n\n\t\t\t// Add app with defaults\n\t\t\tprops.addApp(appId, config).then(() => {\n\t\t\t\tupdateAppList();\n\t\t\t});\n\t\t});\n\t};\n\n\tconst addAppByUrl = (url: string, displayName: string) => {\n\t\tconst appId = String(new Date().getTime());\n\t\tsetEditMode(false);\n\t\t// @todo: show loading spinner\n\n\t\tprops.getAppConfigTemplate().then((response: { config: AppDefinition }) => {\n\t\t\tconst { config } = response;\n\t\t\tconfig.name = displayName;\n\t\t\tconfig.appId = appId;\n\n\t\t\t// A file was dropped, so we know this was a file, not a URL\n\t\t\tconfig.manifest = config.manifest ?? {};\n\t\t\tconfig.manifest.window = config.manifest.window ?? {};\n\t\t\tdelete config.manifest.window.windowType;\n\t\t\tdelete config.manifest.window.path;\n\t\t\tconfig.manifest.window.url = url;\n\n\t\t\t// Add app with defaults\n\t\t\tprops.addApp(appId, config).then(() => {\n\t\t\t\tupdateAppList();\n\t\t\t});\n\t\t});\n\t};\n\tconst addAppByPath = (path: string, displayName: string) => {\n\t\tconst appId = String(new Date().getTime());\n\t\tsetEditMode(false);\n\t\t// @todo: show loading spinner\n\n\t\tprops.getAppConfigTemplate().then((response: { config: AppDefinition }) => {\n\t\t\tconst { config } = response;\n\t\t\tconfig.name = displayName;\n\t\t\tconfig.appId = appId;\n\n\t\t\t// A file was dropped, so we know this was a file, not a URL\n\t\t\tconfig.manifest = config.manifest ?? {};\n\t\t\tconfig.manifest.window = config.manifest.window ?? {};\n\t\t\tconfig.manifest.window.windowType = \"assimilation\";\n\t\t\tconfig.manifest.window.path = path;\n\t\t\tdelete config.manifest.window.url;\n\n\t\t\t// Add app with defaults\n\t\t\tprops.addApp(appId, config).then(() => {\n\t\t\t\tupdateAppList();\n\t\t\t});\n\t\t});\n\t};\n\n\tconst onClose = (reason: ApplicationCloseReason) => {\n\t\tif (reason === ApplicationCloseReason.NEW) {\n\t\t\tdispatch(SmartDesktopDesignerActions.new_app(new Date().getTime().toString()));\n\t\t} else if (reason === ApplicationCloseReason.CANCEL && currentAppID === newAppID) {\n\t\t\tif (currentAppID) props.deleteApp(currentAppID);\n\t\t\tsetCurrentAppID(null);\n\t\t} else {\n\t\t\tsetCurrentAppID(null);\n\t\t}\n\t};\n\n\tconst applicationProps: ApplicationProps = {\n\t\tid: currentAppID ?? \"\",\n\t\tapps,\n\t\taddApp: props.addApp,\n\t\tdeleteApp: props.deleteApp,\n\t\tgetAppConfigTemplate: props.getAppConfigTemplate,\n\t\tsetCurrentAppID,\n\t\tonClose,\n\t\tisInboundInteropAuthorized: props.isInboundInteropAuthorized,\n\t\tisOutboundInteropAuthorized: props.isOutboundInteropAuthorized,\n\t};\n\n\tconst dropZoneProps: ApplicationListProps = {\n\t\tapps: apps.filter((app) => !app?.manifest?.temporary),\n\t\tclickApp: (appID: string) => {\n\t\t\tFSBL.Clients.LauncherClient.showWindow({ componentType: appID }, { spawnIfNotFound: true }, (err, data) => {});\n\t\t},\n\t\teditApp: (appID: string) => {\n\t\t\tsetCurrentAppID(appID);\n\t\t},\n\t\tdeleteApp: removeAppID,\n\t};\n\n\tconst helpFunction = () => {\n\t\tlaunchTutorialLink(\"SDD-02-ManageApps\");\n\t};\n\n\tconst addApp = () => {\n\t\tsetEditMode(!editMode);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{currentAppID ? (\n\t\t\t\t<Application {...applicationProps} />\n\t\t\t) : (\n\t\t\t\t<View>\n\t\t\t\t\t<Header helpFunction={helpFunction}>Manage apps</Header>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t{/* <Tab> */}\n\t\t\t\t\t\t<div data-label=\"Apps\">\n\t\t\t\t\t\t\t<div className=\"frontmatter\">Click Add or drag your apps into the list.</div>\n\t\t\t\t\t\t\t<Button className=\"icon-before-add\" fashion=\"primary\" iconBefore=\"plus\" text=\"Add\" onClick={addApp} />\n\n\t\t\t\t\t\t\t<AddApp\n\t\t\t\t\t\t\t\tshow={editMode}\n\t\t\t\t\t\t\t\tcheckValidURL={FSBL.Clients.SmartDesktopClient.checkValidURL}\n\t\t\t\t\t\t\t\taddAppByUrl={addAppByUrl}\n\t\t\t\t\t\t\t\taddAppByPath={addAppByPath}\n\t\t\t\t\t\t\t\tclose={addApp}\n\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t<DropZone processFile={addDroppedApp}>\n\t\t\t\t\t\t\t\t<ApplicationList {...dropZoneProps} />\n\t\t\t\t\t\t\t</DropZone>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/* </Tab> */}\n\t\t\t\t\t</Content>\n\t\t\t\t</View>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssetsPage.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/AssetsPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,CAAC;AAsB1B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAC1B,OAAO,EACP,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACF,EAAE,EAAE,CAAC,CACtB,6BAAK,SAAS,EAAC,gBAAgB;IAC9B,kCAAU,SAAS,EAAC,gBAAgB;QACnC,6BAAK,SAAS,EAAC,sBAAsB;YACpC,+BAAO,OAAO,EAAC,sBAAsB;gBACpC,kDAA0B;gBA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CACN,CACN,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { ImagePreview, ImagePreviewSize } from \"../common/ImagePreview\";\nimport { FileInputUploadCb } from \"../common/FileInput\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport \"./AssetsPage.css\";\n\nexport type AssetsPageProps = {\n\tbaseURL: string;\n\ttoolbarIcon: string;\n\tsetToolbarIcon: (s: string) => void;\n\ttaskbarIcon: string;\n\tsetTaskbarIcon: (s: string) => void;\n\tinstallerIcon: string;\n\tsetInstallerIcon: (s: string) => void;\n\tsystemTrayIcon: string;\n\tsetSystemTrayIcon: (s: string) => void;\n\tsplashScreenImage: string;\n\tsetSplashScreenImage: (s: string) => void;\n\tsetIconsChanged: (n: number) => void;\n\tupdateSplashScreen: FileInputUploadCb;\n\tupdateToolbarIcon: FileInputUploadCb;\n\tupdateTaskbarIcon: FileInputUploadCb;\n\tupdateSystemTrayIcon: FileInputUploadCb;\n\tupdateInstallerIcon: FileInputUploadCb;\n};\n\nexport const AssetsPage = ({\n\tbaseURL,\n\ttoolbarIcon,\n\tsetToolbarIcon,\n\ttaskbarIcon,\n\tsetTaskbarIcon,\n\tinstallerIcon,\n\tsetInstallerIcon,\n\tsystemTrayIcon,\n\tsetSystemTrayIcon,\n\tsplashScreenImage,\n\tsetSplashScreenImage,\n\tsetIconsChanged,\n\tupdateSplashScreen,\n\tupdateToolbarIcon,\n\tupdateTaskbarIcon,\n\tupdateSystemTrayIcon,\n\tupdateInstallerIcon,\n}: AssetsPageProps) => (\n\t<div className=\"images-section\">\n\t\t<fieldset className=\"project-assets\">\n\t\t\t<div className=\"project-assets-field\">\n\t\t\t\t<label htmlFor=\"export-splash-screen\">\n\t\t\t\t\t<span>Splash screen</span>\n\n\t\t\t\t\t<Tooltip>The Splash screen should be 600px X 400px (W x H). Supported formats are PNG, JPG, and GIF.</Tooltip>\n\t\t\t\t</label>\n\n\t\t\t\t<div className=\"project-splash-screen-field\">\n\t\t\t\t\t<ImagePreview\n\t\t\t\t\t\tid=\"export-splash-screen\"\n\t\t\t\t\t\tvalue={splashScreenImage}\n\t\t\t\t\t\tonSetValue={(value: string) => {\n\t\t\t\t\t\t\tsetSplashScreenImage(value);\n\t\t\t\t\t\t\tsetIconsChanged(new Date().getTime());\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tuploadFunction={updateSplashScreen}\n\t\t\t\t\t\tacceptTypes={[\"image/png\", \"image/jpeg\", \"image/gif\"]}\n\t\t\t\t\t\tbaseURL={baseURL}\n\t\t\t\t\t\tpreviewSize={ImagePreviewSize.LARGE}\n\t\t\t\t\t></ImagePreview>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className=\"project-assets-field\">\n\t\t\t\t<label htmlFor=\"export-toolbar-icon\">\n\t\t\t\t\t<span>Toolbar icon</span>\n\n\t\t\t\t\t<Tooltip>The Toolbar icon should be 200px X 200px. Supported formats are PNG, JPG, and GIF.</Tooltip>\n\t\t\t\t</label>\n\n\t\t\t\t<div className=\"project-icon-field\">\n\t\t\t\t\t<ImagePreview\n\t\t\t\t\t\tid=\"export-toolbar-icon\"\n\t\t\t\t\t\tvalue={toolbarIcon}\n\t\t\t\t\t\tonSetValue={(value: string) => {\n\t\t\t\t\t\t\tsetToolbarIcon(value);\n\t\t\t\t\t\t\tsetIconsChanged(new Date().getTime());\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tuploadFunction={updateToolbarIcon}\n\t\t\t\t\t\tacceptTypes={[\"image/png\", \"image/jpeg\", \"image/gif\"]}\n\t\t\t\t\t\tbaseURL={baseURL}\n\t\t\t\t\t></ImagePreview>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className=\"project-assets-field\">\n\t\t\t\t<label htmlFor=\"export-taskbar-icon\">\n\t\t\t\t\t<span>Taskbar icon</span>\n\n\t\t\t\t\t<Tooltip>The Toolbar icon should be 400px X 400px. Supported formats are PNG and JPG</Tooltip>\n\t\t\t\t</label>\n\n\t\t\t\t<div className=\"project-icon-field\">\n\t\t\t\t\t<ImagePreview\n\t\t\t\t\t\tvalue={taskbarIcon}\n\t\t\t\t\t\tid=\"export-taskbar-icon\"\n\t\t\t\t\t\tonSetValue={(value: string) => {\n\t\t\t\t\t\t\tsetTaskbarIcon(value);\n\t\t\t\t\t\t\tsetIconsChanged(new Date().getTime());\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tuploadFunction={updateTaskbarIcon}\n\t\t\t\t\t\tacceptTypes={[\"image/png\", \"image/jpeg\"]}\n\t\t\t\t\t\tbaseURL={baseURL}\n\t\t\t\t\t></ImagePreview>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className=\"project-assets-field\">\n\t\t\t\t<label htmlFor=\"export-system-tray-icon\">\n\t\t\t\t\t<span>System Tray Icon</span>\n\n\t\t\t\t\t<Tooltip>The System tray icon should be 100px X 100px. Supported formats are PNG and JPG.</Tooltip>\n\t\t\t\t</label>\n\n\t\t\t\t<div className=\"project-icon-field\">\n\t\t\t\t\t<ImagePreview\n\t\t\t\t\t\tvalue={systemTrayIcon}\n\t\t\t\t\t\tid=\"export-system-tray-icon\"\n\t\t\t\t\t\tonSetValue={(value: string) => {\n\t\t\t\t\t\t\tsetSystemTrayIcon(value);\n\t\t\t\t\t\t\tsetIconsChanged(new Date().getTime());\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tuploadFunction={updateSystemTrayIcon}\n\t\t\t\t\t\tacceptTypes={[\"image/png\", \"image/jpeg\"]}\n\t\t\t\t\t\tbaseURL={baseURL}\n\t\t\t\t\t></ImagePreview>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div className=\"project-assets-field\">\n\t\t\t\t<label htmlFor=\"export-installer-icon\">\n\t\t\t\t\t<span>Installer Icon</span>\n\n\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\tInstaller icons must use the ICO format. You can create and ICO image from a PNG file using free online\n\t\t\t\t\t\tservices. See the User Guide for more information.\n\t\t\t\t\t</Tooltip>\n\t\t\t\t</label>\n\n\t\t\t\t<div className=\"project-icon-field\">\n\t\t\t\t\t<ImagePreview\n\t\t\t\t\t\tvalue={installerIcon}\n\t\t\t\t\t\tid=\"export-installer-icon\"\n\t\t\t\t\t\tonSetValue={(value: string) => {\n\t\t\t\t\t\t\tsetInstallerIcon(value);\n\t\t\t\t\t\t\tsetIconsChanged(new Date().getTime());\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tuploadFunction={updateInstallerIcon}\n\t\t\t\t\t\tacceptTypes={[\"image/x-icon\"]}\n\t\t\t\t\t\tbaseURL={baseURL}\n\t\t\t\t\t></ImagePreview>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</fieldset>\n\t</div>\n);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authentication.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Authentication.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAQ1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IAC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AC,4BAA4B,IAC5B,GAAG,EAAE,aAAa,CAAC,IAAI,EACvB,KAAK,EAAE,aAAa,EACpB,cAAc,EAAE,cAAc,EAC9B,0BAA0B,EAAE,KAAK,CAAC,0BAA0B,EAC5D,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;oCACnB,mBAAmB,CAAC,KAAK,CAAC,CAAC;gCAC5B,CAAC,GACA,CACF,CACI,CACD;oBACL,aAAa,IAAI,CACjB,6BAAK,SAAS,EAAC,wBAAwB;wBACtC,oBAAC,MAAM,IACN,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,EACzD,OAAO,EAAE,GAAG,EAAE;gCACb,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAC;4BACpC,CAAC,GACA,CACG,CACN,CACK,CACF,CACG,CACJ,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { Header } from \"../common/Header\";\nimport \"./css/authentication.css\";\nimport { View } from \"./View\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { AuthenticationProviderConfig } from \"./AuthenticationProviderConfig\";\nimport { AuthenticationProvider } from \"../../types/smartDesktopDesignerTypes\";\nimport { Content } from \"./Content\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport { Button } from \"../common/Button\";\n\nexport type AuthenticationProps = {\n\tgetAuthenticationProviders: () => Promise<AuthenticationProvider[]>;\n\tsetAuthenticationProviders: (authenticationProviders: any) => Promise<Error | null>;\n\ttestAuthenticationProvider: (provider: AuthenticationProvider) => Promise<null>;\n};\n\nexport const Authentication = (props: AuthenticationProps) => {\n\tconst dispatch = useDispatch();\n\tconst authProviders = useSelector((state: RootState) => state.smartDesktopDesigner.authentication.providers);\n\tconst enabledAuthProviders = authProviders.filter((provider) => provider.enabled);\n\n\tconst [isAdvancedMode, setIsAdvancedMode] = useState(false);\n\tconst shownProvider = enabledAuthProviders[0];\n\n\tuseEffect(() => {\n\t\tprops.getAuthenticationProviders().then((providers) => {\n\t\t\tproviders.forEach((provider) => {\n\t\t\t\tdispatch(SmartDesktopDesignerActions.update_auth_provider(provider));\n\t\t\t});\n\t\t});\n\t}, []);\n\n\tfunction updateAuthProviders(value: AuthenticationProvider | null) {\n\t\tconst name = value ? value.name : \"none\";\n\n\t\tprops\n\t\t\t.setAuthenticationProviders(\n\t\t\t\tauthProviders.map((provider) => {\n\t\t\t\t\tif (name === provider.name) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...value,\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...provider,\n\t\t\t\t\t\tenabled: false,\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t)\n\t\t\t.then(() => {\n\t\t\t\tif (value) {\n\t\t\t\t\tdispatch(SmartDesktopDesignerActions.update_auth_provider(value));\n\t\t\t\t}\n\n\t\t\t\tdispatch(SmartDesktopDesignerActions.enable_auth_provider(name));\n\t\t\t});\n\t}\n\n\treturn (\n\t\t<View>\n\t\t\t<Header\n\t\t\t\thelpFunction={() => {\n\t\t\t\t\tlaunchTutorialLink(\"SDD-05-Authentication\");\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tAuthentication\n\t\t\t</Header>\n\t\t\t<Content>\n\t\t\t\t<div className=\"auth-setup-content\">\n\t\t\t\t\t<form className=\"auth-setup-form\" onSubmit={(e) => e.preventDefault()}>\n\t\t\t\t\t\t<div className=\"auth-setup-fields\">\n\t\t\t\t\t\t\t<div className=\"auth-setup-provider\">\n\t\t\t\t\t\t\t\t<div className=\"auth-setup-field\">\n\t\t\t\t\t\t\t\t\t<label>Provider</label>\n\n\t\t\t\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\t\t\taria-label=\"Authentication Provider\"\n\t\t\t\t\t\t\t\t\t\tclassName=\"auth-setup-select-provider\"\n\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\t\t\t\tupdateAuthProviders(authProviders.find((p) => p.name === e.target.value) || null);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tvalue={enabledAuthProviders.map((provider) => provider.name)[0] || \"none\"}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<option value=\"none\">None</option>\n\t\t\t\t\t\t\t\t\t\t{authProviders.map((provider, index) => (\n\t\t\t\t\t\t\t\t\t\t\t<option key={index} value={provider.name}>\n\t\t\t\t\t\t\t\t\t\t\t\t{provider.name}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\t\t\t\tChoose from the list of OAuth providers to configure Single Sign On (SSO) for your project.\n\t\t\t\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{shownProvider && (\n\t\t\t\t\t\t\t\t\t<AuthenticationProviderConfig\n\t\t\t\t\t\t\t\t\t\tkey={shownProvider.name}\n\t\t\t\t\t\t\t\t\t\tvalue={shownProvider}\n\t\t\t\t\t\t\t\t\t\tisAdvancedMode={isAdvancedMode}\n\t\t\t\t\t\t\t\t\t\ttestAuthenticationProvider={props.testAuthenticationProvider}\n\t\t\t\t\t\t\t\t\t\tonChange={(value) => {\n\t\t\t\t\t\t\t\t\t\t\tupdateAuthProviders(value);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{shownProvider && (\n\t\t\t\t\t\t\t<div className=\"auth-setup-toggle-mode\">\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tclassName=\"auth-setup-toggle-mode-button\"\n\t\t\t\t\t\t\t\t\tfashion=\"ghost\"\n\t\t\t\t\t\t\t\t\ttext={!isAdvancedMode ? \"Show advanced\" : \"Hide advanced\"}\n\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\tsetIsAdvancedMode(!isAdvancedMode);\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</Content>\n\t\t</View>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationProviderConfig.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/AuthenticationProviderConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAAkC,EAAE,EAAE;IAClF,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC;IAE7B,MAAM,gBAAgB,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAE/D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACnE,M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,EAAC,OAAO,GAAG;mCACzB,CACN;QAED,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,eAAe,EAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,gBAAgB,GAAW,CACjG,CACJ,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useRef, useState } from \"react\";\nimport { AuthenticationProvider } from \"../../types/smartDesktopDesignerTypes\";\nimport { Button } from \"../common/Button\";\nimport { ButtonIcon } from \"../common/ButtonIcon\";\nimport { FinsembleToggle } from \"../common/FinsembleToggle\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\n\nexport type AuthenticationProviderProps = {\n\tvalue: AuthenticationProvider;\n\tonChange: (provider: AuthenticationProvider) => void;\n\ttestAuthenticationProvider: (provider: AuthenticationProvider) => Promise<null>;\n\tisAdvancedMode: boolean;\n};\n\nexport const AuthenticationProviderConfig = (props: AuthenticationProviderProps) => {\n\tconst provider = props.value;\n\n\tconst redirectURIField = useRef<HTMLInputElement | null>(null);\n\n\tconst [clientID, setClientID] = useState(provider.client_id || \"\");\n\tconst [endpointURL, setEndpointURL] = useState(provider.authorization_endpoint);\n\tconst [scope, setScope] = useState(provider.scope);\n\tconst [redirectURI, setRedirectURI] = useState(provider.redirect_uri);\n\tconst [nonce, setNonce] = useState(provider.nonce);\n\tconst [authError, setAuthError] = useState<string | null>(null);\n\tconst [authSuccess, setAuthSuccess] = useState<boolean>(false);\n\n\tconst checkValid = (stateValue: string, storeValue: string) => {\n\t\tif (stateValue === storeValue) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn stateValue.length > 0;\n\t};\n\n\tconst clientIDValid = checkValid(clientID, provider.client_id || \"\");\n\tconst endpointURLValid = endpointURL && FSBL.Clients.SmartDesktopClient.checkValidURL(endpointURL || \"\");\n\n\tconst save = () => {\n\t\tconst providerObject: AuthenticationProvider = {\n\t\t\t...provider,\n\t\t\t...(clientIDValid ? { client_id: clientID } : {}),\n\t\t\t// ...(secretValid ? { secret } : {}),\n\t\t\t...(endpointURLValid ? { authorization_endpoint: endpointURL } : {}),\n\t\t\t...(redirectURI ? { redirect_uri: redirectURI } : {}),\n\t\t\t...{ scope },\n\t\t\t...{ nonce },\n\t\t};\n\n\t\tsetAuthSuccess(false);\n\t\tsetAuthError(null);\n\n\t\tprops\n\t\t\t.testAuthenticationProvider(providerObject)\n\t\t\t.then(() => {\n\t\t\t\tsetAuthSuccess(true);\n\t\t\t\tprops.onChange(providerObject);\n\t\t\t})\n\t\t\t.catch((err: any) => {\n\t\t\t\tsetAuthError(err);\n\t\t\t});\n\t};\n\n\tif (!redirectURI) {\n\t\tsetRedirectURI(`https://cloud.finsemble.com/sso/oauth/response`);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{/* The simple fields */}\n\t\t\t<>\n\t\t\t\t<div className=\"auth-setup-field auth-setup-redirect\">\n\t\t\t\t\t<label>Redirect URL</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclassName=\"auth-setup-redirect-input\"\n\t\t\t\t\t\taria-label=\"Redirect URL\"\n\t\t\t\t\t\tref={redirectURIField}\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={redirectURI}\n\t\t\t\t\t\treadOnly\n\t\t\t\t\t/>\n\t\t\t\t\t<ButtonIcon\n\t\t\t\t\t\tclassName=\"auth-setup-redirect-button\"\n\t\t\t\t\t\ttext=\"Copy\"\n\t\t\t\t\t\ticon=\"copy\"\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tconst input = redirectURIField.current as HTMLInputElement;\n\t\t\t\t\t\t\tinput.focus();\n\t\t\t\t\t\t\tinput.select();\n\t\t\t\t\t\t\tdocument.execCommand(\"copy\");\n\t\t\t\t\t\t}}\n\t\t\t\t\t></ButtonIcon>\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"auth-setup-field auth-setup-endpoint-url\">\n\t\t\t\t\t<label>Endpoint URL</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\taria-label=\"Endpoint URL\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={endpointURL}\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetEndpointURL(e.target.value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\taria-invalid={!endpointURLValid}\n\t\t\t\t\t/>\n\t\t\t\t\t<Tooltip>OAuth API endpoint URL for your OAuth provider</Tooltip>\n\t\t\t\t</div>\n\t\t\t\t<div className=\"auth-setup-field auth-setup-clientid\">\n\t\t\t\t\t<label>Client ID</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\taria-label=\"Client ID\"\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tvalue={clientID}\n\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\tsetClientID(e.target.value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\taria-invalid={!clientIDValid}\n\t\t\t\t\t/>\n\t\t\t\t\t<Tooltip>The Client ID is generated by your OAuth provider</Tooltip>\n\t\t\t\t</div>\n\t\t\t</>\n\n\t\t\t{/* The advanced fields */}\n\t\t\t{props.isAdvancedMode && (\n\t\t\t\t<>\n\t\t\t\t\t<div className=\"auth-setup-field auth-setup-scope\">\n\t\t\t\t\t\t<label>Scope Parameter</label>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\taria-label=\"Scope Parameter\"\n\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\tvalue={scope}\n\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\tsetScope(e.target.value);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Tooltip>The scope accepted by your OAuth provider</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"auth-setup-field auth-setup-nonce\">\n\t\t\t\t\t\t<label>Require Nonce Parameter</label>\n\t\t\t\t\t\t<div className=\"auth-setup-nonce-wrapper\">\n\t\t\t\t\t\t\t<FinsembleToggle\n\t\t\t\t\t\t\t\tlabel=\"Require Nonce Parameter\"\n\t\t\t\t\t\t\t\tchecked={nonce}\n\t\t\t\t\t\t\t\tonChange={(value: boolean) => {\n\t\t\t\t\t\t\t\t\tsetNonce(value);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t></FinsembleToggle>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<Tooltip>If the `nonce` parameter is supported by your OAuth provider</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</>\n\t\t\t)}\n\n\t\t\t{authError && <div className=\"auth-setup-error\">Error: {authError}</div>}\n\t\t\t{authSuccess && (\n\t\t\t\t<div className=\"auth-setup-success\">\n\t\t\t\t\t<FinsembleIcon icon=\"check\" /> Configuration Saved\n\t\t\t\t</div>\n\t\t\t)}\n\n\t\t\t<div className=\"auth-setup-actions\">\n\t\t\t\t<Button fashion=\"secondary\" text=\"Test and save\" onClick={save} disabled={!endpointURLValid}></Button>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Content.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,cAAc,IAAE,KAAK,CAAC,QAAQ,CAAO,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\n\nexport const Content = (props: { children: React.ReactNode }) => <div className=\"view-content\">{props.children}</div>;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentHeader.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ContentHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,CAAC,MAAM,aAAa,GAAyC,CAAC,EAAE,IAAI,EAAe,EAAE,EAAE;IAC5F,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAE/C,OAAO,CACN,6BAAK,SAAS,EAAC,gBAAgB;QAC9B,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,kCAAO,MAAM,CAAQ,CAChB;QACN,6BAAK,SAAS,EAAC,cAAc,IAAE,IAAI,CAAO,CACrC,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\n\nexport interface HeaderProps {\n\tname?: string;\n}\n\nexport const ContentHeader: React.FunctionComponent<HeaderProps> = ({ name }: HeaderProps) => {\n\tname = !name || name == \"default\" ? \"Untitled project\" : name;\n\tconst letter = name.substr(0, 1).toUpperCase();\n\n\treturn (\n\t\t<div className=\"project-header\">\n\t\t\t<div className=\"text-icon project-title-icon\">\n\t\t\t\t<span>{letter}</span>\n\t\t\t</div>\n\t\t\t<div className=\"project-name\">{name}</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentView.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/CurrentView.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAoB,EAAE,EAAE;IACjE,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAElG,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;IAE9D,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;IAExF,IAAI,IAAI,GAAG,WAAW,CAAC,SAAS,CAAC;IAEjC,OAAO,oBAAC,IAAI,kBAAC,KAAK,EAAE,KAAK,IAAO,WAAW,CAAC,KAAa,EAAS,CAAC;AACpE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { useSelector } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { ThemeConfig } from \"./SmartDesktopDesigner\";\n\nexport type CurrentViewProps = {\n\ttheme: ThemeConfig;\n\tviews: any[];\n};\n\nexport const CurrentView = ({ theme, views }: CurrentViewProps) => {\n\tconst currentViewId = useSelector((state: RootState) => state.smartDesktopDesigner.currentViewId);\n\n\tconst flatView = views.map((section) => section.views).flat();\n\n\tconst currentView = flatView.filter((view) => view.id === currentViewId)[0] || views[0];\n\n\tlet View = currentView.component;\n\n\treturn <View theme={theme} {...(currentView.props as any)}></View>;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Export.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Export.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,O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,MAAM,CAAC,KAAK,CAAC,CAAC;oBACnC,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;wBAChB,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;4BACtB,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;yBACvB;oBACF,CAAC,EACD,MAAM,EAAE,GAAG,EAAE;wBACZ,IAAI,kBAAkB,EAAE;4BACvB,iBAAiB,CAAC,cAAc,CAAC,CAAC;yBAClC;oBACF,CAAC,GACA,CACG;YACN,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,oBAAC,WAAW,oBAAK,KAAK,IAAE,KAAK,EAAE,kBAAkB,IAAI;gBACrD,oBAAC,SAAS,oBAAK,KAAK,IAAE,KAAK,EAAE,kBAAkB,IAAI,CAC9C;YACL,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,qBAAqB;gBACnC;oBACC,yDAA8B;oBAC9B,oBAAC,gBAAgB,OAAG,CACf,CACD,CACN,CACI,CACN,CACQ,CACJ,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useState } from \"react\";\nimport { View } from \"./View\";\nimport { Header } from \"../common/Header\";\nimport { Content } from \"./Content\";\nimport { ExportCloud } from \"./ExportCloud\";\nimport { ExportZip } from \"./ExportZip\";\nimport { Publish } from \"./Publish\";\nimport { ExportDeployInfo } from \"./ExportDeployInfo\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { ProjectSaveData } from \"../../types/smartDesktopDesignerTypes\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\n\nimport \"./css/export.css\";\n\nexport type ExportProps = {\n\tprogressCheckInterval: number;\n\tgetProjectConfig: typeof FSBL.Clients.SmartDesktopClient.prototype.projectConfig;\n\tcreateProjectZip: typeof FSBL.Clients.SmartDesktopClient.prototype.createProjectZip;\n\tpublishToCosaicCloud: typeof FSBL.Clients.SmartDesktopClient.prototype.publishToCosaicCloud;\n\tgetPublishProgress: typeof FSBL.Clients.SmartDesktopClient.prototype.getPublishProgress;\n\tcopyProjectFiles: typeof FSBL.Clients.SmartDesktopClient.prototype.copyProjectFiles;\n\tupdateProjectSettings: typeof FSBL.Clients.SmartDesktopClient.prototype.updateProjectSettings;\n};\n\nexport const Export = (props: ExportProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst isPublishing = useSelector((store: RootState) => store.smartDesktopDesigner.export.isPublishing);\n\tconst deployInfo = useSelector((store: RootState) => store.smartDesktopDesigner.export.deployInfo);\n\tconst project = useSelector((state: RootState) => state.smartDesktopDesigner.projectInfo);\n\tconst [tmpProjectName, setTmpProjectName] = useState(project?.name === \"default\" ? \"\" : project?.name);\n\tconst isProjectNameValid = FSBL.Clients.SmartDesktopClient.checkValidProjectName(tmpProjectName);\n\tconst setProject = (value: ProjectSaveData) => {\n\t\tdispatch(SmartDesktopDesignerActions.set_project_info(value));\n\t};\n\n\tconst onSaveProjectName = (name: string) => {\n\t\tprops.updateProjectSettings({ ...project, name: name }).then(({ err }) => {\n\t\t\tif (err) {\n\t\t\t\tFSBL.Clients.Logger.system.error(`ERROR updateProjectSettings: ${JSON.stringify(err)}`);\n\t\t\t} else {\n\t\t\t\tsetProject({\n\t\t\t\t\t...project,\n\t\t\t\t\tname,\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t};\n\n\treturn (\n\t\t<View>\n\t\t\t<Header\n\t\t\t\thelpFunction={() => {\n\t\t\t\t\tlaunchTutorialLink(\"SDD-10-Finish\");\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tPublish project\n\t\t\t</Header>\n\n\t\t\t<Content>\n\t\t\t\t{isPublishing ? (\n\t\t\t\t\t<Publish {...props} />\n\t\t\t\t) : (\n\t\t\t\t\t<div className=\"export-block\">\n\t\t\t\t\t\t<h2>Desktop Project</h2>\n\t\t\t\t\t\t<div className=\"export-project-name\">\n\t\t\t\t\t\t\t<label htmlFor=\"projectName\">Project name</label>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tclassName=\"project-name-field\"\n\t\t\t\t\t\t\t\tid=\"project-name\"\n\t\t\t\t\t\t\t\tname=\"project-name\"\n\t\t\t\t\t\t\t\tplaceholder=\"Untitled\"\n\t\t\t\t\t\t\t\taria-invalid={!isProjectNameValid}\n\t\t\t\t\t\t\t\tvalue={tmpProjectName}\n\t\t\t\t\t\t\t\tstyle={{ fontSize: 14 }}\n\t\t\t\t\t\t\t\tonInput={(e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\t\t\t\t\t\t\tsetTmpProjectName(e.target.value);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonKeyDown={(e) => {\n\t\t\t\t\t\t\t\t\tif (e.key === \"Enter\") {\n\t\t\t\t\t\t\t\t\t\te.currentTarget.blur();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\t\t\t\tif (isProjectNameValid) {\n\t\t\t\t\t\t\t\t\t\tonSaveProjectName(tmpProjectName);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"export-methods\">\n\t\t\t\t\t\t\t<ExportCloud {...props} valid={isProjectNameValid} />\n\t\t\t\t\t\t\t<ExportZip {...props} valid={isProjectNameValid} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{deployInfo && (\n\t\t\t\t\t\t\t<div className=\"deployInfoContainer\">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p>Project installer link:</p>\n\t\t\t\t\t\t\t\t\t<ExportDeployInfo />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Content>\n\t\t</View>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExportCloud.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ExportCloud.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACtD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnG,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAM3F,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;YACnC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,gBAAgB,EAAE,CAAC;YACrD,MAAM,iBAAiB,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,UAAU,CAAC;YAEpD,IAAI,iBAAiB,EAAE;gBACtB,QAAQ,CAAC,2BAA2B,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;aACzE;QACF,CAAC,CAAC;QACF,gBAAgB,EAAE,CAAC;IACpB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,6BAAK,SAAS,EAAC,+BAA+B;QAC5C,UAAU,CAAC,CAAC,CAAC,CACb;YACC,iLAGI,CACC,CACN,CAAC,CAAC,CAAC,CACH;YACC,yMAGI,CACC,CACN;QAED,oBAAC,aAAa,IAAC,MAAM,EAAE,aAAa,GAAkB;QAEtD,6BAAK,SAAS,EAAC,uBAAuB;YACrC,oBAAC,MAAM,IACN,QAAQ,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAClD,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,GAAG,EAAE;oBACb,QAAQ,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;oBAC9D,KAAK;yBACH,oBAAoB,EAAE;yBACtB,IAAI,CAAC,CAAC,iBAAiB,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;yBACrG,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACpF,CAAC,GACA,CACG,CACD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useEffect } from \"react\";\nimport { Button } from \"../common/Button\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { ExportProps } from \"./Export\";\nimport { ProjectErrors } from \"./ProjectErrors\";\n\nexport type ExportCloudProps = ExportProps & {\n\tvalid: boolean;\n};\n\nexport const ExportCloud = (props: ExportCloudProps) => {\n\tconst dispatch = useDispatch();\n\tconst deployInfo = useSelector((store: RootState) => store.smartDesktopDesigner.export.deployInfo);\n\tconst projectErrors = useSelector((store: RootState) => store.smartDesktopDesigner.errors);\n\n\t/**\n\t * This will run once. We'll check to see if there's a current deployInfo for our\n\t * project, in other words has it already been published.\n\t */\n\tuseEffect(() => {\n\t\tconst getProjectConfig = async () => {\n\t\t\tconst projectConfig = await props.getProjectConfig();\n\t\t\tconst currentDeployInfo = projectConfig?.deployInfo;\n\n\t\t\tif (currentDeployInfo) {\n\t\t\t\tdispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo));\n\t\t\t}\n\t\t};\n\t\tgetProjectConfig();\n\t}, []);\n\n\treturn (\n\t\t<div className=\"export-method package-project\">\n\t\t\t{deployInfo ? (\n\t\t\t\t<div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tPublish your project to share it with your users. Click Publish to create a project installer. Please be\n\t\t\t\t\t\tpatient, it can take up to 20 minutes.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t) : (\n\t\t\t\t<div>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tYou can continue working on your desktop project after you publish it. To update the project, republish it.\n\t\t\t\t\t\tUsers will see the changes when they restart their desktop.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t)}\n\n\t\t\t<ProjectErrors errors={projectErrors}></ProjectErrors>\n\n\t\t\t<div className=\"export-method-actions\">\n\t\t\t\t<Button\n\t\t\t\t\tdisabled={projectErrors.length > 0 || !props.valid}\n\t\t\t\t\tfashion=\"secondary\"\n\t\t\t\t\ttext=\"Publish\"\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tdispatch(SmartDesktopDesignerActions.set_is_publishing(true));\n\t\t\t\t\t\tprops\n\t\t\t\t\t\t\t.publishToCosaicCloud()\n\t\t\t\t\t\t\t.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))\n\t\t\t\t\t\t\t.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExportDeployInfo.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ExportDeployInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,aAAa,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAE5D,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAEnG,OAAO,CACN,6BAAK,SAAS,EAAC,oBAAoB;QAClC,6CAAkB,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,QAAC,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAI;QAC5G,oBAAC,UAAU,IACV,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,GAAG,EAAE;gBACb,MAAM,KAAK,GAAG,aAAa,CAAC,OAA2B,CAAC;gBACxD,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACvB,KAAK,CAAC,KAAK,EAAE,CAAC;gBACd,KAAK,CAAC,MAAM,EAAE,CAAC;gBACf,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;gBAC7B,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;YACvB,CAAC,GACA,CACG,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useRef } from \"react\";\nimport { ButtonIcon } from \"../common/ButtonIcon\";\nimport { useSelector } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\n\nexport const ExportDeployInfo = () => {\n\tconst publishURLRef = useRef<HTMLInputElement | null>(null);\n\n\tconst deployInfo = useSelector((store: RootState) => store.smartDesktopDesigner.export.deployInfo);\n\n\treturn (\n\t\t<div className=\"export-publish-url\">\n\t\t\t<input aria-label=\"Publish URL\" type=\"text\" disabled value={deployInfo?.installerURL} ref={publishURLRef} />\n\t\t\t<ButtonIcon\n\t\t\t\ttext=\"Copy\"\n\t\t\t\ticon=\"copy\"\n\t\t\t\tonClick={() => {\n\t\t\t\t\tconst input = publishURLRef.current as HTMLInputElement;\n\t\t\t\t\tinput.disabled = false;\n\t\t\t\t\tinput.focus();\n\t\t\t\t\tinput.select();\n\t\t\t\t\tdocument.execCommand(\"copy\");\n\t\t\t\t\tinput.disabled = true;\n\t\t\t\t}}\n\t\t\t/>\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExportZip.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ExportZip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClG,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE3F,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KA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BACD,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;wBACf,iBAAiB,CAAC,IAAI,IAAI,EAAE,CAAC,kBAAkB,EAAE,CAAC,CAAC;wBAEnD,IAAI,KAAK,EAAE;4BACV,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;yBACjC;oBACF,CAAC,CAAC;yBACD,OAAO,CAAC,GAAG,EAAE;wBACb,YAAY,CAAC,KAAK,CAAC,CAAC;oBACrB,CAAC,CAAC,CAAC;gBACL,CAAC,GACA,CACF,CAAC,CAAC,CAAC,CACH,gEAAuC,CACvC;YACA,cAAc,KAAK,IAAI,IAAI,eAAe,GAAG,CAAC,IAAI,CAClD,8BAAM,SAAS,EAAC,kBAAkB;gBACjC,oBAAC,aAAa,IAAC,SAAS,EAAC,uBAAuB,EAAC,IAAI,EAAC,OAAO,GAAiB;;gBACpE,eAAe;;gBAAY,cAAc,CAC7C,CACP;YACA,eAAe,KAAK,IAAI,IAAI,8BAAM,SAAS,EAAC,mBAAmB,IAAE,eAAe,CAAQ,CAEpF,CACD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useState } from \"react\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { useSelector } from \"../../store\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\nimport { ExportProps } from \"./Export\";\nimport { Button } from \"../common/Button\";\nimport { Checkbox } from \"../common/Checkbox\";\n\nexport type ExportZipProps = ExportProps & {\n\tvalid: boolean;\n};\n\nexport const ExportZip = (props: ExportZipProps) => {\n\tconst projectSettings = useSelector((store: RootState) => store.smartDesktopDesigner.projectInfo);\n\tconst projectErrors = useSelector((store: RootState) => store.smartDesktopDesigner.errors);\n\n\tconst [isCopying, setIsCopying] = useState(false);\n\tconst [lastExportCount, setLastExportCount] = useState<number>(0);\n\tconst [lastExportTime, setLastExportTime] = useState<null | string>(null);\n\tconst [lastExportError, setLastExportError] = useState<null | string>(null);\n\tconst [iUnderstand, setIUnderstand] = useState(false);\n\n\treturn (\n\t\t<div className=\"export-method\">\n\t\t\t<div>\n\t\t\t\t<h2>Package project</h2>\n\n\t\t\t\t<p>\n\t\t\t\t\tMany Finsemble features can&apos;t be configured by using SDD. Share your project with developers or IT to\n\t\t\t\t\ttake it further.\n\t\t\t\t</p>\n\n\t\t\t\t<Checkbox\n\t\t\t\t\tlabel=\"I understand that packaging a project is a one-time only operation. A packaged .zip file can’t be imported back into SDD.\"\n\t\t\t\t\tchecked={iUnderstand}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tsetIUnderstand(!iUnderstand);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div className=\"export-method-actions\">\n\t\t\t\t{!isCopying ? (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tclassName=\"export-method-button\"\n\t\t\t\t\t\tdisabled={projectErrors.length > 0 || !props.valid || !iUnderstand}\n\t\t\t\t\t\tfashion=\"secondary\"\n\t\t\t\t\t\ttext=\"Package\"\n\t\t\t\t\t\tbuttonAttributes={{ \"data-target-upload-path\": \"\" }}\n\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\tsetIsCopying(true);\n\t\t\t\t\t\t\tsetLastExportError(null);\n\n\t\t\t\t\t\t\tprops\n\t\t\t\t\t\t\t\t.copyProjectFiles(projectSettings.name, e.currentTarget.dataset.targetUploadPath)\n\t\t\t\t\t\t\t\t.catch((error) => {\n\t\t\t\t\t\t\t\t\tsetLastExportError(error);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.then((files) => {\n\t\t\t\t\t\t\t\t\tsetLastExportTime(new Date().toLocaleTimeString());\n\n\t\t\t\t\t\t\t\t\tif (files) {\n\t\t\t\t\t\t\t\t\t\tsetLastExportCount(files.length);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.finally(() => {\n\t\t\t\t\t\t\t\t\tsetIsCopying(false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<div>Exporting to seed project...</div>\n\t\t\t\t)}\n\t\t\t\t{lastExportTime !== null && lastExportCount > 0 && (\n\t\t\t\t\t<span className=\"last-export-time\">\n\t\t\t\t\t\t<FinsembleIcon className=\"last-export-time-icon\" icon=\"check\"></FinsembleIcon>\n\t\t\t\t\t\tExported {lastExportCount} files at {lastExportTime}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t{lastExportError !== null && <span className=\"last-export-error\">{lastExportError}</span>}\n\t\t\t\t{/* <button type=\"submit\">Share to Github</button> */}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GettingStarted.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/GettingStarted.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,2BAA2B,CAAC;AAInC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,OAAO,CACN;QACC,6BAAK,SAAS,EAAC,2BAA2B,GAAG;QAC7C,oBAAC,IAAI;YACJ,oBAAC,MAAM,IACN,YAAY,EAAE,GAAG,EAAE;oBAClB,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;gBACtC,CAAC,kCAGO;YAET,oBAAC,OAAO;gBACP,4RAII;gBAEJ,6BAAK,SAAS,EAAC,MAAM;oBACpB,6BAAK,GAAG,EAAC,yCAAyC,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,GAAG,CAC7E,CACG,CACJ,CACL,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { useDispatch } from \"../../store\";\nimport { Header } from \"../common/Header\";\nimport { ButtonTile } from \"../common/ButtonTile\";\nimport { View } from \"./View\";\nimport { Content } from \"./Content\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\n\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\n\nimport \"./css/getting-started.css\";\n\nexport type GettingStartedProps = {};\n\nexport const GettingStarted = () => {\n\tconst dispatch = useDispatch();\n\n\treturn (\n\t\t<>\n\t\t\t<div className=\"getting-started-gray-back\" />\n\t\t\t<View>\n\t\t\t\t<Header\n\t\t\t\t\thelpFunction={() => {\n\t\t\t\t\t\tlaunchTutorialLink(\"SDD-01-Welcome\");\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\tYour Smart Desktop Designer\n\t\t\t\t</Header>\n\n\t\t\t\t<Content>\n\t\t\t\t\t<p>\n\t\t\t\t\t\tDesign a desktop for your users. Add, manage, and remove apps, configure the desktop look to follow your\n\t\t\t\t\t\tbranding, and arrange workspaces. When you’re done, you can publish your desktop to share with others or\n\t\t\t\t\t\tpackage it for further development.\n\t\t\t\t\t</p>\n\n\t\t\t\t\t<div className=\"hero\">\n\t\t\t\t\t\t<img src=\"/build/assets/img/finsemble-display.png\" width=\"436px\" height=\"354px\" />\n\t\t\t\t\t</div>\n\t\t\t\t</Content>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Navigation.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAA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nimport { useSelector, useDispatch } from \"../../store\";\n\nimport { ViewSectionInfo } from \"../../types/smartDesktopDesignerTypes\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport \"./css/nav.css\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\nimport { Tooltip } from \"../common/Tooltip\";\n\nexport type NavigationProps = {\n\tviews: ViewSectionInfo[];\n};\n\nexport const Navigation = (props: NavigationProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst { views } = props;\n\n\tconst currentViewId = useSelector((state: RootState) => state.smartDesktopDesigner.currentViewId);\n\tconst errors = useSelector((state: RootState) => state.smartDesktopDesigner.errors);\n\tconst isReviewingErrors = useSelector((state: RootState) => state.smartDesktopDesigner.isReviewingErrors);\n\n\tif (currentViewId === null) {\n\t\tdispatch(SmartDesktopDesignerActions.change_view(views[0].views[0].id));\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{views.map((section, i) => (\n\t\t\t\t<div key={`nav-section-${i}`} className=\"nav-section\">\n\t\t\t\t\t{section.showLabel && <div className=\"nav-label\">{section.label}</div>}\n\t\t\t\t\t<ul className=\"nav\">\n\t\t\t\t\t\t{section.views.map((view) => (\n\t\t\t\t\t\t\t<li key={view.name} className={[\"nav-item\", view.id === currentViewId ? \"active\" : \"\"].join(\" \")}>\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\tid={`${view.id}-nav-link`}\n\t\t\t\t\t\t\t\t\thref=\"#\"\n\t\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\tdispatch(SmartDesktopDesignerActions.change_view(view.id));\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{isReviewingErrors &&\n\t\t\t\t\t\t\t\t\t\tview.id !== \"export\" &&\n\t\t\t\t\t\t\t\t\t\terrors\n\t\t\t\t\t\t\t\t\t\t\t.filter((error) => error.viewId === view.id)\n\t\t\t\t\t\t\t\t\t\t\t.map((error, index) => (\n\t\t\t\t\t\t\t\t\t\t\t\t<div key={index} className=\"nav-error-icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Tooltip type=\"warn\">{error.message}</Tooltip>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t<FinsembleIcon className=\"nav-icon\" icon={view.icon}></FinsembleIcon>\n\t\t\t\t\t\t\t\t\t<div className={[\"nav-icon\", view.icon].join(\" \")}></div>\n\t\t\t\t\t\t\t\t\t{view.name}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectErrors.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ProjectErrors.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,0BAA0B,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAE1G,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,iBAAiB,EAAE;YACvB,QAAQ,CAAC,2BAA2B,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;SACzE;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,6BAAK,SAAS,EAAC,0BAA0B,IACvC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7B,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,GAAG,EAAE;YACb,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACjE,CAAC;QAED,oBAAC,aAAa,IAAC,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,oBAAoB,GAAiB;QACvF,KAAK,CAAC,OAAO,CACT,CACN,CAAC,CACG,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useEffect } from \"react\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { ProjectError } from \"../../types/smartDesktopDesignerTypes\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\n\nimport \"./css/project-errors.css\";\n\nexport type ProjectErrorsProps = {\n\terrors: ProjectError[];\n};\n\nexport const ProjectErrors = (props: ProjectErrorsProps) => {\n\tconst dispatch = useDispatch();\n\tconst { errors } = props;\n\n\tconst isReviewingErrors = useSelector((state: RootState) => state.smartDesktopDesigner.isReviewingErrors);\n\n\tuseEffect(() => {\n\t\tif (!isReviewingErrors) {\n\t\t\tdispatch(SmartDesktopDesignerActions.set_reviewing_project_errors(true));\n\t\t}\n\t}, []);\n\n\treturn (\n\t\t<div className=\"project-errors-container\">\n\t\t\t{errors.map((error, index) => (\n\t\t\t\t<div\n\t\t\t\t\tkey={index}\n\t\t\t\t\tclassName=\"project-error\"\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tdispatch(SmartDesktopDesignerActions.change_view(error.viewId));\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<FinsembleIcon className=\"project-error-icon\" icon=\"exclamation-circle\"></FinsembleIcon>\n\t\t\t\t\t{error.message}\n\t\t\t\t</div>\n\t\t\t))}\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Publish.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Publish.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAyB,CAAC,CAAC;IAE5E,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK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AAC,UAAU,CAAC,CAAC,CAAC,CAC7C,6BAAK,SAAS,EAAC,0BAA0B,GAAO,CAChD,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CACxC,6BAAK,SAAS,EAAC,wBAAwB;oBACtC,oBAAC,aAAa,IAAC,SAAS,EAAC,6BAA6B,EAAC,IAAI,EAAC,OAAO,GAAiB,CAC/E,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,oBAAC,aAAa,IAAC,SAAS,EAAC,+BAA+B,EAAC,IAAI,EAAC,OAAO,GAAiB,CACjF,CACN,CACI;gBACN,6BAAK,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAO,CACpF,CACN,CACD,CAAC;QACH,CAAC,CAAC,CACG;QACL,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,yBAAyB;YACvC,mDAAyB;YACzB,gRAII;YACJ,oBAAC,gBAAgB,OAAG,CACf,CACN,CACC,CACH,CACI,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useState, useEffect } from \"react\";\nimport { PublishProgress } from \"./PublishProgress\";\nimport { ExportDeployInfo } from \"./ExportDeployInfo\";\nimport { Button } from \"../common/Button\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { ProgressState } from \"../../types/smartDesktopDesignerTypes\";\nimport { ExportProps } from \"./Export\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\nimport { FEA } from \"@finsemble/finsemble-core\";\n\ntype ProgressItem = FEA.ProgressItem;\n\nexport type PublishProps = ExportProps;\n\nexport const Publish = (props: PublishProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst [currentStep, setCurrentStep] = useState(\"\");\n\tconst [stepProgress, setStepProgress] = useState([] as Array<ProgressItem>);\n\n\tconst exportContext = useSelector((state: RootState) => state.smartDesktopDesigner.export);\n\n\tconst { deployInfo, publishError } = exportContext;\n\n\tconst tryAgain = () => {\n\t\tsetCurrentStep(\"\");\n\t\tsetStepProgress([]);\n\t\tdispatch(SmartDesktopDesignerActions.set_deploy_info(null));\n\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(null));\n\n\t\tprops\n\t\t\t.publishToCosaicCloud()\n\t\t\t.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))\n\t\t\t.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));\n\t};\n\n\tconst reset = () => {\n\t\tdispatch(SmartDesktopDesignerActions.set_is_publishing(false));\n\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(null));\n\t};\n\n\tconst hasError = stepProgress.some((step) => step.state === ProgressState.Error);\n\n\tconst didFinish =\n\t\t(stepProgress.length > 0 &&\n\t\t\tstepProgress.every((step) => {\n\t\t\t\tif (step.state === ProgressState.Error) {\n\t\t\t\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(step.error));\n\t\t\t\t}\n\t\t\t\treturn step.state === ProgressState.Finished;\n\t\t\t})) ||\n\t\thasError;\n\n\tuseEffect(() => {\n\t\tlet debounceTimeout: any = null;\n\t\tif (!didFinish) {\n\t\t\tdebounceTimeout = setInterval(() => {\n\t\t\t\tprops.getPublishProgress().then((data) => {\n\t\t\t\t\tsetCurrentStep(data.currentStep);\n\t\t\t\t\tsetStepProgress(Object.values(data.steps));\n\n\t\t\t\t\t// Finished! When the installer step reaches state \"Finished\"\n\t\t\t\t\tif (data.steps[\"cloud\"].state === ProgressState.Finished) {\n\t\t\t\t\t\t// dispatch(SmartDesktopDesignerActions.SET_IS_PUBLISHING(false));\n\t\t\t\t\t\tclearInterval(debounceTimeout);\n\t\t\t\t\t\treset();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}, props.progressCheckInterval);\n\t\t}\n\n\t\treturn () => {\n\t\t\tif (debounceTimeout) {\n\t\t\t\tclearInterval(debounceTimeout);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\treturn (\n\t\t<div className=\"export-publish-container\">\n\t\t\t{publishError ? (\n\t\t\t\t<div className=\"export-publish-error\">\n\t\t\t\t\t<h3>Your project was not published</h3>\n\n\t\t\t\t\t<p>An error occurred while trying to publish.</p>\n\t\t\t\t\t<p className=\"export-publish-error-message\">&quot;{publishError}&quot;</p>\n\n\t\t\t\t\t<div className=\"export-error-actions\">\n\t\t\t\t\t\t<Button fashion=\"ghost\" text=\"Cancel\" onClick={reset} />\n\t\t\t\t\t\t<Button className=\"export-error-btn\" fashion=\"secondary\" text=\"Try again\" onClick={tryAgain} />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<h2>Publishing...</h2>\n\n\t\t\t\t\t<div className={[\"export-publish-progress\", hasError ? \"export-publish-has-error\" : \"\"].join(\" \")}>\n\t\t\t\t\t\t{[\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"initialize\",\n\t\t\t\t\t\t\t\tdescription: \"Creating a location for the project\",\n\t\t\t\t\t\t\t\terror: \"Failed to create a location for the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"zip\",\n\t\t\t\t\t\t\t\tdescription: \"Zipping project\",\n\t\t\t\t\t\t\t\terror: \"Failed to zip the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"upload\",\n\t\t\t\t\t\t\t\tdescription: \"Uploading project\",\n\t\t\t\t\t\t\t\terror: \"Failed to upload the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"cloud\",\n\t\t\t\t\t\t\t\tdescription: \"Creating installer and site\",\n\t\t\t\t\t\t\t\terror: \"Failed to publish\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].map((step) => {\n\t\t\t\t\t\t\tlet data = stepProgress.find((item) => item.step === step.name);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tdata && (\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tkey={step.name}\n\t\t\t\t\t\t\t\t\t\tclassName={[\n\t\t\t\t\t\t\t\t\t\t\t\"publish-progress-container\",\n\t\t\t\t\t\t\t\t\t\t\tcurrentStep === step.name ? \"publish-current-step\" : \"\",\n\t\t\t\t\t\t\t\t\t\t].join(\" \")}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-icon\">\n\t\t\t\t\t\t\t\t\t\t\t{data.state === ProgressState.Started ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<PublishProgress {...data}></PublishProgress>\n\t\t\t\t\t\t\t\t\t\t\t) : data.state === ProgressState.NotStarted ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-pending\"></div>\n\t\t\t\t\t\t\t\t\t\t\t) : data.state === ProgressState.Error ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-error\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FinsembleIcon className=\"publish-progress-error-icon\" icon=\"times\"></FinsembleIcon>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-success\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FinsembleIcon className=\"publish-progress-success-icon\" icon=\"check\"></FinsembleIcon>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-text\">{data.error ? step.error : step.description}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t\t{deployInfo && (\n\t\t\t\t\t\t<div className=\"export-publish-uploaded\">\n\t\t\t\t\t\t\t<h3>Project uploaded</h3>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\tYour project has been uploaded to the cloud. It will take several minutes to generate an installer.\n\t\t\t\t\t\t\t\tShare the installer link with your team. The desktop you&apos;ve created will be available shortly by\n\t\t\t\t\t\t\t\tdownloading and installing from the link.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<ExportDeployInfo />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishProgress.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/PublishProgress.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9E,MAAM,CAAC,MAAM,eAAe,GAAkD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACtG,6BAAK,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3E,oBAAC,mBAAmB,IAKnB,KAAK,EAAE,eAAe,EACtB,WAAW,EAAE,EAAE,EACf,MAAM,EAAE,WAAW,CAAC;YACnB,sBAAsB,EAAE,GAAG;YAC3B,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;SAC1B,CAAC,GACoB,CAClB,CACN,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\n\nimport { CircularProgressbar, buildStyles } from \"react-circular-progressbar\";\n\nexport type PublishProgressProps = {\n\tpercentComplete: number;\n};\n\nexport const PublishProgress: React.FunctionComponent<PublishProgressProps> = ({ percentComplete }) => (\n\t<div className=\"publish-progress-indicator\" style={{ width: 24, height: 24 }}>\n\t\t<CircularProgressbar\n\t\t\t// strokeWidth={24}\n\t\t\t// reduction={0}\n\t\t\t// hideBall={true}\n\t\t\t// progress={percentComplete}\n\t\t\tvalue={percentComplete}\n\t\t\tstrokeWidth={15}\n\t\t\tstyles={buildStyles({\n\t\t\t\tpathTransitionDuration: 0.5,\n\t\t\t\tpathColor: `#42a5ba`,\n\t\t\t\ttrailColor: \"#373b43\",\n\t\t\t\tbackgroundColor: \"#3e98c7\",\n\t\t\t})}\n\t\t></CircularProgressbar>\n\t</div>\n);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemePage.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ThemePage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,iBAAiB,CAAC;AASzB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,YAAY,EAAE,KAAK,EAAkB,EAAE,EAAE;IACpE,MAAM,mBAAmB,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,CAC3C,oBAAC,WAAW,IACX,EAAE,EAAE,EAAE,EACN,UAAU,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,EAClC,WAAW,EAAE,CAAC,QAAgB,EAAE,EAAE;YACjC,IAAI,EAAE,KAAK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AAoB;gBACvC,6BAAK,SAAS,EAAC,2BAA2B;oBACzC,8CAAwB;oBAExB,oBAAC,OAAO,0FAA0F,CAC7F;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,iBAAiB,cAAgB;oBAE/C,mBAAmB,CAAC,iBAAiB,CAAC,CAClC;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,mBAAmB,mBAAqB;oBAEtD,mBAAmB,CAAC,mBAAmB,CAAC,CACpC,CACI;YAEX,kCAAU,SAAS,EAAC,oBAAoB;gBACvC,6BAAK,SAAS,EAAC,2BAA2B;oBACzC,6DAAuC;oBAEvC,oBAAC,OAAO,wCAAwC,CAC3C;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,cAAc,cAAgB;oBAE5C,mBAAmB,CAAC,cAAc,CAAC,CAC/B;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,gBAAgB,mBAAqB;oBAEnD,mBAAmB,CAAC,gBAAgB,CAAC,CACjC,CACI;YAEX,kCAAU,SAAS,EAAC,oBAAoB;gBACvC,6BAAK,SAAS,EAAC,2BAA2B;oBACzC,6CAAuB;oBAEvB,oBAAC,OAAO,oDAAoD,CACvD;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,iBAAiB,cAAgB;oBAE/C,mBAAmB,CAAC,iBAAiB,CAAC,CAClC;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,mBAAmB,mBAAqB;oBAEtD,mBAAmB,CAAC,mBAAmB,CAAC,CACpC,CACI,CACN,CACD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport { ColorPicker, colorToRGBA, RGBA_CHANNEL } from \"../common/ColorPicker\";\nimport \"./ThemePage.css\";\n\nexport type ThemeBundle = { [key: string]: string };\n\nexport type ThemePageProps = {\n\tupdateThemes: (id: string, newValue: string) => void;\n\ttheme: ThemeBundle;\n};\n\nexport const ThemePage = ({ updateThemes, theme }: ThemePageProps) => {\n\tconst generateColorPicker = (id: string) => (\n\t\t<ColorPicker\n\t\t\tid={id}\n\t\t\tstartColor={theme[`--${id}`] || \"\"}\n\t\t\tupdateColor={(newColor: string) => {\n\t\t\t\tif (id === \"font-color\") {\n\t\t\t\t\tconst rgba = colorToRGBA(newColor),\n\t\t\t\t\t\trgb = [rgba[RGBA_CHANNEL.RED], rgba[RGBA_CHANNEL.GREEN], rgba[RGBA_CHANNEL.BLUE]],\n\t\t\t\t\t\talpha = 0.3; // (rgba[RGBA_CHANNEL.ALPHA] / 255)\n\n\t\t\t\t\tupdateThemes(`--toolbar-separator`, `1px solid rgba(${rgb.join(\", \")}, ${alpha})`);\n\t\t\t\t}\n\n\t\t\t\tupdateThemes(`--${id}`, newColor);\n\t\t\t}}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<div className=\"theme-settings\">\n\t\t\t<div className=\"theme-colors\">\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Font settings</legend>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"font-color\">Primary font color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"font-color\")}\n\t\t\t\t\t\t<Tooltip>Main text color. Make sure there is enough contrast against the primary background.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-5\">Secondary font color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-5\")}\n\t\t\t\t\t\t<Tooltip>Secondary text color. Make sure there is enough contrast against the primary background.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"font-color-2\">Contrast color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"font-color-2\")}\n\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\tColor of text that is not against a typical background. Make it light if you have a light theme, or dark\n\t\t\t\t\t\t\tif you have a dark theme.\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\n\t\t\t<div className=\"theme-colors\">\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Brand color</legend>\n\n\t\t\t\t\t\t<Tooltip>The primary accent color that affects icons, form elements, buttons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-primary\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-primary\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-primary-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-primary-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Background color</legend>\n\n\t\t\t\t\t\t<Tooltip>Background color of desktop components such as the Toolbar and window Titlebar.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary\">Primary background</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-1\">Secondary background</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Navigation buttons</legend>\n\n\t\t\t\t\t\t<Tooltip>Background color for navigation buttons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-2\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-2\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Highlights and mouseover colors</legend>\n\n\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\tColors used to highlight particular elements or when a user mouses over selected elements.\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-3\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-3\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-4\">Secondary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-4\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Success</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of messages indicating success and affirmations, such as checkmark icons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-positive\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-positive\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-positive-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-positive-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Reminders and warnings</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of non-critical alerts.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-aware\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-aware\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-aware-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-aware-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Errors</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of critical errors and information.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-negative\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-negative\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-negative-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-negative-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Themes.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AC,IAAI;QACJ,oBAAC,OAAO;YACP,6BAAK,SAAS,EAAC,YAAY;gBAC1B,oBAAC,UAAU,IACV,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAChC,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,eAAe,IAAI,EAAE,EAC9B,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,GACvC,CACG,CACG,CACJ,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useState, useEffect } from \"react\";\nimport { View } from \"./View\";\nimport { Header } from \"../common/Header\";\nimport { Content } from \"./Content\";\n\n// Copied from <Appearance>\nimport { Appearance } from \"./Appearance\";\nimport { darkTheme, lightTheme } from \"./themeDefinitions\";\nimport { ThemeBundle } from \"./ThemePage\";\nimport { ProjectSaveData, SDServerInfo } from \"../../types/smartDesktopDesignerTypes\";\n\nexport type ThemeProps = {\n\tgetSDServerInfo: (cb: Function) => void;\n\tupdateProjectSettings: (obj: ProjectSaveData) => Promise<{ err: string | undefined }>;\n\tareYouSure: (affirmativeCallback: Function) => void;\n\tupdateThemes: (id: string, newValue: string) => void;\n\tupdateSplashScreen: any;\n\tupdateToolbarIcon: any;\n\tupdateTaskbarIcon: any;\n\tupdateSystemTrayIcon: any;\n\tupdateInstallerIcon: any;\n\ttheme: {\n\t\tthemes: {\n\t\t\tDefault: ThemeBundle;\n\t\t};\n\t};\n};\n\nexport const Themes = ({\n\tgetSDServerInfo,\n\tupdateProjectSettings,\n\tareYouSure,\n\tupdateThemes,\n\tupdateSplashScreen,\n\tupdateToolbarIcon,\n\tupdateTaskbarIcon,\n\tupdateSystemTrayIcon,\n\tupdateInstallerIcon,\n\ttheme,\n}: ThemeProps) => {\n\tconst [applicationRoot, setApplicationRoot] = useState(\"\");\n\tconst [project, setProject] = useState({\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t});\n\n\t// Copied from <Appearance>\n\tconst [toolbarIcon, setToolbarIcon] = useState(project.export.toolbarIcon);\n\tconst [taskbarIcon, setTaskbarIcon] = useState(project.export.taskbarIcon);\n\tconst [installerIcon, setInstallerIcon] = useState(project.export.installerIcon);\n\tconst [systemTrayIcon, setSystemTrayIcon] = useState(project.export.systemTrayIcon);\n\tconst [splashScreenImage, setSplashScreenImage] = useState(project.export.splashScreenImage);\n\tconst [iconsChanged, setIconsChanged] = useState(0);\n\n\tuseEffect(() => {\n\t\tgetSDServerInfo((info: ProjectSaveData & SDServerInfo) => {\n\t\t\tsetProject(info);\n\t\t\tsetApplicationRoot(info.applicationRoot || \"\");\n\t\t\tsetToolbarIcon(info.export.toolbarIcon);\n\t\t\tsetTaskbarIcon(info.export.taskbarIcon);\n\t\t\tsetInstallerIcon(info.export.installerIcon);\n\t\t\tsetSystemTrayIcon(info.export.systemTrayIcon);\n\t\t\tsetSplashScreenImage(info.export.splashScreenImage);\n\t\t});\n\t}, []);\n\n\tuseEffect(() => {\n\t\tupdateProjectSettings({\n\t\t\t...project,\n\t\t\texport: {\n\t\t\t\t...project.export,\n\t\t\t\ttoolbarIcon,\n\t\t\t\tinstallerIcon,\n\t\t\t\ttaskbarIcon,\n\t\t\t\tsystemTrayIcon,\n\t\t\t\tsplashScreenImage,\n\t\t\t},\n\t\t});\n\t}, [iconsChanged]);\n\n\treturn (\n\t\t<View>\n\t\t\t<Content>\n\t\t\t\t<div className=\"theme-edit\">\n\t\t\t\t\t<Appearance\n\t\t\t\t\t\tstartTheme={theme.themes.Default}\n\t\t\t\t\t\tdarkTheme={darkTheme}\n\t\t\t\t\t\tlightTheme={lightTheme}\n\t\t\t\t\t\tupdateThemes={updateThemes}\n\t\t\t\t\t\tareYouSure={areYouSure}\n\t\t\t\t\t\tbaseURL={applicationRoot || \"\"}\n\t\t\t\t\t\ttoolbarIcon={toolbarIcon}\n\t\t\t\t\t\tsetToolbarIcon={setToolbarIcon}\n\t\t\t\t\t\ttaskbarIcon={taskbarIcon}\n\t\t\t\t\t\tsetTaskbarIcon={setTaskbarIcon}\n\t\t\t\t\t\tinstallerIcon={installerIcon}\n\t\t\t\t\t\tsetInstallerIcon={setInstallerIcon}\n\t\t\t\t\t\tsystemTrayIcon={systemTrayIcon}\n\t\t\t\t\t\tsetSystemTrayIcon={setSystemTrayIcon}\n\t\t\t\t\t\tsplashScreenImage={splashScreenImage}\n\t\t\t\t\t\tsetSplashScreenImage={setSplashScreenImage}\n\t\t\t\t\t\tsetIconsChanged={setIconsChanged}\n\t\t\t\t\t\tupdateSplashScreen={updateSplashScreen}\n\t\t\t\t\t\tupdateToolbarIcon={updateToolbarIcon}\n\t\t\t\t\t\tupdateTaskbarIcon={updateTaskbarIcon}\n\t\t\t\t\t\tupdateSystemTrayIcon={updateSystemTrayIcon}\n\t\t\t\t\t\tupdateInstallerIcon={updateInstallerIcon}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</Content>\n\t\t</View>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Toolbar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAIxF,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAUhC,MAAM,gBAAgB,GAAiB;IACtC,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,wCAAwC;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IAE/D,MAAM,IAAI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EAC/B,UAAU,EAAE,IAAI,GACf,CACG;YACN,6BAAK,SAAS,EAAC,kBAAkB;gBAChC,iCAAa;gBACb,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,IAAI,CAAC,EAAE,OAAO,EAAE,cAAc,GAAI,CAC9F,CACG,CACJ,CACP,CAAC,CAAC,CAAC,CACH,oBAAC,IAAI;QACJ,oBAAC,MAAM,kBAAiB;QACxB,oBAAC,OAAO;YAEP,2CAAgB,OAAO;gBACtB,6BAAK,SAAS,EAAC,aAAa;;oBAE3B,+BAAM;+DAED;gBACN,oBAAC,MAAM,IACN,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,KAAK,EACV,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,EACxC,OAAO,EAAE,UAAU,GAClB;gBACF,oBAAC,eAAe,oBAAK,oBAAoB,EAAI,CACxC,CAEG,CACJ,CACP,CACC,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { View } from \"./View\";\n// import { Tab } from \"../common/Tab\";\nimport { Header } from \"../common/Header\";\nimport { FinsembleSelect } from \"../common/FinsembleSelect\";\nimport { Button } from \"../common/Button\";\nimport { Content } from \"./Content\";\nimport { ApplicationList } from \"./ApplicationList\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { MenuType, ProjectError } from \"../../types/smartDesktopDesignerTypes\";\n\nconst MENU_NAME_MAX_LENGTH = 50;\n\nexport type ToolbarProps = {\n\tgetApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;\n\tgetMenus: typeof FSBL.Clients.SmartDesktopClient.prototype.getMenus;\n\taddMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.addMenu;\n\tupdateMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.updateMenu;\n\tdeleteMenu: (value: string) => Promise<{ err: any }>;\n};\n\nconst EMPTY_MENU_ERROR: ProjectError = {\n\tviewId: \"toolbar\",\n\tmessage: \"One or more of your app menus is empty\",\n};\n\nexport const Toolbar = (props: ToolbarProps) => {\n\tconst dispatch = useDispatch();\n\tconst [currentMenuID, setCurrentMenuID] = useState(\"\");\n\tconst [menuName, setMenuName] = useState(\"\");\n\tconst [selectedApps, setSelectedApps] = useState<string[]>([]);\n\n\tconst apps = useSelector((state: RootState) => state.smartDesktopDesigner.apps);\n\tconst menus = useSelector<MenuType>((state: RootState) => state.smartDesktopDesigner.menus);\n\n\tif (Object.values(menus).every((menu) => menu.applications.length > 0)) {\n\t\tdispatch(SmartDesktopDesignerActions.delete_project_error(EMPTY_MENU_ERROR));\n\t} else {\n\t\tdispatch(SmartDesktopDesignerActions.set_project_error(EMPTY_MENU_ERROR));\n\t}\n\n\tfunction updateMenuList() {\n\t\t// Get the app list, so that you can add those apps to the menu\n\t\tprops.getApps().then((response: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_apps(response.apps));\n\t\t});\n\t\t// Get the menu list\n\t\tprops.getMenus().then((getMenusResponse: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_menus(getMenusResponse.menus));\n\t\t});\n\t}\n\n\tconst updateMenuItem = () => {\n\t\tconst whenDone = () => {\n\t\t\tupdateMenuList();\n\t\t\tsetMenuName(\"\");\n\t\t\tsetCurrentMenuID(\"\");\n\t\t};\n\t\tif (currentMenuID == \"new\") {\n\t\t\tprops\n\t\t\t\t.addMenu({\n\t\t\t\t\tdisplayName: menuName,\n\t\t\t\t\tapplications: selectedApps,\n\t\t\t\t\tposition: -1,\n\t\t\t\t})\n\t\t\t\t.then(whenDone);\n\t\t} else {\n\t\t\tprops\n\t\t\t\t.updateMenu(currentMenuID, {\n\t\t\t\t\tdisplayName: menuName,\n\t\t\t\t\tapplications: selectedApps,\n\t\t\t\t\tposition: menus[currentMenuID].position,\n\t\t\t\t})\n\t\t\t\t.then(whenDone);\n\t\t}\n\t};\n\n\tconst removeMenuID = (id: string) => {\n\t\tprops.deleteMenu(id).then(({ err }: { err: string }) => {\n\t\t\tif (err) {\n\t\t\t\talert(err);\n\t\t\t}\n\t\t\tupdateMenuList();\n\t\t});\n\t};\n\n\tconst addNewMenu = () => {\n\t\tsetCurrentMenuID(\"new\");\n\t};\n\n\t/********* Lifecycle effects *********/\n\n\t// Call updateMenuList once the component has mounted\n\t// Can't call out of an effect, or it will cause an endless loop\n\tuseEffect(updateMenuList, []);\n\n\tconst applicationListProps = {\n\t\tapps: Object.entries(menus).map(([key, value]) => {\n\t\t\tconst menuObj = JSON.parse(JSON.stringify(value));\n\t\t\tmenuObj.appId = key;\n\t\t\tmenuObj.name = menuObj.name ?? menuObj.displayName;\n\t\t\tif (menuObj.applications.length === 0) {\n\t\t\t\tmenuObj.icons = \"warning\";\n\t\t\t}\n\t\t\treturn menuObj;\n\t\t}),\n\t\tclickApp: (menuId: string) => {\n\t\t\tsetCurrentMenuID(menuId);\n\t\t\tsetMenuName(menus[menuId].displayName);\n\t\t\tsetSelectedApps(menus[menuId].applications);\n\t\t},\n\t\tdeleteApp: removeMenuID,\n\t};\n\n\tconst backFunction = () => {\n\t\tsetCurrentMenuID(\"\");\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{currentMenuID ? (\n\t\t\t\t<View>\n\t\t\t\t\t<Header backFunction={backFunction}>Menus</Header>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t<div className=\"app-edit-field\">\n\t\t\t\t\t\t\t<label htmlFor=\"menu-name\">Name</label>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tid=\"menu-name\"\n\t\t\t\t\t\t\t\tvalue={menuName}\n\t\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\t\t// This is the equivalent of using maxLength={MENU_NAME_MAX_LENGTH}\n\t\t\t\t\t\t\t\t\t// except that this way is testable with enzyme\n\t\t\t\t\t\t\t\t\tsetMenuName(e.target.value.substr(0, MENU_NAME_MAX_LENGTH));\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"app-edit-field\">\n\t\t\t\t\t\t\t<label htmlFor=\"menu-group\">Group contents</label>\n\t\t\t\t\t\t\t<FinsembleSelect\n\t\t\t\t\t\t\t\toptions={apps.map((app) => app.name)}\n\t\t\t\t\t\t\t\tvalues={apps.map((app) => app.appId)}\n\t\t\t\t\t\t\t\tselected={menus[currentMenuID]?.applications || []}\n\t\t\t\t\t\t\t\tupdateCallback={setSelectedApps}\n\t\t\t\t\t\t\t\tshowSearch={true}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"app-edit-actions\">\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<Button fashion=\"secondary\" text=\"Save\" disabled={menuName.length <= 0} onClick={updateMenuItem} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Content>\n\t\t\t\t</View>\n\t\t\t) : (\n\t\t\t\t<View>\n\t\t\t\t\t<Header>Toolbar</Header>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t{/* <Tab> */}\n\t\t\t\t\t\t<div data-label=\"Menus\">\n\t\t\t\t\t\t\t<div className=\"frontmatter\">\n\t\t\t\t\t\t\t\tThis screen allows you to make menus that will appear on your Toolbar.\n\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\tYou are allowed a maximum of five Menus.\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tclassName=\"icon-before-add\"\n\t\t\t\t\t\t\t\tfashion=\"primary\"\n\t\t\t\t\t\t\t\ttext=\"Add\"\n\t\t\t\t\t\t\t\ticonBefore=\"plus\"\n\t\t\t\t\t\t\t\tdisabled={Object.keys(menus).length >= 5}\n\t\t\t\t\t\t\t\tonClick={addNewMenu}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<ApplicationList {...applicationListProps} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/* </Tab> */}\n\t\t\t\t\t</Content>\n\t\t\t\t</View>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/View.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,0CAAG,KAAK,CAAC,QAAQ,CAAI,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\n\nexport const View = (props: { children: React.ReactNode }) => <>{props.children}</>;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fsbl_functions.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/common/fsbl_functions.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAC/B,CAAC;KACC,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KACrD,IAAI,CAAC,GAAG,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,MAAe,EAAE,EAAE;IAC/D,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CACrC;QACC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY;QACnE,KAAK,EAAE,GAAG;QACV,GAAG;QACH,IAAI,EAAE,UAAU;KAChB,EACD,EAAE,EACF,GAAG,EAAE,GAAE,CAAC,CACR,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAClD,eAAe,CAAC,gDAAgD,IAAI,OAAO,EAAE,IAAI,CAAC,CAAC;AACpF,CAAC,CAAC","sourcesContent":["const titleCase = (s: string) =>\n\ts\n\t\t.toLowerCase()\n\t\t.split(\" \")\n\t\t.map((word) => word[0].toUpperCase() + word.substr(1))\n\t\t.join(\" \");\n\nexport const launchUserGuide = (url: string, anchor?: string) => {\n\tFSBL.Clients.DialogManager.spawnDialog(\n\t\t{\n\t\t\tname: anchor ? titleCase(anchor.replace(/\\-/g, \" \")) : \"User Guide\",\n\t\t\twidth: 750,\n\t\t\turl,\n\t\t\tleft: \"adjacent\",\n\t\t},\n\t\t{},\n\t\t() => {}\n\t);\n};\n\nexport const launchTutorialLink = (page: string) => {\n\tlaunchUserGuide(`https://documentation.finsemble.com/tutorial-${page}.html`, page);\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCSSVars.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/common/getCSSVars.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAA2B,EAAE,EAAE,CAEzD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;KACrB,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CAGT,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC1F;KACA,MAAM,CACN,CAAC,GAAa,EAAE,KAAK,EAAE,EAAE,CACxB,CAAC,GAAG,GAAG;IACN,GAAG,GAAG;IACN,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CACnC,CAAC,GAAa,EAAE,IAAI,EAAE,EAAE,CACvB,CAAC,GAAG;QACH,IAAI,YAAY,YAAY,IAAI,IAAI,CAAC,YAAY,KAAK,OAAO;YAC5D,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC7E,CAAC,CAAC,GAAG,CAAC,EACT,EAAE,CACF;CACD,CAAC,EACH,EAAE,CACF,CAAC","sourcesContent":["export const getCSSVars = (styleSheets: StyleSheetList) =>\n\t// Searches for all the css variables in the :root object\n\tArray.from(styleSheets)\n\t\t.filter(\n\t\t\t(sheet) =>\n\t\t\t\t// sheet.hasOwnProperty(\"href\") returns false, even though href is set, it's just set to null\n\t\t\t\t// so, we have to use the `in` operator\n\t\t\t\t\"href\" in sheet && (sheet.href === null || sheet.href.startsWith(window.location.origin))\n\t\t)\n\t\t.reduce(\n\t\t\t(acc: string[], sheet) =>\n\t\t\t\t(acc = [\n\t\t\t\t\t...acc,\n\t\t\t\t\t...Array.from(sheet.cssRules).reduce(\n\t\t\t\t\t\t(def: string[], rule) =>\n\t\t\t\t\t\t\t(def =\n\t\t\t\t\t\t\t\trule instanceof CSSStyleRule && rule.selectorText === \":root\"\n\t\t\t\t\t\t\t\t\t? [...def, ...Array.from(rule.style).filter((name) => name.startsWith(\"--\"))]\n\t\t\t\t\t\t\t\t\t: def),\n\t\t\t\t\t\t[]\n\t\t\t\t\t),\n\t\t\t\t]),\n\t\t\t[]\n\t\t);\n"]}
@@ -1 +0,0 @@
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,EAAE;gBACV,OAAO,EAAE,CAAC,mEAAmE,CAAC;aAC9E;SACD;QACD,YAAY,EAAE,WAAW;QACzB,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,2BAA2B;QACzC,OAAO,EAAE,wBAAwB;QACjC,MAAM,EAAE;YACP;gBACC,GAAG,EAAE,iCAAiC;gBACtC,OAAO,EAAE,cAAc;aACvB;SACD;QACD,IAAI,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,CAAC;QAC5D,YAAY,EAAE,gBAAgB;QAC9B,Y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CAAC;gBACP,GAAG,EAAE,IAAI;gBACT,KAAK;aACL,CAAC,CAAC;QACJ,CAAC,CAAC;QACH,OAAO,EAAE,CAAC,UAAe,EAAE,EAAE,CAC5B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACvB,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACrD,KAAK,mCACD,KAAK,KACR,CAAC,MAAM,CAAC,EAAE,UAAU,GACpB,CAAC;YAEF,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,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-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 +0,0 @@
1
- {"version":3,"file":"authenticationProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/authenticationProps.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,GAAG,EAAE,CAC5B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC3C,0BAA0B,EAAE,eAAe;IAC3C,0BAA0B,EAAE,eAAe;IAC3C,0BAA0B,EAAE,eAAe;CACpB,CAAC","sourcesContent":["import { AuthenticationProps } from \"../Authentication\";\n\nconst defaultCallback = () =>\n\tnew Promise((resolve) => {\n\t\tresolve(null);\n\t});\n\nexport const default_authentication_props = {\n\tgetAuthenticationProviders: defaultCallback,\n\tsetAuthenticationProviders: defaultCallback,\n\ttestAuthenticationProvider: defaultCallback,\n} as AuthenticationProps;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configTemplate.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/configTemplate.ts"],"names":[],"mappings":"AAAA,IAAI,aAAa,GAAG;IACnB,MAAM,EAAE;QAEP,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,GAAG;KACX;IACD,OAAO,EAAE;QACR,UAAU,EAAE;YACX,gBAAgB,EAAE;gBACjB,kBAAkB,EAAE,IAAI;gBACxB,UAAU,EAAE,IAAI;aAChB;SACD;KACD;CACD,CAAC;AAEF,eAAe;IACd,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,aAAa;IACvB,YAAY,EAAE,aAAa;IAC3B,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,EAAE;IACf,MAAM,EAAE;QACP;YACC,GAAG,EAAE,QAAQ;SACb;KACD;IACD,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE,QAAQ;IACtB,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE;QACN;YACC,IAAI,EAAE,QAAQ;SACd;KACD;IACD,YAAY,EAAE;QACb;YACC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SACf;KACD;IACD,OAAO,EAAE;QACR;YACC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,CAAC,QAAQ,CAAC;YACpB,YAAY,EAAE,EAAE;SAChB;KACD;CACD,CAAC","sourcesContent":["let componentJson = {\n\twindow: {\n\t\t// url: \"$applicationRoot/components/welcome/welcome.html\",\n\t\turl: \"\",\n\t\twidth: 1280,\n\t\theight: 600,\n\t},\n\tforeign: {\n\t\tcomponents: {\n\t\t\t\"Window Manager\": {\n\t\t\t\tpersistWindowState: true,\n\t\t\t\tFSBLHeader: true,\n\t\t\t},\n\t\t},\n\t},\n};\n\nexport default {\n\tappId: \"123\",\n\tname: \"\",\n\tmanifest: componentJson,\n\tmanifestType: \"vendor_type\",\n\tversion: \"1\",\n\ttitle: \"app title\",\n\ttooltip: \"app tip\",\n\tdescription: \"\",\n\timages: [\n\t\t{\n\t\t\turl: \"string\",\n\t\t},\n\t],\n\tcontactEmail: \"string\",\n\tsupportEmail: \"string\",\n\tpublisher: \"string\",\n\ticons: [\n\t\t{\n\t\t\ticon: \"string\",\n\t\t},\n\t],\n\tcustomConfig: [\n\t\t{\n\t\t\tname: \"string\",\n\t\t\tvalue: \"string\",\n\t\t},\n\t],\n\tintents: [\n\t\t{\n\t\t\tname: \"string\",\n\t\t\tdisplayName: \"string\",\n\t\t\tcontexts: [\"string\"],\n\t\t\tcustomConfig: {},\n\t\t},\n\t],\n};\n"]}
@@ -1 +0,0 @@
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-core\";\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"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectErrorsProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/projectErrorsProps.ts"],"names":[],"mappings":"AAEA,eAAmC;IAClC,MAAM,EAAE;QACP;YACC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,eAAe;SACxB;QACD;YACC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,eAAe;SACxB;KACD;CACD,CAAC","sourcesContent":["import { ProjectErrorsProps } from \"../ProjectErrors\";\n\nexport default <ProjectErrorsProps>{\n\terrors: [\n\t\t{\n\t\t\tviewId: \"test\",\n\t\t\tmessage: \"Error message\",\n\t\t},\n\t\t{\n\t\t\tviewId: \"test\",\n\t\t\tmessage: \"Error message\",\n\t\t},\n\t],\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"publishProgress.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/publishProgress.ts"],"names":[],"mappings":"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K,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 +0,0 @@
1
- {"version":3,"file":"themeProps.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/themeProps.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,GAAG,EAAE,CACvB,IAAI,OAAO,CAAuC,CAAC,OAAO,EAAE,EAAE;IAC7D,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;AAC/C,CAAC,CAAC,CAAC;AAEJ,MAAM,wBAAwB,GAAG,GAAG,EAAE,CACrC,IAAI,OAAO,CAAe,CAAC,OAAO,EAAE,EAAE;IACrC,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEJ,MAAM,eAAe,GAAG,CAAC,EAAO,EAAE,EAAE;IACnC,EAAE,CAAC;QACF,IAAI,EAAE,EAAE;QACR,eAAe,EAAE,EAAE;QACnB,MAAM,EAAE;YACP,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,WAAW,EAAE,EAAE;YACf,cAAc,EAAE,EAAE;YAClB,iBAAiB,EAAE,EAAE;SACrB;KACD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAClC,eAAe;IACf,qBAAqB,EAAE,wBAAwB;IAC/C,YAAY,EAAE,wBAAwB;IACtC,UAAU,EAAE,CAAC,EAAY,EAAE,EAAE;QAC5B,EAAE,EAAE,CAAC;IACN,CAAC;IACD,kBAAkB,EAAE,UAAU;IAC9B,iBAAiB,EAAE,UAAU;IAC7B,iBAAiB,EAAE,UAAU;IAC7B,oBAAoB,EAAE,UAAU;IAChC,mBAAmB,EAAE,UAAU;CAC/B,CAAC","sourcesContent":["const uploadStub = () =>\n\tnew Promise<{ err: string | null; path: string }>((resolve) => {\n\t\tresolve({ err: null, path: \"path/to/image\" });\n\t});\n\nconst resolvePromiseEmptyError = () =>\n\tnew Promise<{ err: any }>((resolve) => {\n\t\tresolve({ err: \"\" });\n\t});\n\nconst getSDServerInfo = (cb: any) => {\n\tcb({\n\t\tname: \"\",\n\t\tapplicationRoot: \"\",\n\t\texport: {\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t});\n};\n\nexport const default_theme_props = {\n\tgetSDServerInfo,\n\tupdateProjectSettings: resolvePromiseEmptyError,\n\tupdateThemes: resolvePromiseEmptyError,\n\tareYouSure: (cb: Function) => {\n\t\tcb();\n\t},\n\tupdateSplashScreen: uploadStub,\n\tupdateToolbarIcon: uploadStub,\n\tupdateTaskbarIcon: uploadStub,\n\tupdateSystemTrayIcon: uploadStub,\n\tupdateInstallerIcon: uploadStub,\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"views.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/fixtures/views.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,eAAe;IACd;QACC,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,EAAE;QACT,KAAK,EAAE;YACN;gBACC,EAAE,EAAE,iBAAiB;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,SAAS,EAAE,cAAc;aACzB;SACD;KACD;IACD;QACC,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,MAAM;QACb,KAAK,EAAE;YACN;gBACC,EAAE,EAAE,cAAc;gBAClB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,YAAY;gBACvB,KAAK,oBAAO,mBAAmB,CAAC,OAAO,CAAC,CAAE;aAC1C;SACD;KACD;IACD;QACC,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,uBAAuB;QAC9B,KAAK,EAAE;YACN;gBACC,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,OAAO;gBACb,SAAS,EAAE,MAAM;gBACjB,KAAK,oBAAO,mBAAmB,CAAE;aACjC;YACD;gBACC,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,OAAO;gBAClB,KAAK,oBAAO,mBAAmB,CAAC,OAAO,CAAC,CAAE;aAC1C;YACD;gBACC,EAAE,EAAE,gBAAgB;gBACpB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,gBAAgB;gBACtB,SAAS,EAAE,cAAc;gBACzB,KAAK,oBAAO,4BAA4B,CAAE;aAC1C;SACD;KACD;IACD;QACC,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE;YACN;gBACC,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,SAAS,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\";\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],\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"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdd_helpers.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/sdd_helpers.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAQtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAwB,EAAE,EAAE;;IAC1D,MAAM,KAAK,GAAG,MAAA,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,mCAAI,CAAC,EAAE,CAAC,CAAC;IACrD,OAAO,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9G,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAA2E,EAAE,EAAE;IACpH,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,IAAI,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;IAClG,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC;IACtC,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxC,MAAM,cAAc,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACrE,OAAO;QACN,WAAW;QACX,SAAS;QACT,UAAU;QACV,cAAc;KACd,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAC5B,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;IAC7B,UAAU,CAAC,GAAG,EAAE;QACf,OAAO,EAAE,CAAC;IACX,CAAC,EAAE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,EAAE,CACtC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;IAC7B,UAAU,CAAC,GAAG,EAAE;QACf,OAAO,EAAE,CAAC;IACX,CAAC,EAAE,EAAE,CAAC,CAAC;AACR,CAAC,CAAC,CAAC","sourcesContent":["const toSentenceCase = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);\n\nconst invalidDefaultNames = [\"http\", \"https\", \"html\"];\n\n/**\n * Returns the last word with more than 3 characters in the url or path\n *\n * @param {*} data\n * @return {*} {string}\n */\nexport const getDefaultName = (name: string | undefined) => {\n\tconst words = (name || \"\").match(/\\w{4,}/gi) ?? [\"\"];\n\treturn toSentenceCase(words.filter((word) => !invalidDefaultNames.includes(word.toLowerCase())).pop() || \"\");\n};\n\nexport const generateDefaultConfig = (appConfig: { name?: string; url?: string; path?: string; appType?: string }) => {\n\tconst displayName = appConfig.name || getDefaultName(appConfig.url || appConfig.path || \"\") || \"\";\n\tconst windowURL = appConfig.url || \"\";\n\tconst nativePath = appConfig.path || \"\";\n\tconst currentAppType = appConfig.appType ? appConfig.appType : \"web\";\n\treturn {\n\t\tdisplayName,\n\t\twindowURL,\n\t\tnativePath,\n\t\tcurrentAppType,\n\t};\n};\n\nexport const waitTick = () =>\n\tnew Promise<void>((resolve) => {\n\t\tsetTimeout(() => {\n\t\t\tresolve();\n\t\t}, 0);\n\t});\n\nexport const waitTime = (ms: number) =>\n\tnew Promise<void>((resolve) => {\n\t\tsetTimeout(() => {\n\t\t\tresolve();\n\t\t}, ms);\n\t});\n"]}
@@ -1 +0,0 @@
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;CAC/B,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};\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"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Appearance.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/Appearance.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAC;AAC5D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAe;IACd,KAAK,EAAE,mCAAmC;IAC1C,SAAS,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAkB,UAAU,EAAE;IAC5D,UAAU,EAAE,SAAS;IACrB,SAAS;IACT,UAAU;IACV,YAAY,EAAE,GAAG,EAAE;IAEnB,CAAC;IACD,UAAU,EAAE,CAAC,EAAc,EAAE,EAAE;QAC9B,EAAE,EAAE,CAAC;IACN,CAAC;IACD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,iBAAiB,EAAE,EAAE;IACrB,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;IACxB,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;IACxB,gBAAgB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC1B,iBAAiB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC3B,oBAAoB,EAAE,GAAG,EAAE,GAAE,CAAC;IAC9B,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;IACzB,kBAAkB,EAAE,cAAc;IAClC,iBAAiB,EAAE,cAAc;IACjC,iBAAiB,EAAE,cAAc;IACjC,oBAAoB,EAAE,cAAc;IACpC,mBAAmB,EAAE,cAAc;CACnC,CAAC,CAAC","sourcesContent":["import { createStory, uploadFunction } from \"../../common/helpers\";\nimport { Appearance, AppearanceProps } from \"../Appearance\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../../common/css/styles.css\";\nimport { darkTheme, lightTheme } from \"../themeDefinitions\";\n\nexport default {\n\ttitle: \"Smart Desktop Designer/Appearance\",\n\tcomponent: Appearance,\n};\n\nexport const Page = createStory<AppearanceProps>(Appearance, {\n\tstartTheme: darkTheme,\n\tdarkTheme,\n\tlightTheme,\n\tupdateThemes: () => {\n\t\t// console.log(`ID: ${id}, Theme: ${newValue}`);\n\t},\n\tareYouSure: (cb: () => void) => {\n\t\tcb();\n\t},\n\tbaseURL: \"\",\n\ttoolbarIcon: \"\",\n\ttaskbarIcon: \"\",\n\tinstallerIcon: \"\",\n\tsystemTrayIcon: \"\",\n\tsplashScreenImage: \"\",\n\tsetToolbarIcon: () => {},\n\tsetTaskbarIcon: () => {},\n\tsetInstallerIcon: () => {},\n\tsetSystemTrayIcon: () => {},\n\tsetSplashScreenImage: () => {},\n\tsetIconsChanged: () => {},\n\tupdateSplashScreen: uploadFunction,\n\tupdateToolbarIcon: uploadFunction,\n\tupdateTaskbarIcon: uploadFunction,\n\tupdateSystemTrayIcon: uploadFunction,\n\tupdateInstallerIcon: uploadFunction,\n});\n"]}
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { ApplicationListProps } from "../ApplicationList";
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: ({ apps, clickApp, deleteApp, editApp }: ApplicationListProps) => JSX.Element;
9
- };
10
- export default _default;
11
- export declare const EmptyAppList: Story<ApplicationListProps>;
12
- export declare const OneAppInList: Story<ApplicationListProps>;
13
- export declare const AppWithoutDisplayName: Story<ApplicationListProps>;
14
- export declare const SampleAppList: Story<ApplicationListProps>;
15
- export declare const AppListWithEdit: Story<ApplicationListProps>;
16
- export declare const appsWithWarnings: Story<ApplicationListProps>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationList.stories.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/stories/ApplicationList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAC5G,MAAM,UAAU,GAAG;IAClB;QACC,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,GAAG;QACT,UAAU,EAAE;YACX,WAAW,EAAE,aAAa;SAC1B;KACD;IACD;QAC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AAG;IAC5B,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5B,QAAQ;IACR,SAAS;CACT,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,IAAI,EAAE,QAAQ;IACd,QAAQ;IACR,SAAS;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACtB,IAAI,EAAE,QAAQ;IACd,QAAQ;IACR,SAAS;IACT,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ;IACR,SAAS;CACT,CAAC","sourcesContent":["import React from \"react\";\nimport { ApplicationList, ApplicationListProps } from \"../ApplicationList\";\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/ApplicationList\",\n\tcomponent: ApplicationList,\n};\n\nconst Template: Story<ApplicationListProps> = (args: ApplicationListProps) => <ApplicationList {...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 ApplicationListProps[\"apps\"];\nconst clickApp = action(\"Clicked app\");\n\nconst deleteApp = (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\tapps: [],\n\tclickApp,\n\tdeleteApp,\n};\n\nexport const OneAppInList = Template.bind({});\nOneAppInList.args = {\n\tapps: sampleApps.slice(0, 1),\n\tclickApp,\n\tdeleteApp,\n};\n\nexport const AppWithoutDisplayName = Template.bind({});\nAppWithoutDisplayName.args = {\n\tapps: sampleApps.slice(2, 3),\n\tclickApp,\n\tdeleteApp,\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\tapps: longList,\n\tclickApp,\n\tdeleteApp,\n};\n\nexport const AppListWithEdit = Template.bind({});\nAppListWithEdit.args = {\n\tapps: longList,\n\tclickApp,\n\tdeleteApp,\n\teditApp: action(\"edit\"),\n};\n\nexport const appsWithWarnings = Template.bind({});\nappsWithWarnings.args = {\n\tapps: warningApps,\n\tclickApp,\n\tdeleteApp,\n};\n"]}