@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
@@ -0,0 +1,169 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import "../common/css/preload-edit-page.css";
3
+ import { FinsembleSelect } from "../common/FinsembleSelect";
4
+ import { Button } from "../common/Button";
5
+ export const EditPreload = ({ preload, getConfig, getApps, updateApp, cancelFunction, addPreload, updatePreload, deletePreload, }) => {
6
+ const [appList, setAppList] = useState([]);
7
+ const [appNameList, setAppNameList] = useState([]);
8
+ const [appNameValues, setAppNameValues] = useState([]);
9
+ const [selectedApps, setSelectedApps] = useState([]);
10
+ const [usageType, setUsageType] = useState("selection");
11
+ const [livePreload, setLivePreload] = useState(Object.assign({}, preload));
12
+ const [disableSubmit, setDisableSubmit] = useState(true);
13
+ const [key, setKey] = useState(`${Date.now()}.${Math.random()}`);
14
+ const validatePreload = (edited) => {
15
+ let urlValid = true;
16
+ try {
17
+ new URL(edited.url);
18
+ }
19
+ catch (e) {
20
+ urlValid = false;
21
+ }
22
+ return !!edited.alias && urlValid;
23
+ };
24
+ const removePreload = async (alias) => {
25
+ await deletePreload(alias);
26
+ cancelFunction();
27
+ };
28
+ const getUsageType = () => {
29
+ getConfig("finsemble.servicesConfig.launcher.defaultPreloads").then(({ data }) => {
30
+ var _a, _b;
31
+ let type = "selection";
32
+ const globalConfig = data !== null && data !== void 0 ? data : {};
33
+ if ((_a = globalConfig.allComponents) === null || _a === void 0 ? void 0 : _a.includes(preload.alias)) {
34
+ type = "all";
35
+ }
36
+ else if ((_b = globalConfig.launchableComponents) === null || _b === void 0 ? void 0 : _b.includes(preload.alias)) {
37
+ type = "launchable";
38
+ }
39
+ setUsageType(type);
40
+ });
41
+ };
42
+ const setAlias = (alias) => {
43
+ setLivePreload(Object.assign(Object.assign({}, livePreload), { alias }));
44
+ };
45
+ const setUrl = (url) => {
46
+ setLivePreload(Object.assign(Object.assign({}, livePreload), { url }));
47
+ };
48
+ useEffect(() => {
49
+ setDisableSubmit(!validatePreload(livePreload));
50
+ }, [livePreload]);
51
+ useEffect(() => {
52
+ setKey(`${Date.now()}.${Math.random()}`);
53
+ }, [appList, appNameList, selectedApps]);
54
+ useEffect(() => {
55
+ getUsageType();
56
+ getApps().then(({ apps }) => {
57
+ const appNames = [];
58
+ const appValues = [];
59
+ const selectedNames = [];
60
+ apps.forEach((app) => {
61
+ var _a, _b, _c;
62
+ appNames.push(app.name);
63
+ appValues.push(app.appId);
64
+ if ((_c = (_b = (_a = app.manifest) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.preload) === null || _c === void 0 ? void 0 : _c.includes(preload === null || preload === void 0 ? void 0 : preload.alias)) {
65
+ selectedNames.push(app.name);
66
+ }
67
+ });
68
+ setAppNameValues(appValues);
69
+ setAppNameList(appNames);
70
+ setSelectedApps(selectedNames);
71
+ setAppList(apps);
72
+ });
73
+ validatePreload(livePreload);
74
+ }, []);
75
+ const onRadioChange = (e) => {
76
+ setUsageType(e.target.value);
77
+ };
78
+ const selectChange = (selectedValues) => {
79
+ setSelectedApps(selectedValues);
80
+ };
81
+ const updateAppConfigs = async () => {
82
+ const promises = appList.map((app) => {
83
+ var _a, _b, _c, _d, _e;
84
+ let appPreloads = (_c = (_b = (_a = app.manifest) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.preload) !== null && _c !== void 0 ? _c : [];
85
+ appPreloads = Array.isArray(appPreloads) ? appPreloads : [appPreloads];
86
+ const isRenaming = livePreload.alias != preload.alias;
87
+ const wasPreviouslySelected = appPreloads.includes(preload.alias);
88
+ const inNewList = selectedApps.includes(app.appId);
89
+ app.manifest = (_d = app.manifest) !== null && _d !== void 0 ? _d : {};
90
+ app.manifest.component = (_e = app.manifest.component) !== null && _e !== void 0 ? _e : {};
91
+ if ((!isRenaming && wasPreviouslySelected == inNewList) || (!wasPreviouslySelected && !inNewList)) {
92
+ return Promise.resolve();
93
+ }
94
+ if (wasPreviouslySelected) {
95
+ appPreloads = appPreloads.filter((preloadAlias) => preloadAlias != preload.alias);
96
+ }
97
+ if (inNewList) {
98
+ appPreloads.push(livePreload.alias);
99
+ }
100
+ app.manifest.component.preload = appPreloads;
101
+ return updateApp(app.appId, app);
102
+ });
103
+ return Promise.all(promises);
104
+ };
105
+ const clickSubmit = async () => {
106
+ const usage = {
107
+ all: usageType == "all",
108
+ launchable: usageType == "launchable",
109
+ apps: selectedApps,
110
+ };
111
+ if (preload.alias === "") {
112
+ await addPreload(livePreload, usage);
113
+ }
114
+ else {
115
+ await updatePreload(preload.alias, livePreload, usage);
116
+ }
117
+ await updateAppConfigs();
118
+ cancelFunction();
119
+ };
120
+ return (React.createElement("div", { className: "preload-edit-container" },
121
+ React.createElement("h2", null, (livePreload === null || livePreload === void 0 ? void 0 : livePreload.alias) ? livePreload.alias : "Untitled preload"),
122
+ React.createElement("div", { className: "app-edit-field" },
123
+ React.createElement("table", { role: "presentation", className: "preload-edit-table" },
124
+ React.createElement("tbody", null,
125
+ React.createElement("tr", null,
126
+ React.createElement("th", null,
127
+ React.createElement("label", { htmlFor: "preload-alias" }, "Name")),
128
+ React.createElement("td", { className: "edit-field" },
129
+ React.createElement("input", { type: "text", id: "preload-alias", value: livePreload === null || livePreload === void 0 ? void 0 : livePreload.alias, placeholder: "UntitledPreload", onChange: (e) => {
130
+ setAlias(e.target.value);
131
+ } }))),
132
+ React.createElement("tr", null,
133
+ React.createElement("th", null,
134
+ React.createElement("label", { htmlFor: "preload-url" }, "Web URL")),
135
+ React.createElement("td", { className: "edit-field" },
136
+ React.createElement("input", { type: "text", id: "preload-url", value: livePreload === null || livePreload === void 0 ? void 0 : livePreload.url, onChange: (e) => {
137
+ setUrl(e.target.value);
138
+ } }))),
139
+ React.createElement("tr", null,
140
+ React.createElement("th", { className: "table-header__top-label" }, "Load for"),
141
+ React.createElement("td", null,
142
+ React.createElement("div", { className: "load-option" },
143
+ React.createElement("label", null,
144
+ React.createElement("input", { type: "radio", name: "preload-usage", value: "launchable", checked: usageType == "launchable", onChange: onRadioChange }),
145
+ " ",
146
+ "Apps launched by users")),
147
+ React.createElement("div", { className: "load-option" },
148
+ React.createElement("label", null,
149
+ React.createElement("input", { type: "radio", name: "preload-usage", value: "all", checked: usageType == "all", onChange: onRadioChange }),
150
+ " ",
151
+ "All apps")),
152
+ React.createElement("div", { className: "load-option" },
153
+ React.createElement("label", null,
154
+ React.createElement("input", { type: "radio", name: "preload-usage", value: "selection", checked: usageType == "selection", onChange: onRadioChange }),
155
+ " ",
156
+ "Select apps")),
157
+ usageType == "selection" && (React.createElement(FinsembleSelect, { key: key, options: appNameList, values: appNameValues, selected: selectedApps, updateCallback: selectChange, showSearch: true }))))))),
158
+ React.createElement("div", { className: "preload-edit-actions" },
159
+ React.createElement("div", null, preload.alias && (React.createElement(Button, { fashion: "danger", text: "Remove preload", onClick: (e) => {
160
+ removePreload(preload.alias);
161
+ e.preventDefault();
162
+ } }))),
163
+ React.createElement("div", { className: "app-actions-right-wrapper" },
164
+ React.createElement(Button, { fashion: "ghost", text: "Cancel", onClick: () => {
165
+ cancelFunction();
166
+ } }),
167
+ React.createElement(Button, { fashion: "secondary", text: "Save", disabled: disableSubmit, onClick: clickSubmit })))));
168
+ };
169
+ //# sourceMappingURL=EditPreload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditPreload.js","sourceRoot":"","sources":["../../../src/components/sdd/EditPreload.tsx"],"names":[],"m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ACpB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,YAAY,EACtB,cAAc,EAAE,YAAY,EAC5B,UAAU,EAAE,IAAI,GACf,CACF,CACG,CACD,CACE,CACD,CACH;QACN,6BAAK,SAAS,EAAC,sBAAsB;YACpC,iCACE,OAAO,CAAC,KAAK,IAAI,CACjB,oBAAC,MAAM,IACN,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,gBAAgB,EACrB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAC7B,CAAC,CAAC,cAAc,EAAE,CAAC;gBACpB,CAAC,GACA,CACF,CACI;YAEN,6BAAK,SAAS,EAAC,2BAA2B;gBACzC,oBAAC,MAAM,IACN,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE;wBACb,cAAc,EAAE,CAAC;oBAClB,CAAC,GACA;gBACF,oBAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,GAAI,CACpF,CACD,CACD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { ChangeEvent, useEffect, useState } from \"react\";\nimport \"../common/css/preload-edit-page.css\";\nimport { FinsembleSelect } from \"../common/FinsembleSelect\";\nimport { Button } from \"../common/Button\";\nimport { PreloadType } from \"../../types/smartDesktopDesignerTypes\";\nimport { AppDefinition } from \"./Application\";\n\nexport interface EditPreloadProps {\n\tgetConfig: typeof FSBL.Clients.ConfigClient.getValue;\n\tpreload: PreloadType;\n\t// Perhaps use the root state to get this value\n\tgetApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;\n\tupdateApp: typeof FSBL.Clients.SmartDesktopClient.prototype.updateApp;\n\tcancelFunction: Function;\n\taddPreload: Function;\n\tupdatePreload: Function;\n\tdeletePreload: (alias: string) => Promise<void>;\n}\n\ntype preloadUsageType = \"launchable\" | \"all\" | \"selection\";\n\nexport const EditPreload: React.FunctionComponent<EditPreloadProps> = ({\n\tpreload,\n\tgetConfig,\n\tgetApps,\n\tupdateApp,\n\tcancelFunction,\n\taddPreload,\n\tupdatePreload,\n\tdeletePreload,\n}) => {\n\tconst [appList, setAppList] = useState<AppDefinition[]>([]);\n\tconst [appNameList, setAppNameList] = useState<string[]>([]);\n\tconst [appNameValues, setAppNameValues] = useState<string[]>([]);\n\tconst [selectedApps, setSelectedApps] = useState<string[]>([]);\n\tconst [usageType, setUsageType] = useState<preloadUsageType>(\"selection\");\n\tconst [livePreload, setLivePreload] = useState({ ...preload });\n\tconst [disableSubmit, setDisableSubmit] = useState<boolean>(true);\n\tconst [key, setKey] = useState(`${Date.now()}.${Math.random()}`);\n\n\tconst validatePreload = (edited: PreloadType): boolean => {\n\t\tlet urlValid = true;\n\t\ttry {\n\t\t\tnew URL(edited.url);\n\t\t} catch (e) {\n\t\t\turlValid = false;\n\t\t}\n\n\t\treturn !!edited.alias && urlValid;\n\t};\n\n\tconst removePreload = async (alias: string) => {\n\t\tawait deletePreload(alias);\n\t\tcancelFunction();\n\t};\n\n\tconst getUsageType = () => {\n\t\tgetConfig(\"finsemble.servicesConfig.launcher.defaultPreloads\").then(({ data }) => {\n\t\t\tlet type: preloadUsageType = \"selection\";\n\t\t\tconst globalConfig = data ?? {};\n\t\t\tif (globalConfig.allComponents?.includes(preload.alias)) {\n\t\t\t\ttype = \"all\";\n\t\t\t} else if (globalConfig.launchableComponents?.includes(preload.alias)) {\n\t\t\t\ttype = \"launchable\";\n\t\t\t}\n\t\t\tsetUsageType(type);\n\t\t});\n\t};\n\n\tconst setAlias = (alias: string) => {\n\t\tsetLivePreload({ ...livePreload, alias });\n\t};\n\n\tconst setUrl = (url: string) => {\n\t\tsetLivePreload({ ...livePreload, url });\n\t};\n\n\tuseEffect(() => {\n\t\tsetDisableSubmit(!validatePreload(livePreload));\n\t}, [livePreload]);\n\n\tuseEffect(() => {\n\t\tsetKey(`${Date.now()}.${Math.random()}`);\n\t}, [appList, appNameList, selectedApps]);\n\n\tuseEffect(() => {\n\t\tgetUsageType();\n\t\tgetApps().then(({ apps }) => {\n\t\t\tconst appNames: string[] = [];\n\t\t\tconst appValues: string[] = [];\n\t\t\tconst selectedNames: string[] = [];\n\n\t\t\tapps.forEach((app: AppDefinition) => {\n\t\t\t\tappNames.push(app.name);\n\t\t\t\tappValues.push(app.appId);\n\t\t\t\tif (app.manifest?.component?.preload?.includes(preload?.alias)) {\n\t\t\t\t\tselectedNames.push(app.name);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tsetAppNameValues(appValues);\n\t\t\tsetAppNameList(appNames);\n\t\t\tsetSelectedApps(selectedNames);\n\t\t\tsetAppList(apps);\n\t\t});\n\t\tvalidatePreload(livePreload);\n\t}, []);\n\n\tconst onRadioChange = (e: ChangeEvent<HTMLInputElement>) => {\n\t\tsetUsageType(e.target.value as preloadUsageType);\n\t};\n\n\tconst selectChange = (selectedValues: string[]) => {\n\t\tsetSelectedApps(selectedValues);\n\t};\n\n\tconst updateAppConfigs = async () => {\n\t\tconst promises: Promise<any>[] = appList.map((app) => {\n\t\t\tlet appPreloads = app.manifest?.component?.preload ?? [];\n\t\t\tappPreloads = Array.isArray(appPreloads) ? appPreloads : [appPreloads];\n\t\t\tconst isRenaming = livePreload.alias != preload.alias;\n\t\t\tconst wasPreviouslySelected = appPreloads.includes(preload.alias);\n\t\t\tconst inNewList = selectedApps.includes(app.appId);\n\t\t\tapp.manifest = app.manifest ?? {};\n\t\t\tapp.manifest.component = app.manifest.component ?? {};\n\n\t\t\tif ((!isRenaming && wasPreviouslySelected == inNewList) || (!wasPreviouslySelected && !inNewList)) {\n\t\t\t\t// No change for this app\n\t\t\t\treturn Promise.resolve();\n\t\t\t}\n\n\t\t\tif (wasPreviouslySelected) {\n\t\t\t\t// Remove it from the list\n\t\t\t\tappPreloads = appPreloads.filter((preloadAlias: string) => preloadAlias != preload.alias);\n\t\t\t}\n\n\t\t\tif (inNewList) {\n\t\t\t\tappPreloads.push(livePreload.alias);\n\t\t\t}\n\n\t\t\tapp.manifest.component.preload = appPreloads;\n\t\t\treturn updateApp(app.appId, app);\n\t\t});\n\n\t\treturn Promise.all(promises);\n\t};\n\n\tconst clickSubmit = async () => {\n\t\tconst usage: any = {\n\t\t\tall: usageType == \"all\",\n\t\t\tlaunchable: usageType == \"launchable\",\n\t\t\tapps: selectedApps,\n\t\t};\n\n\t\tif (preload.alias === \"\") {\n\t\t\tawait addPreload(livePreload, usage);\n\t\t} else {\n\t\t\tawait updatePreload(preload.alias, livePreload, usage);\n\t\t}\n\t\tawait updateAppConfigs();\n\t\tcancelFunction();\n\t};\n\n\treturn (\n\t\t<div className=\"preload-edit-container\">\n\t\t\t<h2>{livePreload?.alias ? livePreload.alias : \"Untitled preload\"}</h2>\n\t\t\t<div className=\"app-edit-field\">\n\t\t\t\t<table role=\"presentation\" className=\"preload-edit-table\">\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t<label htmlFor=\"preload-alias\">Name</label>\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<td className=\"edit-field\">\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\tid=\"preload-alias\"\n\t\t\t\t\t\t\t\t\tvalue={livePreload?.alias}\n\t\t\t\t\t\t\t\t\tplaceholder=\"UntitledPreload\"\n\t\t\t\t\t\t\t\t\t// onKeyDown=\"\"\n\t\t\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\t\t\tsetAlias(e.target.value);\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</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t<label htmlFor=\"preload-url\">Web URL</label>\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<td className=\"edit-field\">\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\t\tid=\"preload-url\"\n\t\t\t\t\t\t\t\t\tvalue={livePreload?.url}\n\t\t\t\t\t\t\t\t\t// onKeyDown={submitOnEnter}\n\t\t\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\t\t\tsetUrl(e.target.value);\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</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th className=\"table-header__top-label\">Load for</th>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<div className=\"load-option\">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"preload-usage\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"launchable\"\n\t\t\t\t\t\t\t\t\t\t\tchecked={usageType == \"launchable\"}\n\t\t\t\t\t\t\t\t\t\t\tonChange={onRadioChange}\n\t\t\t\t\t\t\t\t\t\t/>{\" \"}\n\t\t\t\t\t\t\t\t\t\tApps launched by users\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"load-option\">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"preload-usage\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"all\"\n\t\t\t\t\t\t\t\t\t\t\tchecked={usageType == \"all\"}\n\t\t\t\t\t\t\t\t\t\t\tonChange={onRadioChange}\n\t\t\t\t\t\t\t\t\t\t/>{\" \"}\n\t\t\t\t\t\t\t\t\t\tAll apps\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"load-option\">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"preload-usage\"\n\t\t\t\t\t\t\t\t\t\t\tvalue=\"selection\"\n\t\t\t\t\t\t\t\t\t\t\tchecked={usageType == \"selection\"}\n\t\t\t\t\t\t\t\t\t\t\tonChange={onRadioChange}\n\t\t\t\t\t\t\t\t\t\t/>{\" \"}\n\t\t\t\t\t\t\t\t\t\tSelect apps\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{usageType == \"selection\" && (\n\t\t\t\t\t\t\t\t\t<FinsembleSelect\n\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\toptions={appNameList}\n\t\t\t\t\t\t\t\t\t\tvalues={appNameValues}\n\t\t\t\t\t\t\t\t\t\tselected={selectedApps}\n\t\t\t\t\t\t\t\t\t\tupdateCallback={selectChange}\n\t\t\t\t\t\t\t\t\t\tshowSearch={true}\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</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t<div className=\"preload-edit-actions\">\n\t\t\t\t<div>\n\t\t\t\t\t{preload.alias && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tfashion=\"danger\"\n\t\t\t\t\t\t\ttext=\"Remove preload\"\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\tremovePreload(preload.alias);\n\t\t\t\t\t\t\t\te.preventDefault();\n\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</div>\n\n\t\t\t\t<div className=\"app-actions-right-wrapper\">\n\t\t\t\t\t<Button\n\t\t\t\t\t\tfashion=\"ghost\"\n\t\t\t\t\t\ttext=\"Cancel\"\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tcancelFunction();\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t<Button fashion=\"secondary\" text=\"Save\" disabled={disableSubmit} onClick={clickSubmit} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Export.js","sourceRoot":"","sources":["../../../src/components/sdd/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,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAGxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,kBAAkB,CAAC;AAY1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC5C,MAAM,QAAQ,GAAG,WAAW,EAAE,C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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"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportCloud.js","sourceRoot":"","sources":["../../../src/components/sdd/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,CA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,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"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportDeployInfo.js","sourceRoot":"","sources":["../../../src/components/sdd/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"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportZip.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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"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GettingStarted.js","sourceRoot":"","sources":["../../../src/components/sdd/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"]}
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import { ReactNode } from "react";
6
+ import "../common/css/application-list.css";
7
+ export declare type ItemListProps = {
8
+ items: any[];
9
+ getItemId?: (item: any) => string;
10
+ getItemDisplayName?: (item: any) => string;
11
+ clickItem: (s: string) => void;
12
+ deleteItem: (s: string) => void;
13
+ editItem?: (s: string) => void;
14
+ emptyListMessage?: ReactNode;
15
+ className?: string;
16
+ };
17
+ export declare const ItemList: ({ items, clickItem, deleteItem, editItem, getItemId, getItemDisplayName, emptyListMessage, className, }: ItemListProps) => JSX.Element;
@@ -0,0 +1,58 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React from "react";
6
+ import { ButtonIcon } from "../common/ButtonIcon";
7
+ import "../common/css/application-list.css";
8
+ export const ItemList = ({ items, clickItem, deleteItem, editItem, getItemId = (item) => item.appId, getItemDisplayName = (item) => { var _a, _b; return ((_b = (_a = item.manifest) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.displayName) || item.name || item.appId; }, emptyListMessage = (React.createElement(React.Fragment, null,
9
+ "There\u2019s nothing here!",
10
+ React.createElement("br", null),
11
+ "Click the Add button to add apps.")), className = "", }) => (React.createElement(React.Fragment, null, items.length < 1 ? (React.createElement("div", { className: `app-list-empty ${className}` }, emptyListMessage)) : (React.createElement("div", { className: `app-list-table ${className}`, role: "list" }, items
12
+ .sort((a, b) => {
13
+ if (getItemDisplayName(a) > getItemDisplayName(b)) {
14
+ return 1;
15
+ }
16
+ else if (getItemDisplayName(b) > getItemDisplayName(a)) {
17
+ return -1;
18
+ }
19
+ return 0;
20
+ })
21
+ .map((item) => {
22
+ const appID = getItemId(item);
23
+ const openItemEventHandler = (e) => {
24
+ clickItem(appID);
25
+ e.preventDefault();
26
+ };
27
+ const editItemEventHandler = (e) => {
28
+ e.stopPropagation();
29
+ editItem === null || editItem === void 0 ? void 0 : editItem(appID);
30
+ e.preventDefault();
31
+ };
32
+ const deleteItemEventHandler = (e) => {
33
+ e.stopPropagation();
34
+ deleteItem(appID);
35
+ };
36
+ const keyDownHandler = (e) => {
37
+ switch (e.key) {
38
+ case "Enter":
39
+ case " ": {
40
+ openItemEventHandler(e);
41
+ break;
42
+ }
43
+ case "Delete": {
44
+ deleteItemEventHandler(e);
45
+ break;
46
+ }
47
+ default: {
48
+ }
49
+ }
50
+ };
51
+ const displayName = getItemDisplayName(item);
52
+ return (React.createElement("div", { key: appID, id: `app-list-row-${appID}`, className: "app-list-row", role: "listitem", tabIndex: 0, onClick: openItemEventHandler, onKeyDown: keyDownHandler },
53
+ React.createElement("span", { className: "app-name" }, displayName),
54
+ React.createElement("div", { className: "icon-bar" },
55
+ editItem && (React.createElement(ButtonIcon, { className: "icon-edit", icon: "pencil", text: "Edit", onClick: editItemEventHandler })),
56
+ React.createElement(ButtonIcon, { tabIndex: -1, className: "icon-delete", icon: "trash", text: "Delete", onClick: deleteItemEventHandler }))));
57
+ })))));
58
+ //# sourceMappingURL=ItemList.js.map
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U;YACvB,QAAQ,IAAI,CACZ,oBAAC,UAAU,IAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,oBAAoB,GAAI,CAC7F;YACD,oBAAC,UAAU,IACV,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAC,aAAa,EACvB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,sBAAsB,GAC9B,CACG,CACD,CACN,CAAC;AACH,CAAC,CAAC,CACE,CACN,CACC,CACH,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { ReactNode } from \"react\";\nimport { ButtonIcon } from \"../common/ButtonIcon\";\nimport \"../common/css/application-list.css\";\n\nexport type ItemListProps = {\n\titems: any[];\n\tgetItemId?: (item: any) => string;\n\tgetItemDisplayName?: (item: any) => string;\n\tclickItem: (s: string) => void;\n\tdeleteItem: (s: string) => void;\n\teditItem?: (s: string) => void;\n\temptyListMessage?: ReactNode;\n\tclassName?: string;\n};\n\nexport const ItemList = ({\n\titems,\n\tclickItem,\n\tdeleteItem,\n\teditItem,\n\tgetItemId = (item) => item.appId,\n\tgetItemDisplayName = (item) => item.manifest?.component?.displayName || item.name || item.appId,\n\temptyListMessage = (\n\t\t<>\n\t\t\tThere’s nothing here!\n\t\t\t<br />\n\t\t\tClick the Add button to add apps.\n\t\t</>\n\t),\n\tclassName = \"\",\n}: ItemListProps) => (\n\t<>\n\t\t{items.length < 1 ? (\n\t\t\t<div className={`app-list-empty ${className}`}>{emptyListMessage}</div>\n\t\t) : (\n\t\t\t<div className={`app-list-table ${className}`} role=\"list\">\n\t\t\t\t{items\n\t\t\t\t\t.sort((a, b) => {\n\t\t\t\t\t\tif (getItemDisplayName(a) > getItemDisplayName(b)) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t} else if (getItemDisplayName(b) > getItemDisplayName(a)) {\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t})\n\t\t\t\t\t.map((item: any) => {\n\t\t\t\t\t\tconst appID = getItemId(item);\n\n\t\t\t\t\t\tconst openItemEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\tclickItem(appID);\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst editItemEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\teditItem?.(appID);\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst deleteItemEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tdeleteItem(appID);\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst keyDownHandler = (e: React.KeyboardEvent<HTMLDivElement>) => {\n\t\t\t\t\t\t\tswitch (e.key) {\n\t\t\t\t\t\t\t\tcase \"Enter\":\n\t\t\t\t\t\t\t\tcase \" \": {\n\t\t\t\t\t\t\t\t\topenItemEventHandler(e);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase \"Delete\": {\n\t\t\t\t\t\t\t\t\tdeleteItemEventHandler(e);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\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\n\t\t\t\t\t\tconst displayName = getItemDisplayName(item);\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tkey={appID}\n\t\t\t\t\t\t\t\tid={`app-list-row-${appID}`}\n\t\t\t\t\t\t\t\tclassName=\"app-list-row\"\n\t\t\t\t\t\t\t\trole=\"listitem\"\n\t\t\t\t\t\t\t\ttabIndex={0}\n\t\t\t\t\t\t\t\tonClick={openItemEventHandler}\n\t\t\t\t\t\t\t\tonKeyDown={keyDownHandler}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span className=\"app-name\">{displayName}</span>\n\t\t\t\t\t\t\t\t<div className=\"icon-bar\">\n\t\t\t\t\t\t\t\t\t{editItem && (\n\t\t\t\t\t\t\t\t\t\t<ButtonIcon className=\"icon-edit\" icon=\"pencil\" text=\"Edit\" onClick={editItemEventHandler} />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<ButtonIcon\n\t\t\t\t\t\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\t\t\t\t\t\tclassName=\"icon-delete\"\n\t\t\t\t\t\t\t\t\t\ticon=\"trash\"\n\t\t\t\t\t\t\t\t\t\ttext=\"Delete\"\n\t\t\t\t\t\t\t\t\t\tonClick={deleteItemEventHandler}\n\t\t\t\t\t\t\t\t\t/>\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})}\n\t\t\t</div>\n\t\t)}\n\t</>\n);\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/components/sdd/Navigation.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAGvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,MAAM,CAAC,MAAM,UAAU,GAA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EACzB,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACd,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC5D,CAAC;gBAEA,iBAAiB;oBACjB,IAAI,CAAC,EAAE,KAAK,QAAQ;oBACpB,MAAM;yBACJ,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC;yBAC3C,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CACtB,6BAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,gBAAgB;wBAC1C,oBAAC,OAAO,IAAC,IAAI,EAAC,MAAM,IAAE,KAAK,CAAC,OAAO,CAAW,CACzC,CACN,CAAC;gBACJ,oBAAC,aAAa,IAAC,SAAS,EAAC,UAAU,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAkB;gBACrE,6BAAK,SAAS,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAQ;gBACxD,IAAI,CAAC,IAAI,CACP,CACA,CACL,CAAC,CACE,CACA,CACN,CAAC,CACA,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\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"]}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export declare type OptionalSettingsViewProps = {
3
+ getConfig: typeof FSBL.Clients.ConfigClient.getValue;
4
+ getApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;
5
+ updateApp: typeof FSBL.Clients.SmartDesktopClient.prototype.updateApp;
6
+ getPreloads: typeof FSBL.Clients.SmartDesktopClient.prototype.getPreloads;
7
+ deletePreload: typeof FSBL.Clients.SmartDesktopClient.prototype.deletePreload;
8
+ addPreload: typeof FSBL.Clients.SmartDesktopClient.prototype.addPreload;
9
+ updatePreload: typeof FSBL.Clients.SmartDesktopClient.prototype.updatePreload;
10
+ };
11
+ export declare const OptionalSettingsView: React.FunctionComponent<OptionalSettingsViewProps>;
@@ -0,0 +1,71 @@
1
+ import React, { useEffect } from "react";
2
+ import { Header } from "../common/Header";
3
+ import { View } from "./View";
4
+ import { Content } from "./Content";
5
+ import { Tab } from "../common/Tab";
6
+ import { launchTutorialLink } from "./common/fsbl_functions";
7
+ import { Preloads } from "./Preloads";
8
+ import { useDispatch, useSelector } from "../../store";
9
+ import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
10
+ import { EditPreload } from "./EditPreload";
11
+ const openLink = (url) => {
12
+ FSBL.Clients.LauncherClient.spawn("", {
13
+ url,
14
+ addToWorkspace: false,
15
+ }, () => { });
16
+ };
17
+ export const OptionalSettingsView = (props) => {
18
+ const dispatch = useDispatch();
19
+ const preloads = useSelector((state) => state.smartDesktopDesigner.preloads);
20
+ const currentPreload = useSelector((state) => state.smartDesktopDesigner.currentPreload);
21
+ const refreshPreloadList = () => {
22
+ props.getPreloads().then((response) => {
23
+ dispatch(SmartDesktopDesignerActions.update_preloads(response.preloads));
24
+ });
25
+ };
26
+ const setEditView = (preloadAlias) => {
27
+ let isSet = false;
28
+ preloads.forEach((preload) => {
29
+ if (preload.alias == preloadAlias) {
30
+ dispatch(SmartDesktopDesignerActions.set_current_preload(preload));
31
+ isSet = true;
32
+ }
33
+ });
34
+ if (!isSet) {
35
+ dispatch(SmartDesktopDesignerActions.set_current_preload({ alias: "", url: "" }));
36
+ }
37
+ };
38
+ const deletePreload = async (preloadAlias) => {
39
+ await props.deletePreload(preloadAlias);
40
+ refreshPreloadList();
41
+ };
42
+ const cancelAdd = () => {
43
+ dispatch(SmartDesktopDesignerActions.set_current_preload(null));
44
+ refreshPreloadList();
45
+ };
46
+ useEffect(() => {
47
+ refreshPreloadList();
48
+ }, []);
49
+ const preloadComponentProps = {
50
+ preloads,
51
+ deletePreload,
52
+ setEditView,
53
+ };
54
+ return (React.createElement(View, null,
55
+ React.createElement(Header, { helpFunction: () => {
56
+ launchTutorialLink("SDD-06-Preloads");
57
+ } }, "Optional"),
58
+ React.createElement(Content, null,
59
+ React.createElement(Tab, null,
60
+ React.createElement("div", { "data-label": "Preloads" },
61
+ React.createElement("div", { className: "frontmatter" },
62
+ "Inject logic into an existing JavaScript app to augment or modify its behavior.",
63
+ React.createElement("br", null),
64
+ React.createElement("a", { href: "", onClick: (e) => {
65
+ e.preventDefault();
66
+ openLink("https://documentation.finsemble.com/tutorial-Preloads.html");
67
+ } }, "Learn more about preloads"),
68
+ "."),
69
+ currentPreload !== null ? (React.createElement(EditPreload, Object.assign({}, props, { preload: currentPreload, cancelFunction: cancelAdd, updateApp: props.updateApp, deletePreload: deletePreload }))) : (React.createElement(Preloads, Object.assign({}, preloadComponentProps))))))));
70
+ };
71
+ //# sourceMappingURL=OptionalSettingsView.js.map
@@ -0,0 +1 @@
1
+ {"version":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BAAiB,CAAC,CAAC;YACvC,CAAC,eAGO;QAET,oBAAC,OAAO;YACP,oBAAC,GAAG;gBACH,2CAAgB,UAAU;oBACzB,6BAAK,SAAS,EAAC,aAAa;;wBAE3B,+BAAM;wBACN,2BACC,IAAI,EAAC,EAAE,EACP,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gCACd,CAAC,CAAC,cAAc,EAAE,CAAC;gCACnB,QAAQ,CAAC,4DAA4D,CAAC,CAAC;4BACxE,CAAC,gCAGE;4BAEC;oBACL,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,CAC1B,oBAAC,WAAW,oBACP,KAAK,IACT,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,SAAS,EACzB,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,aAAa,EAAE,aAAa,IAC3B,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,oBAAK,qBAAqB,EAAI,CACvC,CACI,CAmBD,CACG,CACJ,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React, { useEffect } from \"react\";\nimport { Header } from \"../common/Header\";\nimport { View } from \"./View\";\nimport { Content } from \"./Content\";\nimport { Tab } from \"../common/Tab\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\nimport { PreloadListProps, Preloads } from \"./Preloads\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { EditPreload } from \"./EditPreload\";\n\nexport type OptionalSettingsViewProps = {\n\tgetConfig: typeof FSBL.Clients.ConfigClient.getValue;\n\tgetApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;\n\tupdateApp: typeof FSBL.Clients.SmartDesktopClient.prototype.updateApp;\n\tgetPreloads: typeof FSBL.Clients.SmartDesktopClient.prototype.getPreloads;\n\tdeletePreload: typeof FSBL.Clients.SmartDesktopClient.prototype.deletePreload;\n\taddPreload: typeof FSBL.Clients.SmartDesktopClient.prototype.addPreload;\n\tupdatePreload: typeof FSBL.Clients.SmartDesktopClient.prototype.updatePreload;\n};\n\nconst openLink = (url: string) => {\n\tFSBL.Clients.LauncherClient.spawn(\n\t\t\"\",\n\t\t{\n\t\t\turl,\n\t\t\taddToWorkspace: false,\n\t\t},\n\t\t() => {}\n\t);\n};\n\nexport const OptionalSettingsView: React.FunctionComponent<OptionalSettingsViewProps> = (props) => {\n\tconst dispatch = useDispatch();\n\tconst preloads = useSelector((state: RootState) => state.smartDesktopDesigner.preloads);\n\tconst currentPreload = useSelector((state: RootState) => state.smartDesktopDesigner.currentPreload);\n\n\tconst refreshPreloadList = () => {\n\t\tprops.getPreloads().then((response: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_preloads(response.preloads));\n\t\t});\n\t};\n\n\tconst setEditView = (preloadAlias: string | null) => {\n\t\tlet isSet = false;\n\t\tpreloads.forEach((preload) => {\n\t\t\tif (preload.alias == preloadAlias) {\n\t\t\t\tdispatch(SmartDesktopDesignerActions.set_current_preload(preload));\n\t\t\t\tisSet = true;\n\t\t\t}\n\t\t});\n\n\t\tif (!isSet) {\n\t\t\tdispatch(SmartDesktopDesignerActions.set_current_preload({ alias: \"\", url: \"\" }));\n\t\t}\n\t};\n\n\tconst deletePreload = async (preloadAlias: string) => {\n\t\tawait props.deletePreload(preloadAlias);\n\t\trefreshPreloadList();\n\t};\n\n\tconst cancelAdd = () => {\n\t\tdispatch(SmartDesktopDesignerActions.set_current_preload(null));\n\t\trefreshPreloadList();\n\t};\n\n\tuseEffect(() => {\n\t\trefreshPreloadList();\n\t}, []);\n\n\tconst preloadComponentProps: PreloadListProps = {\n\t\tpreloads,\n\t\tdeletePreload,\n\t\tsetEditView,\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-06-Preloads\");\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tOptional\n\t\t\t</Header>\n\n\t\t\t<Content>\n\t\t\t\t<Tab>\n\t\t\t\t\t<div data-label=\"Preloads\">\n\t\t\t\t\t\t<div className=\"frontmatter\">\n\t\t\t\t\t\t\tInject logic into an existing JavaScript app to augment or modify its behavior.\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref=\"\"\n\t\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\topenLink(\"https://documentation.finsemble.com/tutorial-Preloads.html\");\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tLearn more about preloads\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t.\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{currentPreload !== null ? (\n\t\t\t\t\t\t\t<EditPreload\n\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\tpreload={currentPreload}\n\t\t\t\t\t\t\t\tcancelFunction={cancelAdd}\n\t\t\t\t\t\t\t\tupdateApp={props.updateApp}\n\t\t\t\t\t\t\t\tdeletePreload={deletePreload}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Preloads {...preloadComponentProps} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{/*\n\t\t\t\t\t<div data-label=\"Config\">\n\t\t\t\t\t\t<div className=\"frontmatter\">\n\t\t\t\t\t\t\tText text text\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\tText text text\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div data-label=\"SelectConnect\">\n\t\t\t\t\t\t<div className=\"frontmatter\">\n\t\t\t\t\t\t\tText text text\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\tText text text\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t*/}\n\t\t\t\t</Tab>\n\t\t\t</Content>\n\t\t</View>\n\t);\n};\n"]}
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { PreloadType } from "../../types/smartDesktopDesignerTypes";
3
+ export interface PreloadListProps {
4
+ preloads: PreloadType[];
5
+ deletePreload: (preloadAlias: string) => void;
6
+ setEditView: (preloadAlias: string | null) => void;
7
+ }
8
+ export declare const Preloads: React.FunctionComponent<PreloadListProps>;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { Button } from "../common/Button";
3
+ import { ItemList } from "./ItemList";
4
+ export const Preloads = ({ preloads, deletePreload, setEditView }) => {
5
+ const getItemId = (preload) => preload.alias;
6
+ const props = {
7
+ items: [...preloads],
8
+ deleteItem: deletePreload,
9
+ clickItem: setEditView,
10
+ getItemId,
11
+ getItemDisplayName: getItemId,
12
+ emptyListMessage: (React.createElement(React.Fragment, null,
13
+ "There\u2019s nothing here!",
14
+ React.createElement("br", null),
15
+ "Click the Add button to add preloads.")),
16
+ className: "no-dropzone",
17
+ };
18
+ return (React.createElement(React.Fragment, null,
19
+ React.createElement("div", null,
20
+ React.createElement(Button, { className: "icon-before-add", fashion: "primary", iconBefore: "plus", text: "Add", onClick: () => {
21
+ setEditView("");
22
+ } })),
23
+ React.createElement("div", null,
24
+ React.createElement(ItemList, Object.assign({}, props)))));
25
+ };
26
+ //# sourceMappingURL=Preloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preloads.js","sourceRoot":"","sources":["../../../src/components/sdd/Preloads.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAWrD,MAAM,CAAC,MAAM,QAAQ,GAA8C,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,EAAE;IAC/G,MAAM,SAAS,GAAG,CAAC,OAAoB,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAE1D,MAAM,KAAK,GAAkB;QAC5B,KAAK,EAAE,CAAC,GAAG,QAAQ,CAAC;QACpB,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,WAAW;QACtB,SAAS;QACT,kBAAkB,EAAE,SAAS;QAC7B,gBAAgB,EAAE,CACjB;;YAEC,+BAAM;oDAEJ,CACH;QACD,SAAS,EAAE,aAAa;KACxB,CAAC;IAEF,OAAO,CACN;QACC;YACC,oBAAC,MAAM,IACN,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAC,SAAS,EACjB,UAAU,EAAC,MAAM,EACjB,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,GAAG,EAAE;oBACb,WAAW,CAAC,EAAE,CAAC,CAAC;gBACjB,CAAC,GACA,CACG;QACN;YACC,oBAAC,QAAQ,oBAAK,KAAK,EAAI,CAClB,CACJ,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { Button } from \"../common/Button\";\nimport { ItemList, ItemListProps } from \"./ItemList\";\nimport { PreloadType } from \"../../types/smartDesktopDesignerTypes\";\n\nexport interface PreloadListProps {\n\tpreloads: PreloadType[];\n\tdeletePreload: (preloadAlias: string) => void;\n\tsetEditView: (preloadAlias: string | null) => void;\n}\n\ntype preloadType = { alias: string; url: string };\n\nexport const Preloads: React.FunctionComponent<PreloadListProps> = ({ preloads, deletePreload, setEditView }) => {\n\tconst getItemId = (preload: preloadType) => preload.alias;\n\n\tconst props: ItemListProps = {\n\t\titems: [...preloads],\n\t\tdeleteItem: deletePreload,\n\t\tclickItem: setEditView,\n\t\tgetItemId,\n\t\tgetItemDisplayName: getItemId,\n\t\temptyListMessage: (\n\t\t\t<>\n\t\t\t\tThere’s nothing here!\n\t\t\t\t<br />\n\t\t\t\tClick the Add button to add preloads.\n\t\t\t</>\n\t\t),\n\t\tclassName: \"no-dropzone\",\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<div>\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"icon-before-add\"\n\t\t\t\t\tfashion=\"primary\"\n\t\t\t\t\ticonBefore=\"plus\"\n\t\t\t\t\ttext=\"Add\"\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tsetEditView(\"\");\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<ItemList {...props} />\n\t\t\t</div>\n\t\t</>\n\t);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectErrors.js","sourceRoot":"","sources":["../../../src/components/sdd/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"]}