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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (595) hide show
  1. package/package.json +31 -28
  2. package/react/actions/smartDesktopDesignerActions.d.ts +6 -2
  3. package/react/actions/smartDesktopDesignerActions.js +2 -0
  4. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  5. package/react/assets/css/finsemble.css +0 -1
  6. package/react/assets/css/userPreferences.css +6 -0
  7. package/react/assets/icons/code-block.svg +15 -0
  8. package/react/componentTemplateGenerator.js +1 -1
  9. package/react/componentTemplateGenerator.js.map +1 -1
  10. package/react/components/FinsembleProvider.js.map +1 -1
  11. package/react/components/appCatalog/AppCatalogComponent.d.ts +1 -1
  12. package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +3 -3
  13. package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +1 -1
  14. package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
  15. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  16. package/react/components/appCatalog/stores/appStore.d.ts +2 -2
  17. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  18. package/react/components/appCatalog/stores/storeActions.d.ts +1 -1
  19. package/react/components/common/Checkbox.js +1 -1
  20. package/react/components/common/Checkbox.js.map +1 -1
  21. package/react/components/common/DropZone.js +3 -1
  22. package/react/components/common/DropZone.js.map +1 -1
  23. package/react/components/common/FileInput.d.ts +2 -1
  24. package/react/components/common/FileInput.js +2 -2
  25. package/react/components/common/FileInput.js.map +1 -1
  26. package/react/components/common/FinsembleIcon.d.ts +1 -1
  27. package/react/components/common/FinsembleIcon.js +2 -0
  28. package/react/components/common/FinsembleIcon.js.map +1 -1
  29. package/react/components/common/FinsembleSelect.js +1 -1
  30. package/react/components/common/FinsembleSelect.js.map +1 -1
  31. package/react/components/common/ImagePreview.js +1 -1
  32. package/react/components/common/ImagePreview.js.map +1 -1
  33. package/react/components/common/Tooltip.js +3 -1
  34. package/react/components/common/Tooltip.js.map +1 -1
  35. package/react/components/common/css/application-edit-page.css +4 -1
  36. package/react/components/common/css/application-list.css +4 -0
  37. package/react/components/common/css/preload-edit-page.css +37 -0
  38. package/react/components/common/helpers.js +1 -0
  39. package/react/components/common/helpers.js.map +1 -1
  40. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  41. package/react/components/common/stories/FileInput.stories.js +6 -0
  42. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  43. package/react/components/common/tests/Accordion.spec.js +1 -1
  44. package/react/components/common/tests/Accordion.spec.js.map +1 -1
  45. package/react/components/common/tests/FileInput.spec.js +8 -1
  46. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  47. package/react/components/common/tests/FinsembleSelect.spec.js +1 -1
  48. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  49. package/react/components/common/tests/FinsembleToggle.spec.js +2 -2
  50. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  51. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  52. package/react/components/favorites/FavoritesShell.spec.js +1 -1
  53. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  54. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  55. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  56. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  57. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  58. package/react/components/icon/Icon.d.ts +4 -3
  59. package/react/components/icon/Icon.js +22 -12
  60. package/react/components/icon/Icon.js.map +1 -1
  61. package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
  62. package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
  63. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  64. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -1
  65. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  66. package/react/components/linker/LinkerMenu.js.map +1 -1
  67. package/react/components/linker/remoteRedux.d.ts +1 -1
  68. package/react/components/linker/remoteRedux.js.map +1 -1
  69. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  70. package/react/components/menu/MenuPortal.js +20 -1
  71. package/react/components/menu/MenuPortal.js.map +1 -1
  72. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  73. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  74. package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
  75. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  76. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  77. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  78. package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
  79. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  80. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
  81. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  82. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
  83. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  84. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  85. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  86. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  87. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  88. package/react/components/notifications/components/views/CardView.js.map +1 -1
  89. package/react/components/notifications/components/views/ListView.d.ts +1 -1
  90. package/react/components/notifications/components/views/ListView.js.map +1 -1
  91. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
  92. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  93. package/react/components/notifications/types.d.ts +1 -1
  94. package/react/components/notifications/types.js.map +1 -1
  95. package/react/components/notifications/utils.d.ts +1 -1
  96. package/react/components/notifications/utils.js.map +1 -1
  97. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  98. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +4 -11
  99. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  100. package/react/components/processMonitor/components/ChildWindow.js +5 -10
  101. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  102. package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
  103. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  104. package/react/components/processMonitor/components/ProcessStatistics.js +8 -10
  105. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  106. package/react/components/processMonitor/constants.d.ts +0 -2
  107. package/react/components/processMonitor/constants.js +0 -2
  108. package/react/components/processMonitor/constants.js.map +1 -1
  109. package/react/components/processMonitor/helpers.d.ts +0 -11
  110. package/react/components/processMonitor/helpers.js +1 -9
  111. package/react/components/processMonitor/helpers.js.map +1 -1
  112. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +6 -14
  113. package/react/components/processMonitor/stores/ProcessMonitorStore.js +22 -62
  114. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  115. package/react/components/{smartDesktopDesigner → sdd}/AddApp.d.ts +0 -0
  116. package/react/components/{smartDesktopDesigner → sdd}/AddApp.js +0 -0
  117. package/react/components/sdd/AddApp.js.map +1 -0
  118. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.d.ts +0 -0
  119. package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.js +0 -0
  120. package/react/components/sdd/AppEditAccess.js.map +1 -0
  121. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.d.ts +2 -1
  122. package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.js +77 -73
  123. package/react/components/sdd/AppEditPage.js.map +1 -0
  124. package/react/components/{smartDesktopDesigner → sdd}/Appearance.css +8 -0
  125. package/react/components/{smartDesktopDesigner → sdd}/Appearance.d.ts +0 -0
  126. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.d.ts +0 -0
  127. package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.js +0 -0
  128. package/react/components/sdd/Appearance.helpers.js.map +1 -0
  129. package/react/components/{smartDesktopDesigner → sdd}/Appearance.js +0 -0
  130. package/react/components/sdd/Appearance.js.map +1 -0
  131. package/react/components/{smartDesktopDesigner → sdd}/Application.d.ts +10 -3
  132. package/react/components/sdd/Application.js +220 -0
  133. package/react/components/sdd/Application.js.map +1 -0
  134. package/react/components/{smartDesktopDesigner → sdd}/Applications.d.ts +2 -0
  135. package/react/components/{smartDesktopDesigner → sdd}/Applications.js +17 -7
  136. package/react/components/sdd/Applications.js.map +1 -0
  137. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.css +0 -0
  138. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.d.ts +0 -0
  139. package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.js +0 -0
  140. package/react/components/sdd/AssetsPage.js.map +1 -0
  141. package/react/components/{smartDesktopDesigner → sdd}/Authentication.d.ts +0 -0
  142. package/react/components/{smartDesktopDesigner → sdd}/Authentication.js +1 -1
  143. package/react/components/sdd/Authentication.js.map +1 -0
  144. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.d.ts +0 -0
  145. package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.js +0 -0
  146. package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -0
  147. package/react/components/{smartDesktopDesigner → sdd}/Content.d.ts +0 -0
  148. package/react/components/{smartDesktopDesigner → sdd}/Content.js +0 -0
  149. package/react/components/sdd/Content.js.map +1 -0
  150. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.d.ts +0 -0
  151. package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.js +0 -0
  152. package/react/components/sdd/ContentHeader.js.map +1 -0
  153. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.d.ts +0 -0
  154. package/react/components/{smartDesktopDesigner → sdd}/CurrentView.js +0 -0
  155. package/react/components/sdd/CurrentView.js.map +1 -0
  156. package/react/components/sdd/EditPreload.d.ts +14 -0
  157. package/react/components/sdd/EditPreload.js +169 -0
  158. package/react/components/sdd/EditPreload.js.map +1 -0
  159. package/react/components/{smartDesktopDesigner → sdd}/Export.d.ts +0 -0
  160. package/react/components/{smartDesktopDesigner → sdd}/Export.js +0 -0
  161. package/react/components/sdd/Export.js.map +1 -0
  162. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.d.ts +0 -0
  163. package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.js +0 -0
  164. package/react/components/sdd/ExportCloud.js.map +1 -0
  165. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.d.ts +0 -0
  166. package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.js +0 -0
  167. package/react/components/sdd/ExportDeployInfo.js.map +1 -0
  168. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.d.ts +0 -0
  169. package/react/components/{smartDesktopDesigner → sdd}/ExportZip.js +0 -0
  170. package/react/components/sdd/ExportZip.js.map +1 -0
  171. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.d.ts +0 -0
  172. package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.js +0 -0
  173. package/react/components/sdd/GettingStarted.js.map +1 -0
  174. package/react/components/sdd/ItemList.d.ts +17 -0
  175. package/react/components/sdd/ItemList.js +58 -0
  176. package/react/components/sdd/ItemList.js.map +1 -0
  177. package/react/components/{smartDesktopDesigner → sdd}/Navigation.d.ts +0 -0
  178. package/react/components/{smartDesktopDesigner → sdd}/Navigation.js +0 -0
  179. package/react/components/sdd/Navigation.js.map +1 -0
  180. package/react/components/sdd/OptionalSettingsView.d.ts +11 -0
  181. package/react/components/sdd/OptionalSettingsView.js +71 -0
  182. package/react/components/sdd/OptionalSettingsView.js.map +1 -0
  183. package/react/components/sdd/Preloads.d.ts +8 -0
  184. package/react/components/sdd/Preloads.js +26 -0
  185. package/react/components/sdd/Preloads.js.map +1 -0
  186. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.d.ts +0 -0
  187. package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.js +0 -0
  188. package/react/components/sdd/ProjectErrors.js.map +1 -0
  189. package/react/components/{smartDesktopDesigner → sdd}/Publish.d.ts +0 -0
  190. package/react/components/{smartDesktopDesigner → sdd}/Publish.js +0 -0
  191. package/react/components/sdd/Publish.js.map +1 -0
  192. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.d.ts +0 -0
  193. package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.js +0 -0
  194. package/react/components/sdd/PublishProgress.js.map +1 -0
  195. package/react/components/sdd/SmartDesktopDesigner.d.ts +28 -0
  196. package/react/components/sdd/SmartDesktopDesigner.js +121 -0
  197. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -0
  198. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.css +0 -0
  199. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.d.ts +0 -0
  200. package/react/components/{smartDesktopDesigner → sdd}/ThemePage.js +0 -0
  201. package/react/components/sdd/ThemePage.js.map +1 -0
  202. package/react/components/{smartDesktopDesigner → sdd}/Themes.d.ts +0 -0
  203. package/react/components/{smartDesktopDesigner → sdd}/Themes.js +0 -0
  204. package/react/components/sdd/Themes.js.map +1 -0
  205. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.d.ts +0 -0
  206. package/react/components/{smartDesktopDesigner → sdd}/Toolbar.js +13 -11
  207. package/react/components/sdd/Toolbar.js.map +1 -0
  208. package/react/components/{smartDesktopDesigner → sdd}/View.d.ts +0 -0
  209. package/react/components/{smartDesktopDesigner → sdd}/View.js +0 -0
  210. package/react/components/sdd/View.js.map +1 -0
  211. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.d.ts +0 -0
  212. package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.js +0 -0
  213. package/react/components/sdd/common/fsbl_functions.js.map +1 -0
  214. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.d.ts +0 -0
  215. package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.js +0 -0
  216. package/react/components/sdd/common/getCSSVars.js.map +1 -0
  217. package/react/components/{smartDesktopDesigner/fixtures → sdd/common}/views.d.ts +0 -0
  218. package/react/components/sdd/common/views.js +204 -0
  219. package/react/components/sdd/common/views.js.map +1 -0
  220. package/react/components/{smartDesktopDesigner → sdd}/css/appearance.css +3 -0
  221. package/react/components/{smartDesktopDesigner → sdd}/css/applications.css +0 -0
  222. package/react/components/{smartDesktopDesigner → sdd}/css/authentication.css +5 -1
  223. package/react/components/{smartDesktopDesigner → sdd}/css/buttons.css +0 -0
  224. package/react/components/{smartDesktopDesigner → sdd}/css/export.css +0 -0
  225. package/react/components/{smartDesktopDesigner → sdd}/css/getting-started.css +0 -0
  226. package/react/components/{smartDesktopDesigner → sdd}/css/nav.css +0 -0
  227. package/react/components/{smartDesktopDesigner → sdd}/css/project-errors.css +0 -0
  228. package/react/components/{smartDesktopDesigner → sdd}/css/project-header.css +0 -0
  229. package/react/components/{smartDesktopDesigner → sdd}/css/styles.css +0 -0
  230. package/react/components/{smartDesktopDesigner → sdd}/css/views.css +0 -1
  231. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.d.ts +1 -1
  232. package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.js +27 -5
  233. package/react/components/sdd/fixtures/apps.js.map +1 -0
  234. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.d.ts +0 -0
  235. package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.js +0 -0
  236. package/react/components/sdd/fixtures/authenticationProps.js.map +1 -0
  237. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.d.ts +1 -1
  238. package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.js +1 -1
  239. package/react/components/sdd/fixtures/configTemplate.js.map +1 -0
  240. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.d.ts +0 -0
  241. package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.js +0 -0
  242. package/react/components/sdd/fixtures/exportProps.js.map +1 -0
  243. package/react/components/sdd/fixtures/preloads.d.ts +22 -0
  244. package/react/components/sdd/fixtures/preloads.js +40 -0
  245. package/react/components/sdd/fixtures/preloads.js.map +1 -0
  246. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.d.ts +0 -0
  247. package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.js +0 -0
  248. package/react/components/sdd/fixtures/projectErrorsProps.js.map +1 -0
  249. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.d.ts +1 -1
  250. package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.js +0 -0
  251. package/react/components/sdd/fixtures/publishProgress.js.map +1 -0
  252. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.d.ts +0 -0
  253. package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.js +0 -0
  254. package/react/components/sdd/fixtures/themeProps.js.map +1 -0
  255. package/react/components/sdd/fixtures/views.d.ts +3 -0
  256. package/react/components/{smartDesktopDesigner → sdd}/fixtures/views.js +9 -0
  257. package/react/components/sdd/fixtures/views.js.map +1 -0
  258. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.d.ts +0 -0
  259. package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.js +0 -0
  260. package/react/components/sdd/sdd_helpers.js.map +1 -0
  261. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.d.ts +1 -1
  262. package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.js +1 -0
  263. package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -0
  264. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.d.ts +0 -0
  265. package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.js +0 -0
  266. package/react/components/sdd/stories/Appearance.stories.js.map +1 -0
  267. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.d.ts +0 -0
  268. package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.js +0 -0
  269. package/react/components/sdd/stories/Applications.stories.js.map +1 -0
  270. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.d.ts +0 -0
  271. package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.js +0 -0
  272. package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -0
  273. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.d.ts +0 -0
  274. package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.js +0 -0
  275. package/react/components/sdd/stories/Authentication.stories.js.map +1 -0
  276. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.d.ts +0 -0
  277. package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.js +0 -0
  278. package/react/components/sdd/stories/ContentHeader.stories.js.map +1 -0
  279. package/react/components/sdd/stories/EditPreload.stories.d.ts +11 -0
  280. package/react/components/sdd/stories/EditPreload.stories.js +35 -0
  281. package/react/components/sdd/stories/EditPreload.stories.js.map +1 -0
  282. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.d.ts +0 -0
  283. package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.js +0 -0
  284. package/react/components/sdd/stories/Export.stories.js.map +1 -0
  285. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.d.ts +0 -0
  286. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.js +0 -0
  287. package/react/components/sdd/stories/ExportCloud.stories.js.map +1 -0
  288. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.d.ts +0 -0
  289. package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.js +0 -0
  290. package/react/components/sdd/stories/ExportZip.stories.js.map +1 -0
  291. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.d.ts +0 -0
  292. package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.js +0 -0
  293. package/react/components/sdd/stories/GettingStarted.stories.js.map +1 -0
  294. package/react/components/sdd/stories/ItemList.stories.d.ts +16 -0
  295. package/react/components/{smartDesktopDesigner/stories/ApplicationList.stories.js → sdd/stories/ItemList.stories.js} +26 -26
  296. package/react/components/sdd/stories/ItemList.stories.js.map +1 -0
  297. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.d.ts +0 -0
  298. package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.js +0 -0
  299. package/react/components/sdd/stories/Navigation.stories.js.map +1 -0
  300. package/react/components/sdd/stories/OptionalSettingsView.stories.d.ts +11 -0
  301. package/react/components/sdd/stories/OptionalSettingsView.stories.js +28 -0
  302. package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -0
  303. package/react/components/sdd/stories/Preloads.stories.d.ts +11 -0
  304. package/react/components/sdd/stories/Preloads.stories.js +31 -0
  305. package/react/components/sdd/stories/Preloads.stories.js.map +1 -0
  306. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.d.ts +0 -0
  307. package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.js +0 -0
  308. package/react/components/sdd/stories/ProjectErrors.stories.js.map +1 -0
  309. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.d.ts +0 -0
  310. package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.js +0 -0
  311. package/react/components/sdd/stories/Publish.stories.js.map +1 -0
  312. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.d.ts +0 -0
  313. package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.js +0 -0
  314. package/react/components/sdd/stories/PublishProgress.stories.js.map +1 -0
  315. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.d.ts +0 -0
  316. package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.js +0 -0
  317. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -0
  318. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.d.ts +0 -0
  319. package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.js +0 -0
  320. package/react/components/sdd/stories/ThemePage.stories.js.map +1 -0
  321. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.d.ts +0 -0
  322. package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.js +0 -0
  323. package/react/components/sdd/stories/Themes.stories.js.map +1 -0
  324. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.d.ts +0 -0
  325. package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.js +0 -0
  326. package/react/components/sdd/stories/Toolbar.stories.js.map +1 -0
  327. package/react/components/{smartDesktopDesigner → sdd}/tests/AppEditPage.spec.d.ts +0 -0
  328. package/react/components/sdd/tests/AppEditPage.spec.js +1151 -0
  329. package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -0
  330. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → sdd/tests/Application.spec.d.ts} +0 -0
  331. package/react/components/sdd/tests/Application.spec.js +1478 -0
  332. package/react/components/sdd/tests/Application.spec.js.map +1 -0
  333. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.d.ts +0 -0
  334. package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.js +3 -3
  335. package/react/components/sdd/tests/Applications.spec.js.map +1 -0
  336. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.d.ts +0 -0
  337. package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.js +0 -0
  338. package/react/components/sdd/tests/Authentication.spec.js.map +1 -0
  339. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.d.ts +0 -0
  340. package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.js +0 -0
  341. package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -0
  342. package/react/components/{smartDesktopDesigner/tests/Export.spec.d.ts → sdd/tests/EditPreload.spec.d.ts} +0 -0
  343. package/react/components/sdd/tests/EditPreload.spec.js +61 -0
  344. package/react/components/sdd/tests/EditPreload.spec.js.map +1 -0
  345. package/react/components/{smartDesktopDesigner/tests/ExportZip.spec.d.ts → sdd/tests/Export.spec.d.ts} +0 -0
  346. package/react/components/{smartDesktopDesigner → sdd}/tests/Export.spec.js +0 -0
  347. package/react/components/sdd/tests/Export.spec.js.map +1 -0
  348. package/react/components/{smartDesktopDesigner/tests/Navigation.spec.d.ts → sdd/tests/ExportZip.spec.d.ts} +0 -0
  349. package/react/components/{smartDesktopDesigner → sdd}/tests/ExportZip.spec.js +0 -0
  350. package/react/components/sdd/tests/ExportZip.spec.js.map +1 -0
  351. package/react/components/{smartDesktopDesigner/tests/ProjectErrors.spec.d.ts → sdd/tests/ItemList.spec.d.ts} +0 -0
  352. package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.js → sdd/tests/ItemList.spec.js} +8 -8
  353. package/react/components/sdd/tests/ItemList.spec.js.map +1 -0
  354. package/react/components/{smartDesktopDesigner/tests/Publish.spec.d.ts → sdd/tests/Navigation.spec.d.ts} +0 -0
  355. package/react/components/{smartDesktopDesigner → sdd}/tests/Navigation.spec.js +0 -0
  356. package/react/components/sdd/tests/Navigation.spec.js.map +1 -0
  357. package/react/components/{smartDesktopDesigner/tests/PublishProgess.spec.d.ts → sdd/tests/Preloads.spec.d.ts} +0 -0
  358. package/react/components/sdd/tests/Preloads.spec.js +47 -0
  359. package/react/components/sdd/tests/Preloads.spec.js.map +1 -0
  360. package/react/components/{smartDesktopDesigner/tests/SmartDesktopDesigner.spec.d.ts → sdd/tests/ProjectErrors.spec.d.ts} +0 -0
  361. package/react/components/{smartDesktopDesigner → sdd}/tests/ProjectErrors.spec.js +0 -0
  362. package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -0
  363. package/react/components/{smartDesktopDesigner/tests/Themes.spec.d.ts → sdd/tests/Publish.spec.d.ts} +0 -0
  364. package/react/components/{smartDesktopDesigner → sdd}/tests/Publish.spec.js +0 -0
  365. package/react/components/sdd/tests/Publish.spec.js.map +1 -0
  366. package/react/components/{smartDesktopDesigner/tests/sdd_helpers.spec.d.ts → sdd/tests/PublishProgess.spec.d.ts} +0 -0
  367. package/react/components/{smartDesktopDesigner → sdd}/tests/PublishProgess.spec.js +0 -0
  368. package/react/components/sdd/tests/PublishProgess.spec.js.map +1 -0
  369. package/react/components/sdd/tests/SmartDesktopDesigner.spec.d.ts +1 -0
  370. package/react/components/{smartDesktopDesigner → sdd}/tests/SmartDesktopDesigner.spec.js +6 -0
  371. package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -0
  372. package/react/components/sdd/tests/Themes.spec.d.ts +1 -0
  373. package/react/components/{smartDesktopDesigner → sdd}/tests/Themes.spec.js +0 -0
  374. package/react/components/sdd/tests/Themes.spec.js.map +1 -0
  375. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.d.ts +0 -0
  376. package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.js +0 -0
  377. package/react/components/sdd/tests/Toolbar.spec.js.map +1 -0
  378. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.d.ts +0 -0
  379. package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.js +0 -0
  380. package/react/components/sdd/tests/a11y_helper.js.map +1 -0
  381. package/react/components/sdd/tests/sdd_helpers.spec.d.ts +1 -0
  382. package/react/components/{smartDesktopDesigner → sdd}/tests/sdd_helpers.spec.js +0 -0
  383. package/react/components/sdd/tests/sdd_helpers.spec.js.map +1 -0
  384. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.d.ts +0 -0
  385. package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.js +0 -0
  386. package/react/components/sdd/themeDefinitions.js.map +1 -0
  387. package/react/components/search/SearchBestMatch.js.map +1 -1
  388. package/react/components/search/SearchProviderResults.d.ts +3 -1
  389. package/react/components/search/SearchProviderResults.js.map +1 -1
  390. package/react/components/search/SearchResult.d.ts +3 -1
  391. package/react/components/search/SearchResult.js +11 -8
  392. package/react/components/search/SearchResult.js.map +1 -1
  393. package/react/components/singleInputDialog/SingleInputDialog.spec.js +1 -1
  394. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  395. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
  396. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +2 -116
  397. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  398. package/react/components/smartDesktopDesigner/common/views.js +1 -185
  399. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  400. package/react/components/toolbar/AutoArrange.js +1 -1
  401. package/react/components/toolbar/AutoArrange.js.map +1 -1
  402. package/react/components/toolbar/AutoArrange.spec.d.ts +1 -0
  403. package/react/components/toolbar/AutoArrange.spec.js +48 -0
  404. package/react/components/toolbar/AutoArrange.spec.js.map +1 -0
  405. package/react/components/toolbar/AutoArrange.stories.d.ts +11 -0
  406. package/react/components/toolbar/AutoArrange.stories.js +21 -0
  407. package/react/components/toolbar/AutoArrange.stories.js.map +1 -0
  408. package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
  409. package/react/components/toolbar/DragHandle.spec.js +31 -0
  410. package/react/components/toolbar/DragHandle.spec.js.map +1 -0
  411. package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
  412. package/react/components/toolbar/DragHandle.stories.js +39 -0
  413. package/react/components/toolbar/DragHandle.stories.js.map +1 -0
  414. package/react/components/toolbar/SddButton.d.ts +2 -0
  415. package/react/components/toolbar/SddButton.js +23 -0
  416. package/react/components/toolbar/SddButton.js.map +1 -0
  417. package/react/components/toolbar/ToolbarShell.js +4 -1
  418. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  419. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
  420. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  421. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +3 -2
  422. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  423. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
  424. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  425. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  426. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
  427. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  428. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
  429. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  430. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
  431. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  432. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  433. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +15 -4
  434. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  435. package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
  436. package/react/components/toolbar/appLauncher/components/componentList.js +3 -4
  437. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  438. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
  439. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  440. package/react/components/toolbar/dashbar/Dashbar.js +11 -12
  441. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  442. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
  443. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  444. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  445. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  446. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  447. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  448. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
  449. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +72 -13
  450. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  451. package/react/components/userPreferences/components/content/Workspaces.d.ts +6 -1
  452. package/react/components/userPreferences/components/content/Workspaces.js +59 -18
  453. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  454. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  455. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  456. package/react/components/userPreferences/components/general/ScheduledRestart.d.ts +2 -0
  457. package/react/components/userPreferences/components/general/ScheduledRestart.js +10 -2
  458. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  459. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +2 -1
  460. package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -0
  461. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  462. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +6 -6
  463. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  464. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +5 -2
  465. package/react/components/windowTitleBar/WindowTitleBarShell.js +70 -59
  466. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  467. package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -2
  468. package/react/components/windowTitleBar/components/center/TabList.js +5 -2
  469. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  470. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  471. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  472. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  473. package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -2
  474. package/react/components/windowTitleBar/components/windowTitle.js +99 -94
  475. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  476. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
  477. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +218 -219
  478. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  479. package/react/components/yesNoDialog/Timer.spec.js +1 -1
  480. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  481. package/react/components/yesNoDialog/YesNoDialog.spec.js +1 -1
  482. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  483. package/react/hooks/useDashbar.js.map +1 -1
  484. package/react/hooks/useFavoritesShell.js.map +1 -1
  485. package/react/hooks/useNotifications.d.ts +1 -1
  486. package/react/hooks/useNotifications.js.map +1 -1
  487. package/react/hooks/useSearch.d.ts +2 -1
  488. package/react/hooks/useSearch.js.map +1 -1
  489. package/react/hooks/useToolbar.js +6 -0
  490. package/react/hooks/useToolbar.js.map +1 -1
  491. package/react/reducers/rootReducer.d.ts +11 -3
  492. package/react/reducers/smartDesktopDesignerReducer.js +8 -0
  493. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  494. package/react/store.d.ts +22 -6
  495. package/react/types/advancedAppLauncherTypes.d.ts +5 -3
  496. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  497. package/react/types/favoriteTypes.d.ts +4 -2
  498. package/react/types/favoriteTypes.js.map +1 -1
  499. package/react/types/fdc3.d.ts +2 -2
  500. package/react/types/fdc3.js.map +1 -1
  501. package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
  502. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  503. package/react/types/windowTitleBar.d.ts +1 -1
  504. package/react/types/windowTitleBar.js.map +1 -1
  505. package/react/components/smartDesktopDesigner/AddApp.js.map +0 -1
  506. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +0 -1
  507. package/react/components/smartDesktopDesigner/AppEditPage.js.map +0 -1
  508. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +0 -1
  509. package/react/components/smartDesktopDesigner/Appearance.js.map +0 -1
  510. package/react/components/smartDesktopDesigner/Application.js +0 -228
  511. package/react/components/smartDesktopDesigner/Application.js.map +0 -1
  512. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -16
  513. package/react/components/smartDesktopDesigner/ApplicationList.js +0 -60
  514. package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
  515. package/react/components/smartDesktopDesigner/Applications.js.map +0 -1
  516. package/react/components/smartDesktopDesigner/AssetsPage.js.map +0 -1
  517. package/react/components/smartDesktopDesigner/Authentication.js.map +0 -1
  518. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +0 -1
  519. package/react/components/smartDesktopDesigner/Content.js.map +0 -1
  520. package/react/components/smartDesktopDesigner/ContentHeader.js.map +0 -1
  521. package/react/components/smartDesktopDesigner/CurrentView.js.map +0 -1
  522. package/react/components/smartDesktopDesigner/Export.js.map +0 -1
  523. package/react/components/smartDesktopDesigner/ExportCloud.js.map +0 -1
  524. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +0 -1
  525. package/react/components/smartDesktopDesigner/ExportZip.js.map +0 -1
  526. package/react/components/smartDesktopDesigner/GettingStarted.js.map +0 -1
  527. package/react/components/smartDesktopDesigner/Navigation.js.map +0 -1
  528. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +0 -1
  529. package/react/components/smartDesktopDesigner/Publish.js.map +0 -1
  530. package/react/components/smartDesktopDesigner/PublishProgress.js.map +0 -1
  531. package/react/components/smartDesktopDesigner/ThemePage.js.map +0 -1
  532. package/react/components/smartDesktopDesigner/Themes.js.map +0 -1
  533. package/react/components/smartDesktopDesigner/Toolbar.js.map +0 -1
  534. package/react/components/smartDesktopDesigner/View.js.map +0 -1
  535. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +0 -1
  536. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +0 -1
  537. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +0 -1
  538. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +0 -1
  539. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +0 -1
  540. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +0 -1
  541. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +0 -1
  542. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +0 -1
  543. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +0 -1
  544. package/react/components/smartDesktopDesigner/fixtures/views.js.map +0 -1
  545. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +0 -1
  546. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +0 -1
  547. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +0 -1
  548. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -16
  549. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
  550. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +0 -1
  551. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +0 -1
  552. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +0 -1
  553. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +0 -1
  554. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +0 -1
  555. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +0 -1
  556. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +0 -1
  557. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +0 -1
  558. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +0 -1
  559. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +0 -1
  560. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +0 -1
  561. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +0 -1
  562. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +0 -1
  563. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +0 -1
  564. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +0 -1
  565. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +0 -1
  566. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +0 -310
  567. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +0 -1
  568. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
  569. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +0 -1
  570. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +0 -1
  571. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +0 -1
  572. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +0 -1
  573. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +0 -1
  574. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +0 -1
  575. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +0 -1
  576. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +0 -1
  577. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +0 -1
  578. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +0 -1
  579. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +0 -1
  580. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +0 -1
  581. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +0 -1
  582. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +0 -1
  583. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +0 -1
  584. package/react/components/toolbar/appLauncher/DynamicAppLauncher.d.ts +0 -6
  585. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js +0 -23
  586. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +0 -1
  587. package/react/hooks/useWorkspace.d.ts +0 -5
  588. package/react/hooks/useWorkspace.js +0 -26
  589. package/react/hooks/useWorkspace.js.map +0 -1
  590. package/react/types/iconTypes.d.ts +0 -11
  591. package/react/types/iconTypes.js +0 -2
  592. package/react/types/iconTypes.js.map +0 -1
  593. package/react/types/searchTypes.d.ts +0 -29
  594. package/react/types/searchTypes.js +0 -2
  595. package/react/types/searchTypes.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authentication.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Authentication.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,IAAI,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAA4B,GAE/C,CACF,CAAC;QAEF,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,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C;IACtF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC7D,MAAM,eAAe,GAAG,EAAE,CAAC;QAE3B,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAA4B,GAE/C,CACF,CAAC;QAGF,OAAO,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACjE,MAAM,EAAE;gBACP,KAAK,EAAE,eAAe;aACtB;SACD,CAAC,CAAC;QAEH,MAAM,QAAQ,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACtF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { Page as Authentication } from \"../stories/Authentication.stories\";\nimport { AuthenticationProps } from \"../Authentication\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<Authentication/>\", () => {\n\tit(\"should pass accessibility scans (Page)\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\tit(\"should allow adding auth settings\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\twrapper\n\t\t\t.find(\".auth-setup-select-provider\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Custom\",\n\t\t\t\t},\n\t\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".auth-setup-provider\").length).to.equal(1);\n\n\t\tconst inputs = [\n\t\t\t{\n\t\t\t\tselector: \".auth-setup-provider .auth-setup-clientid input\",\n\t\t\t\tvalue: \"clientidTest\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tselector: \".auth-setup-provider .auth-setup-endpoint-url input\",\n\t\t\t\tvalue: \"http://test.com\",\n\t\t\t},\n\t\t];\n\n\t\tinputs.forEach((input) => {\n\t\t\texpect(wrapper.find(input.selector).length, `Find ${input.selector}`).to.be.greaterThan(0);\n\n\t\t\twrapper\n\t\t\t\t.find(input.selector)\n\t\t\t\t.at(0)\n\t\t\t\t.simulate(\"change\", {\n\t\t\t\t\ttarget: {\n\t\t\t\t\t\tvalue: input.value,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\tinputs.forEach((input) => {\n\t\t\texpect(wrapper.find(input.selector).at(0).prop(\"value\")).to.equal(input.value);\n\t\t\texpect(wrapper.find(input.selector).at(0).prop(\"aria-invalid\")).to.be.false;\n\t\t});\n\t});\n\n\tit(\"toggling advanced options should not clear inputs\", async () => {\n\t\tconst arbitrary_value = \"my test\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\twrapper\n\t\t\t.find(\".auth-setup-select-provider\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Custom\",\n\t\t\t\t},\n\t\t\t});\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-clientid input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\t\tawait waitTick();\n\n\t\t// Toggle the Advanced Options\n\t\twrapper.find(\".auth-setup-toggle-mode button\").simulate(\"click\");\n\n\t\t// Confirm that \"Client ID\" didn't change\n\t\texpect(wrapper.find(\".auth-setup-clientid input\").prop(\"value\"), `Confirm that \"Client ID\" didn't change`).to.equal(\n\t\t\tarbitrary_value\n\t\t);\n\n\t\t// Test accessibility of expanded options while we're at it\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\n\t});\n\n\tit(\"should allow saving valid endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"http://cosaic.io\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.false;\n\t});\n\n\tit(\"should not allow saving empty endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.true;\n\t});\n\n\tit(\"should not allow saving invalid endpoint URL\", async () => {\n\t\tconst arbitrary_value = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<Authentication\n\t\t\t\t{...{\n\t\t\t\t\t...(Authentication.args as AuthenticationProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\t// Assign an arbitrary value to \"Client ID\"\n\t\twrapper.find(\".auth-setup-endpoint-url input\").simulate(\"change\", {\n\t\t\ttarget: {\n\t\t\t\tvalue: arbitrary_value,\n\t\t\t},\n\t\t});\n\n\t\tawait waitTick();\n\n\t\texpect(wrapper.find(\".auth-setup-actions button\").at(0).prop(\"disabled\")).to.be.true;\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentHeader.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ContentHeader.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAG9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAKtD,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC9B,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAoB,EAAI,CAAC,CAAC;QAE5E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAA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BAAC,UAAU,oBAAM,UAAU,CAAC,IAAoB,EAAI,CAAC,CAAC;QAE5E,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it, afterEach } from \"mocha\";\nimport { expect } from \"chai\";\nimport { HeaderProps } from \"../ContentHeader\";\nimport { BasicStory } from \"../stories/ContentHeader.stories\";\n\n// For running accessibility scans\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// For testing user interactions (like click events):\nimport sinon from \"sinon\";\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<Header/>\", () => {\n\tit(\"should display text\", () => {\n\t\tconst wrapper = mount(<BasicStory {...(BasicStory.args as HeaderProps)} />);\n\n\t\texpect(wrapper.find(\".project-title-icon\").text(), \"The icon is set\").to.equal(\"P\");\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"Project Title\");\n\t});\n\n\tit(\"should have a capital Letter Icon\", () => {\n\t\tconst props = { ...(BasicStory.args as HeaderProps), name: \"hello Worms\" };\n\t\tconst wrapper = mount(<BasicStory {...props} />);\n\n\t\texpect(wrapper.find(\".project-title-icon\").text(), \"The icon is capitalised\").to.equal(\"H\");\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"hello Worms\");\n\t});\n\n\tit(\"should display default text\", () => {\n\t\tconst props = { ...(BasicStory.args as HeaderProps), name: \"default\" };\n\t\tconst wrapper = mount(<BasicStory {...props} />);\n\n\t\texpect(wrapper.find(\".project-name\").text(), \"The text matches\").to.equal(\"Untitled project\");\n\t});\n\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<BasicStory {...(BasicStory.args as HeaderProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Export.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Export.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,SAAS,GAAG,cAAc,CAAC;AACjC,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAEhD,MAAM,QAAQ,GAAG;IAChB,WAAW,EAAE,oBAAoB;IACjC,aAAa,EAAE,yBAAyB;IACxC,YAAY,EAAE,8BAA8B;IAC5C,QAAQ,EAAE,wBAAwB;CAClC,CAAC;AAEF,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IACjD,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC/C,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACxB,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAClC,IAAI,OAAO,CAAgB,CAAC,OAAO,EAAE,EAAE;YACtC,GAAG,EAAE,CAAC;YACN,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACJ,MAAM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G,CAAC,oBAAoB,CAAC,CAAC;QAEnG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultExport } from \"../stories/Export.stories\";\nimport { ExportProps } from \"../Export\";\nimport publishTests from \"../fixtures/publishProgress\";\nimport { waitTick } from \"../sdd_helpers\";\nimport sinon from \"sinon\";\n\nconst validName = \"New Name 123\";\nconst invalidName = \" (Inv@l!d- Project)[] 123\";\n\nconst locators = {\n\tprojectName: \"input[type='text']\",\n\tpublishButton: \".package-project button\",\n\texportButton: \".export-method-button button\",\n\tcheckbox: \".complex-menu-checkbox\",\n};\n\ndescribe(\"<Export /> - saving project name\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\tit(\"should allow not saving invalid name\", () => {\n\t\tconst spy = sinon.spy();\n\t\tconst updateProjectSettings = () =>\n\t\t\tnew Promise<{ err: null }>((resolve) => {\n\t\t\t\tspy();\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} {...{ updateProjectSettings }} />);\n\n\t\tconst input = wrapper.find(\"input\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: \" (Inv@l!d- Project)[] 123\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(spy.calledOnce).to.be.false;\n\t\twrapper.unmount();\n\t});\n\tit(\"should allow saving valid name\", () => {\n\t\tconst spy = sinon.spy();\n\t\tconst updateProjectSettings = () =>\n\t\t\tnew Promise<{ err: null }>((resolve) => {\n\t\t\t\tspy();\n\t\t\t\tresolve({ err: null });\n\t\t\t});\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} {...{ updateProjectSettings }} />);\n\n\t\tconst input = wrapper.find(\"input\");\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: \"New Name 123\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(spy.calledOnce).to.be.true;\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export /> - enabling publish button\", () => {\n\tit(\"if project name is valid, publish should be enabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be enabled\").to.be.false;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid, publish should be disabled\", async () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.publishButton).prop(\"disabled\"), \"Publish button should still be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export /> - enabling export button\", () => {\n\tit(\"if project name is valid and checkbox is checked, export should be enabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be enabled\").to.be.false;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid and checkbox is checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\tconst input = wrapper.find(locators.projectName);\n\t\tinput.simulate(\"input\", { target: { value: \"\" } });\n\t\tinput.simulate(\"blur\");\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tif (checkbox.is(\".checked\")) {\n\t\t\tcheckbox.simulate(\"click\");\n\t\t}\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\tcheckbox.simulate(\"click\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is valid and checkbox is not checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: validName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"if project name is invalid and checkbox is not checked, export should be disabled\", () => {\n\t\tconst wrapper = mount(<DefaultExport {...(DefaultExport.args as ExportProps)} />);\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be initially disabled\").to.be\n\t\t\t.true;\n\t\texpect(wrapper.find(locators.checkbox).is(\".checked\"), \"Checkbox should be initially unchecked\").to.be.false;\n\n\t\tconst input = wrapper.find(locators.projectName);\n\n\t\tinput.simulate(\"focus\");\n\t\tinput.simulate(\"input\", { target: { value: invalidName } });\n\t\tinput.simulate(\"blur\");\n\n\t\texpect(wrapper.find(locators.exportButton).prop(\"disabled\"), \"Publish button should be disabled\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n});\n\ndescribe(\"<Export/>\", () => {\n\tit(\"should show publish url after successful publish action\", (done) => {\n\t\tconst publishTest = publishTests.find((test) => test.name === \"success\")!;\n\n\t\tlet stateIndex = 0;\n\t\tlet lastHTML = \"\";\n\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExport\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExport.args as ExportProps),\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t\tgetPublishProgress: () =>\n\t\t\t\t\t\tnew Promise((resolve) => {\n\t\t\t\t\t\t\tconst publishState = publishTest?.states[stateIndex++];\n\n\t\t\t\t\t\t\tif (!publishState || stateIndex >= publishTest.states.length) {\n\t\t\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\t\t\tcheckExportFinished(); // requires definition of `const wrapper`\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tresolve(publishState);\n\n\t\t\t\t\t\t\twrapper.update();\n\n\t\t\t\t\t\t\tconst html = wrapper.html();\n\n\t\t\t\t\t\t\texpect(lastHTML).to.not.eql(html);\n\n\t\t\t\t\t\t\tlastHTML = html;\n\t\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tfunction checkExportFinished() {\n\t\t\twrapper.update();\n\n\t\t\texpect(wrapper.find(\".export-publish-url\").length).to.equal(1);\n\t\t\texpect(wrapper.find(\".export-publish-url input\").at(0).prop(\"value\")).to.eql(\"https://cosaic.io/\");\n\n\t\t\twrapper.unmount();\n\n\t\t\tdone();\n\t\t}\n\n\t\tconst button = wrapper.find(\".button-container-secondary button\").at(0);\n\n\t\texpect(button.text(), \"Button with Publish text\").to.contain(\"Publish\");\n\n\t\tbutton.simulate(\"click\");\n\n\t\texpect(wrapper.find(\".export-publish-container h2\").text()).to.contain(\"Publishing\");\n\n\t\tlastHTML = wrapper.html();\n\t});\n\n\tit(\"should show publish url after upload step\", async () => {\n\t\tconst publishTest = publishTests.find((test) => test.name === \"step-4-started\")!;\n\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExport\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExport.args as ExportProps),\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t\tgetPublishProgress: () =>\n\t\t\t\t\t\tnew Promise((resolve) => {\n\t\t\t\t\t\t\tresolve(publishTest.states[0]);\n\t\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst button = wrapper.find(\".button-container-secondary button\").at(0);\n\n\t\texpect(button.text(), \"Button with Publish text\").to.contain(\"Publish\");\n\n\t\tbutton.simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".publish-progress-success\").length).to.equal(3);\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\n\t\texpect(wrapper.find(\".export-publish-url\").length).to.equal(1);\n\t\texpect(wrapper.find(\".export-publish-url input\").at(0).prop(\"value\")).to.eql(\"https://cosaic.io/\");\n\n\t\twrapper.unmount();\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExportZip.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ExportZip.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,QAAQ,GAAG;IAChB,QAAQ,EAAE,wBAAwB;CAClC,CAAC;AAEF,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,8CAA8C,EAAE,KAAK,IAAI,EAAE;QAC7D,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,gBAAgB,sCAEX,gBAAgB,CAAC,IAAoB,GAEzC,CACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjD,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE3B,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE/D,MAAM,QAAQ,EAAE,CAAC;QAEjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEjG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,cAAc,sCAET,cAAc,CAAC,IAAoB,GAEvC,CACF,CAAC;QAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACjD,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE3B,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE/D,MAAM,QAAQ,EAAE,CAAC;QAEjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEhG,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultExportZip, ErrorExportZip } from \"../stories/ExportZip.stories\";\nimport { ExportProps } from \"../Export\";\nimport { waitTick } from \"../sdd_helpers\";\n\nconst locators = {\n\tcheckbox: \".complex-menu-checkbox\",\n};\n\ndescribe(\"<ExportZip/>\", () => {\n\tit(\"should show file count after success publish\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<DefaultExportZip\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultExportZip.args as ExportProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".last-export-time\").length, \"Export success message container\").to.equal(1);\n\n\t\twrapper.unmount();\n\t});\n\tit(\"should error after failed publish\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<ErrorExportZip\n\t\t\t\t{...{\n\t\t\t\t\t...(ErrorExportZip.args as ExportProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tconst checkbox = wrapper.find(locators.checkbox);\n\t\tcheckbox.simulate(\"click\");\n\n\t\twrapper.find(\".export-method-button button\").simulate(\"click\");\n\n\t\tawait waitTick();\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".last-export-error\").length, \"Export error message container\").to.equal(1);\n\n\t\twrapper.unmount();\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Navigation.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Navigation.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,QAAQ,GAAG,WAAW,CAAC;AAE7B,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;QAC1D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,iBAAiB,sCAAW,iBAAiB,CAAC,IAAwB,GAAM,CAAC,CAAC;QAErG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC9C,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,iBAAiB,sCAAW,iBAAiB,CAAC,IAAwB,GAAM,CAAC,CAAC;QAErG,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAExC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE;YAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAE1B,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBAC/B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,YAAY,CAAC,CAAC;YACtF,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { NavigationProps } from \"../Navigation\";\nimport { DefaultNavigation } from \"../stories/Navigation.stories\";\n\nconst NAV_ITEM = \".nav-item\";\n\ndescribe(\"<Navigation/>\", () => {\n\tit(\"should have first tab selected by default\", async () => {\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\n\n\t\twrapper.find(NAV_ITEM).forEach((item, index) => {\n\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === 0);\n\t\t});\n\t});\n\n\tit(\"should change to selected tab\", async () => {\n\t\tconst wrapper = mount(<DefaultNavigation {...{ ...(DefaultNavigation.args as NavigationProps) }} />);\n\n\t\tconst navItems = wrapper.find(NAV_ITEM);\n\n\t\tnavItems.forEach((navItem, clickedIndex) => {\n\t\t\tnavItem.simulate(\"click\");\n\n\t\t\tnavItem.forEach((item, index) => {\n\t\t\t\texpect(item.hasClass(\"active\"), \"Has active class\").to.equal(index === clickedIndex);\n\t\t\t});\n\t\t});\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectErrors.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/ProjectErrors.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAgB,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,kBAAkB,GAAG,eAAe,EACzC,oBAAoB,GAAG,0BAA0B,EACjD,WAAW,GAAG,mBAAmB,EACjC,eAAe,GAAG,uEAAuE,EACzF,gBAAgB,GAAG,sDAAsD,EACzE,sBAAsB,GAAG,mCAAmC,EAC5D,WAAW,GAAG,kBAAkB,EAChC,aAAa,GAAG,0CAA0C,CAAC;AAE5D,MAAM,OAAO,GAAG,CAAC,OAAqB,EAAE,IAAY,EAAE,EAAE;IACvD,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAElD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,QAAQ,CAAC,kBAAkB,EAAE,GA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CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAElD,MAAM,QAAQ,EAAE,CAAC;QACjB,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1F,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount, ReactWrapper } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultSDD } from \"../stories/SmartDesktopDesigner.stories\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\nimport { ACTIVE_TAB_APP_LIST_TABLE_ROW } from \"./Applications.spec\";\n\nconst PROJECT_NAME_INPUT = \"#project-name\",\n\tPROJECT_NAME_WARNING = \".project-name-error-icon\",\n\tTOOLBAR_TAB = \"#toolbar-nav-link\",\n\tADD_MENU_BUTTON = \"[data-label='Menus'] .button-container-primary.icon-before-add button\",\n\tSAVE_MENU_BUTTON = \".app-edit-actions .button-container-secondary button\",\n\tEMPTY_MENU_NAV_WARNING = \"#toolbar-nav-link .nav-error-icon\",\n\tPUBLISH_TAB = \"#export-nav-link\",\n\tPROJECT_ERROR = \".project-errors-container .project-error\";\n\nconst doClick = (element: ReactWrapper, name: string) => {\n\texpect(element.length, name).to.be.greaterThan(0);\n\n\telement.simulate(\"click\");\n};\n\ndescribe(\"<ProjectErrors/>\", () => {\n\tit(\"should show project errors for invalid SDD sections\", async () => {\n\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\tdoClick(wrapper.find(TOOLBAR_TAB).at(0), \"TOOLBAR_TAB\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\tdoClick(wrapper.find(ADD_MENU_BUTTON).at(0), \"ADD_MENU_BUTTON\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Set name as \"Charts\"\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Charts\",\n\t\t\t\t},\n\t\t\t});\n\n\t\t// Click Save\n\t\twrapper.find(SAVE_MENU_BUTTON).at(0).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Menu list shows 1 empty menu\").to.be.equal(1);\n\n\t\texpect(wrapper.find(EMPTY_MENU_NAV_WARNING).length, \"Empty Menu Nav Warning\").to.equal(0);\n\n\t\twrapper.find(PUBLISH_TAB).at(0).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(EMPTY_MENU_NAV_WARNING).length, \"Empty Menu Nav Warning\").to.equal(1);\n\t\texpect(wrapper.find(PROJECT_ERROR).length, \"Project Errors\").to.equal(1);\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Publish.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Publish.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EA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AC,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAE/C,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAE9E,OAAO,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultPublish, Error1Publish } from \"../stories/Publish.stories\";\nimport { PublishProps } from \"../Publish\";\nimport sinon from \"sinon\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<Publish/>\", () => {\n\tit(\"should show progress bar\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<DefaultPublish\n\t\t\t\t{...{\n\t\t\t\t\t...(DefaultPublish.args as PublishProps),\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\n\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n\tit(\"should show error message and allow retry\", async () => {\n\t\tconst publishToCosaicCloud = sinon.spy(() => Error1Publish.args!.publishToCosaicCloud!());\n\n\t\tconst wrapper = mount(\n\t\t\t<Error1Publish\n\t\t\t\t{...{\n\t\t\t\t\t...(Error1Publish.args as PublishProps),\n\t\t\t\t\t...{ publishToCosaicCloud },\n\t\t\t\t\tprogressCheckInterval: 1,\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".publish-progress-pending\").length).to.equal(0);\n\t\texpect(wrapper.find(\".export-publish-error\").length).to.equal(1);\n\t\texpect(wrapper.find(\".export-publish-error-message\").length).to.equal(1);\n\t\texpect(publishToCosaicCloud.called).to.be.true;\n\n\t\texpect(await accessibilityAssessor(wrapper), \"Accessibility scan\").to.be.true;\n\n\t\twrapper.unmount();\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishProgess.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/PublishProgess.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,mBAAmB,sCAEd,mBAAmB,CAAC,IAA6B,GAErD,CACF,CAAC;QAEF,MAAM,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACzD,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;QACnC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,mBAAmB,sCAEd,mBAAmB,CAAC,IAA6B,GAErD,CACF,CAAC;QAEF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { HalfPublishProgress } from \"../stories/PublishProgress.stories\";\nimport { PublishProgressProps } from \"../PublishProgress\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<PublishProgress/>\", () => {\n\tit(\"should pass accessibility scans (Page)\", async () => {\n\t\tconst wrapper = mount(\n\t\t\t<HalfPublishProgress\n\t\t\t\t{...{\n\t\t\t\t\t...(HalfPublishProgress.args as PublishProgressProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\tit(\"should show progress bar\", () => {\n\t\tconst wrapper = mount(\n\t\t\t<HalfPublishProgress\n\t\t\t\t{...{\n\t\t\t\t\t...(HalfPublishProgress.args as PublishProgressProps),\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\n\t\texpect(wrapper.find(\".publish-progress-indicator\").length).to.equal(1);\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SmartDesktopDesigner.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ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,CAAC;YAEjB,MAAM,CACL,OAAO,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC,MAAM,EACjE,8BAA8B,CAC9B,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAEd,OAAO,CAAC,IAAI,CAAC,cAAc,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAEpE,MAAM,QAAQ,EAAE,CAAC;YACjB,OAAO,CAAC,MAAM,EAAE,CAAC;YAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC5G,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,kBAAkB,MAAM,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,QAAQ,CACzG,MAAM,CAAC,GAAG,CAAC,KAAK,CAChB,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { DefaultSDD } from \"../stories/SmartDesktopDesigner.stories\";\nimport { waitTick } from \"../sdd_helpers\";\nimport { SmartDesktopDesignerProps } from \"../SmartDesktopDesigner\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<SmartDesktopDesigner/>\", () => {\n\tit(\"should pass accessibility scans (Page)\", async () => {\n\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\t[\n\t\t{\n\t\t\tnav: {\n\t\t\t\tid: \"applications-nav-link\",\n\t\t\t\ttitle: \"Manage apps\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tnav: {\n\t\t\t\tid: \"themes-nav-link\",\n\t\t\t\ttitle: \"Theme\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tnav: {\n\t\t\t\tid: \"authentication-nav-link\",\n\t\t\t\ttitle: \"Authentication\",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tnav: {\n\t\t\t\tid: \"export-nav-link\",\n\t\t\t\ttitle: \"Publish\",\n\t\t\t},\n\t\t},\n\t].forEach((target) => {\n\t\tit(`should navigate to ${target.nav.title} from left navigation`, async () => {\n\t\t\tconst wrapper = mount(<DefaultSDD {...(DefaultSDD.args as SmartDesktopDesignerProps)} />);\n\n\t\t\tawait waitTick();\n\t\t\twrapper.update();\n\n\t\t\texpect(\n\t\t\t\twrapper.find(\".nav-item.active #getting-started-nav-link\").length,\n\t\t\t\t\"Currently on Getting Started\"\n\t\t\t).to.equal(1);\n\n\t\t\twrapper.find(`.nav-item #${target.nav.id}`).at(0).simulate(\"click\");\n\n\t\t\tawait waitTick();\n\t\t\twrapper.update();\n\n\t\t\texpect(wrapper.find(`.nav-item.active #${target.nav.id}`).length, `${target.nav.id} is active`).to.equal(1);\n\t\t\texpect(wrapper.find(\".view-title .leftSide\").at(0).text(), `page title is \"${target.nav.title}\"`).contains(\n\t\t\t\ttarget.nav.title\n\t\t\t);\n\t\t});\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Themes.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Themes.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,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expect } from \"chai\";\nimport sinon from \"sinon\";\nimport { ThemeProps } from \"../Themes\";\nimport { Page } from \"../stories/Themes.stories\";\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\ndescribe(\"<Themes/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\tit.skip(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t}).timeout(5000); // This scan is very heavy (4s)\n\n\tit(\"should change tab panels with the tab 'Images' is chosen\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\"[role='tab']\").at(1).simulate(\"click\");\n\t\texpect(wrapper.find(\".visible .images-section\").exists()).to.be.true;\n\t\texpect(wrapper.find(\".visible .theme-settings\").exists()).to.be.false;\n\t});\n\tit(\"should change tab panels with the tab 'Themes' is chosen\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\"[role='tab']\").at(0).simulate(\"click\");\n\t\texpect(wrapper.find(\".visible .images-section\").exists()).to.be.false;\n\t\texpect(wrapper.find(\".visible .theme-settings\").exists()).to.be.true;\n\t});\n\tit(\"should launch an Are You Sure dialog when the Dark Theme button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as ThemeProps, \"areYouSure\");\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\".template-row button\").at(0).simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should launch an Are You Sure dialog when the Light Theme button is clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Page.args as ThemeProps, \"areYouSure\");\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should change the color values when the Light Theme is chosen\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\n\t\texpect(wrapper.find(\"[type='color']\").first().prop(\"value\")).to.equal(\"#2C2C2C\");\n\t});\n\tit(\"should change the color values when the Dark Theme is chosen\", () => {\n\t\tconst wrapper = mount(<Page {...(Page.args as ThemeProps)} />);\n\t\twrapper.find(\".template-row button\").at(1).simulate(\"click\");\n\t\twrapper.find(\".template-row button\").at(0).simulate(\"click\");\n\t\texpect(wrapper.find(\"[type='color']\").first().prop(\"value\")).to.equal(\"#ffffff\");\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toolbar.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/Toolbar.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,yBAAyB,EAC1D,6BAA6B,GAAG,eAAe,EAC/C,sBAAsB,GAAG,iBAAiB,EAC1C,WAAW,GAAG,uBAAuB,EACrC,kBAAkB,GA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CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACtE,CAAC,CAAC,CAAC;AAiCJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { ToolbarProps } from \"../Toolbar\";\nimport { DefaultApplications, EmptyApplications, Long } from \"../stories/Toolbar.stories\";\nimport { getToolbarArgs } from \"../fixtures/apps\";\nimport { waitTick } from \"../sdd_helpers\";\n\n// For running accessibility scans\nimport { accessibilityAssessor } from \"./a11y_helper\";\n\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\nimport addons, { mockChannel } from \"@storybook/addons\";\naddons.setChannel(mockChannel());\n\nexport const ADD_NEW_APP_BUTTON = \".icon-before-add button\",\n\tACTIVE_TAB_APP_LIST_TABLE_ROW = \".app-list-row\",\n\tAPP_LIST_EMPTY_MESSAGE = \".app-list-empty\",\n\tPAGE_HEADER = \".view-title .leftSide\",\n\tPAGE_HEADER_BUTTON = \".view-title .leftSide button\",\n\tSETUP_WIZARD_BUTTON = \".tile-type-buttons .icon-wizard button\",\n\tSETUP_MANUAL_BUTTON = \".tile-type-buttons .icon-manual button\",\n\tAPP_ACCESS_RULE = \".app-edit-access-item\",\n\tAPP_ACCESS_BLOCKED = \".app-edit-access-blocked\",\n\tQUICK_ADD_APP = \".quick-add-app\",\n\tQUICK_ADD_APP_URL = \".quick-add-app #app-url\",\n\tQUICK_ADD_APP_BUTTON = \".save-button-container button\";\n\nconst preventable = {\n\tpreventDefault: () => {},\n\tstopPropagation: () => {},\n};\n\ndescribe(\"SDD: <Toolbar /> - Menu tab\", () => {\n\t// Example accessibility scan\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...(DefaultApplications.args as ToolbarProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should display empty state with 0 menus\", async () => {\n\t\tconst wrapper = mount(<EmptyApplications {...getToolbarArgs(\"empty\")} />);\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ADD_NEW_APP_BUTTON).first().text()).to.contain(\"Add\");\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.equal(0);\n\t\texpect(wrapper.find(\".app-list-empty\").first().text()).to.contain(\"nothing here\");\n\t});\n\tit(\"should display menu name and delete button when there are 1+ menus\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.equal(1);\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).first().text()).to.contain(\"Examples\");\n\t\texpect(wrapper.find(\".app-list-row .icon-delete\").exists()).to.be.true;\n\t});\n\tit(\"MenuEdit: should have an empty Name field by default\", () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\t\texpect(wrapper.find(\"#menu-name\").first().prop(\"value\")).to.equal(\"\");\n\t});\n\tit(\"should display disabled Add New button when there are 5 menus\", async () => {\n\t\tconst wrapper = mount(<Long {...getToolbarArgs(\"long\")} />);\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length).to.be.equal(5);\n\t\texpect(wrapper.find(ADD_NEW_APP_BUTTON).first().prop(\"disabled\")).to.be.true;\n\t});\n\tit(\"MenuEdit: should disable submit button when Name field is empty\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\", preventable);\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"button\").at(1).prop(\"disabled\")).to.be.true;\n\t});\n\n\tconst characters_49 = \"Hubert Blaine Wolfeschlegelsteinhausenbergerdorff\";\n\tconst characters_50 = \"Hubert Blaine Wolfeschlegelsteinhausenbergerdorff!\";\n\tconst characters_51 = \"Hubert Blaine Wolfeschlegelsteinhausenbergerdorff!?\";\n\tit(\"MenuEdit: when Name input receives 49 characters, it should display 49\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\", preventable);\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: characters_49,\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"#menu-name\").prop(\"value\")).to.equal(characters_49);\n\t});\n\tit(\"MenuEdit: when Name input receives 50 characters, it should display 50\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\", preventable);\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: characters_50,\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"#menu-name\").prop(\"value\")).to.equal(characters_50);\n\t});\n\tit(\"MenuEdit: when Name input receives 51 characters, it should only display 50\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\", preventable);\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: characters_51,\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\"#menu-name\").prop(\"value\")).to.equal(characters_50);\n\t});\n\tit(\"MenuEdit: back button should take users back to Applications page, Menu tab\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click \"Add\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\n\t\t// Click \"Back\" button\n\t\twrapper.find(\"button\").first().simulate(\"click\");\n\n\t\t// expect(wrapper.find(\".visible div[data-label='Menus']\").exists(), \"Menus Tab is visible\").to.be.true;\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Still only 1 menu in list\").to.be.equal(1);\n\t});\n\tit(\"MenuEdit: click Add New, then click Cancel, then see menu list has not changed\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Only 1 menu in list\").to.be.equal(1);\n\n\t\t// Click \"Add\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\n\t\t// Click \"Back\" button\n\t\twrapper.find(\"button\").first().simulate(\"click\");\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Still only 1 menu in list\").to.be.equal(1);\n\t});\n\tit(\"MenuEdit: should show a new menu in the list after a menu has been added\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Only 1 menu in list\").to.be.equal(1);\n\n\t\t// Click \"Add\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\n\t\t// Set name as \"Charts\"\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Charts\",\n\t\t\t\t},\n\t\t\t});\n\n\t\t// Check \"Example Charts App\"\n\t\twrapper.find(\"input[type='checkbox']\").at(0).simulate(\"change\");\n\n\t\tconsole.log(6);\n\t\t// Click Save\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\t\texpect(wrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).length, \"Menu list shows 2 menus\").to.be.equal(2);\n\t});\n\tit(\"name change to a menu should persist\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click Examples\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\");\n\n\t\t// Change name to Hello World\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Hello World\",\n\t\t\t\t},\n\t\t\t});\n\n\t\t// Click Save\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Confirm name is Hello World\n\t\texpect(wrapper.find(\"[role='listitem']\").at(0).text()).contains(\"Hello World\");\n\t});\n\tit(\"selected applications changes to a menu should persist\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click Examples\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\");\n\n\t\t// Select items\n\t\twrapper.find(\"input[type='checkbox']\").at(2).simulate(\"change\");\n\n\t\t// Click save\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click examples\n\t\twrapper.find(ACTIVE_TAB_APP_LIST_TABLE_ROW).at(0).simulate(\"click\");\n\n\t\t// Confirm items still present\n\t\texpect(wrapper.find(\"input[type='checkbox']\").at(2).prop(\"checked\")).to.be.true;\n\t});\n\tit(\"should not persist menu name when saving multiple menus\", async () => {\n\t\tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t\t// Click \"Add\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\n\t\tawait waitTick();\n\t\t// Confirm name field is empty\n\t\twrapper.update();\n\t\texpect(wrapper.find(\"#menu-name\").first().prop(\"value\")).to.be.empty;\n\n\t\t// Change name to Test\n\t\twrapper\n\t\t\t.find(\"#menu-name\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"change\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"Test\",\n\t\t\t\t},\n\t\t\t});\n\n\t\t// Click save\n\t\twrapper.find(\"button\").at(1).simulate(\"click\");\n\n\t\tawait waitTick();\n\t\twrapper.update();\n\n\t\t// Click \"Add\" button\n\t\twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\t\tawait waitTick();\n\t\t// Confirm name field is empty\n\n\t\twrapper.update();\n\t\texpect(wrapper.find(\"#menu-name\").first().prop(\"value\")).to.be.empty;\n\t});\n\t// it(\"should show a warning icon if an empty menu is created\", async () => {\n\t// \tconst wrapper = mount(<DefaultApplications {...getToolbarArgs(\"default\")} />);\n\n\t// \t// Click \"Add\" button\n\t// \twrapper.find(ADD_NEW_APP_BUTTON).first().simulate(\"click\");\n\n\t// \tawait waitTick();\n\t// \t// Confirm name field is empty\n\t// \twrapper.update();\n\t// \texpect(wrapper.find(\"#menu-name\").first().prop(\"value\")).to.be.empty;\n\n\t// \t// Change name to Test\n\t// \twrapper\n\t// \t\t.find(\"#menu-name\")\n\t// \t\t.at(0)\n\t// \t\t.simulate(\"change\", {\n\t// \t\t\ttarget: {\n\t// \t\t\t\tvalue: \"Test\",\n\t// \t\t\t},\n\t// \t\t});\n\n\t// \t// Click save\n\t// \twrapper.find(\"button\").at(1).simulate(\"click\");\n\n\t// \tawait waitTick();\n\t// \twrapper.update();\n\n\t// \texpect(\n\t// \t\twrapper.find(\".app-list-row\").at(1).find(\".tooltip-icon-warn\").exists(),\n\t// \t\t\"Warning tooltip present in 2nd row\"\n\t// \t).to.be.true;\n\t// });\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"a11y_helper.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/a11y_helper.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAG3B,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAAqB,EAAE,EAAE;;IACpE,MAAM,EAAE,GAAG,kBAAkB,CAAC;IAI9B,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACzF,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC5C,IAAI,OAAO,KAAK,IAAI,EAAE;QACrB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO,KAAK,CAAC;KACb;IAGD,MAAM,OAAO,GAAG;QACf,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC9B,CAAC;IAGF,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,OAAsB,EAAE,OAAO,CAAC,CAAC;IAG/D,MAAA,OAAO,CAAC,aAAa,0CAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAG5C,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO,IAAI,CAAC;KACZ;IAGD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhC,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAC1C,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC1G,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,eAAe,YAAY,EAAE,CAAC,CAAC;IAG3C,OAAO,KAAK,CAAC;AACd,CAAC,CAAC","sourcesContent":["import axe from \"axe-core\";\nimport { ReactWrapper } from \"enzyme\";\n\nexport const accessibilityAssessor = async (wrapper: ReactWrapper) => {\n\tconst id = \"axeTestContainer\";\n\n\t// Axe needs a DOM object\n\t// Create a DOM based on the ReactWrapper\n\tdocument.body.insertAdjacentHTML(\"beforeend\", `<div id=\"${id}\">${wrapper.html()}</div>`);\n\tconst element = document.getElementById(id);\n\tif (element === null) {\n\t\tconsole.log(\"Couldn't parse wrapper\");\n\t\treturn false;\n\t}\n\n\t// Only run WCAG 2.0 A and AA rules\n\tconst options = {\n\t\trunOnly: [\"wcag2a\", \"wcag2aa\"],\n\t};\n\n\t// Run the scan\n\tconst results = await axe.run(element as HTMLElement, options);\n\n\t// Tear down the created DOM\n\telement.parentElement?.removeChild(element);\n\n\t// If there are no violations, so this scan passes\n\tif (results.violations.length === 0) {\n\t\treturn true;\n\t}\n\n\t// If there are violations, print them out in a human-readable way\n\tconsole.log(results.violations);\n\n\tconst violationMap = results.violations.map(\n\t\t(violation, key) => `#${key + 1}. ${violation.help}${violation.nodes.map((node) => node.html).join(\"\\n\")}`\n\t);\n\tconsole.log(`Violations: ${violationMap}`);\n\n\t// There were violations, so this scan didn't pass\n\treturn false;\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdd_helpers.spec.js","sourceRoot":"","sources":["../../../../src/components/smartDesktopDesigner/tests/sdd_helpers.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;QACzB;YACC,CAAC,EAAE,EAAE,EAAE,CAAC;YACR,CAAC,uBAAuB,EAAE,QAAQ,CAAC;YACnC,CAAC,wBAAwB,EAAE,QAAQ,CAAC;YACpC,CAAC,oBAAoB,EAAE,EAAE,CAAC;YAC1B,CAAC,qCAAqC,EAAE,QAAQ,CAAC;YACjD,CAAC,6BAA6B,EAAE,EAAE,CAAC;SACnC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE;YAC7B,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { getDefaultName } from \"../sdd_helpers\";\n\ndescribe(\"sdd_helpers\", () => {\n\tit(\"getDefaultName\", () => {\n\t\t[\n\t\t\t[\"\", \"\"],\n\t\t\t[\"http://www.google.com\", \"Google\"],\n\t\t\t[\"https://www.google.com\", \"Google\"],\n\t\t\t[\"http://www.cnn.com\", \"\"],\n\t\t\t[\"http://finance.yahoo.com/charts/SPY\", \"Charts\"],\n\t\t\t[\"http://www.cnn.com/abc.html\", \"\"],\n\t\t].forEach(([input, output]) => {\n\t\t\texpect(getDefaultName(input), `Input: \"${input}\"\"`).to.equal(output);\n\t\t});\n\t});\n});\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeDefinitions.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/themeDefinitions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACxB,gBAAgB,EAAE,SAAS;IAC3B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAE7B,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,SAAS;IAE/B,mBAAmB,EAAE,SAAS;IAC9B,qBAAqB,EAAE,SAAS;IAEhC,gBAAgB,EAAE,SAAS;IAC3B,kBAAkB,EAAE,SAAS;IAE7B,mBAAmB,EAAE,SAAS;IAC9B,qBAAqB,EAAE,SAAS;IAEhC,mBAAmB,EAAE,SAAS;IAE9B,qBAAqB,EAAE,0BAA0B;IAEjD,cAAc,EAAE,SAAS;IACzB,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,oBAAoB;IAErC,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,MAAM;IAEzB,aAAa,EAAE,MAAM;CACrB,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,gBAAgB,EAAE,SAAS;IAC3B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAE7B,kBAAkB,EAAE,SAAS;IAC7B,oBAAoB,EAAE,SAAS;IAE/B,mBAAmB,EAAE,SAAS;IAC9B,qBAAqB,EAAE,SAAS;IAEhC,gBAAgB,EAAE,SAAS;IAC3B,kBAAkB,EAAE,SAAS;IAE7B,mBAAmB,EAAE,SAAS;IAC9B,qBAAqB,EAAE,SAAS;IAEhC,mBAAmB,EAAE,SAAS;IAE9B,qBAAqB,EAAE,oBAAoB;IAE3C,cAAc,EAAE,SAAS;IACzB,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,oBAAoB;IAErC,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,MAAM;IAEzB,aAAa,EAAE,MAAM;CACrB,CAAC","sourcesContent":["export const darkTheme = {\n\t\"--core-primary\": \"#22262f\",\n\t\"--core-primary-1\": \"#171a20\",\n\t\"--core-primary-2\": \"#373b43\",\n\t\"--core-primary-3\": \"#3d4455\",\n\t\"--core-primary-4\": \"#5b606f\",\n\t\"--core-primary-5\": \"#acb2c0\",\n\n\t\"--accent-primary\": \"#42a5ba\",\n\t\"--accent-primary-1\": \"#36788b\",\n\n\t\"--accent-positive\": \"#2cc13f\",\n\t\"--accent-positive-1\": \"#27ae38\",\n\n\t\"--accent-aware\": \"#f5a623\",\n\t\"--accent-aware-1\": \"#dc951f\",\n\n\t\"--accent-negative\": \"#f26666\",\n\t\"--accent-negative-1\": \"#b54f4f\",\n\n\t\"--scrollbar-color\": \"#ffffff\",\n\n\t\"--toolbar-separator\": \"rgba(255, 255, 255, 0.3)\",\n\n\t\"--font-color\": \"#ffffff\",\n\t\"--font-color-2\": \"#000000\",\n\t\"--font-shadow\": \"rgba(0, 0, 0, 0.5)\",\n\n\t\"--font-weight\": \"600\",\n\t\"--font-weight-1\": \"400\",\n\t\"--font-weight-2\": \"bold\",\n\n\t\"--font-size\": \"12px\",\n};\nexport const lightTheme = {\n\t\"--core-primary\": \"#FFFFFF\",\n\t\"--core-primary-1\": \"#EFEFEF\",\n\t\"--core-primary-2\": \"#C8D1D6\",\n\t\"--core-primary-3\": \"#A8B6BD\",\n\t\"--core-primary-4\": \"#5A6368\",\n\t\"--core-primary-5\": \"#313738\",\n\n\t\"--accent-primary\": \"#42a5ba\",\n\t\"--accent-primary-1\": \"#36788b\",\n\n\t\"--accent-positive\": \"#2cc13f\",\n\t\"--accent-positive-1\": \"#27ae38\",\n\n\t\"--accent-aware\": \"#a57424\",\n\t\"--accent-aware-1\": \"#8e631e\",\n\n\t\"--accent-negative\": \"#f26666\",\n\t\"--accent-negative-1\": \"#b54f4f\",\n\n\t\"--scrollbar-color\": \"#2c2c2c\",\n\n\t\"--toolbar-separator\": \"rgba(0, 0, 0, 0.3)\",\n\n\t\"--font-color\": \"#2C2C2C\",\n\t\"--font-color-2\": \"#ffffff\",\n\t\"--font-shadow\": \"rgba(0, 0, 0, 0.5)\",\n\n\t\"--font-weight\": \"600\",\n\t\"--font-weight-1\": \"400\",\n\t\"--font-weight-2\": \"bold\",\n\n\t\"--font-size\": \"12px\",\n};\n"]}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2017 by ChartIQ, Inc.
3
- * All rights reserved.
4
- */
5
- /// <reference types="react" />
6
- export declare const DynamicAppLauncher: () => JSX.Element;
@@ -1,23 +0,0 @@
1
- /*!
2
- * Copyright 2017 by ChartIQ, Inc.
3
- * All rights reserved.
4
- */
5
- import React, { useEffect, useState } from "react";
6
- import { StaticAppLauncherMenu } from "./StaticAppLauncherMenu";
7
- export const DynamicAppLauncher = () => {
8
- const [menus, setMenus] = useState({});
9
- const updateMenu = () => {
10
- FSBL.Clients.ConfigClient.getValue("finsemble.toolbarMenus").then(({ data }) => {
11
- setMenus(data);
12
- });
13
- };
14
- useEffect(() => {
15
- updateMenu();
16
- FSBL.Clients.ConfigClient.addListener({ field: "finsemble.toolbarMenus" }, updateMenu);
17
- }, []);
18
- return (React.createElement(React.Fragment, null, Object.values(menus)
19
- .filter((menuObj) => menuObj.applications.length > 0)
20
- .sort((a, b) => a.position - b.position)
21
- .map((menuObj, index) => (React.createElement(StaticAppLauncherMenu, { key: index, id: `AppLauncher-${index}`, title: menuObj.displayName, componentFilter: menuObj.applications, suppressFavorites: true })))));
22
- };
23
- //# sourceMappingURL=DynamicAppLauncher.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DynamicAppLauncher.js","sourceRoot":"","sources":["../../../../src/components/toolbar/appLauncher/DynamicAppLauncher.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IAEjD,MAAM,UAAU,GAAG,GAAG,EAAE;QACvB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;YAC9E,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,UAAU,EAAE,CAAC;QAGb,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,UAAU,CAAC,CAAC;IACxF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,0CACE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;SACnB,MAAM,CAAC,CAAC,OAAoB,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;SACjE,IAAI,CAAC,CAAC,CAAc,EAAE,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;SACjE,GAAG,CAAC,CAAC,OAAoB,EAAE,KAAa,EAAE,EAAE,CAAC,CAC7C,oBAAC,qBAAqB,IACrB,GAAG,EAAE,KAAK,EACV,EAAE,EAAE,eAAe,KAAK,EAAE,EAC1B,KAAK,EAAE,OAAO,CAAC,WAAW,EAC1B,eAAe,EAAE,OAAO,CAAC,YAAY,EACrC,iBAAiB,EAAE,IAAI,GACtB,CACF,CAAC,CACD,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React, { useEffect, useState } from \"react\";\nimport { MenuObjType, MenuType } from \"../../../types/smartDesktopDesignerTypes\";\nimport { StaticAppLauncherMenu } from \"./StaticAppLauncherMenu\";\n\nexport const DynamicAppLauncher = () => {\n\tconst [menus, setMenus] = useState<MenuType>({});\n\n\tconst updateMenu = () => {\n\t\tFSBL.Clients.ConfigClient.getValue(\"finsemble.toolbarMenus\").then(({ data }) => {\n\t\t\tsetMenus(data);\n\t\t});\n\t};\n\n\tuseEffect(() => {\n\t\tupdateMenu();\n\n\t\t// Listen for notifications that the menu has changed\n\t\tFSBL.Clients.ConfigClient.addListener({ field: \"finsemble.toolbarMenus\" }, updateMenu);\n\t}, []);\n\n\treturn (\n\t\t<>\n\t\t\t{Object.values(menus)\n\t\t\t\t.filter((menuObj: MenuObjType) => menuObj.applications.length > 0)\n\t\t\t\t.sort((a: MenuObjType, b: MenuObjType) => a.position - b.position)\n\t\t\t\t.map((menuObj: MenuObjType, index: number) => (\n\t\t\t\t\t<StaticAppLauncherMenu\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tid={`AppLauncher-${index}`}\n\t\t\t\t\t\ttitle={menuObj.displayName}\n\t\t\t\t\t\tcomponentFilter={menuObj.applications}\n\t\t\t\t\t\tsuppressFavorites={true}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t</>\n\t);\n};\n"]}
@@ -1,5 +0,0 @@
1
- export declare const useWorkspaces: () => {
2
- workspaces: import("../types/workspaceTypes").Workspace[];
3
- activeWorkspace: import("../types/workspaceTypes").Workspace;
4
- promptOnSave: boolean;
5
- };
@@ -1,26 +0,0 @@
1
- import { useDispatch, useSelector } from "../store";
2
- import { WorkspaceActions } from "../actions/workspaceActions";
3
- import { useEffect } from "react";
4
- export const useWorkspaces = () => {
5
- const dispatch = useDispatch();
6
- const onWorkspaceUpdate = (_, { data }) => {
7
- if (data) {
8
- dispatch(WorkspaceActions.UPDATE_ALL_WORKSPACES(data));
9
- }
10
- };
11
- const workspaceState = useSelector((state) => state.workspace);
12
- const { workspaces, activeWorkspace, promptOnSave } = workspaceState;
13
- useEffect(() => {
14
- const WorkspaceUpdateSubscribeID = FSBL.Clients.RouterClient.subscribe("Finsemble.WorkspaceService.update", onWorkspaceUpdate);
15
- FSBL.Clients.ConfigClient.getValue({
16
- field: "finsemble.preferences.workspaceService.promptUserOnDirtyWorkspace",
17
- }, (err, data) => {
18
- data && dispatch(WorkspaceActions.UPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE(data));
19
- });
20
- return function cleanup() {
21
- FSBL.Clients.RouterClient.unsubscribe(WorkspaceUpdateSubscribeID);
22
- };
23
- }, []);
24
- return { workspaces, activeWorkspace, promptOnSave };
25
- };
26
- //# sourceMappingURL=useWorkspace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWorkspace.js","sourceRoot":"","sources":["../../src/hooks/useWorkspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,iBAAiB,GAAG,CAAC,CAAM,EAAE,EAAE,IAAI,EAA4B,EAAE,EAAE;QACxE,IAAI,IAAI,EAAE;YACT,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;SACvD;IACF,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/D,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,cAAc,CAAC;IAErE,SAAS,CAAC,GAAG,EAAE;QAGd,MAAM,0BAA0B,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CACrE,mCAAmC,EACnC,iBAAiB,CACjB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CACjC;YACC,KAAK,EAAE,mEAAmE;SAC1E,EACD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAEb,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAAC,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC,CACD,CAAC;QAEF,OAAO,SAAS,OAAO;YACtB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;QACnE,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC","sourcesContent":["import { useDispatch, useSelector } from \"../store\";\nimport { WorkspaceActions } from \"../actions/workspaceActions\";\nimport { WorkspaceState } from \"../reducers/workspaceReducer\";\nimport { useEffect } from \"react\";\n\n/**\n * A hook for getting the current workspaces including the ActiveWorkspace,\n * and listening on any workspace updates.\n */\nexport const useWorkspaces = () => {\n\tconst dispatch = useDispatch();\n\n\tconst onWorkspaceUpdate = (_: any, { data }: { data: WorkspaceState }) => {\n\t\tif (data) {\n\t\t\tdispatch(WorkspaceActions.UPDATE_ALL_WORKSPACES(data));\n\t\t}\n\t};\n\n\tconst workspaceState = useSelector((state) => state.workspace);\n\tconst { workspaces, activeWorkspace, promptOnSave } = workspaceState;\n\n\tuseEffect(() => {\n\t\t// When the workspace updates, update the active workspace name.\n\t\t// We will also get the active workspace as soon as we subscribe.\n\t\tconst WorkspaceUpdateSubscribeID = FSBL.Clients.RouterClient.subscribe(\n\t\t\t\"Finsemble.WorkspaceService.update\",\n\t\t\tonWorkspaceUpdate\n\t\t);\n\t\tFSBL.Clients.ConfigClient.getValue<boolean>(\n\t\t\t{\n\t\t\t\tfield: \"finsemble.preferences.workspaceService.promptUserOnDirtyWorkspace\",\n\t\t\t},\n\t\t\t(err, data) => {\n\t\t\t\t// default to false.\n\t\t\t\tdata && dispatch(WorkspaceActions.UPDATE_PROMPT_ON_SAVE_WORKSPACE_PREFERENCE(data));\n\t\t\t}\n\t\t);\n\n\t\treturn function cleanup() {\n\t\t\tFSBL.Clients.RouterClient.unsubscribe(WorkspaceUpdateSubscribeID);\n\t\t};\n\t}, []);\n\n\treturn { workspaces, activeWorkspace, promptOnSave };\n};\n"]}
@@ -1,11 +0,0 @@
1
- export declare type IconUrl = {
2
- imageType: "url" | "fonticon";
3
- path: string;
4
- };
5
- export declare type IconInitials = {
6
- imageType: "initials";
7
- name: string;
8
- };
9
- export declare type Icon = (IconUrl | IconInitials) & {
10
- category?: string;
11
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=iconTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iconTypes.js","sourceRoot":"","sources":["../../src/types/iconTypes.ts"],"names":[],"mappings":"","sourcesContent":["export type IconUrl = {\n\timageType: \"url\" | \"fonticon\";\n\tpath: string;\n};\n\nexport type IconInitials = {\n\timageType: \"initials\";\n\tname: string;\n};\n\nexport type Icon = (IconUrl | IconInitials) & {\n\tcategory?: string;\n};\n"]}
@@ -1,29 +0,0 @@
1
- import { Icon } from "./iconTypes";
2
- export declare type SearchProvider = {
3
- displayName: string;
4
- channel: string;
5
- providerActionTitle: string;
6
- providerActionCallback: Function;
7
- windowName: string;
8
- name: string;
9
- };
10
- export declare type SearchProviderResponse = {
11
- provider: SearchProvider;
12
- returnCallback: string;
13
- searchId: string;
14
- data: SearchResults;
15
- };
16
- export declare type SearchResultType = {
17
- actions: {
18
- name: string;
19
- }[];
20
- description: string;
21
- displayName: string;
22
- icon: Icon;
23
- score: number;
24
- name: string;
25
- provider: FunctionStringCallback;
26
- type: string;
27
- };
28
- export declare type SearchQuery = string | null;
29
- export declare type SearchResults = SearchResultType[] | null;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=searchTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"searchTypes.js","sourceRoot":"","sources":["../../src/types/searchTypes.ts"],"names":[],"mappings":"","sourcesContent":["import { Icon } from \"./iconTypes\";\n\nexport type SearchProvider = {\n\tdisplayName: string;\n\tchannel: string;\n\tproviderActionTitle: string;\n\tproviderActionCallback: Function;\n\twindowName: string;\n\tname: string;\n};\nexport type SearchProviderResponse = {\n\tprovider: SearchProvider;\n\treturnCallback: string;\n\tsearchId: string;\n\tdata: SearchResults;\n};\n\nexport type SearchResultType = {\n\tactions: { name: string }[];\n\tdescription: string;\n\tdisplayName: string;\n\ticon: Icon;\n\tscore: number;\n\tname: string;\n\tprovider: FunctionStringCallback;\n\ttype: string;\n};\n\nexport type SearchQuery = string | null;\nexport type SearchResults = SearchResultType[] | null;\n"]}