@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 @@
1
+ {"version":3,"file":"Publish.js","sourceRoot":"","sources":["../../../src/components/sdd/Publish.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAyB,CAAC,CA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,oBAAK,IAAI,EAAoB,CAC7C,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAC7C,6BAAK,SAAS,EAAC,0BAA0B,GAAO,CAChD,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CACxC,6BAAK,SAAS,EAAC,wBAAwB;oBACtC,oBAAC,aAAa,IAAC,SAAS,EAAC,6BAA6B,EAAC,IAAI,EAAC,OAAO,GAAiB,CAC/E,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,oBAAC,aAAa,IAAC,SAAS,EAAC,+BAA+B,EAAC,IAAI,EAAC,OAAO,GAAiB,CACjF,CACN,CACI;gBACN,6BAAK,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAO,CACpF,CACN,CACD,CAAC;QACH,CAAC,CAAC,CACG;QACL,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,yBAAyB;YACvC,mDAAyB;YACzB,gRAII;YACJ,oBAAC,gBAAgB,OAAG,CACf,CACN,CACC,CACH,CACI,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useState, useEffect } from \"react\";\nimport { PublishProgress } from \"./PublishProgress\";\nimport { ExportDeployInfo } from \"./ExportDeployInfo\";\nimport { Button } from \"../common/Button\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { useDispatch, useSelector } from \"../../store\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { ProgressState } from \"../../types/smartDesktopDesignerTypes\";\nimport { ExportProps } from \"./Export\";\nimport { FinsembleIcon } from \"../common/FinsembleIcon\";\nimport { FEA } from \"@finsemble/finsemble-api\";\n\ntype ProgressItem = FEA.ProgressItem;\n\nexport type PublishProps = ExportProps;\n\nexport const Publish = (props: PublishProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst [currentStep, setCurrentStep] = useState(\"\");\n\tconst [stepProgress, setStepProgress] = useState([] as Array<ProgressItem>);\n\n\tconst exportContext = useSelector((state: RootState) => state.smartDesktopDesigner.export);\n\n\tconst { deployInfo, publishError } = exportContext;\n\n\tconst tryAgain = () => {\n\t\tsetCurrentStep(\"\");\n\t\tsetStepProgress([]);\n\t\tdispatch(SmartDesktopDesignerActions.set_deploy_info(null));\n\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(null));\n\n\t\tprops\n\t\t\t.publishToCosaicCloud()\n\t\t\t.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))\n\t\t\t.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));\n\t};\n\n\tconst reset = () => {\n\t\tdispatch(SmartDesktopDesignerActions.set_is_publishing(false));\n\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(null));\n\t};\n\n\tconst hasError = stepProgress.some((step) => step.state === ProgressState.Error);\n\n\tconst didFinish =\n\t\t(stepProgress.length > 0 &&\n\t\t\tstepProgress.every((step) => {\n\t\t\t\tif (step.state === ProgressState.Error) {\n\t\t\t\t\tdispatch(SmartDesktopDesignerActions.set_publish_error(step.error));\n\t\t\t\t}\n\t\t\t\treturn step.state === ProgressState.Finished;\n\t\t\t})) ||\n\t\thasError;\n\n\tuseEffect(() => {\n\t\tlet debounceTimeout: any = null;\n\t\tif (!didFinish) {\n\t\t\tdebounceTimeout = setInterval(() => {\n\t\t\t\tprops.getPublishProgress().then((data) => {\n\t\t\t\t\tsetCurrentStep(data.currentStep);\n\t\t\t\t\tsetStepProgress(Object.values(data.steps));\n\n\t\t\t\t\t// Finished! When the installer step reaches state \"Finished\"\n\t\t\t\t\tif (data.steps[\"cloud\"].state === ProgressState.Finished) {\n\t\t\t\t\t\t// dispatch(SmartDesktopDesignerActions.SET_IS_PUBLISHING(false));\n\t\t\t\t\t\tclearInterval(debounceTimeout);\n\t\t\t\t\t\treset();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}, props.progressCheckInterval);\n\t\t}\n\n\t\treturn () => {\n\t\t\tif (debounceTimeout) {\n\t\t\t\tclearInterval(debounceTimeout);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\treturn (\n\t\t<div className=\"export-publish-container\">\n\t\t\t{publishError ? (\n\t\t\t\t<div className=\"export-publish-error\">\n\t\t\t\t\t<h3>Your project was not published</h3>\n\n\t\t\t\t\t<p>An error occurred while trying to publish.</p>\n\t\t\t\t\t<p className=\"export-publish-error-message\">&quot;{publishError}&quot;</p>\n\n\t\t\t\t\t<div className=\"export-error-actions\">\n\t\t\t\t\t\t<Button fashion=\"ghost\" text=\"Cancel\" onClick={reset} />\n\t\t\t\t\t\t<Button className=\"export-error-btn\" fashion=\"secondary\" text=\"Try again\" onClick={tryAgain} />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<h2>Publishing...</h2>\n\n\t\t\t\t\t<div className={[\"export-publish-progress\", hasError ? \"export-publish-has-error\" : \"\"].join(\" \")}>\n\t\t\t\t\t\t{[\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"initialize\",\n\t\t\t\t\t\t\t\tdescription: \"Creating a location for the project\",\n\t\t\t\t\t\t\t\terror: \"Failed to create a location for the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"zip\",\n\t\t\t\t\t\t\t\tdescription: \"Zipping project\",\n\t\t\t\t\t\t\t\terror: \"Failed to zip the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"upload\",\n\t\t\t\t\t\t\t\tdescription: \"Uploading project\",\n\t\t\t\t\t\t\t\terror: \"Failed to upload the project\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: \"cloud\",\n\t\t\t\t\t\t\t\tdescription: \"Creating installer and site\",\n\t\t\t\t\t\t\t\terror: \"Failed to publish\",\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t].map((step) => {\n\t\t\t\t\t\t\tlet data = stepProgress.find((item) => item.step === step.name);\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tdata && (\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tkey={step.name}\n\t\t\t\t\t\t\t\t\t\tclassName={[\n\t\t\t\t\t\t\t\t\t\t\t\"publish-progress-container\",\n\t\t\t\t\t\t\t\t\t\t\tcurrentStep === step.name ? \"publish-current-step\" : \"\",\n\t\t\t\t\t\t\t\t\t\t].join(\" \")}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-icon\">\n\t\t\t\t\t\t\t\t\t\t\t{/* eslint-disable no-nested-ternary */}\n\t\t\t\t\t\t\t\t\t\t\t{data.state === ProgressState.Started ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<PublishProgress {...data}></PublishProgress>\n\t\t\t\t\t\t\t\t\t\t\t) : data.state === ProgressState.NotStarted ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-pending\"></div>\n\t\t\t\t\t\t\t\t\t\t\t) : data.state === ProgressState.Error ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-error\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FinsembleIcon className=\"publish-progress-error-icon\" icon=\"times\"></FinsembleIcon>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-success\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FinsembleIcon className=\"publish-progress-success-icon\" icon=\"check\"></FinsembleIcon>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div className=\"publish-progress-text\">{data.error ? step.error : step.description}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t\t{deployInfo && (\n\t\t\t\t\t\t<div className=\"export-publish-uploaded\">\n\t\t\t\t\t\t\t<h3>Project uploaded</h3>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\tYour project has been uploaded to the cloud. It will take several minutes to generate an installer.\n\t\t\t\t\t\t\t\tShare the installer link with your team. The desktop you&apos;ve created will be available shortly by\n\t\t\t\t\t\t\t\tdownloading and installing from the link.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<ExportDeployInfo />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishProgress.js","sourceRoot":"","sources":["../../../src/components/sdd/PublishProgress.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9E,MAAM,CAAC,MAAM,eAAe,GAAkD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACtG,6BAAK,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3E,oBAAC,mBAAmB,IAKnB,KAAK,EAAE,eAAe,EACtB,WAAW,EAAE,EAAE,EACf,MAAM,EAAE,WAAW,CAAC;YACnB,sBAAsB,EAAE,GAAG;YAC3B,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;SAC1B,CAAC,GACoB,CAClB,CACN,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\n\nimport { CircularProgressbar, buildStyles } from \"react-circular-progressbar\";\n\nexport type PublishProgressProps = {\n\tpercentComplete: number;\n};\n\nexport const PublishProgress: React.FunctionComponent<PublishProgressProps> = ({ percentComplete }) => (\n\t<div className=\"publish-progress-indicator\" style={{ width: 24, height: 24 }}>\n\t\t<CircularProgressbar\n\t\t\t// strokeWidth={24}\n\t\t\t// reduction={0}\n\t\t\t// hideBall={true}\n\t\t\t// progress={percentComplete}\n\t\t\tvalue={percentComplete}\n\t\t\tstrokeWidth={15}\n\t\t\tstyles={buildStyles({\n\t\t\t\tpathTransitionDuration: 0.5,\n\t\t\t\tpathColor: `#42a5ba`,\n\t\t\t\ttrailColor: \"#373b43\",\n\t\t\t\tbackgroundColor: \"#3e98c7\",\n\t\t\t})}\n\t\t></CircularProgressbar>\n\t</div>\n);\n"]}
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ /// <reference types="react" />
6
+ import "../../assets/css/finsemble.css";
7
+ import "./css/styles.css";
8
+ declare let themeConfig: {
9
+ currentTheme: string;
10
+ defaultTheme: string;
11
+ themes: {
12
+ Default: any;
13
+ };
14
+ };
15
+ export declare type ThemeConfig = typeof themeConfig;
16
+ export declare type SmartDesktopDesignerProps = {
17
+ views: any[];
18
+ getConfig: typeof FSBL.Clients.ConfigClient.getValues;
19
+ resetProject: typeof FSBL.Clients.SmartDesktopClient.prototype.resetProject;
20
+ getSDServerInfo: typeof FSBL.Clients.SmartDesktopClient.prototype.getSDServerInfo;
21
+ getProjectSettings: typeof FSBL.Clients.SmartDesktopClient.prototype.getProjectSettings;
22
+ updateProjectSettings?: typeof FSBL.Clients.SmartDesktopClient.prototype.updateProjectSettings;
23
+ onThemeUpdated: typeof FSBL.Clients.SmartDesktopClient.onThemeUpdated;
24
+ selectProjectPath?: typeof FSBL.Clients.SmartDesktopClient.prototype.selectProjectPath;
25
+ restartFinsemble?: () => void;
26
+ };
27
+ export declare const SmartDesktopDesigner: (props: SmartDesktopDesignerProps) => JSX.Element;
28
+ export {};
@@ -0,0 +1,121 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React, { useState, useEffect, useRef } from "react";
6
+ import FloatingFocus from "@q42/floating-focus-a11y";
7
+ import "../../assets/css/finsemble.css";
8
+ import "./css/styles.css";
9
+ import { Navigation } from "./Navigation";
10
+ import { CurrentView } from "./CurrentView";
11
+ import { getCSSVars } from "./common/getCSSVars";
12
+ import { useSelector, useDispatch } from "../../store";
13
+ import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
14
+ import { ContentHeader } from "./ContentHeader";
15
+ import { Button } from "../common/Button";
16
+ new FloatingFocus();
17
+ const getDefaultTheme = () => {
18
+ let globalCssVars = {};
19
+ const docStyle = window.getComputedStyle(document.documentElement);
20
+ getCSSVars(document.styleSheets).forEach((varName) => {
21
+ globalCssVars[varName] = docStyle.getPropertyValue(varName).trim();
22
+ });
23
+ const themesheet = document.body.querySelector("#themesheet");
24
+ if (themesheet) {
25
+ document.body.removeChild(themesheet);
26
+ }
27
+ return globalCssVars;
28
+ };
29
+ let themeConfig = {
30
+ currentTheme: "Default",
31
+ defaultTheme: "Default",
32
+ themes: {
33
+ Default: getDefaultTheme(),
34
+ },
35
+ };
36
+ export const SmartDesktopDesigner = (props) => {
37
+ const dispatch = useDispatch();
38
+ const { views } = props;
39
+ const [theme, setTheme] = useState(themeConfig);
40
+ const [sdServerInfo, setSDServerInfo] = useState({ enabled: false, applicationRoot: "" });
41
+ const [version, setVersion] = useState("");
42
+ const project = useSelector((state) => state.smartDesktopDesigner.projectInfo);
43
+ const setProject = (value) => {
44
+ dispatch(SmartDesktopDesignerActions.set_project_info(value));
45
+ };
46
+ const themeListenerRef = useRef((addListenerErr, { data }) => {
47
+ const newTheme = Object.assign({}, themeConfig);
48
+ newTheme.themes.Default = Object.assign({}, newTheme.themes.Default);
49
+ for (let [key, value] of Object.entries(data)) {
50
+ newTheme.themes.Default[key] = value;
51
+ }
52
+ setTheme(newTheme);
53
+ });
54
+ useEffect(() => {
55
+ props.getConfig(null, (err, newConfig) => {
56
+ var _a, _b, _c;
57
+ if (err) {
58
+ FSBL.Clients.Logger.system.error("SmartDesktopDesigner", err);
59
+ return;
60
+ }
61
+ setVersion((_c = (_b = (_a = newConfig === null || newConfig === void 0 ? void 0 : newConfig.finsemble) === null || _a === void 0 ? void 0 : _a.system) === null || _b === void 0 ? void 0 : _b.FSBLVersion) !== null && _c !== void 0 ? _c : "");
62
+ props.getProjectSettings().then((response) => {
63
+ var _a;
64
+ let projectPath = project.path;
65
+ if ((_a = response.settings) === null || _a === void 0 ? void 0 : _a.path) {
66
+ projectPath = response.settings.path;
67
+ }
68
+ props.getSDServerInfo().then((jsInfo) => {
69
+ var _a, _b, _c;
70
+ if (!jsInfo.enabled) {
71
+ FSBL.Clients.Logger.system.error("Smart Desktop Designer started without the Smart Desktop Server being enabled. Check FEA configuration.");
72
+ }
73
+ else {
74
+ FSBL.Clients.Logger.system.log(`DPS application root: ${jsInfo.applicationRoot}`);
75
+ }
76
+ FSBL.Clients.Logger.system.log(`DPS info: ${JSON.stringify(jsInfo)}`);
77
+ FSBL.Clients.Logger.system.log(`NewConfig info: ${JSON.stringify(newConfig)}`);
78
+ setProject(Object.assign(Object.assign({}, project), { name: ((_a = jsInfo === null || jsInfo === void 0 ? void 0 : jsInfo.projectConfig) === null || _a === void 0 ? void 0 : _a.name) || "", path: projectPath, export: Object.assign(Object.assign({}, project.export), { toolbarIcon: "/assets/img/Finsemble_Toolbar_Icon.png", installerIcon: "/assets/img/installer_icon.ico", taskbarIcon: (_b = newConfig === null || newConfig === void 0 ? void 0 : newConfig.startup_app) === null || _b === void 0 ? void 0 : _b.applicationIcon, systemTrayIcon: (_c = newConfig === null || newConfig === void 0 ? void 0 : newConfig.finsemble) === null || _c === void 0 ? void 0 : _c.systemTrayIcon, splashScreenImage: newConfig === null || newConfig === void 0 ? void 0 : newConfig.splashScreenImage }) }));
79
+ setSDServerInfo(jsInfo);
80
+ });
81
+ });
82
+ });
83
+ const removeHandler = props.onThemeUpdated(themeListenerRef.current);
84
+ return () => {
85
+ removeHandler();
86
+ };
87
+ }, []);
88
+ const clickResetProjectButton = () => {
89
+ const resetProject = async () => {
90
+ const [err] = await props.resetProject();
91
+ if (err)
92
+ alert(`Project failed to reset: ${err.message}`);
93
+ };
94
+ FSBL.Clients.DialogManager.open("yesNo", {
95
+ title: "Are you sure?",
96
+ question: `Your project will be set back to factory defaults. You will lose all customizations except the name of the project. Finsemble will then be restarted.`,
97
+ hideModalOnClose: true,
98
+ showNegativeButton: false,
99
+ affirmativeResponseLabel: "Reset Project",
100
+ }, (err, response) => {
101
+ if (response.choice === "affirmative") {
102
+ resetProject();
103
+ }
104
+ });
105
+ };
106
+ return sdServerInfo.enabled ? (React.createElement("div", { className: "config-container" },
107
+ React.createElement("div", { className: "project-container" },
108
+ React.createElement("div", { className: "nav-container" },
109
+ React.createElement(Navigation, { views: views }),
110
+ React.createElement("div", { className: "bottom-nav-wrapper" },
111
+ React.createElement("div", { className: "nav-anchor-reset" },
112
+ React.createElement("div", { className: "version-info" }, version && `Finsemble version ${version}`),
113
+ React.createElement(Button, { fashion: "danger", text: "Reset project", onClick: () => {
114
+ clickResetProjectButton();
115
+ } })))),
116
+ React.createElement("div", { className: "content-container" },
117
+ React.createElement(ContentHeader, { name: project.name }),
118
+ React.createElement("div", { className: "view-container" },
119
+ React.createElement(CurrentView, { views: views, theme: theme })))))) : (React.createElement(React.Fragment, null));
120
+ };
121
+ //# sourceMappingURL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YACC,KAAK,EAAE,eAAe;YACtB,QAAQ,EAAE,uJAAuJ;YACjK,gBAAgB,EAAE,IAAI;YACtB,kBAAkB,EAAE,KAAK;YACzB,wBAAwB,EAAE,eAAe;SACzC,EACD,CAAC,GAAQ,EAAE,QAA4B,EAAE,EAAE;YAC1C,IAAI,QAAQ,CAAC,MAAM,KAAK,aAAa,EAAE;gBACtC,YAAY,EAAE,CAAC;aACf;QACF,CAAC,CACD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAC7B,6BAAK,SAAS,EAAC,kBAAkB;QAChC,6BAAK,SAAS,EAAC,mBAAmB;YACjC,6BAAK,SAAS,EAAC,eAAe;gBAC7B,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,GAAe;gBAEvC,6BAAK,SAAS,EAAC,oBAAoB;oBAClC,6BAAK,SAAS,EAAC,kBAAkB;wBAChC,6BAAK,SAAS,EAAC,cAAc,IAAE,OAAO,IAAI,qBAAqB,OAAO,EAAE,CAAO;wBAC/E,oBAAC,MAAM,IACN,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,GAAG,EAAE;gCACb,uBAAuB,EAAE,CAAC;4BAC3B,CAAC,GACA,CACG,CACD,CACD;YAEN,6BAAK,SAAS,EAAC,mBAAmB;gBACjC,oBAAC,aAAa,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,GAAI;gBACrC,6BAAK,SAAS,EAAC,gBAAgB;oBAC9B,oBAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAgB,CAClD,CACD,CACD,CACD,CACN,CAAC,CAAC,CAAC,CACH,yCAAK,CACL,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\n/* If you rename \"SmartDesktopDesigner\" to something else (it's been Maker UI, Jumpstart, and DesktopProjectEditor in the past), grep for the following terms (case insensitive):\n * \"SmartDesktop\", \"Smart Desktop\", \"SDD\", \"SDServer\", \"SMART_DESKTOP\"\n */\n\nimport React, { useState, useEffect, useRef } from \"react\";\nimport FloatingFocus from \"@q42/floating-focus-a11y\";\nimport \"../../assets/css/finsemble.css\";\nimport \"./css/styles.css\";\nimport { Navigation } from \"./Navigation\";\nimport { CurrentView } from \"./CurrentView\";\nimport { getCSSVars } from \"./common/getCSSVars\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { ProjectSaveData } from \"../../types/smartDesktopDesignerTypes\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { FEA } from \"@finsemble/finsemble-api\";\nimport { ContentHeader } from \"./ContentHeader\";\nimport { Button } from \"../common/Button\";\n\ntype SDServerInfo = FEA.SDServerInfo;\n\n// The package FloatingFocus injects a focus indicator that moves around the page, but only for\n// keyboard users. (Mouse users don't see the indicator.) All that needs to be done is to envoke it.\nnew FloatingFocus();\n// If you want to make changes to the indicator, the styles are being maintained in assets/css/focus.css\n\nconst getDefaultTheme = () => {\n\tlet globalCssVars: any = {};\n\tconst docStyle = window.getComputedStyle(document.documentElement);\n\tgetCSSVars(document.styleSheets).forEach((varName: any) => {\n\t\tglobalCssVars[varName] = docStyle.getPropertyValue(varName).trim();\n\t});\n\n\t// In order to prevent the theme from affecting content of smartDesktopDesigner.tsx,\n\t// remove the sheet after reading variables\n\tconst themesheet = document.body.querySelector(\"#themesheet\");\n\tif (themesheet) {\n\t\tdocument.body.removeChild(themesheet);\n\t}\n\n\treturn globalCssVars;\n};\n\nlet themeConfig = {\n\tcurrentTheme: \"Default\",\n\tdefaultTheme: \"Default\",\n\tthemes: {\n\t\tDefault: getDefaultTheme(),\n\t},\n};\n\nexport type ThemeConfig = typeof themeConfig;\n\nexport type SmartDesktopDesignerProps = {\n\tviews: any[];\n\tgetConfig: typeof FSBL.Clients.ConfigClient.getValues;\n\tresetProject: typeof FSBL.Clients.SmartDesktopClient.prototype.resetProject;\n\tgetSDServerInfo: typeof FSBL.Clients.SmartDesktopClient.prototype.getSDServerInfo;\n\tgetProjectSettings: typeof FSBL.Clients.SmartDesktopClient.prototype.getProjectSettings;\n\tupdateProjectSettings?: typeof FSBL.Clients.SmartDesktopClient.prototype.updateProjectSettings;\n\tonThemeUpdated: typeof FSBL.Clients.SmartDesktopClient.onThemeUpdated;\n\tselectProjectPath?: typeof FSBL.Clients.SmartDesktopClient.prototype.selectProjectPath;\n\trestartFinsemble?: () => void;\n};\n\nexport const SmartDesktopDesigner = (props: SmartDesktopDesignerProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst { views } = props;\n\tconst [theme, setTheme] = useState(themeConfig);\n\tconst [sdServerInfo, setSDServerInfo] = useState({ enabled: false, applicationRoot: \"\" } as SDServerInfo);\n\tconst [version, setVersion] = useState(\"\");\n\n\tconst project = useSelector((state: RootState) => state.smartDesktopDesigner.projectInfo);\n\n\tconst setProject = (value: ProjectSaveData) => {\n\t\tdispatch(SmartDesktopDesignerActions.set_project_info(value));\n\t};\n\n\tconst themeListenerRef = useRef((addListenerErr: any, { data }: { data: any }) => {\n\t\tconst newTheme = { ...themeConfig };\n\t\tnewTheme.themes.Default = { ...newTheme.themes.Default };\n\n\t\tfor (let [key, value] of Object.entries(data)) {\n\t\t\tnewTheme.themes.Default[key] = value;\n\t\t}\n\t\tsetTheme(newTheme);\n\t});\n\n\t// Similar to componentDidMount and componentDidUpdate:\n\tuseEffect(() => {\n\t\tprops.getConfig(null, (err: any, newConfig: any) => {\n\t\t\tif (err) {\n\t\t\t\tFSBL.Clients.Logger.system.error(\"SmartDesktopDesigner\", err);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// @todo: We should use a Client API for this, rather than relying on the config to look this way.\n\t\t\t// That change will be easier to do once the SDD is removed from the Seed.\n\t\t\tsetVersion(newConfig?.finsemble?.system?.FSBLVersion ?? \"\");\n\n\t\t\tprops.getProjectSettings().then((response) => {\n\t\t\t\tlet projectPath = project.path;\n\n\t\t\t\tif (response.settings?.path) {\n\t\t\t\t\tprojectPath = response.settings.path;\n\t\t\t\t}\n\n\t\t\t\tprops.getSDServerInfo().then((jsInfo) => {\n\t\t\t\t\tif (!jsInfo.enabled) {\n\t\t\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\t\t\"Smart Desktop Designer started without the Smart Desktop Server being enabled. Check FEA configuration.\"\n\t\t\t\t\t\t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tFSBL.Clients.Logger.system.log(`DPS application root: ${jsInfo.applicationRoot}`);\n\t\t\t\t\t}\n\t\t\t\t\tFSBL.Clients.Logger.system.log(`DPS info: ${JSON.stringify(jsInfo)}`);\n\t\t\t\t\tFSBL.Clients.Logger.system.log(`NewConfig info: ${JSON.stringify(newConfig)}`);\n\n\t\t\t\t\tsetProject({\n\t\t\t\t\t\t...project,\n\t\t\t\t\t\tname: jsInfo?.projectConfig?.name || \"\",\n\t\t\t\t\t\tpath: projectPath,\n\t\t\t\t\t\texport: {\n\t\t\t\t\t\t\t...project.export,\n\t\t\t\t\t\t\ttoolbarIcon: \"/assets/img/Finsemble_Toolbar_Icon.png\",\n\t\t\t\t\t\t\tinstallerIcon: \"/assets/img/installer_icon.ico\",\n\t\t\t\t\t\t\ttaskbarIcon: newConfig?.startup_app?.applicationIcon,\n\t\t\t\t\t\t\tsystemTrayIcon: newConfig?.finsemble?.systemTrayIcon,\n\t\t\t\t\t\t\tsplashScreenImage: newConfig?.splashScreenImage,\n\t\t\t\t\t\t},\n\t\t\t\t\t});\n\n\t\t\t\t\t// This should be done last as its checked for initial rendering\n\t\t\t\t\t// Otherwise, inital values will be cached within states of sub components\n\t\t\t\t\t// \"Untitled project\" will show as project.name since it will be \"\", e.g.\n\t\t\t\t\tsetSDServerInfo(jsInfo);\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\n\t\tconst removeHandler = props.onThemeUpdated(themeListenerRef.current);\n\t\treturn () => {\n\t\t\tremoveHandler();\n\t\t};\n\t}, []);\n\n\tconst clickResetProjectButton = () => {\n\t\tconst resetProject = async () => {\n\t\t\tconst [err] = await props.resetProject();\n\t\t\tif (err) alert(`Project failed to reset: ${err.message}`);\n\t\t};\n\t\tFSBL.Clients.DialogManager.open(\n\t\t\t\"yesNo\",\n\t\t\t{\n\t\t\t\ttitle: \"Are you sure?\",\n\t\t\t\tquestion: `Your project will be set back to factory defaults. You will lose all customizations except the name of the project. Finsemble will then be restarted.`,\n\t\t\t\thideModalOnClose: true,\n\t\t\t\tshowNegativeButton: false,\n\t\t\t\taffirmativeResponseLabel: \"Reset Project\",\n\t\t\t},\n\t\t\t(err: any, response: { choice: string }) => {\n\t\t\t\tif (response.choice === \"affirmative\") {\n\t\t\t\t\tresetProject();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t};\n\n\treturn sdServerInfo.enabled ? (\n\t\t<div className=\"config-container\">\n\t\t\t<div className=\"project-container\">\n\t\t\t\t<div className=\"nav-container\">\n\t\t\t\t\t<Navigation views={views}></Navigation>\n\n\t\t\t\t\t<div className=\"bottom-nav-wrapper\">\n\t\t\t\t\t\t<div className=\"nav-anchor-reset\">\n\t\t\t\t\t\t\t<div className=\"version-info\">{version && `Finsemble version ${version}`}</div>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tfashion=\"danger\"\n\t\t\t\t\t\t\t\ttext=\"Reset project\"\n\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\tclickResetProjectButton();\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</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"content-container\">\n\t\t\t\t\t<ContentHeader name={project.name} />\n\t\t\t\t\t<div className=\"view-container\">\n\t\t\t\t\t\t<CurrentView views={views} theme={theme}></CurrentView>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</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c,CAAC,CAC/B;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,gBAAgB,mBAAqB;oBAEnD,mBAAmB,CAAC,gBAAgB,CAAC,CACjC,CACI;YAEX,kCAAU,SAAS,EAAC,oBAAoB;gBACvC,6BAAK,SAAS,EAAC,2BAA2B;oBACzC,6CAAuB;oBAEvB,oBAAC,OAAO,oDAAoD,CACvD;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,iBAAiB,cAAgB;oBAE/C,mBAAmB,CAAC,iBAAiB,CAAC,CAClC;gBAEN,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,+BAAO,OAAO,EAAC,mBAAmB,mBAAqB;oBAEtD,mBAAmB,CAAC,mBAAmB,CAAC,CACpC,CACI,CACN,CACD,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport { ColorPicker, colorToRGBA, RGBA_CHANNEL } from \"../common/ColorPicker\";\nimport \"./ThemePage.css\";\n\nexport type ThemeBundle = { [key: string]: string };\n\nexport type ThemePageProps = {\n\tupdateThemes: (id: string, newValue: string) => void;\n\ttheme: ThemeBundle;\n};\n\nexport const ThemePage = ({ updateThemes, theme }: ThemePageProps) => {\n\tconst generateColorPicker = (id: string) => (\n\t\t<ColorPicker\n\t\t\tid={id}\n\t\t\tstartColor={theme[`--${id}`] || \"\"}\n\t\t\tupdateColor={(newColor: string) => {\n\t\t\t\tif (id === \"font-color\") {\n\t\t\t\t\tconst rgba = colorToRGBA(newColor),\n\t\t\t\t\t\trgb = [rgba[RGBA_CHANNEL.RED], rgba[RGBA_CHANNEL.GREEN], rgba[RGBA_CHANNEL.BLUE]],\n\t\t\t\t\t\talpha = 0.3; // (rgba[RGBA_CHANNEL.ALPHA] / 255)\n\n\t\t\t\t\tupdateThemes(`--toolbar-separator`, `1px solid rgba(${rgb.join(\", \")}, ${alpha})`);\n\t\t\t\t}\n\n\t\t\t\tupdateThemes(`--${id}`, newColor);\n\t\t\t}}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<div className=\"theme-settings\">\n\t\t\t<div className=\"theme-colors\">\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Font settings</legend>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"font-color\">Primary font color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"font-color\")}\n\t\t\t\t\t\t<Tooltip>Main text color. Make sure there is enough contrast against the primary background.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-5\">Secondary font color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-5\")}\n\t\t\t\t\t\t<Tooltip>Secondary text color. Make sure there is enough contrast against the primary background.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"font-color-2\">Contrast color</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"font-color-2\")}\n\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\tColor of text that is not against a typical background. Make it light if you have a light theme, or dark\n\t\t\t\t\t\t\tif you have a dark theme.\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\n\t\t\t<div className=\"theme-colors\">\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Brand color</legend>\n\n\t\t\t\t\t\t<Tooltip>The primary accent color that affects icons, form elements, buttons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-primary\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-primary\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-primary-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-primary-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Background color</legend>\n\n\t\t\t\t\t\t<Tooltip>Background color of desktop components such as the Toolbar and window Titlebar.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary\">Primary background</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-1\">Secondary background</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Navigation buttons</legend>\n\n\t\t\t\t\t\t<Tooltip>Background color for navigation buttons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-2\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-2\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Highlights and mouseover colors</legend>\n\n\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\tColors used to highlight particular elements or when a user mouses over selected elements.\n\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-3\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-3\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"core-primary-4\">Secondary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"core-primary-4\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Success</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of messages indicating success and affirmations, such as checkmark icons.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-positive\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-positive\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-positive-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-positive-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Reminders and warnings</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of non-critical alerts.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-aware\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-aware\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-aware-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-aware-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\n\t\t\t\t<fieldset className=\"appearance-options\">\n\t\t\t\t\t<div className=\"appearance-options-header\">\n\t\t\t\t\t\t<legend>Errors</legend>\n\n\t\t\t\t\t\t<Tooltip>Color of critical errors and information.</Tooltip>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-negative\">Primary</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-negative\")}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"appearance-options-field\">\n\t\t\t\t\t\t<label htmlFor=\"accent-negative-1\">On mouseover</label>\n\n\t\t\t\t\t\t{generateColorPicker(\"accent-negative-1\")}\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Themes.js","sourceRoot":"","sources":["../../../src/components/sdd/Themes.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAqB3D,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACtB,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACO,EAAE,EAAE;IAChB,MAAM,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AE,kBAAkB,EACtC,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,GACvC,CACG,CACG,CACJ,CACP,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useState, useEffect } from \"react\";\nimport { View } from \"./View\";\nimport { Header } from \"../common/Header\";\nimport { Content } from \"./Content\";\n\n// Copied from <Appearance>\nimport { Appearance } from \"./Appearance\";\nimport { darkTheme, lightTheme } from \"./themeDefinitions\";\nimport { ThemeBundle } from \"./ThemePage\";\nimport { ProjectSaveData, SDServerInfo } from \"../../types/smartDesktopDesignerTypes\";\n\nexport type ThemeProps = {\n\tgetSDServerInfo: (cb: Function) => void;\n\tupdateProjectSettings: (obj: ProjectSaveData) => Promise<{ err: string | undefined }>;\n\tareYouSure: (affirmativeCallback: Function) => void;\n\tupdateThemes: (id: string, newValue: string) => void;\n\tupdateSplashScreen: any;\n\tupdateToolbarIcon: any;\n\tupdateTaskbarIcon: any;\n\tupdateSystemTrayIcon: any;\n\tupdateInstallerIcon: any;\n\ttheme: {\n\t\tthemes: {\n\t\t\tDefault: ThemeBundle;\n\t\t};\n\t};\n};\n\nexport const Themes = ({\n\tgetSDServerInfo,\n\tupdateProjectSettings,\n\tareYouSure,\n\tupdateThemes,\n\tupdateSplashScreen,\n\tupdateToolbarIcon,\n\tupdateTaskbarIcon,\n\tupdateSystemTrayIcon,\n\tupdateInstallerIcon,\n\ttheme,\n}: ThemeProps) => {\n\tconst [applicationRoot, setApplicationRoot] = useState(\"\");\n\tconst [project, setProject] = useState({\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t});\n\n\t// Copied from <Appearance>\n\tconst [toolbarIcon, setToolbarIcon] = useState(project.export.toolbarIcon);\n\tconst [taskbarIcon, setTaskbarIcon] = useState(project.export.taskbarIcon);\n\tconst [installerIcon, setInstallerIcon] = useState(project.export.installerIcon);\n\tconst [systemTrayIcon, setSystemTrayIcon] = useState(project.export.systemTrayIcon);\n\tconst [splashScreenImage, setSplashScreenImage] = useState(project.export.splashScreenImage);\n\tconst [iconsChanged, setIconsChanged] = useState(0);\n\n\tuseEffect(() => {\n\t\tgetSDServerInfo((info: ProjectSaveData & SDServerInfo) => {\n\t\t\tsetProject(info);\n\t\t\tsetApplicationRoot(info.applicationRoot || \"\");\n\t\t\tsetToolbarIcon(info.export.toolbarIcon);\n\t\t\tsetTaskbarIcon(info.export.taskbarIcon);\n\t\t\tsetInstallerIcon(info.export.installerIcon);\n\t\t\tsetSystemTrayIcon(info.export.systemTrayIcon);\n\t\t\tsetSplashScreenImage(info.export.splashScreenImage);\n\t\t});\n\t}, []);\n\n\tuseEffect(() => {\n\t\tupdateProjectSettings({\n\t\t\t...project,\n\t\t\texport: {\n\t\t\t\t...project.export,\n\t\t\t\ttoolbarIcon,\n\t\t\t\tinstallerIcon,\n\t\t\t\ttaskbarIcon,\n\t\t\t\tsystemTrayIcon,\n\t\t\t\tsplashScreenImage,\n\t\t\t},\n\t\t});\n\t}, [iconsChanged]);\n\n\treturn (\n\t\t<View>\n\t\t\t<Content>\n\t\t\t\t<div className=\"theme-edit\">\n\t\t\t\t\t<Appearance\n\t\t\t\t\t\tstartTheme={theme.themes.Default}\n\t\t\t\t\t\tdarkTheme={darkTheme}\n\t\t\t\t\t\tlightTheme={lightTheme}\n\t\t\t\t\t\tupdateThemes={updateThemes}\n\t\t\t\t\t\tareYouSure={areYouSure}\n\t\t\t\t\t\tbaseURL={applicationRoot || \"\"}\n\t\t\t\t\t\ttoolbarIcon={toolbarIcon}\n\t\t\t\t\t\tsetToolbarIcon={setToolbarIcon}\n\t\t\t\t\t\ttaskbarIcon={taskbarIcon}\n\t\t\t\t\t\tsetTaskbarIcon={setTaskbarIcon}\n\t\t\t\t\t\tinstallerIcon={installerIcon}\n\t\t\t\t\t\tsetInstallerIcon={setInstallerIcon}\n\t\t\t\t\t\tsystemTrayIcon={systemTrayIcon}\n\t\t\t\t\t\tsetSystemTrayIcon={setSystemTrayIcon}\n\t\t\t\t\t\tsplashScreenImage={splashScreenImage}\n\t\t\t\t\t\tsetSplashScreenImage={setSplashScreenImage}\n\t\t\t\t\t\tsetIconsChanged={setIconsChanged}\n\t\t\t\t\t\tupdateSplashScreen={updateSplashScreen}\n\t\t\t\t\t\tupdateToolbarIcon={updateToolbarIcon}\n\t\t\t\t\t\tupdateTaskbarIcon={updateTaskbarIcon}\n\t\t\t\t\t\tupdateSystemTrayIcon={updateSystemTrayIcon}\n\t\t\t\t\t\tupdateInstallerIcon={updateInstallerIcon}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</Content>\n\t\t</View>\n\t);\n};\n"]}
@@ -5,11 +5,12 @@
5
5
  import React, { useEffect, useState } from "react";
6
6
  import { useSelector, useDispatch } from "../../store";
7
7
  import { View } from "./View";
8
+ import { Tab } from "../common/Tab";
8
9
  import { Header } from "../common/Header";
9
10
  import { FinsembleSelect } from "../common/FinsembleSelect";
10
11
  import { Button } from "../common/Button";
11
12
  import { Content } from "./Content";
12
- import { ApplicationList } from "./ApplicationList";
13
+ import { ItemList } from "./ItemList";
13
14
  import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
14
15
  const MENU_NAME_MAX_LENGTH = 50;
15
16
  const EMPTY_MENU_ERROR = {
@@ -76,7 +77,7 @@ export const Toolbar = (props) => {
76
77
  };
77
78
  useEffect(updateMenuList, []);
78
79
  const applicationListProps = {
79
- apps: Object.entries(menus).map(([key, value]) => {
80
+ items: Object.entries(menus).map(([key, value]) => {
80
81
  var _a;
81
82
  const menuObj = JSON.parse(JSON.stringify(value));
82
83
  menuObj.appId = key;
@@ -86,12 +87,12 @@ export const Toolbar = (props) => {
86
87
  }
87
88
  return menuObj;
88
89
  }),
89
- clickApp: (menuId) => {
90
+ clickItem: (menuId) => {
90
91
  setCurrentMenuID(menuId);
91
92
  setMenuName(menus[menuId].displayName);
92
93
  setSelectedApps(menus[menuId].applications);
93
94
  },
94
- deleteApp: removeMenuID,
95
+ deleteItem: removeMenuID,
95
96
  };
96
97
  const backFunction = () => {
97
98
  setCurrentMenuID("");
@@ -112,12 +113,13 @@ export const Toolbar = (props) => {
112
113
  React.createElement(Button, { fashion: "secondary", text: "Save", disabled: menuName.length <= 0, onClick: updateMenuItem }))))) : (React.createElement(View, null,
113
114
  React.createElement(Header, null, "Toolbar"),
114
115
  React.createElement(Content, null,
115
- React.createElement("div", { "data-label": "Menus" },
116
- React.createElement("div", { className: "frontmatter" },
117
- "This screen allows you to make menus that will appear on your Toolbar.",
118
- React.createElement("br", null),
119
- "You are allowed a maximum of five Menus."),
120
- React.createElement(Button, { className: "icon-before-add", fashion: "primary", text: "Add", iconBefore: "plus", disabled: Object.keys(menus).length >= 5, onClick: addNewMenu }),
121
- React.createElement(ApplicationList, Object.assign({}, applicationListProps))))))));
116
+ React.createElement(Tab, null,
117
+ React.createElement("div", { "data-label": "Menus" },
118
+ React.createElement("div", { className: "frontmatter" },
119
+ "This screen allows you to make menus that will appear on your Toolbar.",
120
+ React.createElement("br", null),
121
+ "You are allowed a maximum of five Menus."),
122
+ React.createElement(Button, { className: "icon-before-add", fashion: "primary", text: "Add", iconBefore: "plus", disabled: Object.keys(menus).length >= 5, onClick: addNewMenu }),
123
+ React.createElement(ItemList, Object.assign({}, applicationListProps)))))))));
122
124
  };
123
125
  //# sourceMappingURL=Toolbar.js.map
@@ -0,0 +1 @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,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,IAAI,CAAC,EAAE,OAAO,EAAE,cAAc,GAAI,CAC9F,CACG,CACJ,CACP,CAAC,CAAC,CAAC,CACH,oBAAC,IAAI;QACJ,oBAAC,MAAM,kBAAiB;QACxB,oBAAC,OAAO;YACP,oBAAC,GAAG;gBACH,2CAAgB,OAAO;oBACtB,6BAAK,SAAS,EAAC,aAAa;;wBAE3B,+BAAM;mEAED;oBACN,oBAAC,MAAM,IACN,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,KAAK,EACV,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,EACxC,OAAO,EAAE,UAAU,GAClB;oBACF,oBAAC,QAAQ,oBAAK,oBAAoB,EAAI,CACjC,CACD,CACG,CACJ,CACP,CACC,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { View } from \"./View\";\nimport { Tab } from \"../common/Tab\";\nimport { Header } from \"../common/Header\";\nimport { FinsembleSelect } from \"../common/FinsembleSelect\";\nimport { Button } from \"../common/Button\";\nimport { Content } from \"./Content\";\nimport { ItemList, ItemListProps } from \"./ItemList\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport { MenuType, ProjectError } from \"../../types/smartDesktopDesignerTypes\";\n\nconst MENU_NAME_MAX_LENGTH = 50;\n\nexport type ToolbarProps = {\n\tgetApps: typeof FSBL.Clients.SmartDesktopClient.prototype.getApps;\n\tgetMenus: typeof FSBL.Clients.SmartDesktopClient.prototype.getMenus;\n\taddMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.addMenu;\n\tupdateMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.updateMenu;\n\tdeleteMenu: (value: string) => Promise<{ err: any }>;\n};\n\nconst EMPTY_MENU_ERROR: ProjectError = {\n\tviewId: \"toolbar\",\n\tmessage: \"One or more of your app menus is empty\",\n};\n\nexport const Toolbar = (props: ToolbarProps) => {\n\tconst dispatch = useDispatch();\n\tconst [currentMenuID, setCurrentMenuID] = useState(\"\");\n\tconst [menuName, setMenuName] = useState(\"\");\n\tconst [selectedApps, setSelectedApps] = useState<string[]>([]);\n\n\tconst apps = useSelector((state: RootState) => state.smartDesktopDesigner.apps);\n\tconst menus = useSelector<MenuType>((state: RootState) => state.smartDesktopDesigner.menus);\n\n\tif (Object.values(menus).every((menu) => menu.applications.length > 0)) {\n\t\tdispatch(SmartDesktopDesignerActions.delete_project_error(EMPTY_MENU_ERROR));\n\t} else {\n\t\tdispatch(SmartDesktopDesignerActions.set_project_error(EMPTY_MENU_ERROR));\n\t}\n\n\tfunction updateMenuList() {\n\t\t// Get the app list, so that you can add those apps to the menu\n\t\tprops.getApps().then((response: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_apps(response.apps));\n\t\t});\n\t\t// Get the menu list\n\t\tprops.getMenus().then((getMenusResponse: any) => {\n\t\t\tdispatch(SmartDesktopDesignerActions.update_menus(getMenusResponse.menus));\n\t\t});\n\t}\n\n\tconst updateMenuItem = () => {\n\t\tconst whenDone = () => {\n\t\t\tupdateMenuList();\n\t\t\tsetMenuName(\"\");\n\t\t\tsetCurrentMenuID(\"\");\n\t\t};\n\t\tif (currentMenuID == \"new\") {\n\t\t\tprops\n\t\t\t\t.addMenu({\n\t\t\t\t\tdisplayName: menuName,\n\t\t\t\t\tapplications: selectedApps,\n\t\t\t\t\tposition: -1,\n\t\t\t\t})\n\t\t\t\t.then(whenDone);\n\t\t} else {\n\t\t\tprops\n\t\t\t\t.updateMenu(currentMenuID, {\n\t\t\t\t\tdisplayName: menuName,\n\t\t\t\t\tapplications: selectedApps,\n\t\t\t\t\tposition: menus[currentMenuID].position,\n\t\t\t\t})\n\t\t\t\t.then(whenDone);\n\t\t}\n\t};\n\n\tconst removeMenuID = (id: string) => {\n\t\tprops.deleteMenu(id).then(({ err }: { err: string }) => {\n\t\t\tif (err) {\n\t\t\t\talert(err);\n\t\t\t}\n\t\t\tupdateMenuList();\n\t\t});\n\t};\n\n\tconst addNewMenu = () => {\n\t\tsetCurrentMenuID(\"new\");\n\t};\n\n\t/********* Lifecycle effects *********/\n\n\t// Call updateMenuList once the component has mounted\n\t// Can't call out of an effect, or it will cause an endless loop\n\tuseEffect(updateMenuList, []);\n\n\tconst applicationListProps: ItemListProps = {\n\t\titems: Object.entries(menus).map(([key, value]) => {\n\t\t\tconst menuObj = JSON.parse(JSON.stringify(value));\n\t\t\tmenuObj.appId = key;\n\t\t\tmenuObj.name = menuObj.name ?? menuObj.displayName;\n\t\t\tif (menuObj.applications.length === 0) {\n\t\t\t\tmenuObj.icons = \"warning\";\n\t\t\t}\n\t\t\treturn menuObj;\n\t\t}),\n\t\tclickItem: (menuId: string) => {\n\t\t\tsetCurrentMenuID(menuId);\n\t\t\tsetMenuName(menus[menuId].displayName);\n\t\t\tsetSelectedApps(menus[menuId].applications);\n\t\t},\n\t\tdeleteItem: removeMenuID,\n\t};\n\n\tconst backFunction = () => {\n\t\tsetCurrentMenuID(\"\");\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{currentMenuID ? (\n\t\t\t\t<View>\n\t\t\t\t\t<Header backFunction={backFunction}>Menus</Header>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t<div className=\"app-edit-field\">\n\t\t\t\t\t\t\t<label htmlFor=\"menu-name\">Name</label>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tid=\"menu-name\"\n\t\t\t\t\t\t\t\tvalue={menuName}\n\t\t\t\t\t\t\t\tonChange={(e) => {\n\t\t\t\t\t\t\t\t\t// This is the equivalent of using maxLength={MENU_NAME_MAX_LENGTH}\n\t\t\t\t\t\t\t\t\t// except that this way is testable with enzyme\n\t\t\t\t\t\t\t\t\tsetMenuName(e.target.value.substr(0, MENU_NAME_MAX_LENGTH));\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"app-edit-field\">\n\t\t\t\t\t\t\t<label htmlFor=\"menu-group\">Group contents</label>\n\t\t\t\t\t\t\t<FinsembleSelect\n\t\t\t\t\t\t\t\toptions={apps.map((app) => app.name)}\n\t\t\t\t\t\t\t\tvalues={apps.map((app) => app.appId)}\n\t\t\t\t\t\t\t\tselected={menus[currentMenuID]?.applications || []}\n\t\t\t\t\t\t\t\tupdateCallback={setSelectedApps}\n\t\t\t\t\t\t\t\tshowSearch={true}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"app-edit-actions\">\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<Button fashion=\"secondary\" text=\"Save\" disabled={menuName.length <= 0} onClick={updateMenuItem} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</Content>\n\t\t\t\t</View>\n\t\t\t) : (\n\t\t\t\t<View>\n\t\t\t\t\t<Header>Toolbar</Header>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t<Tab>\n\t\t\t\t\t\t\t<div data-label=\"Menus\">\n\t\t\t\t\t\t\t\t<div className=\"frontmatter\">\n\t\t\t\t\t\t\t\t\tThis screen allows you to make menus that will appear on your Toolbar.\n\t\t\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t\t\tYou are allowed a maximum of five Menus.\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tclassName=\"icon-before-add\"\n\t\t\t\t\t\t\t\t\tfashion=\"primary\"\n\t\t\t\t\t\t\t\t\ttext=\"Add\"\n\t\t\t\t\t\t\t\t\ticonBefore=\"plus\"\n\t\t\t\t\t\t\t\t\tdisabled={Object.keys(menus).length >= 5}\n\t\t\t\t\t\t\t\t\tonClick={addNewMenu}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t<ItemList {...applicationListProps} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Tab>\n\t\t\t\t\t</Content>\n\t\t\t\t</View>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../src/components/sdd/View.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,0CAAG,KAAK,CAAC,QAAQ,CAAI,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\n\nexport const View = (props: { children: React.ReactNode }) => <>{props.children}</>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsbl_functions.js","sourceRoot":"","sources":["../../../../src/components/sdd/common/fsbl_functions.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAC/B,CAAC;KACC,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KACrD,IAAI,CAAC,GAAG,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,MAAe,EAAE,EAAE;IAC/D,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CACrC;QACC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY;QACnE,KAAK,EAAE,GAAG;QACV,GAAG;QACH,IAAI,EAAE,UAAU;KAChB,EACD,EAAE,EACF,GAAG,EAAE,GAAE,CAAC,CACR,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAClD,eAAe,CAAC,gDAAgD,IAAI,OAAO,EAAE,IAAI,CAAC,CAAC;AACpF,CAAC,CAAC","sourcesContent":["const titleCase = (s: string) =>\n\ts\n\t\t.toLowerCase()\n\t\t.split(\" \")\n\t\t.map((word) => word[0].toUpperCase() + word.substr(1))\n\t\t.join(\" \");\n\nexport const launchUserGuide = (url: string, anchor?: string) => {\n\tFSBL.Clients.DialogManager.spawnDialog(\n\t\t{\n\t\t\tname: anchor ? titleCase(anchor.replace(/\\-/g, \" \")) : \"User Guide\",\n\t\t\twidth: 750,\n\t\t\turl,\n\t\t\tleft: \"adjacent\",\n\t\t},\n\t\t{},\n\t\t() => {}\n\t);\n};\n\nexport const launchTutorialLink = (page: string) => {\n\tlaunchUserGuide(`https://documentation.finsemble.com/tutorial-${page}.html`, page);\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCSSVars.js","sourceRoot":"","sources":["../../../../src/components/sdd/common/getCSSVars.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAA2B,EAAE,EAAE,CAEzD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;KACrB,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CAGT,MAAM,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC1F;KACA,MAAM,CACN,CAAC,GAAa,EAAE,KAAK,EAAE,EAAE,CACxB,CAAC,GAAG,GAAG;IACN,GAAG,GAAG;IACN,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CACnC,CAAC,GAAa,EAAE,IAAI,EAAE,EAAE,CACvB,CAAC,GAAG;QACH,IAAI,YAAY,YAAY,IAAI,IAAI,CAAC,YAAY,KAAK,OAAO;YAC5D,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAC7E,CAAC,CAAC,GAAG,CAAC,EACT,EAAE,CACF;CACD,CAAC,EACH,EAAE,CACF,CAAC","sourcesContent":["export const getCSSVars = (styleSheets: StyleSheetList) =>\n\t// Searches for all the css variables in the :root object\n\tArray.from(styleSheets)\n\t\t.filter(\n\t\t\t(sheet) =>\n\t\t\t\t// sheet.hasOwnProperty(\"href\") returns false, even though href is set, it's just set to null\n\t\t\t\t// so, we have to use the `in` operator\n\t\t\t\t\"href\" in sheet && (sheet.href === null || sheet.href.startsWith(window.location.origin))\n\t\t)\n\t\t.reduce(\n\t\t\t(acc: string[], sheet) =>\n\t\t\t\t(acc = [\n\t\t\t\t\t...acc,\n\t\t\t\t\t...Array.from(sheet.cssRules).reduce(\n\t\t\t\t\t\t(def: string[], rule) =>\n\t\t\t\t\t\t\t(def =\n\t\t\t\t\t\t\t\trule instanceof CSSStyleRule && rule.selectorText === \":root\"\n\t\t\t\t\t\t\t\t\t? [...def, ...Array.from(rule.style).filter((name) => name.startsWith(\"--\"))]\n\t\t\t\t\t\t\t\t\t: def),\n\t\t\t\t\t\t[]\n\t\t\t\t\t),\n\t\t\t\t]),\n\t\t\t[]\n\t\t);\n"]}
@@ -0,0 +1,204 @@
1
+ import { GettingStarted } from "../GettingStarted";
2
+ import { Applications } from "../Applications";
3
+ import { Export } from "../Export";
4
+ import { Themes } from "../Themes";
5
+ import { Authentication } from "../Authentication";
6
+ import { Toolbar } from "../Toolbar";
7
+ import { OptionalSettingsView } from "../OptionalSettingsView";
8
+ const SmartDesktopClient = new FSBL.Clients.SmartDesktopClient();
9
+ const getSDServerInfo = (cb) => {
10
+ SmartDesktopClient.getSDServerInfo().then((info) => {
11
+ FSBL.Clients.ConfigClient.getValues(null, (err, newConfig) => {
12
+ var _a, _b;
13
+ cb(Object.assign(Object.assign({}, info), { export: Object.assign(Object.assign({}, info.export), { toolbarIcon: "/assets/img/Finsemble_Toolbar_Icon.png", installerIcon: "/assets/img/installer_icon.ico", taskbarIcon: (_a = newConfig === null || newConfig === void 0 ? void 0 : newConfig.startup_app) === null || _a === void 0 ? void 0 : _a.applicationIcon, systemTrayIcon: (_b = newConfig === null || newConfig === void 0 ? void 0 : newConfig.finsemble) === null || _b === void 0 ? void 0 : _b.systemTrayIcon, splashScreenImage: newConfig === null || newConfig === void 0 ? void 0 : newConfig.splashScreenImage }) }));
14
+ });
15
+ });
16
+ };
17
+ function createCSRF() {
18
+ const epoch = new Date();
19
+ let id = epoch.getTime().toString(36);
20
+ id = id + Math.floor(Math.random() * Math.pow(36, 2)).toString(36);
21
+ return id.toUpperCase();
22
+ }
23
+ export default [
24
+ {
25
+ showLabel: false,
26
+ label: "",
27
+ views: [
28
+ {
29
+ id: "getting-started",
30
+ icon: "flag",
31
+ name: "Start",
32
+ component: GettingStarted,
33
+ },
34
+ ],
35
+ },
36
+ {
37
+ showLabel: true,
38
+ label: "Apps",
39
+ views: [
40
+ {
41
+ id: "applications",
42
+ icon: "window",
43
+ name: "Manage apps",
44
+ component: Applications,
45
+ props: {
46
+ getApps: () => SmartDesktopClient.getApps(),
47
+ addApp: (appId, appConfig) => SmartDesktopClient.addApp(appId, appConfig),
48
+ deleteApp: (appId) => SmartDesktopClient.deleteApp(appId),
49
+ updateApp: (appId, appConfig) => SmartDesktopClient.updateApp(appId, appConfig),
50
+ getMenus: () => SmartDesktopClient.getMenus(),
51
+ addMenu: (menuConfig) => SmartDesktopClient.addMenu(menuConfig),
52
+ updateMenu: (menuId, menuConfig) => SmartDesktopClient.updateMenu(menuId, menuConfig),
53
+ deleteMenu: (menuId) => SmartDesktopClient.deleteMenu(menuId),
54
+ getPreloads: () => SmartDesktopClient.getPreloads(),
55
+ getAppConfigTemplate: () => SmartDesktopClient.getAppConfigTemplate(),
56
+ isInboundInteropAuthorized: FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized,
57
+ isOutboundInteropAuthorized: FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized,
58
+ },
59
+ },
60
+ {
61
+ id: "applications-optional",
62
+ icon: "code-block",
63
+ name: "Optional",
64
+ component: OptionalSettingsView,
65
+ props: {
66
+ getApps: SmartDesktopClient.getApps,
67
+ updateApp: SmartDesktopClient.updateApp,
68
+ getConfig: FSBL.Clients.ConfigClient.getValue.bind(FSBL.Clients.ConfigClient),
69
+ getPreloads: SmartDesktopClient.getPreloads,
70
+ addPreload: SmartDesktopClient.addPreload,
71
+ updatePreload: SmartDesktopClient.updatePreload,
72
+ deletePreload: SmartDesktopClient.deletePreload,
73
+ },
74
+ },
75
+ ],
76
+ },
77
+ {
78
+ showLabel: true,
79
+ label: "Desktop Customization",
80
+ views: [
81
+ {
82
+ id: "themes",
83
+ icon: "paint-roller",
84
+ name: "Theme",
85
+ component: Themes,
86
+ props: {
87
+ getSDServerInfo,
88
+ updateProjectSettings: (obj) => SmartDesktopClient.updateProjectSettings(obj),
89
+ updateThemes: (id, newValue) => {
90
+ FSBL.Clients.SmartDesktopClient.updateThemeVariable(id, newValue);
91
+ },
92
+ areYouSure: (affirmativeCallback) => {
93
+ FSBL.Clients.DialogManager.open("yesNo", {
94
+ title: "Change your theme?",
95
+ question: `Selecting this template will undo any custom theme changes. Would you like to proceed?`,
96
+ hideModalOnClose: true,
97
+ showNegativeButton: false,
98
+ affirmativeResponseLabel: "Yes",
99
+ }, (err, response) => {
100
+ if (response.choice === "affirmative") {
101
+ affirmativeCallback();
102
+ }
103
+ });
104
+ },
105
+ updateSplashScreen: (file) => SmartDesktopClient.updateSplashScreen(file),
106
+ updateToolbarIcon: (file) => SmartDesktopClient.updateToolbarIcon(file),
107
+ updateTaskbarIcon: (file) => SmartDesktopClient.updateTaskbarIcon(file),
108
+ updateSystemTrayIcon: (file) => SmartDesktopClient.updateSystemTrayIcon(file),
109
+ updateInstallerIcon: (file) => SmartDesktopClient.updateInstallerIcon(file),
110
+ },
111
+ },
112
+ {
113
+ id: "toolbar",
114
+ icon: "toolbar",
115
+ name: "Toolbar",
116
+ component: Toolbar,
117
+ props: {
118
+ getApps: () => SmartDesktopClient.getApps(),
119
+ getMenus: () => SmartDesktopClient.getMenus(),
120
+ addMenu: (menuConfig) => SmartDesktopClient.addMenu(menuConfig),
121
+ updateMenu: (menuId, menuConfig) => SmartDesktopClient.updateMenu(menuId, menuConfig),
122
+ deleteMenu: (menuId) => SmartDesktopClient.deleteMenu(menuId),
123
+ },
124
+ },
125
+ {
126
+ id: "authentication",
127
+ icon: "key",
128
+ name: "Authentication",
129
+ component: Authentication,
130
+ props: {
131
+ getAuthenticationProviders: () => new Promise((resolve) => {
132
+ SmartDesktopClient.getAuthenticationProviders().then((providers) => {
133
+ resolve(providers);
134
+ });
135
+ }),
136
+ setAuthenticationProviders: (authenticationProviders) => SmartDesktopClient.setAuthenticationProviders(authenticationProviders),
137
+ testAuthenticationProvider: (provider) => new Promise((resolve, reject) => {
138
+ const scopeMaybe = provider.scope ? `&scope=${provider.scope}` : "";
139
+ const nonceMaybe = provider.nonce ? `&nonce=${Math.random()}` : "";
140
+ const url = `${provider.authorization_endpoint}?client_id=${provider.client_id}&response_type=token&redirect_uri=${provider.redirect_uri}&state=${createCSRF()}${scopeMaybe}${nonceMaybe}`;
141
+ FSBL.Clients.LauncherClient.spawn("authentication", {
142
+ url,
143
+ top: "center",
144
+ left: "center",
145
+ canGroup: false,
146
+ options: {
147
+ customData: {
148
+ foreign: {
149
+ services: {
150
+ windowService: {
151
+ allowTabbing: false,
152
+ allowSnapping: false,
153
+ allowGrouping: false,
154
+ },
155
+ },
156
+ },
157
+ authorizationUrl: url,
158
+ },
159
+ },
160
+ }, (err) => {
161
+ if (err) {
162
+ throw err;
163
+ }
164
+ });
165
+ FSBL.Clients.RouterClient.addListener("SDD-Auth-Test-Response", (error, response) => {
166
+ if (error || !response.data) {
167
+ reject(error || "Empty error response from OAuth");
168
+ }
169
+ else if (response.data.err) {
170
+ reject(response.data.err);
171
+ }
172
+ else {
173
+ resolve(null);
174
+ }
175
+ });
176
+ }),
177
+ },
178
+ },
179
+ ],
180
+ },
181
+ {
182
+ showLabel: true,
183
+ label: "Deploy",
184
+ views: [
185
+ {
186
+ id: "export",
187
+ icon: "upload",
188
+ name: "Finish",
189
+ component: Export,
190
+ props: {
191
+ progressCheckInterval: 500,
192
+ getSDServerInfo,
193
+ getProjectConfig: () => SmartDesktopClient.projectConfig(),
194
+ createProjectZip: (projectName, targetPath = undefined) => SmartDesktopClient.createProjectZip(projectName || "default", targetPath),
195
+ publishToCosaicCloud: (uuid) => SmartDesktopClient.publishToCosaicCloud(uuid),
196
+ getPublishProgress: () => SmartDesktopClient.getPublishProgress(),
197
+ copyProjectFiles: (projectName, targetPath = undefined) => SmartDesktopClient.copyProjectFiles(projectName || "default", targetPath),
198
+ updateProjectSettings: (obj) => SmartDesktopClient.updateProjectSettings(obj),
199
+ },
200
+ },
201
+ ],
202
+ },
203
+ ];
204
+ //# sourceMappingURL=views.js.map