@finsemble/finsemble-ui 6.3.1 → 6.3.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 (544) hide show
  1. package/README.md +28 -28
  2. package/package.json +1 -1
  3. package/react/actions/favoriteActions.js.map +1 -1
  4. package/react/actions/linkerActions.js.map +1 -1
  5. package/react/actions/menuActions.js.map +1 -1
  6. package/react/actions/rootActions.js.map +1 -1
  7. package/react/actions/searchActions.js.map +1 -1
  8. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  9. package/react/actions/toolbarActions.js.map +1 -1
  10. package/react/actions/workspaceActions.js.map +1 -1
  11. package/react/assets/css/advancedAppLauncher.css +636 -636
  12. package/react/assets/css/appCatalog.css +1069 -1069
  13. package/react/assets/css/authentication.css +78 -78
  14. package/react/assets/css/button.css +220 -220
  15. package/react/assets/css/core/formElements.css +23 -23
  16. package/react/assets/css/core/icons.css +69 -69
  17. package/react/assets/css/core/notifications.css +75 -75
  18. package/react/assets/css/core/windowFrame.css +36 -36
  19. package/react/assets/css/dashbar.css +78 -78
  20. package/react/assets/css/defaultTheme.css +356 -356
  21. package/react/assets/css/dialogs.css +158 -158
  22. package/react/assets/css/favorites.css +101 -101
  23. package/react/assets/css/finsemble.css +38 -38
  24. package/react/assets/css/focus.css +4 -4
  25. package/react/assets/css/font-finance.css +385 -385
  26. package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
  27. package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
  28. package/react/assets/css/fonts/font-finance.svg +124 -124
  29. package/react/assets/css/fonts/icons-reference.html +1174 -1174
  30. package/react/assets/css/linkerWindow.css +124 -124
  31. package/react/assets/css/menus.css +195 -195
  32. package/react/assets/css/notificationsCenter.css +597 -597
  33. package/react/assets/css/processMonitor.css +213 -213
  34. package/react/assets/css/search.css +128 -128
  35. package/react/assets/css/shared/animations.css +99 -99
  36. package/react/assets/css/tags.css +136 -136
  37. package/react/assets/css/toolbar.css +413 -413
  38. package/react/assets/css/userPreferences.css +568 -568
  39. package/react/assets/css/windowTitleBar.css +652 -652
  40. package/react/assets/icons/check-square.svg +5 -5
  41. package/react/assets/icons/check.svg +3 -3
  42. package/react/assets/icons/chevron-left.svg +3 -3
  43. package/react/assets/icons/chevron-right.svg +3 -3
  44. package/react/assets/icons/copy.svg +10 -10
  45. package/react/assets/icons/exclamation-circle.svg +4 -4
  46. package/react/assets/icons/external-link.svg +12 -12
  47. package/react/assets/icons/flag.svg +10 -10
  48. package/react/assets/icons/folder.svg +3 -3
  49. package/react/assets/icons/font.svg +3 -3
  50. package/react/assets/icons/globe.svg +3 -3
  51. package/react/assets/icons/hdd.svg +9 -9
  52. package/react/assets/icons/key.svg +10 -10
  53. package/react/assets/icons/life-ring.svg +3 -3
  54. package/react/assets/icons/lock.svg +5 -5
  55. package/react/assets/icons/magic.svg +15 -15
  56. package/react/assets/icons/moon.svg +10 -10
  57. package/react/assets/icons/paint-roller.svg +3 -3
  58. package/react/assets/icons/pencil.svg +10 -10
  59. package/react/assets/icons/plus.svg +3 -3
  60. package/react/assets/icons/question-circle.svg +5 -5
  61. package/react/assets/icons/search.svg +3 -3
  62. package/react/assets/icons/sun.svg +9 -9
  63. package/react/assets/icons/times.svg +3 -3
  64. package/react/assets/icons/toggle-off.svg +6 -6
  65. package/react/assets/icons/toggle-on.svg +6 -6
  66. package/react/assets/icons/tools.svg +3 -3
  67. package/react/assets/icons/trash.svg +12 -12
  68. package/react/assets/icons/upload.svg +10 -10
  69. package/react/assets/icons/window.svg +3 -3
  70. package/react/componentTemplateGenerator.js +85 -85
  71. package/react/componentTemplateGenerator.js.map +1 -1
  72. package/react/components/FinsembleProvider.js.map +1 -1
  73. package/react/components/appCatalog/AppCatalog.js.map +1 -1
  74. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  75. package/react/components/appCatalog/components/AppCard.js.map +1 -1
  76. package/react/components/appCatalog/components/AppList.js.map +1 -1
  77. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  78. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  79. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  80. package/react/components/appCatalog/components/Hero.js.map +1 -1
  81. package/react/components/appCatalog/components/Home.js.map +1 -1
  82. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  83. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  84. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  85. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  86. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  87. package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
  88. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  89. package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
  90. package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
  91. package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
  92. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  93. package/react/components/appCatalog/components/Tag.js.map +1 -1
  94. package/react/components/appCatalog/components/Toast.js.map +1 -1
  95. package/react/components/appCatalog/components/helpers.js.map +1 -1
  96. package/react/components/appCatalog/index.js.map +1 -1
  97. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  98. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  99. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  100. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  101. package/react/components/common/Button.js.map +1 -1
  102. package/react/components/common/ButtonIcon.js.map +1 -1
  103. package/react/components/common/ButtonRow.js.map +1 -1
  104. package/react/components/common/ButtonTile.js.map +1 -1
  105. package/react/components/common/Checkbox.js.map +1 -1
  106. package/react/components/common/ColorPicker.js.map +1 -1
  107. package/react/components/common/DropZone.js.map +1 -1
  108. package/react/components/common/DropdownButton.js.map +1 -1
  109. package/react/components/common/FileInput.js.map +1 -1
  110. package/react/components/common/FinsembleIcon.js.map +1 -1
  111. package/react/components/common/FinsembleSelect.js.map +1 -1
  112. package/react/components/common/FinsembleToggle.js.map +1 -1
  113. package/react/components/common/FontSizeSelector.js.map +1 -1
  114. package/react/components/common/Header.js.map +1 -1
  115. package/react/components/common/ImagePreview.js.map +1 -1
  116. package/react/components/common/LoadingSpinner.js.map +1 -1
  117. package/react/components/common/Tab.js.map +1 -1
  118. package/react/components/common/Tooltip.js.map +1 -1
  119. package/react/components/common/css/application-edit-page.css +117 -117
  120. package/react/components/common/css/application-list.css +47 -47
  121. package/react/components/common/css/button.css +164 -164
  122. package/react/components/common/css/color-picker.css +52 -52
  123. package/react/components/common/css/drop-zone.css +17 -17
  124. package/react/components/common/css/file-input.css +49 -49
  125. package/react/components/common/css/header.css +43 -43
  126. package/react/components/common/css/icon.css +13 -13
  127. package/react/components/common/css/image-preview.css +57 -57
  128. package/react/components/common/css/loading-spinner.css +39 -39
  129. package/react/components/common/css/selector.css +51 -51
  130. package/react/components/common/css/styles.css +128 -128
  131. package/react/components/common/css/tab.css +56 -56
  132. package/react/components/common/css/toggle.css +32 -32
  133. package/react/components/common/css/tooltip.css +78 -78
  134. package/react/components/common/file_helpers.js.map +1 -1
  135. package/react/components/common/fixtures/FinsembleIcon.css +4 -4
  136. package/react/components/common/helpers.js.map +1 -1
  137. package/react/components/common/stories/Button.stories.js.map +1 -1
  138. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  139. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  140. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  141. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  142. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  143. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  144. package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
  145. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  146. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  147. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  148. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  149. package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
  150. package/react/components/common/stories/Header.stories.js.map +1 -1
  151. package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
  152. package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
  153. package/react/components/common/stories/Tab.stories.js.map +1 -1
  154. package/react/components/common/stories/Tooltip.stories.js.map +1 -1
  155. package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
  156. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  157. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  158. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  159. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  160. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  161. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  162. package/react/components/common/tests/Header.spec.js.map +1 -1
  163. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  164. package/react/components/common/tests/Tab.spec.js.map +1 -1
  165. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  166. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  167. package/react/components/favorites/FavoritesShell.js.map +1 -1
  168. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  169. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  170. package/react/components/favorites/index.js.map +1 -1
  171. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  172. package/react/components/fdc3Resolver/ResolverDialog.css +126 -126
  173. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  174. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  175. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  176. package/react/components/icon/Icon.js.map +1 -1
  177. package/react/components/icon/index.js.map +1 -1
  178. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  179. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  180. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  181. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  182. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  183. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  184. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  185. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  186. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  187. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  188. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  189. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  190. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  191. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  192. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  193. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  194. package/react/components/linker/LinkerMenu.js.map +1 -1
  195. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  196. package/react/components/linker/index.js.map +1 -1
  197. package/react/components/linker/remoteRedux.js.map +1 -1
  198. package/react/components/menu/Menu.js.map +1 -1
  199. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  200. package/react/components/menu/MenuContent.js.map +1 -1
  201. package/react/components/menu/MenuHotKey.js.map +1 -1
  202. package/react/components/menu/MenuItem.js.map +1 -1
  203. package/react/components/menu/MenuPortal.js.map +1 -1
  204. package/react/components/menu/MenuShell.js.map +1 -1
  205. package/react/components/menu/MenuToggle.js.map +1 -1
  206. package/react/components/menu/index.js.map +1 -1
  207. package/react/components/menu/keyboardNavigation.js.map +1 -1
  208. package/react/components/menu/menuContext.js.map +1 -1
  209. package/react/components/menu/menuHelpers.js.map +1 -1
  210. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  211. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  212. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  213. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  214. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  215. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  216. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  217. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  218. package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
  219. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  220. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  221. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  222. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
  223. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  224. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  225. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
  226. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  227. package/react/components/notifications/components/views/CardView.js.map +1 -1
  228. package/react/components/notifications/components/views/ListView.js +1 -1
  229. package/react/components/notifications/components/views/ListView.js.map +1 -1
  230. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  231. package/react/components/notifications/constants.js.map +1 -1
  232. package/react/components/notifications/icons/Card.js.map +1 -1
  233. package/react/components/notifications/icons/Chevron.js.map +1 -1
  234. package/react/components/notifications/icons/CloseIcon.js.map +1 -1
  235. package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
  236. package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
  237. package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
  238. package/react/components/notifications/index.js.map +1 -1
  239. package/react/components/notifications/notificationsContext.js.map +1 -1
  240. package/react/components/notifications/types.js.map +1 -1
  241. package/react/components/notifications/utils.js.map +1 -1
  242. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  243. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  244. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  245. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  246. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  247. package/react/components/processMonitor/constants.js.map +1 -1
  248. package/react/components/processMonitor/helpers.js.map +1 -1
  249. package/react/components/processMonitor/helpers.spec.js.map +1 -1
  250. package/react/components/processMonitor/index.js.map +1 -1
  251. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  252. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  253. package/react/components/quickComponentForm/index.js.map +1 -1
  254. package/react/components/quickComponentForm/quickComponent.css +3 -3
  255. package/react/components/search/Highlight.js.map +1 -1
  256. package/react/components/search/Highlight.spec.js.map +1 -1
  257. package/react/components/search/Highlight.stories.js.map +1 -1
  258. package/react/components/search/Search.js.map +1 -1
  259. package/react/components/search/SearchBestMatch.js.map +1 -1
  260. package/react/components/search/SearchInput.js.map +1 -1
  261. package/react/components/search/SearchProviderResults.js.map +1 -1
  262. package/react/components/search/SearchResult.js.map +1 -1
  263. package/react/components/search/SearchResults.js.map +1 -1
  264. package/react/components/search/index.js.map +1 -1
  265. package/react/components/shared/Animate.js.map +1 -1
  266. package/react/components/shared/BellIcon.js.map +1 -1
  267. package/react/components/shared/BellIconCrossed.js.map +1 -1
  268. package/react/components/shared/Button.js.map +1 -1
  269. package/react/components/shared/ConditionalWrapper.js.map +1 -1
  270. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  271. package/react/components/shared/NavigationButton.js.map +1 -1
  272. package/react/components/shared/Tag.js.map +1 -1
  273. package/react/components/shared/TagsMenu.js.map +1 -1
  274. package/react/components/shared/addProtocolToValidURL.js.map +1 -1
  275. package/react/components/shared/linkerUtil.js.map +1 -1
  276. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  277. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  278. package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
  279. package/react/components/shared/validateURL.js.map +1 -1
  280. package/react/components/shared/validateURL.spec.js.map +1 -1
  281. package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
  282. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  283. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  284. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  285. package/react/components/singleInputDialog/index.js.map +1 -1
  286. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  287. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  288. package/react/components/smartDesktopDesigner/Appearance.css +94 -94
  289. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
  290. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  291. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  292. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
  293. package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
  294. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
  295. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  296. package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
  297. package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
  298. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  299. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  300. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  301. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  302. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  303. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  304. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  305. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  306. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  307. package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
  308. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
  309. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
  310. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  311. package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
  312. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  313. package/react/components/smartDesktopDesigner/ThemePage.css +110 -110
  314. package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
  315. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  316. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  317. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
  318. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  319. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  320. package/react/components/smartDesktopDesigner/css/appearance.css +10 -10
  321. package/react/components/smartDesktopDesigner/css/applications.css +127 -127
  322. package/react/components/smartDesktopDesigner/css/authentication.css +125 -125
  323. package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
  324. package/react/components/smartDesktopDesigner/css/export.css +163 -163
  325. package/react/components/smartDesktopDesigner/css/getting-started.css +6 -6
  326. package/react/components/smartDesktopDesigner/css/nav.css +93 -93
  327. package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
  328. package/react/components/smartDesktopDesigner/css/project-header.css +121 -121
  329. package/react/components/smartDesktopDesigner/css/styles.css +179 -179
  330. package/react/components/smartDesktopDesigner/css/views.css +16 -16
  331. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
  332. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
  333. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  334. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
  335. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
  336. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  337. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
  338. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  339. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
  340. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  341. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  342. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  343. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  344. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
  345. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
  346. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
  347. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  348. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
  349. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  350. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  351. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  352. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  353. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  354. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  355. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  356. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
  357. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  358. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  359. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  360. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
  361. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  362. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  363. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
  364. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
  365. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
  366. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  367. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  368. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  369. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  370. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  371. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  372. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
  373. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  374. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  375. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  376. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  377. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  378. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
  379. package/react/components/system/System.js.map +1 -1
  380. package/react/components/system/System.spec.js.map +1 -1
  381. package/react/components/system/System.stories.js.map +1 -1
  382. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  383. package/react/components/system/index.js.map +1 -1
  384. package/react/components/toolbar/AutoArrange.js.map +1 -1
  385. package/react/components/toolbar/DragHandle.js.map +1 -1
  386. package/react/components/toolbar/MinimizeAll.js.map +1 -1
  387. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  388. package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
  389. package/react/components/toolbar/NotificationControl.js.map +1 -1
  390. package/react/components/toolbar/RevealAll.js.map +1 -1
  391. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  392. package/react/components/toolbar/RevealAll.stories.js.map +1 -1
  393. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  394. package/react/components/toolbar/ToolbarSection.js.map +1 -1
  395. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  396. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  397. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  398. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  399. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  400. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  401. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  402. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  403. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  404. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  405. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  406. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  407. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  408. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  409. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  410. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  411. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  412. package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
  413. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  414. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  415. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  416. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  417. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  418. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  419. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  420. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  421. package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
  422. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  423. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  424. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  425. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  426. package/react/components/toolbar/index.js.map +1 -1
  427. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  428. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  429. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  430. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  431. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  432. package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +90 -90
  433. package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
  434. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -1
  435. package/react/components/userPreferences/UserPreferences.js.map +1 -1
  436. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  437. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  438. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  439. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  440. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  441. package/react/components/userPreferences/components/content/DashbarEditorItem.js.map +1 -1
  442. package/react/components/userPreferences/components/content/General.js.map +1 -1
  443. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  444. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  445. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  446. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  447. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  448. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  449. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  450. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  451. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  452. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  453. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  454. package/react/components/userPreferences/index.js.map +1 -1
  455. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  456. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  457. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  458. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  459. package/react/components/userPreferences/stories/Notifications.stories.js.map +1 -1
  460. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  461. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  462. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  463. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  464. package/react/components/userPreferences/stories/WorkspaceComponents.stories.js.map +1 -1
  465. package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
  466. package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
  467. package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
  468. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  469. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  470. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  471. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  472. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  473. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  474. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  475. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  476. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  477. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  478. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  479. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  480. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  481. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  482. package/react/components/utils.js.map +1 -1
  483. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  484. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  485. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  486. package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
  487. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  488. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
  489. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  490. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
  491. package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
  492. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
  493. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  494. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  495. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  496. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  497. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  498. package/react/components/windowTitleBar/index.js.map +1 -1
  499. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  500. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  501. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  502. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  503. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  504. package/react/components/yesNoDialog/YesNoDialog.css +3 -3
  505. package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
  506. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  507. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  508. package/react/components/yesNoDialog/index.js.map +1 -1
  509. package/react/components/yesNoDialog/timer.js.map +1 -1
  510. package/react/enzymeSetup.js.map +1 -1
  511. package/react/hooks/index.js.map +1 -1
  512. package/react/hooks/useAuth.js.map +1 -1
  513. package/react/hooks/useDeepEffect.js.map +1 -1
  514. package/react/hooks/useFavorites.js.map +1 -1
  515. package/react/hooks/useFavoritesShell.js.map +1 -1
  516. package/react/hooks/useHotkey.js.map +1 -1
  517. package/react/hooks/useLinker.js.map +1 -1
  518. package/react/hooks/useMenu.js.map +1 -1
  519. package/react/hooks/useNotifications.js.map +1 -1
  520. package/react/hooks/useOutsideClickDetector.js.map +1 -1
  521. package/react/hooks/usePubSub.js.map +1 -1
  522. package/react/hooks/useSearch.js.map +1 -1
  523. package/react/hooks/useToolbar.js.map +1 -1
  524. package/react/hooks/useWorkspace.js.map +1 -1
  525. package/react/reducers/favoriteReducer.js.map +1 -1
  526. package/react/reducers/linkerReducer.js.map +1 -1
  527. package/react/reducers/menuReducer.js.map +1 -1
  528. package/react/reducers/rootReducer.js.map +1 -1
  529. package/react/reducers/searchReducer.js.map +1 -1
  530. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  531. package/react/reducers/toolbarReducer.js.map +1 -1
  532. package/react/reducers/workspaceReducer.js.map +1 -1
  533. package/react/store.js.map +1 -1
  534. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  535. package/react/types/dashbarTypes.js.map +1 -1
  536. package/react/types/favoriteTypes.js.map +1 -1
  537. package/react/types/fdc3.js.map +1 -1
  538. package/react/types/hotkeyTypes.js.map +1 -1
  539. package/react/types/iconTypes.js.map +1 -1
  540. package/react/types/linkerTypes.js.map +1 -1
  541. package/react/types/searchTypes.js.map +1 -1
  542. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  543. package/react/types/windowTitleBar.js.map +1 -1
  544. package/react/types/workspaceTypes.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FinsembleToggle.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,MAAM;CACb,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,kBAAkB;CACzB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FinsembleToggle, FinsembleToggleProps } from \"../FinsembleToggle\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { action } from \"@storybook/addon-actions\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FinsembleToggle\",\r\n\tcomponent: FinsembleToggle,\r\n};\r\n\r\nconst Template: Story<FinsembleToggleProps> = (args: FinsembleToggleProps) => <FinsembleToggle {...args} />;\r\n\r\nexport const Unchecked = Template.bind({});\r\nUnchecked.args = {\r\n\tchecked: false,\r\n\tonChange: action(\"Selected values\"),\r\n\tlabel: \"Test\",\r\n};\r\nexport const Checked = Template.bind({});\r\nChecked.args = {\r\n\tchecked: true,\r\n\tonChange: action(\"Selected values\"),\r\n\tlabel: \"Pre-checked test\",\r\n};\r\n"]}
1
+ {"version":3,"file":"FinsembleToggle.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FinsembleToggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,eAAe;IACd,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,eAAe;CAC1B,CAAC;AAEF,MAAM,QAAQ,GAAgC,CAAC,IAA0B,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAC;AAE5G,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC3C,SAAS,CAAC,IAAI,GAAG;IAChB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,MAAM;CACb,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;IACd,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,EAAE,kBAAkB;CACzB,CAAC","sourcesContent":["import React from \"react\";\nimport { FinsembleToggle, FinsembleToggleProps } from \"../FinsembleToggle\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { action } from \"@storybook/addon-actions\";\n\nexport default {\n\ttitle: \"Common/FinsembleToggle\",\n\tcomponent: FinsembleToggle,\n};\n\nconst Template: Story<FinsembleToggleProps> = (args: FinsembleToggleProps) => <FinsembleToggle {...args} />;\n\nexport const Unchecked = Template.bind({});\nUnchecked.args = {\n\tchecked: false,\n\tonChange: action(\"Selected values\"),\n\tlabel: \"Test\",\n};\nexport const Checked = Template.bind({});\nChecked.args = {\n\tchecked: true,\n\tonChange: action(\"Selected values\"),\n\tlabel: \"Pre-checked test\",\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FontSizeSelector.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FontSizeSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FontSize, FontSizeProps } from \"../FontSizeSelector\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/FontSize\",\r\n\tcomponent: FontSize,\r\n};\r\n\r\nconst Template: Story<FontSizeProps> = (args: FontSizeProps) => <FontSize {...args} />;\r\n\r\nexport const EmptyField = Template.bind({});\r\nEmptyField.args = {\r\n\tstartSize: \"\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n\r\nexport const Large = Template.bind({});\r\nLarge.args = {\r\n\tstartSize: \"large\",\r\n\tupdateSize: (newSize) => {\r\n\t\tconsole.log(newSize);\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"FontSizeSelector.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/FontSizeSelector.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAiB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,QAAQ;CACnB,CAAC;AAEF,MAAM,QAAQ,GAAyB,CAAC,IAAmB,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAC;AAEvF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACjB,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\nimport { FontSize, FontSizeProps } from \"../FontSizeSelector\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nexport default {\n\ttitle: \"Common/FontSize\",\n\tcomponent: FontSize,\n};\n\nconst Template: Story<FontSizeProps> = (args: FontSizeProps) => <FontSize {...args} />;\n\nexport const EmptyField = Template.bind({});\nEmptyField.args = {\n\tstartSize: \"\",\n\tupdateSize: (newSize) => {\n\t\tconsole.log(newSize);\n\t},\n};\n\nexport const Large = Template.bind({});\nLarge.args = {\n\tstartSize: \"large\",\n\tupdateSize: (newSize) => {\n\t\tconsole.log(newSize);\n\t},\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Header.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEjF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,kBAAkB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC3B,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;IACD,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\r\nimport { Header, HeaderProps } from \"../Header\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Header\",\r\n\tcomponent: Header,\r\n};\r\n\r\nconst Template: Story<HeaderProps> = (args: HeaderProps) => <Header {...args} />;\r\n\r\nexport const BasicHeader = Template.bind({});\r\nBasicHeader.args = {\r\n\tchildren: \"This is a Header\",\r\n};\r\n\r\nexport const HeaderWithBackButton = Template.bind({});\r\nHeaderWithBackButton.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n};\r\n\r\nexport const HeaderWithHelp = Template.bind({});\r\nHeaderWithHelp.args = {\r\n\tchildren: \"My Header\",\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\nexport const KitchenSink = Template.bind({});\r\nKitchenSink.args = {\r\n\tchildren: \"My Header\",\r\n\tbackFunction: () => {\r\n\t\talert(\"Clicked the back button\");\r\n\t},\r\n\thelpFunction: () => {\r\n\t\talert(\"Clicked the help button\");\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"Header.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Header.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAG3B,eAAe;IACd,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,QAAQ,GAAuB,CAAC,IAAiB,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAC;AAEjF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,kBAAkB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IAC3B,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IACrB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IAClB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;IACD,YAAY,EAAE,GAAG,EAAE;QAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAClC,CAAC;CACD,CAAC","sourcesContent":["import React from \"react\";\nimport { Header, HeaderProps } from \"../Header\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\nimport { Story } from \"@storybook/react/types-6-0\";\n\nexport default {\n\ttitle: \"Common/Header\",\n\tcomponent: Header,\n};\n\nconst Template: Story<HeaderProps> = (args: HeaderProps) => <Header {...args} />;\n\nexport const BasicHeader = Template.bind({});\nBasicHeader.args = {\n\tchildren: \"This is a Header\",\n};\n\nexport const HeaderWithBackButton = Template.bind({});\nHeaderWithBackButton.args = {\n\tchildren: \"My Header\",\n\tbackFunction: () => {\n\t\talert(\"Clicked the back button\");\n\t},\n};\n\nexport const HeaderWithHelp = Template.bind({});\nHeaderWithHelp.args = {\n\tchildren: \"My Header\",\n\thelpFunction: () => {\n\t\talert(\"Clicked the help button\");\n\t},\n};\nexport const KitchenSink = Template.bind({});\nKitchenSink.args = {\n\tchildren: \"My Header\",\n\tbackFunction: () => {\n\t\talert(\"Clicked the back button\");\n\t},\n\thelpFunction: () => {\n\t\talert(\"Clicked the help button\");\n\t},\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ImagePreview.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/ImagePreview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,YAAY,EAAqB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,YAAY;CACvB,CAAC;AAEF,MAAM,QAAQ,GAAG,+CAA+C,CAAC;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAoB,YAAY,EAAE;IAC3E,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,cAAc;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAoB,YAAY,EAAE;IAC/E,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,iBAAiB;IACxB,cAAc;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAoB,YAAY,EAAE;IACtF,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,GAAG,QAAQ,kBAAkB;IACpC,cAAc;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAoB,YAAY,EAAE;IACtF,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,eAAe;IACtB,cAAc;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAoB,YAAY,EAAE;IAC3E,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAoB,YAAY,EAAE;IAC/E,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,iBAAiB;IACxB,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAoB,YAAY,EAAE;IACtF,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,eAAe;IACtB,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC","sourcesContent":["import { createStory, uploadFunction } from \"../helpers\";\r\nimport { ImagePreview, ImagePreviewProps, ImagePreviewSize } from \"../ImagePreview\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\n\r\nexport default {\r\n\ttitle: \"Common/ImagePreview\",\r\n\tcomponent: ImagePreview,\r\n};\r\n\r\nconst BASE_URL = \"https://cosaic.io/wp-content/uploads/2020/07/\";\r\n\r\nexport const SmallEmptyField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tvalue: \"\",\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tuploadFunction,\r\n});\r\n\r\nexport const SmallPreFilledField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tvalue: \"cosiac-blog.png\",\r\n\tuploadFunction,\r\n});\r\n\r\nexport const SmallPreFilledFieldFullURL = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tvalue: `${BASE_URL}/cosiac-blog.png`,\r\n\tuploadFunction,\r\n});\r\n\r\nexport const SmallPreFilledInvalidField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tvalue: \"MyBadPath.jpg\",\r\n\tuploadFunction,\r\n});\r\n\r\nexport const LargeEmptyField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tvalue: \"\",\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tuploadFunction,\r\n\tpreviewSize: ImagePreviewSize.LARGE,\r\n});\r\n\r\nexport const LargePreFilledField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tvalue: \"cosiac-blog.png\",\r\n\tuploadFunction,\r\n\tpreviewSize: ImagePreviewSize.LARGE,\r\n});\r\n\r\nexport const LargePreFilledInvalidField = createStory<ImagePreviewProps>(ImagePreview, {\r\n\tbaseURL: BASE_URL,\r\n\tacceptTypes: [\"image/png\"],\r\n\tvalue: \"MyBadPath.jpg\",\r\n\tuploadFunction,\r\n\tpreviewSize: ImagePreviewSize.LARGE,\r\n});\r\n"]}
1
+ {"version":3,"file":"Im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E,CAAC,WAAW,CAAC;IAC1B,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAoB,YAAY,EAAE;IAC/E,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,iBAAiB;IACxB,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAoB,YAAY,EAAE;IACtF,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,KAAK,EAAE,eAAe;IACtB,cAAc;IACd,WAAW,EAAE,gBAAgB,CAAC,KAAK;CACnC,CAAC,CAAC","sourcesContent":["import { createStory, uploadFunction } from \"../helpers\";\nimport { ImagePreview, ImagePreviewProps, ImagePreviewSize } from \"../ImagePreview\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\n\nexport default {\n\ttitle: \"Common/ImagePreview\",\n\tcomponent: ImagePreview,\n};\n\nconst BASE_URL = \"https://cosaic.io/wp-content/uploads/2020/07/\";\n\nexport const SmallEmptyField = createStory<ImagePreviewProps>(ImagePreview, {\n\tvalue: \"\",\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tuploadFunction,\n});\n\nexport const SmallPreFilledField = createStory<ImagePreviewProps>(ImagePreview, {\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tvalue: \"cosiac-blog.png\",\n\tuploadFunction,\n});\n\nexport const SmallPreFilledFieldFullURL = createStory<ImagePreviewProps>(ImagePreview, {\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tvalue: `${BASE_URL}/cosiac-blog.png`,\n\tuploadFunction,\n});\n\nexport const SmallPreFilledInvalidField = createStory<ImagePreviewProps>(ImagePreview, {\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tvalue: \"MyBadPath.jpg\",\n\tuploadFunction,\n});\n\nexport const LargeEmptyField = createStory<ImagePreviewProps>(ImagePreview, {\n\tvalue: \"\",\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tuploadFunction,\n\tpreviewSize: ImagePreviewSize.LARGE,\n});\n\nexport const LargePreFilledField = createStory<ImagePreviewProps>(ImagePreview, {\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tvalue: \"cosiac-blog.png\",\n\tuploadFunction,\n\tpreviewSize: ImagePreviewSize.LARGE,\n});\n\nexport const LargePreFilledInvalidField = createStory<ImagePreviewProps>(ImagePreview, {\n\tbaseURL: BASE_URL,\n\tacceptTypes: [\"image/png\"],\n\tvalue: \"MyBadPath.jpg\",\n\tuploadFunction,\n\tpreviewSize: ImagePreviewSize.LARGE,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/LoadingSpinner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,eAAe;IACd,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,sBAAsB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC","sourcesContent":["import { CircularLoadingSpinner } from \"../LoadingSpinner\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport { createStory } from \"../helpers\";\r\n\r\nexport default {\r\n\ttitle: \"Common/LoadingSpinner\",\r\n\tcomponent: CircularLoadingSpinner,\r\n};\r\n\r\nexport const circularLoadingSpinner = createStory(CircularLoadingSpinner, {});\r\n"]}
1
+ {"version":3,"file":"LoadingSpinner.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/LoadingSpinner.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,eAAe;IACd,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,sBAAsB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC","sourcesContent":["import { CircularLoadingSpinner } from \"../LoadingSpinner\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\nimport { createStory } from \"../helpers\";\n\nexport default {\n\ttitle: \"Common/LoadingSpinner\",\n\tcomponent: CircularLoadingSpinner,\n};\n\nexport const circularLoadingSpinner = createStory(CircularLoadingSpinner, {});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,GAAG,EAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,eAAe;IACd,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,GAAG;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAW,GAAG,EAAE;IAC/C,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;QACN,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;CACD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAW,GAAG,EAAE;IACnD,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;CACD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAW,GAAG,EAAE;IACnD,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;QACN,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;IACD,SAAS,EAAE,CAAC;CACZ,CAAC,CAAC","sourcesContent":["import React from \"react\";\r\nimport { createStory } from \"../helpers\";\r\nimport { Tab, TabProps } from \"../Tab\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Tab\",\r\n\tcomponent: Tab,\r\n};\r\n\r\nexport const Plain = createStory<TabProps>(Tab, {\r\n\tchildren: [\r\n\t\t<div key={1} data-label=\"Letter\">\r\n\t\t\tABC\r\n\t\t</div>,\r\n\t\t<div key={2} data-label=\"Number\">\r\n\t\t\t123\r\n\t\t</div>,\r\n\t],\r\n});\r\nexport const SingleTab = createStory<TabProps>(Tab, {\r\n\tchildren: [\r\n\t\t<div key={1} data-label=\"Letter\">\r\n\t\t\tABC\r\n\t\t</div>,\r\n\t],\r\n});\r\nexport const AutoFocus = createStory<TabProps>(Tab, {\r\n\tchildren: [\r\n\t\t<div key={1} data-label=\"Letter\">\r\n\t\t\tABC\r\n\t\t</div>,\r\n\t\t<div key={2} data-label=\"Number\">\r\n\t\t\t123\r\n\t\t</div>,\r\n\t],\r\n\tautofocus: 1,\r\n});\r\n"]}
1
+ {"version":3,"file":"Tab.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Tab.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,GAAG,EAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAE3B,eAAe;IACd,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,GAAG;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAW,GAAG,EAAE;IAC/C,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;QACN,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;CACD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAW,GAAG,EAAE;IACnD,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;CACD,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAW,GAAG,EAAE;IACnD,QAAQ,EAAE;QACT,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;QACN,6BAAK,GAAG,EAAE,CAAC,gBAAa,QAAQ,UAE1B;KACN;IACD,SAAS,EAAE,CAAC;CACZ,CAAC,CAAC","sourcesContent":["import React from \"react\";\nimport { createStory } from \"../helpers\";\nimport { Tab, TabProps } from \"../Tab\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\n\nexport default {\n\ttitle: \"Common/Tab\",\n\tcomponent: Tab,\n};\n\nexport const Plain = createStory<TabProps>(Tab, {\n\tchildren: [\n\t\t<div key={1} data-label=\"Letter\">\n\t\t\tABC\n\t\t</div>,\n\t\t<div key={2} data-label=\"Number\">\n\t\t\t123\n\t\t</div>,\n\t],\n});\nexport const SingleTab = createStory<TabProps>(Tab, {\n\tchildren: [\n\t\t<div key={1} data-label=\"Letter\">\n\t\t\tABC\n\t\t</div>,\n\t],\n});\nexport const AutoFocus = createStory<TabProps>(Tab, {\n\tchildren: [\n\t\t<div key={1} data-label=\"Letter\">\n\t\t\tABC\n\t\t</div>,\n\t\t<div key={2} data-label=\"Number\">\n\t\t\t123\n\t\t</div>,\n\t],\n\tautofocus: 1,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAE5B,eAAe;IACd,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,OAAO;IAClB,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9B;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9B;KACD;CACD,CAAC;AAEF,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAe,OAAO,EAAE;IAC1D,QAAQ,EAAE,GAAG,QAAQ,IAAI,QAAQ,IAAI,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;IACR,IAAI,EAAE,OAAO;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAe,OAAO,EAAE;IACzD,QAAQ;IACR,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAe,OAAO,EAAE;IACtD,QAAQ;IACR,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAe,OAAO,EAAE;IACtD,QAAQ;IACR,QAAQ,EAAE,MAAM;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;IACR,QAAQ,EAAE,OAAO;CACjB,CAAC,CAAC","sourcesContent":["import { createStory } from \"../helpers\";\r\nimport { Tooltip, TooltipProps } from \"../Tooltip\";\r\nimport \"../../../assets/css/finsemble.css\";\r\nimport \"../css/styles.css\";\r\nimport \"../css/tooltip.css\";\r\n\r\nexport default {\r\n\ttitle: \"Common/Tooltip\",\r\n\tcomponent: Tooltip,\r\n\targTypes: {\r\n\t\ttype: {\r\n\t\t\ttype: \"select\",\r\n\t\t\toptions: [\"\", \"info\", \"error\"],\r\n\t\t},\r\n\t\tposition: {\r\n\t\t\ttype: \"select\",\r\n\t\t\toptions: [\"\", \"left\", \"right\"],\r\n\t\t},\r\n\t},\r\n};\r\n\r\nconst children = \"This is a test\";\r\n\r\nexport const Plain = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n});\r\n\r\nexport const LongText = createStory<TooltipProps>(Tooltip, {\r\n\tchildren: `${children} ${children} ${children}`,\r\n});\r\n\r\nexport const Error = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n\ttype: \"error\",\r\n});\r\n\r\nexport const Warning = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n\ttype: \"warn\",\r\n});\r\n\r\nexport const Info = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n\ttype: \"info\",\r\n});\r\n\r\nexport const Left = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n\tposition: \"left\",\r\n});\r\n\r\nexport const Right = createStory<TooltipProps>(Tooltip, {\r\n\tchildren,\r\n\tposition: \"right\",\r\n});\r\n"]}
1
+ {"version":3,"file":"Tooltip.stories.js","sourceRoot":"","sources":["../../../../src/components/common/stories/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;AACnD,OAAO,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAE5B,eAAe;IACd,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,OAAO;IAClB,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9B;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9B;KACD;CACD,CAAC;AAEF,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;CACR,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAe,OAAO,EAAE;IAC1D,QAAQ,EAAE,GAAG,QAAQ,IAAI,QAAQ,IAAI,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;IACR,IAAI,EAAE,OAAO;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAe,OAAO,EAAE;IACzD,QAAQ;IACR,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAe,OAAO,EAAE;IACtD,QAAQ;IACR,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAe,OAAO,EAAE;IACtD,QAAQ;IACR,QAAQ,EAAE,MAAM;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAe,OAAO,EAAE;IACvD,QAAQ;IACR,QAAQ,EAAE,OAAO;CACjB,CAAC,CAAC","sourcesContent":["import { createStory } from \"../helpers\";\nimport { Tooltip, TooltipProps } from \"../Tooltip\";\nimport \"../../../assets/css/finsemble.css\";\nimport \"../css/styles.css\";\nimport \"../css/tooltip.css\";\n\nexport default {\n\ttitle: \"Common/Tooltip\",\n\tcomponent: Tooltip,\n\targTypes: {\n\t\ttype: {\n\t\t\ttype: \"select\",\n\t\t\toptions: [\"\", \"info\", \"error\"],\n\t\t},\n\t\tposition: {\n\t\t\ttype: \"select\",\n\t\t\toptions: [\"\", \"left\", \"right\"],\n\t\t},\n\t},\n};\n\nconst children = \"This is a test\";\n\nexport const Plain = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n});\n\nexport const LongText = createStory<TooltipProps>(Tooltip, {\n\tchildren: `${children} ${children} ${children}`,\n});\n\nexport const Error = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n\ttype: \"error\",\n});\n\nexport const Warning = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n\ttype: \"warn\",\n});\n\nexport const Info = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n\ttype: \"info\",\n});\n\nexport const Left = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n\tposition: \"left\",\n});\n\nexport const Right = createStory<TooltipProps>(Tooltip, {\n\tchildren,\n\tposition: \"right\",\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonRow.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ButtonRow.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAA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,CAAC,2GAA2G,EAAE,GAAG,EAAE;QACpH,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,SAAS,IACT,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EACjB,eAAe,EAAE,KAAK,EACtB,GAAG,EAAE,8DAA8D,GAClE,CACF,CAAC;QACF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport ButtonRow from \"../ButtonRow\";\r\n\r\ndescribe(\"<ButtonRow/>\", () => {\r\n\tit(\"should display the correct label\", () => {\r\n\t\tconst wrapper = mount(<ButtonRow onClick={() => {}} label={\"Hello World\"} />);\r\n\t\texpect(wrapper.find(\"span.row__lbl\").text()).to.equal(\"Hello World\");\r\n\t});\r\n\tit(\"should display the Finsemble Icon if showDefaultIcon is true even if there is an image\", () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<ButtonRow\r\n\t\t\t\tonClick={() => {}}\r\n\t\t\t\tshowDefaultIcon={true}\r\n\t\t\t\timg={\"https://cosaic.io/wp-content/uploads/2020/07/cosiac-blog.png\"}\r\n\t\t\t/>\r\n\t\t);\r\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(1);\r\n\t});\r\n\tit(\"should not display the Finsemble Icon if showDefaultIcon is false\", () => {\r\n\t\tconst wrapper = mount(<ButtonRow onClick={() => {}} showDefaultIcon={false} />);\r\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(0);\r\n\t});\r\n\tit(\"should display given image and not display the Finsemble Icon if image url given does not result in error\", () => {\r\n\t\tconst wrapper = mount(\r\n\t\t\t<ButtonRow\r\n\t\t\t\tonClick={() => {}}\r\n\t\t\t\tshowDefaultIcon={false}\r\n\t\t\t\timg={\"https://cosaic.io/wp-content/uploads/2020/07/cosiac-blog.png\"}\r\n\t\t\t/>\r\n\t\t);\r\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(0);\r\n\t\texpect(wrapper.find(\"img\")).to.have.lengthOf(1);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"ButtonRow.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ButtonRow.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,SAAS,MAAM,cAAc,CAAC;AAErC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC3C,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,SAAS,IAAC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAE,aAAa,GAAI,CAAC,CAAC;QAC9E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,wFAAwF,EAAE,GAAG,EAAE;QACjG,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,SAAS,IACT,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EACjB,eAAe,EAAE,IAAI,EACrB,GAAG,EAAE,8DAA8D,GAClE,CACF,CAAC;QACF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mEAAmE,EAAE,GAAG,EAAE;QAC5E,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,SAAS,IAAC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,eAAe,EAAE,KAAK,GAAI,CAAC,CAAC;QAChF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,2GAA2G,EAAE,GAAG,EAAE;QACpH,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,SAAS,IACT,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EACjB,eAAe,EAAE,KAAK,EACtB,GAAG,EAAE,8DAA8D,GAClE,CACF,CAAC;QACF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACjD,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 ButtonRow from \"../ButtonRow\";\n\ndescribe(\"<ButtonRow/>\", () => {\n\tit(\"should display the correct label\", () => {\n\t\tconst wrapper = mount(<ButtonRow onClick={() => {}} label={\"Hello World\"} />);\n\t\texpect(wrapper.find(\"span.row__lbl\").text()).to.equal(\"Hello World\");\n\t});\n\tit(\"should display the Finsemble Icon if showDefaultIcon is true even if there is an image\", () => {\n\t\tconst wrapper = mount(\n\t\t\t<ButtonRow\n\t\t\t\tonClick={() => {}}\n\t\t\t\tshowDefaultIcon={true}\n\t\t\t\timg={\"https://cosaic.io/wp-content/uploads/2020/07/cosiac-blog.png\"}\n\t\t\t/>\n\t\t);\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(1);\n\t});\n\tit(\"should not display the Finsemble Icon if showDefaultIcon is false\", () => {\n\t\tconst wrapper = mount(<ButtonRow onClick={() => {}} showDefaultIcon={false} />);\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(0);\n\t});\n\tit(\"should display given image and not display the Finsemble Icon if image url given does not result in error\", () => {\n\t\tconst wrapper = mount(\n\t\t\t<ButtonRow\n\t\t\t\tonClick={() => {}}\n\t\t\t\tshowDefaultIcon={false}\n\t\t\t\timg={\"https://cosaic.io/wp-content/uploads/2020/07/cosiac-blog.png\"}\n\t\t\t/>\n\t\t);\n\t\texpect(wrapper.find(\".ff-finsemble\")).to.have.lengthOf(0);\n\t\texpect(wrapper.find(\"img\")).to.have.lengthOf(1);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Checkbox.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,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,MAAM,EAAE,EAAE,WAAW,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AAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEvE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACvC,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,OAAO,oBAAM,OAAO,CAAC,IAAsB,EAAI,CAAC,CAAC;QAExE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { CheckboxProps } from \"../Checkbox\";\r\nimport { Checked, Unchecked, Disabled } from \"../stories/Checkbox.stories\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\n\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<Checkbox/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should be checked items if checked prop is updated after initial render\", async () => {\r\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as CheckboxProps)} />);\r\n\r\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\r\n\r\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(1);\r\n\t});\r\n\r\n\tit(\"should be unchecked items if checked prop is updated after initial render\", async () => {\r\n\t\tconst wrapper = mount(<Checked {...(Checked.args as CheckboxProps)} />);\r\n\r\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\r\n\r\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(0);\r\n\t});\r\n\r\n\tit(\"shouldn't be clickable when disabled\", async () => {\r\n\t\tconst wrapper = mount(<Disabled {...(Disabled.args as CheckboxProps)} />);\r\n\r\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\r\n\r\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(0);\r\n\t});\r\n\r\n\tit(\"should display a label\", async () => {\r\n\t\tconst wrapper = mount(<Checked {...(Checked.args as CheckboxProps)} />);\r\n\r\n\t\texpect(wrapper.find(\".complex-menu-checkbox-label\").at(0).text()).to.equal(\"Label\");\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"Checkbox.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Checkbox.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,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC5B,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yEAAyE,EAAE,KAAK,IAAI,EAAE;Q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AO,GAAG,KAAK,CAAC,oBAAC,OAAO,oBAAM,OAAO,CAAC,IAAsB,EAAI,CAAC,CAAC;QAExE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrF,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 sinon from \"sinon\";\nimport { CheckboxProps } from \"../Checkbox\";\nimport { Checked, Unchecked, Disabled } from \"../stories/Checkbox.stories\";\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\";\n\naddons.setChannel(mockChannel());\n\ndescribe(\"<Checkbox/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should be checked items if checked prop is updated after initial render\", async () => {\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as CheckboxProps)} />);\n\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\n\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(1);\n\t});\n\n\tit(\"should be unchecked items if checked prop is updated after initial render\", async () => {\n\t\tconst wrapper = mount(<Checked {...(Checked.args as CheckboxProps)} />);\n\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\n\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(0);\n\t});\n\n\tit(\"shouldn't be clickable when disabled\", async () => {\n\t\tconst wrapper = mount(<Disabled {...(Disabled.args as CheckboxProps)} />);\n\n\t\twrapper.find(\".complex-menu-checkbox-wrapper\").at(0).simulate(\"click\");\n\n\t\texpect(wrapper.find(\".ff-check-mark\")).to.be.length(0);\n\t});\n\n\tit(\"should display a label\", async () => {\n\t\tconst wrapper = mount(<Checked {...(Checked.args as CheckboxProps)} />);\n\n\t\texpect(wrapper.find(\".complex-menu-checkbox-label\").at(0).text()).to.equal(\"Label\");\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ColorPicker.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAExE,SAAS,oBAAoB,CAAC,OAAqB;IAElD,OAAO,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAqB;IAEhD,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqB,EAAE,QAAgB;IAEhE,oBAAoB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE;QAChD,MAAM,EAAE;YACP,KAAK,EAAE,QAAQ;SACf;KACD,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAoC;IAEhE,OAAO,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAqB;IAE/C,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,eAAe,CAAC,OAAoC,EAAE,QAAgB;IAE9E,mBAAm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,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QACjE,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,SAAS,GAAG,SAAS,CAAC;QAC5B,IAAI,iBAAiB,GAAG,cAAc,CAAC;QAEvC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,UAAU,IACV,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACzB,iBAAiB,GAAG,QAAQ,CAAC;YAC9B,CAAC,GACA,CACF,CAAC;QACF,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEpC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACzE,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,SAAS,GAAG,QAAQ,CAAC;QAC3B,IAAI,iBAAiB,GAAG,cAAc,CAAC;QAEvC,MAAM,OAAO,GAAG,KAAK,CACpB,oBAAC,UAAU,IACV,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACzB,iBAAiB,GAAG,QAAQ,CAAC;YAC9B,CAAC,GACA,CACF,CAAC;QACF,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEpC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { ReactWrapper, mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { ColorPickerProps } from \"../ColorPicker\";\r\nimport { EmptyField, ValidColor } from \"../stories/ColorPicker.stories\";\r\n\r\nfunction getColorInputElement(wrapper: ReactWrapper): ReactWrapper {\r\n\t// Return the color picker control DOM element.\r\n\treturn wrapper.find(\"input[type='color']\").at(0);\r\n}\r\n\r\nfunction getColorInputValue(wrapper: ReactWrapper): ReactWrapper {\r\n\t// Return the current value of the color picker control.\r\n\treturn getColorInputElement(wrapper).prop(\"value\");\r\n}\r\n\r\nfunction changeColorInput(wrapper: ReactWrapper, newColor: string) {\r\n\t// Simulate changing the color picker control.\r\n\tgetColorInputElement(wrapper).simulate(\"change\", {\r\n\t\ttarget: {\r\n\t\t\tvalue: newColor,\r\n\t\t},\r\n\t});\r\n}\r\n\r\nfunction getTextInputElement(wrapper: ReactWrapper | ReactWrapper): ReactWrapper | ReactWrapper {\r\n\t// Return the text input field DOM element.\r\n\treturn wrapper.find(\"input[type='text']\");\r\n}\r\n\r\nfunction getTextInputValue(wrapper: ReactWrapper): ReactWrapper {\r\n\t// Return the current value of the text input field.\r\n\treturn getTextInputElement(wrapper).prop(\"value\");\r\n}\r\n\r\nfunction changeTextInput(wrapper: ReactWrapper | ReactWrapper, newColor: string) {\r\n\t// Simulate changing the text input field.\r\n\tgetTextInputElement(wrapper).simulate(\"change\", {\r\n\t\ttarget: {\r\n\t\t\tvalue: newColor,\r\n\t\t},\r\n\t});\r\n}\r\n\r\ndescribe(\"<ColorPicker/>\", () => {\r\n\tit(\"should display matching color values for both the color and text inputs\", () => {\r\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\r\n\r\n\t\texpect(getColorInputValue(wrapper)).to.equal(getTextInputValue(wrapper));\r\n\t});\r\n\r\n\tit(\"should default to black when no color is provided\", () => {\r\n\t\tconst BLACK = \"#000000\";\r\n\r\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\r\n\r\n\t\texpect(getColorInputValue(wrapper)).to.equal(BLACK);\r\n\t\texpect(getTextInputValue(wrapper)).to.equal(BLACK);\r\n\t});\r\n\r\n\tit(\"should update the text field when the color picker is changed\", () => {\r\n\t\tconst NEW_COLOR = \"#00aa00\";\r\n\r\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\r\n\t\tchangeColorInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(getColorInputValue(wrapper)).to.equal(NEW_COLOR);\r\n\t\texpect(getTextInputValue(wrapper)).to.equal(NEW_COLOR);\r\n\t});\r\n\r\n\tit(\"should update the color picker when the text field is changed\", () => {\r\n\t\tconst NEW_COLOR = \"#0000cc\";\r\n\r\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\r\n\t\tchangeTextInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(getColorInputValue(wrapper)).to.equal(NEW_COLOR);\r\n\t\texpect(getTextInputValue(wrapper)).to.equal(NEW_COLOR);\r\n\t});\r\n\r\n\tit(\"should display an error when an invalid color is selected\", () => {\r\n\t\tconst NEW_COLOR = \"#ZZZZZZ\";\r\n\r\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\r\n\t\tchangeTextInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(getTextInputElement(wrapper).prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display no error when a valid color is selected\", () => {\r\n\t\tconst NEW_COLOR = \"#abc123\";\r\n\r\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\r\n\t\tchangeTextInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(getTextInputElement(wrapper).prop(\"aria-invalid\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should trigger an event when a valid color is selected\", () => {\r\n\t\tconst ORIGINAL_COLOR = \"#123456\";\r\n\t\tconst NEW_COLOR = \"#abc123\";\r\n\t\tvar currentColorState = ORIGINAL_COLOR;\r\n\r\n\t\tconst wrapper = mount(\r\n\t\t\t<EmptyField\r\n\t\t\t\tstartColor={ORIGINAL_COLOR}\r\n\t\t\t\tupdateColor={(newColor) => {\r\n\t\t\t\t\tcurrentColorState = newColor;\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t\tchangeTextInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(currentColorState).to.equal(NEW_COLOR);\r\n\t});\r\n\r\n\tit(\"should not trigger any event when an invalid color is selected\", () => {\r\n\t\tconst ORIGINAL_COLOR = \"#123456\";\r\n\t\tconst NEW_COLOR = \"foobar\";\r\n\t\tvar currentColorState = ORIGINAL_COLOR;\r\n\r\n\t\tconst wrapper = mount(\r\n\t\t\t<EmptyField\r\n\t\t\t\tstartColor={ORIGINAL_COLOR}\r\n\t\t\t\tupdateColor={(newColor) => {\r\n\t\t\t\t\tcurrentColorState = newColor;\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t\tchangeTextInput(wrapper, NEW_COLOR);\r\n\r\n\t\texpect(currentColorState).to.equal(ORIGINAL_COLOR);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"ColorPicker.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ColorPicker.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgB,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAExE,SAAS,oBAAoB,CAAC,OAAqB;IAElD,OAAO,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,kBAAkB,CAAC,OAAqB;IAEhD,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC;AA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,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACzB,iBAAiB,GAAG,QAAQ,CAAC;YAC9B,CAAC,GACA,CACF,CAAC;QACF,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEpC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { ReactWrapper, mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { ColorPickerProps } from \"../ColorPicker\";\nimport { EmptyField, ValidColor } from \"../stories/ColorPicker.stories\";\n\nfunction getColorInputElement(wrapper: ReactWrapper): ReactWrapper {\n\t// Return the color picker control DOM element.\n\treturn wrapper.find(\"input[type='color']\").at(0);\n}\n\nfunction getColorInputValue(wrapper: ReactWrapper): ReactWrapper {\n\t// Return the current value of the color picker control.\n\treturn getColorInputElement(wrapper).prop(\"value\");\n}\n\nfunction changeColorInput(wrapper: ReactWrapper, newColor: string) {\n\t// Simulate changing the color picker control.\n\tgetColorInputElement(wrapper).simulate(\"change\", {\n\t\ttarget: {\n\t\t\tvalue: newColor,\n\t\t},\n\t});\n}\n\nfunction getTextInputElement(wrapper: ReactWrapper | ReactWrapper): ReactWrapper | ReactWrapper {\n\t// Return the text input field DOM element.\n\treturn wrapper.find(\"input[type='text']\");\n}\n\nfunction getTextInputValue(wrapper: ReactWrapper): ReactWrapper {\n\t// Return the current value of the text input field.\n\treturn getTextInputElement(wrapper).prop(\"value\");\n}\n\nfunction changeTextInput(wrapper: ReactWrapper | ReactWrapper, newColor: string) {\n\t// Simulate changing the text input field.\n\tgetTextInputElement(wrapper).simulate(\"change\", {\n\t\ttarget: {\n\t\t\tvalue: newColor,\n\t\t},\n\t});\n}\n\ndescribe(\"<ColorPicker/>\", () => {\n\tit(\"should display matching color values for both the color and text inputs\", () => {\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\n\n\t\texpect(getColorInputValue(wrapper)).to.equal(getTextInputValue(wrapper));\n\t});\n\n\tit(\"should default to black when no color is provided\", () => {\n\t\tconst BLACK = \"#000000\";\n\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\n\n\t\texpect(getColorInputValue(wrapper)).to.equal(BLACK);\n\t\texpect(getTextInputValue(wrapper)).to.equal(BLACK);\n\t});\n\n\tit(\"should update the text field when the color picker is changed\", () => {\n\t\tconst NEW_COLOR = \"#00aa00\";\n\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\n\t\tchangeColorInput(wrapper, NEW_COLOR);\n\n\t\texpect(getColorInputValue(wrapper)).to.equal(NEW_COLOR);\n\t\texpect(getTextInputValue(wrapper)).to.equal(NEW_COLOR);\n\t});\n\n\tit(\"should update the color picker when the text field is changed\", () => {\n\t\tconst NEW_COLOR = \"#0000cc\";\n\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as ColorPickerProps)} />);\n\t\tchangeTextInput(wrapper, NEW_COLOR);\n\n\t\texpect(getColorInputValue(wrapper)).to.equal(NEW_COLOR);\n\t\texpect(getTextInputValue(wrapper)).to.equal(NEW_COLOR);\n\t});\n\n\tit(\"should display an error when an invalid color is selected\", () => {\n\t\tconst NEW_COLOR = \"#ZZZZZZ\";\n\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\n\t\tchangeTextInput(wrapper, NEW_COLOR);\n\n\t\texpect(getTextInputElement(wrapper).prop(\"aria-invalid\")).to.be.true;\n\t});\n\n\tit(\"should display no error when a valid color is selected\", () => {\n\t\tconst NEW_COLOR = \"#abc123\";\n\n\t\tconst wrapper = mount(<ValidColor {...(ValidColor.args as ColorPickerProps)} />);\n\t\tchangeTextInput(wrapper, NEW_COLOR);\n\n\t\texpect(getTextInputElement(wrapper).prop(\"aria-invalid\")).to.be.false;\n\t});\n\n\tit(\"should trigger an event when a valid color is selected\", () => {\n\t\tconst ORIGINAL_COLOR = \"#123456\";\n\t\tconst NEW_COLOR = \"#abc123\";\n\t\tvar currentColorState = ORIGINAL_COLOR;\n\n\t\tconst wrapper = mount(\n\t\t\t<EmptyField\n\t\t\t\tstartColor={ORIGINAL_COLOR}\n\t\t\t\tupdateColor={(newColor) => {\n\t\t\t\t\tcurrentColorState = newColor;\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t\tchangeTextInput(wrapper, NEW_COLOR);\n\n\t\texpect(currentColorState).to.equal(NEW_COLOR);\n\t});\n\n\tit(\"should not trigger any event when an invalid color is selected\", () => {\n\t\tconst ORIGINAL_COLOR = \"#123456\";\n\t\tconst NEW_COLOR = \"foobar\";\n\t\tvar currentColorState = ORIGINAL_COLOR;\n\n\t\tconst wrapper = mount(\n\t\t\t<EmptyField\n\t\t\t\tstartColor={ORIGINAL_COLOR}\n\t\t\t\tupdateColor={(newColor) => {\n\t\t\t\t\tcurrentColorState = newColor;\n\t\t\t\t}}\n\t\t\t/>\n\t\t);\n\t\tchangeTextInput(wrapper, NEW_COLOR);\n\n\t\texpect(currentColorState).to.equal(ORIGINAL_COLOR);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DropZone.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/DropZone.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,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAGtD,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,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AE;QACjC,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAqB,EAAE,aAAa,CAAC,CAAC;QAC1E,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,OAAO,oBAAM,OAAO,CAAC,IAAsB,EAAI,CAAC,CAAC;QACxE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1C,YAAY,EAAE;gBACb,KAAK,EAAE,EAAE;aACT;SACD,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACvC,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,IAAqB,EAAE,aAAa,CAAC,CAAC;QAC1E,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,OAAO,oBAAM,OAAO,CAAC,IAAsB,EAAI,CAAC,CAAC;QACxE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC1C,YAAY,EAAE;gBACb,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;aACjB;SACD,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC;IAC7C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { DropZoneProps } from \"../DropZone\";\r\nimport { Default } from \"../stories/DropZone.stories\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<DropZone />\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should process 1 file\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\r\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\r\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\r\n\t\t\tdataTransfer: {\r\n\t\t\t\tfiles: [{}],\r\n\t\t\t},\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\r\n\tit(\"should process 2 files\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\r\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\r\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\r\n\t\t\tdataTransfer: {\r\n\t\t\t\tfiles: [{}, {}],\r\n\t\t\t},\r\n\t\t});\r\n\t\texpect(buttonSpy.getCall(1)).to.not.be.null;\r\n\t});\r\n\r\n\tit(\"should process 0 files\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\r\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\r\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\r\n\t\t\tdataTransfer: {\r\n\t\t\t\tfiles: [],\r\n\t\t\t},\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.false;\r\n\t});\r\n\r\n\tit(\"should process 2 mixed files\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\r\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\r\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\r\n\t\t\tdataTransfer: {\r\n\t\t\t\tfiles: [null, {}],\r\n\t\t\t},\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOn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M,EAAE;YAC1C,YAAY,EAAE;gBACb,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;aACjB;SACD,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC;IAC7C,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 sinon from \"sinon\";\nimport { DropZoneProps } from \"../DropZone\";\nimport { Default } from \"../stories/DropZone.stories\";\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\ndescribe(\"<DropZone />\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should process 1 file\", () => {\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\n\t\t\tdataTransfer: {\n\t\t\t\tfiles: [{}],\n\t\t\t},\n\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\n\tit(\"should process 2 files\", () => {\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\n\t\t\tdataTransfer: {\n\t\t\t\tfiles: [{}, {}],\n\t\t\t},\n\t\t});\n\t\texpect(buttonSpy.getCall(1)).to.not.be.null;\n\t});\n\n\tit(\"should process 0 files\", () => {\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\n\t\t\tdataTransfer: {\n\t\t\t\tfiles: [],\n\t\t\t},\n\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.false;\n\t});\n\n\tit(\"should process 2 mixed files\", () => {\n\t\tconst buttonSpy = sinon.spy(Default.args as DropZoneProps, \"processFile\");\n\t\tconst wrapper = mount(<Default {...(Default.args as DropZoneProps)} />);\n\t\twrapper.find(\".dropZone\").simulate(\"drop\", {\n\t\t\tdataTransfer: {\n\t\t\t\tfiles: [null, {}],\n\t\t\t},\n\t\t});\n\t\texpect(buttonSpy.calledOnce).to.not.be.null;\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/FileInput.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,UAAU,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEjG,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC9D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAuB,EAAI,CAAC,CAAC;QAC/E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,cAAc,oBAAM,cAAc,CAAC,IAAuB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACzD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,qBAAqB,oBAAM,qBAAqB,CAAC,IAAuB,EAAI,CAAC,CAAC;QACrG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC5E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,cAAc,oBAAM,cAAc,CAAC,IAAuB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACzD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAuB,EAAI,CAAC,CAAC;QAC/E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC7E,CAAC,CAAC,CAAC;AAyBJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { FileInputProps } from \"../FileInput\";\r\nimport { EmptyField, PreFilledField, PreFilledInvalidField } from \"../stories/FileInput.stories\";\r\n\r\ndescribe(\"<FileInput/>\", () => {\r\n\tit(\"should display an empty string in its default state\", () => {\r\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as FileInputProps)} />);\r\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(\"\");\r\n\t});\r\n\r\n\tit(\"should display the chosen file name\", () => {\r\n\t\tconst wrapper = mount(<PreFilledField {...(PreFilledField.args as FileInputProps)} />);\r\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(\"ThisIsATest.png\");\r\n\t});\r\n\r\n\tit(\"should display an error for invalid file types\", () => {\r\n\t\tconst wrapper = mount(<PreFilledInvalidField {...(PreFilledInvalidField.args as FileInputProps)} />);\r\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display no error for valid file types\", () => {\r\n\t\tconst wrapper = mount(<PreFilledField {...(PreFilledField.args as FileInputProps)} />);\r\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should display no error when no file is chosen\", () => {\r\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as FileInputProps)} />);\r\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.false;\r\n\t});\r\n\r\n\t// it(\"should update the display when the file is changed\", () => {\r\n\t// \tconst oldFileName = \"old.txt\";\r\n\t// \tconst newFileName = \"newimage/png\";\r\n\r\n\t// \tconst uploadFunction = (fileObject: File) =>\r\n\t// \t\tnew Promise((resolve) => {\r\n\t// \t\t\tresolve({\r\n\t// \t\t\t\terr: \"\",\r\n\t// \t\t\t\tpath: fileObject.name,\r\n\t// \t\t\t});\r\n\t// \t\t});\r\n\r\n\t// \tconst wrapper = mount(<FileInput uploadFunction value={oldFileName} acceptTypes={[\"image/png\", \"image/jpg\", \"image/ico\"]} />);\r\n\t// \twrapper.find(\"input[type='file']\").simulate('change', {\r\n\t// \t\ttarget: {\r\n\t// \t\t\tfiles: [\r\n\t// \t\t\t\tnewFileName\r\n\t// \t\t\t]\r\n\t// \t\t}\r\n\t// \t});\r\n\r\n\t// \texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(newFileName);\r\n\t// });\r\n});\r\n"]}
1
+ {"version":3,"file":"FileInput.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/FileInput.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,UAAU,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEjG,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC9D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAuB,EAAI,CAAC,CAAC;QAC/E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,cAAc,oBAAM,cAAc,CAAC,IAAuB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACzD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,qBAAqB,oBAAM,qBAAqB,CAAC,IAAuB,EAAI,CAAC,CAAC;QACrG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC5E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACvD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,cAAc,oBAAM,cAAc,CAAC,IAAuB,EAAI,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACzD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAAuB,EAAI,CAAC,CAAC;QAC/E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAC7E,CAAC,CAAC,CAAC;AAyBJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { FileInputProps } from \"../FileInput\";\nimport { EmptyField, PreFilledField, PreFilledInvalidField } from \"../stories/FileInput.stories\";\n\ndescribe(\"<FileInput/>\", () => {\n\tit(\"should display an empty string in its default state\", () => {\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as FileInputProps)} />);\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(\"\");\n\t});\n\n\tit(\"should display the chosen file name\", () => {\n\t\tconst wrapper = mount(<PreFilledField {...(PreFilledField.args as FileInputProps)} />);\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(\"ThisIsATest.png\");\n\t});\n\n\tit(\"should display an error for invalid file types\", () => {\n\t\tconst wrapper = mount(<PreFilledInvalidField {...(PreFilledInvalidField.args as FileInputProps)} />);\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.true;\n\t});\n\n\tit(\"should display no error for valid file types\", () => {\n\t\tconst wrapper = mount(<PreFilledField {...(PreFilledField.args as FileInputProps)} />);\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.false;\n\t});\n\n\tit(\"should display no error when no file is chosen\", () => {\n\t\tconst wrapper = mount(<EmptyField {...(EmptyField.args as FileInputProps)} />);\n\t\texpect(wrapper.find(\"input[type='text']\").prop(\"aria-invalid\")).to.be.false;\n\t});\n\n\t// it(\"should update the display when the file is changed\", () => {\n\t// \tconst oldFileName = \"old.txt\";\n\t// \tconst newFileName = \"newimage/png\";\n\n\t// \tconst uploadFunction = (fileObject: File) =>\n\t// \t\tnew Promise((resolve) => {\n\t// \t\t\tresolve({\n\t// \t\t\t\terr: \"\",\n\t// \t\t\t\tpath: fileObject.name,\n\t// \t\t\t});\n\t// \t\t});\n\n\t// \tconst wrapper = mount(<FileInput uploadFunction value={oldFileName} acceptTypes={[\"image/png\", \"image/jpg\", \"image/ico\"]} />);\n\t// \twrapper.find(\"input[type='file']\").simulate('change', {\n\t// \t\ttarget: {\n\t// \t\t\tfiles: [\n\t// \t\t\t\tnewFileName\n\t// \t\t\t]\n\t// \t\t}\n\t// \t});\n\n\t// \texpect(wrapper.find(\"input[type='text']\").prop(\"value\")).to.equal(newFileName);\n\t// });\n});\n"]}
@@ -1 +1 @@
1
- {"version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CAAC,GAAG,CAAC,UAAU,CAAC,IAA4B,EAAE,gBAAgB,CAAC,CAAC;QACvF,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,UAAU,oBAAM,UAAU,CAAC,IAA6B,EAAI,CAAC,CAAC;QACrF,OAAO;aACL,IAAI,CAAC,cAAc,CAAC;aACpB,EAAE,CAAC,CAAC,CAAC;aACL,QAAQ,CAAC,OAAO,EAAE;YAClB,MAAM,EAAE;gBACP,KAAK,EAAE,OAAO;aACd;SACD,CAAC,CAAC;QACJ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACnD,OAAO,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC/E,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { FinsembleSelectProps } from \"../FinsembleSelect\";\r\nimport {\r\n\tSample,\r\n\tSeperateValuesFromText,\r\n\tPreSelected,\r\n\tPreSelectedValues,\r\n\tInvalidPreSelected,\r\n\tSearchable,\r\n} from \"../stories/FinsembleSelect.stories\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\nimport { waitTime } from \"../../smartDesktopDesigner/sdd_helpers\";\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<FinsembleSelect/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should display text and a checkbox\", () => {\r\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\r\n\r\n\t\texpect(wrapper.find(\".emperorOption span\").exists(), \"Options have text\").to.be.true;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").exists(), \"Options have checkboxes\").to.be.true;\r\n\t});\r\n\tit(\"should call a function when checkbox is checked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\r\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(1).simulate(\"change\");\r\n\t\texpect(buttonSpy.getCall(0)).to.not.be.null;\r\n\t});\r\n\tit(\"should return all items checked when multiple items have been checked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\r\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(2).simulate(\"change\");\r\n\t\texpect(buttonSpy.getCall(1).args[0]).lengthOf(2);\r\n\t});\r\n\tit(\"should limit checked selection\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\r\n\t\tconst wrapper = mount(<Sample {...{ ...(Sample.args as FinsembleSelectProps), limit: 2 }} />);\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(1).simulate(\"change\");\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(2).simulate(\"change\");\r\n\t\texpect(buttonSpy.getCall(1).args[0]).lengthOf(2);\r\n\t});\r\n\tit(\"should return values, not display text, if values are provided\", () => {\r\n\t\tconst buttonSpy = sinon.spy(SeperateValuesFromText.args as FinsembleSelectProps, \"updateCallback\");\r\n\t\tconst wrapper = mount(<SeperateValuesFromText {...(SeperateValuesFromText.args as FinsembleSelectProps)} />);\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\r\n\t\texpect(buttonSpy.getCall(0).args[0]).to.deep.equal([\"1\"]);\r\n\t});\r\n\tit(\"should start with selected items if pre-selected items are provided\", () => {\r\n\t\tconst wrapper = mount(<PreSelected {...(PreSelected.args as FinsembleSelectProps)} />);\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\r\n\t});\r\n\tit(\"should show selected items if pre-selected items are provided after initial render\", async () => {\r\n\t\tconst wrapper = mount(<PreSelected {...(Sample.args as FinsembleSelectProps)} />);\r\n\r\n\t\tawait waitTime(10);\r\n\r\n\t\twrapper.setProps({ selected: PreSelected.args?.selected });\r\n\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\r\n\t});\r\n\tit(\"should start with selected values if both values and pre-selected values are provided\", () => {\r\n\t\tconst wrapper = mount(<PreSelectedValues {...(PreSelectedValues.args as FinsembleSelectProps)} />);\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(0).prop(\"checked\")).to.be.false;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(2).prop(\"checked\")).to.be.true;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(3).prop(\"checked\")).to.be.false;\r\n\t});\r\n\tit(\"should ignore invalid pre-selected items\", () => {\r\n\t\tconst wrapper = mount(<InvalidPreSelected {...(InvalidPreSelected.args as FinsembleSelectProps)} />);\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(0).prop(\"checked\")).to.be.false;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.false;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(2).prop(\"checked\")).to.be.false;\r\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(3).prop(\"checked\")).to.be.false;\r\n\t});\r\n\tit(\"should filter list on input (case-insensitive)\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Searchable.args as FinsembleSelectProps, \"updateCallback\");\r\n\t\tconst wrapper = mount(<Searchable {...(Searchable.args as FinsembleSelectProps)} />);\r\n\t\twrapper\r\n\t\t\t.find(\"input.search\")\r\n\t\t\t.at(0)\r\n\t\t\t.simulate(\"input\", {\r\n\t\t\t\ttarget: {\r\n\t\t\t\t\tvalue: \"north\",\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\".emperorOption\")).lengthOf(2);\r\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\r\n\t\texpect(buttonSpy.getCall(0).args[0]).to.deep.equal([\"NC\"]);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"FinsembleSelect.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/FinsembleSelect.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,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACN,MAAM,EACN,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,GACV,MAAM,oCAAoC,CAAC;AAG5C,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,O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QAAQ,CAAC,CAAC;QAC/E,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,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 sinon from \"sinon\";\nimport { FinsembleSelectProps } from \"../FinsembleSelect\";\nimport {\n\tSample,\n\tSeperateValuesFromText,\n\tPreSelected,\n\tPreSelectedValues,\n\tInvalidPreSelected,\n\tSearchable,\n} from \"../stories/FinsembleSelect.stories\";\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\";\nimport { waitTime } from \"../../smartDesktopDesigner/sdd_helpers\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<FinsembleSelect/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should display text and a checkbox\", () => {\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\n\n\t\texpect(wrapper.find(\".emperorOption span\").exists(), \"Options have text\").to.be.true;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").exists(), \"Options have checkboxes\").to.be.true;\n\t});\n\tit(\"should call a function when checkbox is checked\", () => {\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(1).simulate(\"change\");\n\t\texpect(buttonSpy.getCall(0)).to.not.be.null;\n\t});\n\tit(\"should return all items checked when multiple items have been checked\", () => {\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\n\t\tconst wrapper = mount(<Sample {...(Sample.args as FinsembleSelectProps)} />);\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(2).simulate(\"change\");\n\t\texpect(buttonSpy.getCall(1).args[0]).lengthOf(2);\n\t});\n\tit(\"should limit checked selection\", () => {\n\t\tconst buttonSpy = sinon.spy(Sample.args as FinsembleSelectProps, \"updateCallback\");\n\t\tconst wrapper = mount(<Sample {...{ ...(Sample.args as FinsembleSelectProps), limit: 2 }} />);\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(1).simulate(\"change\");\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(2).simulate(\"change\");\n\t\texpect(buttonSpy.getCall(1).args[0]).lengthOf(2);\n\t});\n\tit(\"should return values, not display text, if values are provided\", () => {\n\t\tconst buttonSpy = sinon.spy(SeperateValuesFromText.args as FinsembleSelectProps, \"updateCallback\");\n\t\tconst wrapper = mount(<SeperateValuesFromText {...(SeperateValuesFromText.args as FinsembleSelectProps)} />);\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\n\t\texpect(buttonSpy.getCall(0).args[0]).to.deep.equal([\"1\"]);\n\t});\n\tit(\"should start with selected items if pre-selected items are provided\", () => {\n\t\tconst wrapper = mount(<PreSelected {...(PreSelected.args as FinsembleSelectProps)} />);\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\n\t});\n\tit(\"should show selected items if pre-selected items are provided after initial render\", async () => {\n\t\tconst wrapper = mount(<PreSelected {...(Sample.args as FinsembleSelectProps)} />);\n\n\t\tawait waitTime(10);\n\n\t\twrapper.setProps({ selected: PreSelected.args?.selected });\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\n\t});\n\tit(\"should start with selected values if both values and pre-selected values are provided\", () => {\n\t\tconst wrapper = mount(<PreSelectedValues {...(PreSelectedValues.args as FinsembleSelectProps)} />);\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(0).prop(\"checked\")).to.be.false;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.true;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(2).prop(\"checked\")).to.be.true;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(3).prop(\"checked\")).to.be.false;\n\t});\n\tit(\"should ignore invalid pre-selected items\", () => {\n\t\tconst wrapper = mount(<InvalidPreSelected {...(InvalidPreSelected.args as FinsembleSelectProps)} />);\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(0).prop(\"checked\")).to.be.false;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(1).prop(\"checked\")).to.be.false;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(2).prop(\"checked\")).to.be.false;\n\t\texpect(wrapper.find(\".emperorOption input[type='checkbox']\").at(3).prop(\"checked\")).to.be.false;\n\t});\n\tit(\"should filter list on input (case-insensitive)\", () => {\n\t\tconst buttonSpy = sinon.spy(Searchable.args as FinsembleSelectProps, \"updateCallback\");\n\t\tconst wrapper = mount(<Searchable {...(Searchable.args as FinsembleSelectProps)} />);\n\t\twrapper\n\t\t\t.find(\"input.search\")\n\t\t\t.at(0)\n\t\t\t.simulate(\"input\", {\n\t\t\t\ttarget: {\n\t\t\t\t\tvalue: \"north\",\n\t\t\t\t},\n\t\t\t});\n\t\texpect(wrapper.find(\".emperorOption\")).lengthOf(2);\n\t\twrapper.find(\".emperorOption input[type='checkbox']\").at(0).simulate(\"change\");\n\t\texpect(buttonSpy.getCall(0).args[0]).to.deep.equal([\"NC\"]);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FinsembleToggle.spec.js","sourceRoot":"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,OAAO,CAAC,IAAI,0CAAE,OAAO,EAAE,CAAC,CAAC;QAErD,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACjF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { FinsembleToggleProps } from \"../FinsembleToggle\";\r\nimport { Checked, Unchecked } from \"../stories/FinsembleToggle.stories\";\r\nimport { accessibilityAssessor } from \"../../smartDesktopDesigner/tests/a11y_helper\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\nimport { waitTime } from \"../../smartDesktopDesigner/sdd_helpers\";\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<FinsembleToggle/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\r\n\tit(\"should pass accessibility scans\", async () => {\r\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as FinsembleToggleProps)} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\r\n\tit(\"should be checked items if checked prop is updated after initial render\", async () => {\r\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as FinsembleToggleProps)} />);\r\n\r\n\t\tawait waitTime(10);\r\n\r\n\t\twrapper.setProps({ checked: Checked.args?.checked });\r\n\r\n\t\twrapper.update();\r\n\r\n\t\texpect(wrapper.find(\"input[type='checkbox']\").at(0).prop(\"checked\")).to.be.true;\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"Finsemb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AAE,OAAO,EAAE,MAAA,OAAO,CAAC,IAAI,0CAAE,OAAO,EAAE,CAAC,CAAC;QAErD,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACjF,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 sinon from \"sinon\";\nimport { FinsembleToggleProps } from \"../FinsembleToggle\";\nimport { Checked, Unchecked } from \"../stories/FinsembleToggle.stories\";\nimport { accessibilityAssessor } from \"../../smartDesktopDesigner/tests/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\";\nimport { waitTime } from \"../../smartDesktopDesigner/sdd_helpers\";\naddons.setChannel(mockChannel());\n\ndescribe(\"<FinsembleToggle/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\n\tit(\"should pass accessibility scans\", async () => {\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as FinsembleToggleProps)} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\n\tit(\"should be checked items if checked prop is updated after initial render\", async () => {\n\t\tconst wrapper = mount(<Unchecked {...(Unchecked.args as FinsembleToggleProps)} />);\n\n\t\tawait waitTime(10);\n\n\t\twrapper.setProps({ checked: Checked.args?.checked });\n\n\t\twrapper.update();\n\n\t\texpect(wrapper.find(\"input[type='checkbox']\").at(0).prop(\"checked\")).to.be.true;\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Header.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Header.spec.tsx"],"names":[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,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { BasicHeader, HeaderWithBackButton } from \"../stories/Header.stories\";\r\nimport { HeaderProps } from \"../Header\";\r\n\r\ndescribe(\"<Header/>\", () => {\r\n\tit(\"should display text\", () => {\r\n\t\tconst wrapper = mount(<BasicHeader {...(BasicHeader.args as HeaderProps)} />);\r\n\t\texpect(wrapper.find(\".view-title\").first().text()).to.contain(\"This is a Header\");\r\n\t});\r\n\tit(\"should contain a button when a back function is provided\", () => {\r\n\t\tconst wrapper = mount(<HeaderWithBackButton {...(HeaderWithBackButton.args as HeaderProps)} />);\r\n\t\texpect(wrapper.find(\"button\").text()).to.contain(\"Back\");\r\n\t});\r\n\tit(\"should not contain a button when no back function is provided\", () => {\r\n\t\tconst wrapper = mount(<BasicHeader {...(BasicHeader.args as HeaderProps)} />);\r\n\t\texpect(wrapper.find(\"button\")).to.have.lengthOf(0);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"Header.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Header.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,WAAW,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAG9E,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC9B,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,WAAW,oBAAM,WAAW,CAAC,IAAoB,EAAI,CAAC,CAAC;QAC9E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QACnE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,oBAAoB,oBAAM,oBAAoB,CAAC,IAAoB,EAAI,CAAC,CAAC;QAChG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,+DAA+D,EAAE,GAAG,EAAE;QACxE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,WAAW,oBAAM,WAAW,CAAC,IAAoB,EAAI,CAAC,CAAC;QAC9E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,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 { BasicHeader, HeaderWithBackButton } from \"../stories/Header.stories\";\nimport { HeaderProps } from \"../Header\";\n\ndescribe(\"<Header/>\", () => {\n\tit(\"should display text\", () => {\n\t\tconst wrapper = mount(<BasicHeader {...(BasicHeader.args as HeaderProps)} />);\n\t\texpect(wrapper.find(\".view-title\").first().text()).to.contain(\"This is a Header\");\n\t});\n\tit(\"should contain a button when a back function is provided\", () => {\n\t\tconst wrapper = mount(<HeaderWithBackButton {...(HeaderWithBackButton.args as HeaderProps)} />);\n\t\texpect(wrapper.find(\"button\").text()).to.contain(\"Back\");\n\t});\n\tit(\"should not contain a button when no back function is provided\", () => {\n\t\tconst wrapper = mount(<BasicHeader {...(BasicHeader.args as HeaderProps)} />);\n\t\texpect(wrapper.find(\"button\")).to.have.lengthOf(0);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ImagePreview.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ImagePreview.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,EACN,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,mBAAmB,GACnB,MAAM,iCAAiC,CAAC;AAGzC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC/D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,eAAe,oBAAM,eAAe,CAAC,IAA0B,EAAI,CAAC,CAAC;QAC5F,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC1C,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QACjE,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,mBAAmB,oBAAM,mBAAmB,CAAC,IAA0B,EAAI,CAAC,CAAC;QACpG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACzC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC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AAE,CAAC,IAAI,CAAC,MAAM,CACrD,+DAA+D,CAC/D,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QACnE,MAAM,QAAQ,GAAG,KAAK,CAAC,oBAAC,mBAAmB,oBAAM,mBAAmB,CAAC,IAA0B,EAAI,CAAC,CAAC;QACrG,MAAM,QAAQ,GAAG,KAAK,CAAC,oBAAC,mBAAmB,oBAAM,mBAAmB,CAAC,IAA0B,EAAI,CAAC,CAAC;QAErG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEjD,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE;YACzB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC3C;QAED,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAEpD,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport {\r\n\tSmallEmptyField,\r\n\tSmallPreFilledField,\r\n\tSmallPreFilledFieldFullURL,\r\n\tLargeEmptyField,\r\n\tLargePreFilledField,\r\n} from \"../stories/ImagePreview.stories\";\r\nimport { ImagePreviewProps } from \"../ImagePreview\";\r\n\r\ndescribe(\"<ImagePreview/>\", () => {\r\n\tit(\"should display no preview image in its default state\", () => {\r\n\t\tconst wrapper = mount(<SmallEmptyField {...(SmallEmptyField.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.exists(\"img\")).to.be.false;\r\n\t\texpect(wrapper.exists(\".empty-preview\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display a preview image when a path is provided\", () => {\r\n\t\tconst wrapper = mount(<SmallPreFilledField {...(SmallPreFilledField.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.exists(\"img\")).to.be.true;\r\n\t\texpect(wrapper.exists(\".empty-preview\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should display with a small preview container\", () => {\r\n\t\tconst wrapper = mount(<SmallEmptyField {...(SmallEmptyField.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.find(\".image-preview-container\").hasClass(\"image-preview-size-small\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display with a large preview container\", () => {\r\n\t\tconst wrapper = mount(<LargeEmptyField {...(LargeEmptyField.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.find(\".image-preview-container\").hasClass(\"image-preview-size-large\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display a preview image when given a partial path\", () => {\r\n\t\tconst wrapper = mount(<SmallPreFilledField {...(SmallPreFilledField.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.find(\"img\").prop(\"src\")).to.have.string(\r\n\t\t\t\"https://cosaic.io/wp-content/uploads/2020/07//cosiac-blog.png\"\r\n\t\t);\r\n\t});\r\n\r\n\tit(\"should display a preview image when given a full path\", () => {\r\n\t\tconst wrapper = mount(<SmallPreFilledFieldFullURL {...(SmallPreFilledFieldFullURL.args as ImagePreviewProps)} />);\r\n\t\texpect(wrapper.find(\"img\").prop(\"src\")).to.have.string(\r\n\t\t\t\"https://cosaic.io/wp-content/uploads/2020/07//cosiac-blog.png\"\r\n\t\t);\r\n\t});\r\n\r\n\tit(\"globally increment the cache index for every valid image\", () => {\r\n\t\tconst wrapper1 = mount(<LargePreFilledField {...(LargePreFilledField.args as ImagePreviewProps)} />);\r\n\t\tconst wrapper2 = mount(<LargePreFilledField {...(LargePreFilledField.args as ImagePreviewProps)} />);\r\n\r\n\t\tconst imgSrc1 = wrapper1.find(\"img\").prop(\"src\");\r\n\t\tconst imgSrc2 = wrapper2.find(\"img\").prop(\"src\");\r\n\r\n\t\tif (!imgSrc1 || !imgSrc2) {\r\n\t\t\tthrow new Error(\"Image source not found!\");\r\n\t\t}\r\n\r\n\t\tconst cacheIndex1 = parseInt(imgSrc1.split(\"?\")[1]);\r\n\t\tconst cacheIndex2 = parseInt(imgSrc2.split(\"?\")[1]);\r\n\r\n\t\texpect(cacheIndex2).to.equal(cacheIndex1 + 1);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"ImagePreview.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/ImagePreview.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,EACN,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,mBAAmB,GACnB,MAAM,iCAAiC,CAAC;AAGzC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC/D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,eAAe,oBAAM,eAAe,CAAC,IAA0B,EAAI,CAAC,CAAC;QAC5F,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC1C,MAAM,CAAC,OAAO,CAAC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CAAC;QAEpD,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IAC/C,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 {\n\tSmallEmptyField,\n\tSmallPreFilledField,\n\tSmallPreFilledFieldFullURL,\n\tLargeEmptyField,\n\tLargePreFilledField,\n} from \"../stories/ImagePreview.stories\";\nimport { ImagePreviewProps } from \"../ImagePreview\";\n\ndescribe(\"<ImagePreview/>\", () => {\n\tit(\"should display no preview image in its default state\", () => {\n\t\tconst wrapper = mount(<SmallEmptyField {...(SmallEmptyField.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.exists(\"img\")).to.be.false;\n\t\texpect(wrapper.exists(\".empty-preview\")).to.be.true;\n\t});\n\n\tit(\"should display a preview image when a path is provided\", () => {\n\t\tconst wrapper = mount(<SmallPreFilledField {...(SmallPreFilledField.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.exists(\"img\")).to.be.true;\n\t\texpect(wrapper.exists(\".empty-preview\")).to.be.false;\n\t});\n\n\tit(\"should display with a small preview container\", () => {\n\t\tconst wrapper = mount(<SmallEmptyField {...(SmallEmptyField.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.find(\".image-preview-container\").hasClass(\"image-preview-size-small\")).to.be.true;\n\t});\n\n\tit(\"should display with a large preview container\", () => {\n\t\tconst wrapper = mount(<LargeEmptyField {...(LargeEmptyField.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.find(\".image-preview-container\").hasClass(\"image-preview-size-large\")).to.be.true;\n\t});\n\n\tit(\"should display a preview image when given a partial path\", () => {\n\t\tconst wrapper = mount(<SmallPreFilledField {...(SmallPreFilledField.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.find(\"img\").prop(\"src\")).to.have.string(\n\t\t\t\"https://cosaic.io/wp-content/uploads/2020/07//cosiac-blog.png\"\n\t\t);\n\t});\n\n\tit(\"should display a preview image when given a full path\", () => {\n\t\tconst wrapper = mount(<SmallPreFilledFieldFullURL {...(SmallPreFilledFieldFullURL.args as ImagePreviewProps)} />);\n\t\texpect(wrapper.find(\"img\").prop(\"src\")).to.have.string(\n\t\t\t\"https://cosaic.io/wp-content/uploads/2020/07//cosiac-blog.png\"\n\t\t);\n\t});\n\n\tit(\"globally increment the cache index for every valid image\", () => {\n\t\tconst wrapper1 = mount(<LargePreFilledField {...(LargePreFilledField.args as ImagePreviewProps)} />);\n\t\tconst wrapper2 = mount(<LargePreFilledField {...(LargePreFilledField.args as ImagePreviewProps)} />);\n\n\t\tconst imgSrc1 = wrapper1.find(\"img\").prop(\"src\");\n\t\tconst imgSrc2 = wrapper2.find(\"img\").prop(\"src\");\n\n\t\tif (!imgSrc1 || !imgSrc2) {\n\t\t\tthrow new Error(\"Image source not found!\");\n\t\t}\n\n\t\tconst cacheIndex1 = parseInt(imgSrc1.split(\"?\")[1]);\n\t\tconst cacheIndex2 = parseInt(imgSrc2.split(\"?\")[1]);\n\n\t\texpect(cacheIndex2).to.equal(cacheIndex1 + 1);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Tab.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,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAG1D,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;QACnE,MAAM,OAAO,G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AAC;QAC9E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAChF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { Plain, AutoFocus } from \"../stories/Tab.stories\";\r\nimport { TabProps } from \"../Tab\";\r\n\r\ndescribe(\"<Tab/>\", () => {\r\n\tit(\"should change tab panels with the tab 'Number' is chosen\", () => {\r\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TabProps)} />);\r\n\t\twrapper.find(\"[role='tab']\").at(1).simulate(\"click\");\r\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.true;\r\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.false;\r\n\t});\r\n\tit(\"should change tab panels with the tab 'Letter' is chosen\", () => {\r\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TabProps)} />);\r\n\t\twrapper.find(\"[role='tab']\").at(0).simulate(\"click\");\r\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.false;\r\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.true;\r\n\t});\r\n\tit(\"should display autofocused tab panels when autofocus is provided\", () => {\r\n\t\tconst wrapper = mount(<AutoFocus {...(AutoFocus.args as TabProps)} />);\r\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.true;\r\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.false;\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"Tab.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Tab.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,E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C,EAAE,CAAC,IAAI,CAAC;IAC/E,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC3E,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,SAAS,oBAAM,SAAS,CAAC,IAAiB,EAAI,CAAC,CAAC;QACvE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QAC9E,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IAChF,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 { Plain, AutoFocus } from \"../stories/Tab.stories\";\nimport { TabProps } from \"../Tab\";\n\ndescribe(\"<Tab/>\", () => {\n\tit(\"should change tab panels with the tab 'Number' is chosen\", () => {\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TabProps)} />);\n\t\twrapper.find(\"[role='tab']\").at(1).simulate(\"click\");\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.true;\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.false;\n\t});\n\tit(\"should change tab panels with the tab 'Letter' is chosen\", () => {\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TabProps)} />);\n\t\twrapper.find(\"[role='tab']\").at(0).simulate(\"click\");\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.false;\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.true;\n\t});\n\tit(\"should display autofocused tab panels when autofocus is provided\", () => {\n\t\tconst wrapper = mount(<AutoFocus {...(AutoFocus.args as TabProps)} />);\n\t\texpect(wrapper.find(\".visible div[data-label='Number']\").exists()).to.be.true;\n\t\texpect(wrapper.find(\".visible div[data-label='Letter']\").exists()).to.be.false;\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Tooltip.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,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAGhE,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACrC,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAM,KAAK,CAAC,IAAqB,EAAI,CAAC,CAAC;QACnE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QAC1E,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAM,KAAK,CAAC,IAAqB,EAAI,CAAC,CAAC;QACnE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QACvD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;QACnE,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,CA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I,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC3E,CAAC,CAAC,CAAC;AAkBJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport { Plain, Info, Error } from \"../stories/Tooltip.stories\";\r\nimport { TooltipProps } from \"../Tooltip\";\r\n\r\ndescribe(\"<Tooltip/>\", () => {\r\n\tit(\"should display a help icon\", () => {\r\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\r\n\t\texpect(wrapper.exists(\".tooltip-icon\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display/hide sample text in a popup when moused over/off\", () => {\r\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\r\n\t\twrapper.find(\".tooltip\").first().simulate(\"mouseover\");\r\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.true;\r\n\t\twrapper.find(\".tooltip\").first().simulate(\"mouseleave\");\r\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should display/hide sample text in a popup when focused/blurred\", () => {\r\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\r\n\t\twrapper.find(\".tooltip\").first().simulate(\"focus\");\r\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.true;\r\n\t\twrapper.find(\".tooltip\").first().simulate(\"blur\");\r\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.false;\r\n\t});\r\n\r\n\tit(\"should display an error icon when type is error\", () => {\r\n\t\tconst wrapper = mount(<Error {...(Error.args as TooltipProps)} />);\r\n\t\texpect(wrapper.find(\".tooltip-icon\").is(\".tooltip-icon-error\")).to.be.true;\r\n\t});\r\n\r\n\tit(\"should display an info icon when type is info\", () => {\r\n\t\tconst wrapper = mount(<Info {...(Info.args as TooltipProps)} />);\r\n\t\texpect(wrapper.find(\".tooltip-icon\").is(\".tooltip-icon-info\")).to.be.true;\r\n\t});\r\n\r\n\t// CANNOT DETECT *ACCURATE* CSS POSITIONING WITH ENZYME\r\n\t/*\r\n it(\"should display a tooltip to the left when position is left\", () => {\r\n const wrapper = mount(<Left {...(Left.args as TooltipProps)} />);\r\n wrapper.find(\".tooltip\").first().simulate(\"focus\");\r\n const iconNode = wrapper.find(\".tooltip-icon\").at(0).getDOMNode();\r\n const iconLeftPx = window.getComputedStyle(iconNode).getPropertyValue(\"left\");\r\n const iconLeftNum = Number(iconLeftPx.replace(\"px\", \"\"));\r\n const contentNode = wrapper.find(\".tooltip-content\").at(0).getDOMNode();\r\n const contentLeftPx = window.getComputedStyle(contentNode).getPropertyValue(\"left\");\r\n const contentLeftNum = Number(contentLeftPx.replace(\"px\", \"\"));\r\n \r\n // Both contentLeftnum and iconLeftNum are 0\r\n expect(contentLeftNum).to.be.lessThan(iconLeftNum);\r\n });\r\n */\r\n});\r\n"]}
1
+ {"version":3,"file":"Tooltip.spec.js","sourceRoot":"","sources":["../../../../src/components/common/tests/Tooltip.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,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAGhE,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACrC,MAAM,OAAO,GAAG,KAAK,CAAC,oBA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K,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QAC1D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAM,KAAK,CAAC,IAAqB,EAAI,CAAC,CAAC;QACnE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC5E,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACxD,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,IAAI,oBAAM,IAAI,CAAC,IAAqB,EAAI,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IAC3E,CAAC,CAAC,CAAC;AAkBJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { describe, it } from \"mocha\";\nimport { expect } from \"chai\";\nimport { Plain, Info, Error } from \"../stories/Tooltip.stories\";\nimport { TooltipProps } from \"../Tooltip\";\n\ndescribe(\"<Tooltip/>\", () => {\n\tit(\"should display a help icon\", () => {\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\n\t\texpect(wrapper.exists(\".tooltip-icon\")).to.be.true;\n\t});\n\n\tit(\"should display/hide sample text in a popup when moused over/off\", () => {\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\n\t\twrapper.find(\".tooltip\").first().simulate(\"mouseover\");\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.true;\n\t\twrapper.find(\".tooltip\").first().simulate(\"mouseleave\");\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.false;\n\t});\n\n\tit(\"should display/hide sample text in a popup when focused/blurred\", () => {\n\t\tconst wrapper = mount(<Plain {...(Plain.args as TooltipProps)} />);\n\t\twrapper.find(\".tooltip\").first().simulate(\"focus\");\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.true;\n\t\twrapper.find(\".tooltip\").first().simulate(\"blur\");\n\t\texpect(wrapper.find(\".tooltip-content\").is(\".visible\")).to.be.false;\n\t});\n\n\tit(\"should display an error icon when type is error\", () => {\n\t\tconst wrapper = mount(<Error {...(Error.args as TooltipProps)} />);\n\t\texpect(wrapper.find(\".tooltip-icon\").is(\".tooltip-icon-error\")).to.be.true;\n\t});\n\n\tit(\"should display an info icon when type is info\", () => {\n\t\tconst wrapper = mount(<Info {...(Info.args as TooltipProps)} />);\n\t\texpect(wrapper.find(\".tooltip-icon\").is(\".tooltip-icon-info\")).to.be.true;\n\t});\n\n\t// CANNOT DETECT *ACCURATE* CSS POSITIONING WITH ENZYME\n\t/*\n it(\"should display a tooltip to the left when position is left\", () => {\n const wrapper = mount(<Left {...(Left.args as TooltipProps)} />);\n wrapper.find(\".tooltip\").first().simulate(\"focus\");\n const iconNode = wrapper.find(\".tooltip-icon\").at(0).getDOMNode();\n const iconLeftPx = window.getComputedStyle(iconNode).getPropertyValue(\"left\");\n const iconLeftNum = Number(iconLeftPx.replace(\"px\", \"\"));\n const contentNode = wrapper.find(\".tooltip-content\").at(0).getDOMNode();\n const contentLeftPx = window.getComputedStyle(contentNode).getPropertyValue(\"left\");\n const contentLeftNum = Number(contentLeftPx.replace(\"px\", \"\"));\n \n // Both contentLeftnum and iconLeftNum are 0\n expect(contentLeftNum).to.be.lessThan(iconLeftNum);\n });\n */\n});\n"]}
@@ -1 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c,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAC1E,QAAQ,IAAI,2BAAG,SAAS,EAAC,aAAa,GAAK,CACvC,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { useFavorites } from \"../../hooks/useFavorites\";\r\nimport { Favorite } from \"../../types/favoriteTypes\";\r\nimport { Icon } from \"../../types/iconTypes\";\r\n\r\ntype FavoriteMakerProps = Favorite & {\r\n\tclassName?: string;\r\n\tstyle?: React.CSSProperties;\r\n};\r\n\r\n/**\r\n * Creates a clickable \"favorite\" that coordinates with the toolbar's pinned <FavoritesShell>.\r\n * @param {string} [className] - An optional CSS className to append.\r\n * @param {string} [id] - The unique identifier for the favorite item. This must be consistent across restarts.\r\n * @param {string} [category] - \"Workspace\" | \"Application\". The catagory of the favorite item. Currenly only workspaces and launchable Finsemble applications can be favorited.\r\n * @param {string} [name] - The name of the favorite item. This will be used for display in the FavoriteShell.\r\n * @param {Icon} [icon] - The icon of the favorite item. This displays in the FavoriteShell. It defaults to use the initials of the `name` field as its content.\r\n */\r\nexport const FavoriteMaker: React.FunctionComponent<FavoriteMakerProps> = ({\r\n\tid,\r\n\tcategory,\r\n\ticon,\r\n\tname,\r\n\tchildren,\r\n\tclassName = \"\",\r\n\tstyle,\r\n}) => {\r\n\tconst { isFavorited, addFavorite, removeFavorite } = useFavorites();\r\n\r\n\t// If no icon is specified then default to an avatar based on initials\r\n\tconst definitiveIcon: Icon = icon ?? {\r\n\t\timageType: \"initials\",\r\n\t\tname: name,\r\n\t\tcategory: category,\r\n\t};\r\n\r\n\tconst toggleFavorite = (e: React.MouseEvent) => {\r\n\t\tdefinitiveIcon;\r\n\t\te.preventDefault();\r\n\t\te.stopPropagation();\r\n\t\tif (isFavorited(id)) {\r\n\t\t\tremoveFavorite(id);\r\n\t\t} else {\r\n\t\t\taddFavorite({\r\n\t\t\t\tid,\r\n\t\t\t\tcategory,\r\n\t\t\t\tname,\r\n\t\t\t\ticon: definitiveIcon,\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tconst active = isFavorited(id) ? \"favorited\" : \"not-favorited\";\r\n\tconst classes = `favorite-maker ${active} ${className}`;\r\n\tconst title = isFavorited(id) ? \"Unfavorite\" : \"Favorite\";\r\n\r\n\treturn (\r\n\t\t<div onClick={toggleFavorite} className={classes} style={style} title={title}>\r\n\t\t\t{children || <i className=\"ff-favorite\"></i>}\r\n\t\t</div>\r\n\t);\r\n};\r\n"]}
1
+ {"version":3,"file":"FavoriteMaker.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoriteMaker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAiBxD,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EAC1E,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,KAAK,GACL,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,CAAC;IAGpE,MAAM,cAAc,GAAS,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI;QACpC,SAAS,EAAE,UAAU;QACrB,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,QAAQ;KAClB,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,CAAmB,EAAE,EAAE;QAC9C,cAAc,CAAC;QACf,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,IAAI,WAAW,CAAC,EAAE,CAAC,EAAE;YACpB,cAAc,CAAC,EAAE,CAAC,CAAC;SACnB;aAAM;YACN,WAAW,CAAC;gBACX,EAAE;gBACF,QAAQ;gBACR,IAAI;gBACJ,IAAI,EAAE,cAAc;aACpB,CAAC,CAAC;SACH;IACF,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC;IAC/D,MAAM,OAAO,GAAG,kBAAkB,MAAM,IAAI,SAAS,EAAE,CAAC;IACxD,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC;IAE1D,OAAO,CACN,6BAAK,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAC1E,QAAQ,IAAI,2BAAG,SAAS,EAAC,aAAa,GAAK,CACvC,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\nimport { useFavorites } from \"../../hooks/useFavorites\";\nimport { Favorite } from \"../../types/favoriteTypes\";\nimport { Icon } from \"../../types/iconTypes\";\n\ntype FavoriteMakerProps = Favorite & {\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n};\n\n/**\n * Creates a clickable \"favorite\" that coordinates with the toolbar's pinned <FavoritesShell>.\n * @param {string} [className] - An optional CSS className to append.\n * @param {string} [id] - The unique identifier for the favorite item. This must be consistent across restarts.\n * @param {string} [category] - \"Workspace\" | \"Application\". The catagory of the favorite item. Currenly only workspaces and launchable Finsemble applications can be favorited.\n * @param {string} [name] - The name of the favorite item. This will be used for display in the FavoriteShell.\n * @param {Icon} [icon] - The icon of the favorite item. This displays in the FavoriteShell. It defaults to use the initials of the `name` field as its content.\n */\nexport const FavoriteMaker: React.FunctionComponent<FavoriteMakerProps> = ({\n\tid,\n\tcategory,\n\ticon,\n\tname,\n\tchildren,\n\tclassName = \"\",\n\tstyle,\n}) => {\n\tconst { isFavorited, addFavorite, removeFavorite } = useFavorites();\n\n\t// If no icon is specified then default to an avatar based on initials\n\tconst definitiveIcon: Icon = icon ?? {\n\t\timageType: \"initials\",\n\t\tname: name,\n\t\tcategory: category,\n\t};\n\n\tconst toggleFavorite = (e: React.MouseEvent) => {\n\t\tdefinitiveIcon;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tif (isFavorited(id)) {\n\t\t\tremoveFavorite(id);\n\t\t} else {\n\t\t\taddFavorite({\n\t\t\t\tid,\n\t\t\t\tcategory,\n\t\t\t\tname,\n\t\t\t\ticon: definitiveIcon,\n\t\t\t});\n\t\t}\n\t};\n\n\tconst active = isFavorited(id) ? \"favorited\" : \"not-favorited\";\n\tconst classes = `favorite-maker ${active} ${className}`;\n\tconst title = isFavorited(id) ? \"Unfavorite\" : \"Favorite\";\n\n\treturn (\n\t\t<div onClick={toggleFavorite} className={classes} style={style} title={title}>\n\t\t\t{children || <i className=\"ff-favorite\"></i>}\n\t\t</div>\n\t);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FavoritesShell.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoritesShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAK1E,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAI9F,MAAM,OAAO,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAA0C,EAAE,EAAE;QAClF,iBAAiB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3C,CAAC,CAAC;IAGF,MAAM,qBAAqB,GAAG,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AE,OAAO,EAClB,SAAS,EAAC,4CAA4C,EACtD,EAAE,EAAC,oBAAoB,EACvB,qBAAqB,EAAE,IAAI,EAC3B,IAAI,EAAE,gBAAgB,CAAC,CAAC,IAEvB,gBAAgB,CACI,CACtB,CAAC;AACH,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,CAGnC,6BAAK,SAAS,EAAC,2BAA2B,EAAC,EAAE,EAAC,WAAW;IACxD,oBAAC,kBAAkB,OAAG,CACjB,CACN,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { useFavoritesShell } from \"../../hooks/useFavoritesShell\";\r\nimport \"../../assets/css/favorites.css\";\r\nimport { Icon } from \"../icon/Icon\";\r\nimport { FinsembleDnDContext, AllowableDnDAxis } from \"../legacyControls/FinsembleDnDContext\";\r\nimport { FinsembleDraggable } from \"../legacyControls/FinsembleDraggable\";\r\n\r\n/*\r\n * The component that loads and renders all the favorited items.\r\n */\r\nconst FavoritesComponent = () => {\r\n\tconst { favorites, triggerFavorite, removeFavorite, setFavoritesOrder } = useFavoritesShell();\r\n\r\n\t// When user is reordering the favorite items in the UI, we need to keep track to this new order and persist the order information.\r\n\t// This function gets all the favorite item elements in the correct order and call the hook function to set and persist this order.\r\n\tconst reorder = ({ oldIndex, newIndex }: { oldIndex: number; newIndex: number }) => {\r\n\t\tsetFavoritesOrder({ oldIndex, newIndex });\r\n\t};\r\n\r\n\t// Delete a favorite item from the toolbar\r\n\tconst triggerRemoveFavorite = (\r\n\t\tevent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>,\r\n\t\tid: string\r\n\t) => {\r\n\t\tevent.stopPropagation();\r\n\t\tremoveFavorite(id);\r\n\t};\r\n\r\n\tconst nameLengthCheckPoint = (name: string) => (name.length > 24 ? `${name.substring(0, 25)}...` : name);\r\n\r\n\tconst favoriteElements = favorites.map(({ id, name, icon, category }, index) => (\r\n\t\t<FinsembleDraggable\r\n\t\t\tdraggableId={id}\r\n\t\t\tindex={index}\r\n\t\t\tkey={id}\r\n\t\t\twrapperClass=\"finsemble-toolbar-button\"\r\n\t\t\tonClick={() => triggerFavorite(id, category)}\r\n\t\t\tonKeydown={(e) => {\r\n\t\t\t\tif (e.key === \"Delete\") {\r\n\t\t\t\t\ttriggerRemoveFavorite(e, id);\r\n\t\t\t\t}\r\n\t\t\t}}\r\n\t\t>\r\n\t\t\t<Icon category={category} {...icon} />\r\n\t\t\t<div className=\"finsemble-toolbar-button-label\" title={name}>\r\n\t\t\t\t{nameLengthCheckPoint(name)}\r\n\t\t\t</div>\r\n\t\t\t<i\r\n\t\t\t\ttitle=\"Unfavorite\"\r\n\t\t\t\tonClick={(event) => triggerRemoveFavorite(event, id)}\r\n\t\t\t\tid=\"toolbar-delete\"\r\n\t\t\t\tclassName=\"ff-close-3\"\r\n\t\t\t></i>\r\n\t\t</FinsembleDraggable>\r\n\t));\r\n\treturn (\r\n\t\t<FinsembleDnDContext\r\n\t\t\tonDragEnd={reorder}\r\n\t\t\tclassName=\"finsemble-toolbar-section rearrange-region\"\r\n\t\t\tid=\"favoritesContainer\"\r\n\t\t\tallowHorizontalScroll={true}\r\n\t\t\taxis={AllowableDnDAxis.x}\r\n\t\t>\r\n\t\t\t{favoriteElements}\r\n\t\t</FinsembleDnDContext>\r\n\t);\r\n};\r\n\r\n/**\r\n * The FavoritesShell renders the favorite component, which displays all the favorited items and allows the user\r\n * to launch, reorder, or delete a favorited item.\r\n */\r\nexport const FavoritesShell = () => (\r\n\t// When user scrolls to one end of the favorite list, the corresponding variable will be set to \"false\" so that the scrolling indicator will grey out\r\n\r\n\t<div className=\"finsemble-toolbar-section\" id=\"fav-shell\">\r\n\t\t<FavoritesComponent />\r\n\t</div>\r\n);\r\n"]}
1
+ {"version":3,"file":"FavoritesShell.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoritesShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,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C5C,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAChB,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,EAAE;gBACvB,qBAAqB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;aAC7B;QACF,CAAC;QAED,oBAAC,IAAI,kBAAC,QAAQ,EAAE,QAAQ,IAAM,IAAI,EAAI;QACtC,6BAAK,SAAS,EAAC,gCAAgC,EAAC,KAAK,EAAE,IAAI,IACzD,oBAAoB,CAAC,IAAI,CAAC,CACtB;QACN,2BACC,KAAK,EAAC,YAAY,EAClB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,EAAE,EAAE,CAAC,EACpD,EAAE,EAAC,gBAAgB,EACnB,SAAS,EAAC,YAAY,GAClB,CACe,CACrB,CAAC,CAAC;IACH,OAAO,CACN,oBAAC,mBAAmB,IACnB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAC,4CAA4C,EACtD,EAAE,EAAC,oBAAoB,EACvB,qBAAqB,EAAE,IAAI,EAC3B,IAAI,EAAE,gBAAgB,CAAC,CAAC,IAEvB,gBAAgB,CACI,CACtB,CAAC;AACH,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,CAGnC,6BAAK,SAAS,EAAC,2BAA2B,EAAC,EAAE,EAAC,WAAW;IACxD,oBAAC,kBAAkB,OAAG,CACjB,CACN,CAAC","sourcesContent":["import * as React from \"react\";\nimport { useFavoritesShell } from \"../../hooks/useFavoritesShell\";\nimport \"../../assets/css/favorites.css\";\nimport { Icon } from \"../icon/Icon\";\nimport { FinsembleDnDContext, AllowableDnDAxis } from \"../legacyControls/FinsembleDnDContext\";\nimport { FinsembleDraggable } from \"../legacyControls/FinsembleDraggable\";\n\n/*\n * The component that loads and renders all the favorited items.\n */\nconst FavoritesComponent = () => {\n\tconst { favorites, triggerFavorite, removeFavorite, setFavoritesOrder } = useFavoritesShell();\n\n\t// When user is reordering the favorite items in the UI, we need to keep track to this new order and persist the order information.\n\t// This function gets all the favorite item elements in the correct order and call the hook function to set and persist this order.\n\tconst reorder = ({ oldIndex, newIndex }: { oldIndex: number; newIndex: number }) => {\n\t\tsetFavoritesOrder({ oldIndex, newIndex });\n\t};\n\n\t// Delete a favorite item from the toolbar\n\tconst triggerRemoveFavorite = (\n\t\tevent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>,\n\t\tid: string\n\t) => {\n\t\tevent.stopPropagation();\n\t\tremoveFavorite(id);\n\t};\n\n\tconst nameLengthCheckPoint = (name: string) => (name.length > 24 ? `${name.substring(0, 25)}...` : name);\n\n\tconst favoriteElements = favorites.map(({ id, name, icon, category }, index) => (\n\t\t<FinsembleDraggable\n\t\t\tdraggableId={id}\n\t\t\tindex={index}\n\t\t\tkey={id}\n\t\t\twrapperClass=\"finsemble-toolbar-button\"\n\t\t\tonClick={() => triggerFavorite(id, category)}\n\t\t\tonKeydown={(e) => {\n\t\t\t\tif (e.key === \"Delete\") {\n\t\t\t\t\ttriggerRemoveFavorite(e, id);\n\t\t\t\t}\n\t\t\t}}\n\t\t>\n\t\t\t<Icon category={category} {...icon} />\n\t\t\t<div className=\"finsemble-toolbar-button-label\" title={name}>\n\t\t\t\t{nameLengthCheckPoint(name)}\n\t\t\t</div>\n\t\t\t<i\n\t\t\t\ttitle=\"Unfavorite\"\n\t\t\t\tonClick={(event) => triggerRemoveFavorite(event, id)}\n\t\t\t\tid=\"toolbar-delete\"\n\t\t\t\tclassName=\"ff-close-3\"\n\t\t\t></i>\n\t\t</FinsembleDraggable>\n\t));\n\treturn (\n\t\t<FinsembleDnDContext\n\t\t\tonDragEnd={reorder}\n\t\t\tclassName=\"finsemble-toolbar-section rearrange-region\"\n\t\t\tid=\"favoritesContainer\"\n\t\t\tallowHorizontalScroll={true}\n\t\t\taxis={AllowableDnDAxis.x}\n\t\t>\n\t\t\t{favoriteElements}\n\t\t</FinsembleDnDContext>\n\t);\n};\n\n/**\n * The FavoritesShell renders the favorite component, which displays all the favorited items and allows the user\n * to launch, reorder, or delete a favorited item.\n */\nexport const FavoritesShell = () => (\n\t// When user scrolls to one end of the favorite list, the corresponding variable will be set to \"false\" so that the scrolling indicator will grey out\n\n\t<div className=\"finsemble-toolbar-section\" id=\"fav-shell\">\n\t\t<FavoritesComponent />\n\t</div>\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FavoritesShell.spec.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoritesShell.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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,OAAO,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxD,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjC,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAClC,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC,CAAC,CAAC;IAGH,EAAE,CAAC,IAAI,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QAC5D,MAAM,OAAO,GAAG,KAAK,CAAC,oBAAC,KAAK,oBAAK,KAAK,CAAC,IAAI,EAAI,CAAC,CAAC;QAEjD,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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AAC;QACxE,OAAO;aACL,IAAI,CAAC,2BAA2B,CAAC;aACjC,KAAK,EAAE;aACP,QAAQ,CAAC,SAAS,EAAE;YACpB,GAAG,EAAE,QAAQ;YACb,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;SACxB,CAAC,CAAC;QACJ,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\nimport { mount } from \"enzyme\";\r\nimport { describe, it } from \"mocha\";\r\nimport { expect } from \"chai\";\r\nimport sinon from \"sinon\";\r\nimport { Basic } from \"./FavoritesShell.stories\";\r\nimport { accessibilityAssessor } from \"../smartDesktopDesigner/tests/a11y_helper\";\r\n\r\n// Necessary to allow sinon to work with mocked actions (which are shown in the Actions panel in Storybook)\r\nimport addons, { mockChannel } from \"@storybook/addons\";\r\naddons.setChannel(mockChannel());\r\n\r\ndescribe(\"<FavoritesShell/>\", () => {\r\n\tafterEach(() => {\r\n\t\tsinon.restore();\r\n\t});\r\n\t// Scan fails due to duplicate ID\r\n\t// Multiple instances of <i id=\"toolbar-delete\">, which violates the rule \"id attribute value must be unique\"\r\n\tit.skip(\"should pass accessibility scans (Page)\", async () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\r\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\r\n\t});\r\n\tit(\"should display text\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\texpect(wrapper.find(\".finsemble-toolbar-button\").first().text()).to.contain(\"Hello World\");\r\n\t});\r\n\tit(\"should display truncate long text\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\tconst truncated_text = wrapper.find(\"div.finsemble-toolbar-button\").at(2).text();\r\n\t\texpect(\r\n\t\t\ttruncated_text.length,\r\n\t\t\t\"Truncated text down to 25 characters, then add ellipses (total of 28 characters)\"\r\n\t\t).to.equal(28);\r\n\t\texpect(truncated_text, \"Include '...'\").to.contain(\"...\");\r\n\t});\r\n\tit(\"should display category icon\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\texpect(wrapper.find(\".finsemble-toolbar-button .icon-avatar\").first().prop(\"data-category\")).to.equal(\r\n\t\t\t\"Application\"\r\n\t\t);\r\n\t});\r\n\tit(\"should open the item when clicked\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"spawn\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"click\");\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should open the item when the user presses Enter\", () => {\r\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"spawn\");\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"keyDown\", {\r\n\t\t\tkey: \"Enter\",\r\n\t\t});\r\n\t\texpect(buttonSpy.calledOnce).to.be.true;\r\n\t});\r\n\tit(\"should remove the item when deleted\", () => {\r\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\r\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(3);\r\n\t\twrapper.find(\"div.finsemble-toolbar-button i\").first().simulate(\"click\");\r\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(2);\r\n\t\twrapper\r\n\t\t\t.find(\".finsemble-toolbar-button\")\r\n\t\t\t.first()\r\n\t\t\t.simulate(\"keyDown\", {\r\n\t\t\t\tkey: \"Delete\",\r\n\t\t\t\tpreventDefault: () => {},\r\n\t\t\t});\r\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(1);\r\n\t});\r\n});\r\n"]}
1
+ {"version":3,"file":"Favo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AAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzE,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 sinon from \"sinon\";\nimport { Basic } from \"./FavoritesShell.stories\";\nimport { accessibilityAssessor } from \"../smartDesktopDesigner/tests/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\ndescribe(\"<FavoritesShell/>\", () => {\n\tafterEach(() => {\n\t\tsinon.restore();\n\t});\n\t// Scan fails due to duplicate ID\n\t// Multiple instances of <i id=\"toolbar-delete\">, which violates the rule \"id attribute value must be unique\"\n\tit.skip(\"should pass accessibility scans (Page)\", async () => {\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\n\t\texpect(await accessibilityAssessor(wrapper)).to.be.true;\n\t});\n\tit(\"should display text\", () => {\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\texpect(wrapper.find(\".finsemble-toolbar-button\").first().text()).to.contain(\"Hello World\");\n\t});\n\tit(\"should display truncate long text\", () => {\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\tconst truncated_text = wrapper.find(\"div.finsemble-toolbar-button\").at(2).text();\n\t\texpect(\n\t\t\ttruncated_text.length,\n\t\t\t\"Truncated text down to 25 characters, then add ellipses (total of 28 characters)\"\n\t\t).to.equal(28);\n\t\texpect(truncated_text, \"Include '...'\").to.contain(\"...\");\n\t});\n\tit(\"should display category icon\", () => {\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\texpect(wrapper.find(\".finsemble-toolbar-button .icon-avatar\").first().prop(\"data-category\")).to.equal(\n\t\t\t\"Application\"\n\t\t);\n\t});\n\tit(\"should open the item when clicked\", () => {\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"spawn\");\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"click\");\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should open the item when the user presses Enter\", () => {\n\t\tconst buttonSpy = sinon.spy(Basic.args as any, \"spawn\");\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\twrapper.find(\".finsemble-toolbar-button\").first().simulate(\"keyDown\", {\n\t\t\tkey: \"Enter\",\n\t\t});\n\t\texpect(buttonSpy.calledOnce).to.be.true;\n\t});\n\tit(\"should remove the item when deleted\", () => {\n\t\tconst wrapper = mount(<Basic {...Basic.args} />);\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(3);\n\t\twrapper.find(\"div.finsemble-toolbar-button i\").first().simulate(\"click\");\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(2);\n\t\twrapper\n\t\t\t.find(\".finsemble-toolbar-button\")\n\t\t\t.first()\n\t\t\t.simulate(\"keyDown\", {\n\t\t\t\tkey: \"Delete\",\n\t\t\t\tpreventDefault: () => {},\n\t\t\t});\n\t\texpect(wrapper.find(\"div.finsemble-toolbar-button\").length).to.equal(1);\n\t});\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FavoritesShell.stories.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoritesShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,gCAAgC,CAAC;AAGxC,eAAe;IACd,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,cAAc;CACzB,CAAC;AAEF,MAAM,QAAQ,GAAe,CAAC,IAAS,EAAE,EAAE;IAC1C,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjB,IAAI,IAAI,CAAC,SAAS,EAAE;QACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,GAAG,CAAC,KAAU,EAAE,QAA0C,EAAgB,EAAE;YAChH,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC9B,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzB,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC;KACF;IAED,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAEtD,OAAO,CACN,oBAAC,iBAAiB;QACjB,oBAAC,cAAc,OAAG,CACC,CACpB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvC,KAAK,CAAC,IAAI,GAAG;IACZ,SAAS,EAAE;QACV;YACC,EAAE,EAAE,GAAG;YACP,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,aAAa;SACnB;QACD;YACC,EAAE,EAAE,GAAG;YACP,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,qBAAqB;SAC3B;QACD;YACC,EAAE,EAAE,GAAG;YACP,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,sCAAsC;SAC5C;KACD;IACD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC;CACvB,CAAC","sourcesContent":["import React from \"react\";\r\nimport { FavoritesShell } from \"./FavoritesShell\";\r\nimport { Story } from \"@storybook/react/types-6-0\";\r\nimport { initFSBL } from \"../common/helpers\";\r\nimport { FinsembleProvider } from \"../FinsembleProvider\";\r\nimport { action } from \"@storybook/addon-actions\";\r\nimport \"../../assets/css/favorites.css\";\r\nimport { StandardCallback, StandardError } from \"@finsemble/finsemble-core/types/types\";\r\n\r\nexport default {\r\n\ttitle: \"Menu/FavoritesShell\",\r\n\tcomponent: FavoritesShell,\r\n};\r\n\r\nconst Template: Story<any> = (args: any) => {\r\n\tinitFSBL(window);\r\n\r\n\tif (args.favorites) {\r\n\t\twindow.FSBL.Clients.StorageClient.get = (query: any, callback?: StandardCallback<StandardError>): Promise<any> => {\r\n\t\t\tcallback?.(\"\", args.favorites);\r\n\t\t\treturn new Promise((resolve) => {\r\n\t\t\t\tresolve(args.favorites);\r\n\t\t\t});\r\n\t\t};\r\n\t}\r\n\r\n\twindow.FSBL.Clients.LauncherClient.spawn = args.spawn;\r\n\r\n\treturn (\r\n\t\t<FinsembleProvider>\r\n\t\t\t<FavoritesShell />\r\n\t\t</FinsembleProvider>\r\n\t);\r\n};\r\n\r\nexport const Basic = Template.bind({});\r\nBasic.args = {\r\n\tfavorites: [\r\n\t\t{\r\n\t\t\tid: \"1\",\r\n\t\t\tcategory: \"Application\",\r\n\t\t\tname: \"Hello World\",\r\n\t\t},\r\n\t\t{\r\n\t\t\tid: \"2\",\r\n\t\t\tcategory: \"Application\",\r\n\t\t\tname: \"Another application\",\r\n\t\t},\r\n\t\t{\r\n\t\t\tid: \"3\",\r\n\t\t\tcategory: \"Application\",\r\n\t\t\tname: \"This is a very long, extra long name\",\r\n\t\t},\r\n\t],\r\n\tspawn: action(\"launch\"),\r\n};\r\n"]}
1
+ {"version":3,"file":"FavoritesShell.stories.js","sourceRoot":"","sources":["../../../src/components/favorites/FavoritesShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EA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MAAM,CAAC,QAAQ,CAAC;CACvB,CAAC","sourcesContent":["import React from \"react\";\nimport { FavoritesShell } from \"./FavoritesShell\";\nimport { Story } from \"@storybook/react/types-6-0\";\nimport { initFSBL } from \"../common/helpers\";\nimport { FinsembleProvider } from \"../FinsembleProvider\";\nimport { action } from \"@storybook/addon-actions\";\nimport \"../../assets/css/favorites.css\";\nimport { StandardCallback, StandardError } from \"@finsemble/finsemble-core/types/types\";\n\nexport default {\n\ttitle: \"Menu/FavoritesShell\",\n\tcomponent: FavoritesShell,\n};\n\nconst Template: Story<any> = (args: any) => {\n\tinitFSBL(window);\n\n\tif (args.favorites) {\n\t\twindow.FSBL.Clients.StorageClient.get = (query: any, callback?: StandardCallback<StandardError>): Promise<any> => {\n\t\t\tcallback?.(\"\", args.favorites);\n\t\t\treturn new Promise((resolve) => {\n\t\t\t\tresolve(args.favorites);\n\t\t\t});\n\t\t};\n\t}\n\n\twindow.FSBL.Clients.LauncherClient.spawn = args.spawn;\n\n\treturn (\n\t\t<FinsembleProvider>\n\t\t\t<FavoritesShell />\n\t\t</FinsembleProvider>\n\t);\n};\n\nexport const Basic = Template.bind({});\nBasic.args = {\n\tfavorites: [\n\t\t{\n\t\t\tid: \"1\",\n\t\t\tcategory: \"Application\",\n\t\t\tname: \"Hello World\",\n\t\t},\n\t\t{\n\t\t\tid: \"2\",\n\t\t\tcategory: \"Application\",\n\t\t\tname: \"Another application\",\n\t\t},\n\t\t{\n\t\t\tid: \"3\",\n\t\t\tcategory: \"Application\",\n\t\t\tname: \"This is a very long, extra long name\",\n\t\t},\n\t],\n\tspawn: action(\"launch\"),\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/favorites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { FavoriteMaker } from \"./FavoriteMaker\";\r\nexport { FavoritesShell } from \"./FavoritesShell\";\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/favorites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { FavoriteMaker } from \"./FavoriteMaker\";\nexport { FavoritesShell } from \"./FavoritesShell\";\n"]}