@finsemble/finsemble-ui 6.4.0-beta.1 → 6.5.0

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 (755) hide show
  1. package/README.md +28 -28
  2. package/package.json +20 -19
  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.d.ts +6 -2
  9. package/react/actions/smartDesktopDesignerActions.js +2 -0
  10. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  11. package/react/actions/toolbarActions.js.map +1 -1
  12. package/react/actions/workspaceActions.js.map +1 -1
  13. package/react/assets/css/advancedAppLauncher.css +636 -636
  14. package/react/assets/css/appCatalog.css +1069 -1069
  15. package/react/assets/css/authentication.css +78 -78
  16. package/react/assets/css/button.css +220 -220
  17. package/react/assets/css/core/formElements.css +23 -23
  18. package/react/assets/css/core/icons.css +69 -69
  19. package/react/assets/css/core/notifications.css +75 -75
  20. package/react/assets/css/core/windowFrame.css +36 -36
  21. package/react/assets/css/dashbar.css +78 -78
  22. package/react/assets/css/defaultTheme.css +356 -356
  23. package/react/assets/css/dialogs.css +158 -158
  24. package/react/assets/css/favorites.css +101 -101
  25. package/react/assets/css/finsemble.css +38 -38
  26. package/react/assets/css/focus.css +4 -4
  27. package/react/assets/css/font-finance.css +385 -385
  28. package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
  29. package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
  30. package/react/assets/css/fonts/font-finance.svg +124 -124
  31. package/react/assets/css/fonts/icons-reference.html +1174 -1174
  32. package/react/assets/css/linkerWindow.css +124 -124
  33. package/react/assets/css/menus.css +195 -195
  34. package/react/assets/css/notificationsCenter.css +597 -597
  35. package/react/assets/css/processMonitor.css +213 -213
  36. package/react/assets/css/search.css +128 -128
  37. package/react/assets/css/shared/animations.css +99 -99
  38. package/react/assets/css/tags.css +136 -136
  39. package/react/assets/css/toolbar.css +413 -413
  40. package/react/assets/css/userPreferences.css +538 -538
  41. package/react/assets/css/windowTitleBar.css +653 -652
  42. package/react/assets/icons/always-on-top.svg +20 -0
  43. package/react/assets/icons/caret.svg +7 -7
  44. package/react/assets/icons/check-square.svg +5 -5
  45. package/react/assets/icons/check.svg +3 -3
  46. package/react/assets/icons/chevron-left.svg +3 -3
  47. package/react/assets/icons/chevron-right.svg +3 -3
  48. package/react/assets/icons/close.svg +11 -0
  49. package/react/assets/icons/code-block.svg +15 -0
  50. package/react/assets/icons/copy.svg +10 -10
  51. package/react/assets/icons/documentation.svg +20 -0
  52. package/react/assets/icons/exclamation-circle.svg +4 -4
  53. package/react/assets/icons/external-link.svg +12 -12
  54. package/react/assets/icons/flag.svg +10 -10
  55. package/react/assets/icons/folder.svg +3 -3
  56. package/react/assets/icons/font.svg +3 -3
  57. package/react/assets/icons/globe.svg +3 -3
  58. package/react/assets/icons/hdd.svg +9 -9
  59. package/react/assets/icons/key.svg +10 -10
  60. package/react/assets/icons/life-ring.svg +3 -3
  61. package/react/assets/icons/linker.svg +18 -0
  62. package/react/assets/icons/lock.svg +5 -5
  63. package/react/assets/icons/magic.svg +15 -15
  64. package/react/assets/icons/maximize.svg +16 -0
  65. package/react/assets/icons/minimize.svg +15 -0
  66. package/react/assets/icons/moon.svg +10 -10
  67. package/react/assets/icons/paint-roller.svg +3 -3
  68. package/react/assets/icons/pencil.svg +10 -10
  69. package/react/assets/icons/plus.svg +3 -3
  70. package/react/assets/icons/question-circle.svg +5 -5
  71. package/react/assets/icons/search.svg +3 -3
  72. package/react/assets/icons/sun.svg +9 -9
  73. package/react/assets/icons/times.svg +3 -3
  74. package/react/assets/icons/toggle-off.svg +6 -6
  75. package/react/assets/icons/toggle-on.svg +6 -6
  76. package/react/assets/icons/toolbar.svg +12 -12
  77. package/react/assets/icons/tools.svg +3 -3
  78. package/react/assets/icons/trash.svg +12 -12
  79. package/react/assets/icons/upload.svg +10 -10
  80. package/react/assets/icons/window.svg +3 -3
  81. package/react/assets/img/finsemble-display.png +0 -0
  82. package/react/componentTemplateGenerator.js +85 -85
  83. package/react/componentTemplateGenerator.js.map +1 -1
  84. package/react/components/FinsembleProvider.js.map +1 -1
  85. package/react/components/appCatalog/AppCatalog.js.map +1 -1
  86. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  87. package/react/components/appCatalog/components/AppCard.js.map +1 -1
  88. package/react/components/appCatalog/components/AppList.js.map +1 -1
  89. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  90. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  91. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  92. package/react/components/appCatalog/components/Hero.js.map +1 -1
  93. package/react/components/appCatalog/components/Home.js.map +1 -1
  94. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  95. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  96. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  97. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  98. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  99. package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
  100. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  101. package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
  102. package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
  103. package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
  104. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  105. package/react/components/appCatalog/components/Tag.js.map +1 -1
  106. package/react/components/appCatalog/components/Toast.js.map +1 -1
  107. package/react/components/appCatalog/components/helpers.js.map +1 -1
  108. package/react/components/appCatalog/index.js.map +1 -1
  109. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  110. package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
  111. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  112. package/react/components/appCatalog/stores/appStore.d.ts +2 -2
  113. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  114. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  115. package/react/components/common/Accordion.js +1 -1
  116. package/react/components/common/Accordion.js.map +1 -1
  117. package/react/components/common/Button.js.map +1 -1
  118. package/react/components/common/ButtonIcon.js.map +1 -1
  119. package/react/components/common/ButtonRow.js.map +1 -1
  120. package/react/components/common/ButtonTile.js.map +1 -1
  121. package/react/components/common/Checkbox.js +1 -1
  122. package/react/components/common/Checkbox.js.map +1 -1
  123. package/react/components/common/ColorPicker.js.map +1 -1
  124. package/react/components/common/DropZone.js +3 -1
  125. package/react/components/common/DropZone.js.map +1 -1
  126. package/react/components/common/DropdownButton.js.map +1 -1
  127. package/react/components/common/FileInput.d.ts +2 -1
  128. package/react/components/common/FileInput.js +9 -4
  129. package/react/components/common/FileInput.js.map +1 -1
  130. package/react/components/common/FinsembleIcon.d.ts +1 -1
  131. package/react/components/common/FinsembleIcon.js +15 -1
  132. package/react/components/common/FinsembleIcon.js.map +1 -1
  133. package/react/components/common/FinsembleSelect.js +1 -1
  134. package/react/components/common/FinsembleSelect.js.map +1 -1
  135. package/react/components/common/FinsembleToggle.js.map +1 -1
  136. package/react/components/common/Header.js +3 -1
  137. package/react/components/common/Header.js.map +1 -1
  138. package/react/components/common/ImagePreview.js.map +1 -1
  139. package/react/components/common/InputTable.js.map +1 -1
  140. package/react/components/common/LoadingSpinner.js.map +1 -1
  141. package/react/components/common/Tab.js.map +1 -1
  142. package/react/components/common/Tooltip.js +3 -1
  143. package/react/components/common/Tooltip.js.map +1 -1
  144. package/react/components/common/css/accordion.css +99 -89
  145. package/react/components/common/css/application-edit-page.css +324 -223
  146. package/react/components/common/css/application-list.css +53 -47
  147. package/react/components/common/css/button.css +166 -166
  148. package/react/components/common/css/checkbox.css +30 -31
  149. package/react/components/common/css/color-picker.css +52 -52
  150. package/react/components/common/css/drop-zone.css +17 -17
  151. package/react/components/common/css/file-input.css +65 -49
  152. package/react/components/common/css/header.css +30 -32
  153. package/react/components/common/css/icon.css +13 -13
  154. package/react/components/common/css/image-preview.css +57 -57
  155. package/react/components/common/css/loading-spinner.css +39 -39
  156. package/react/components/common/css/preload-edit-page.css +37 -0
  157. package/react/components/common/css/selector.css +51 -51
  158. package/react/components/common/css/styles.css +127 -128
  159. package/react/components/common/css/tab.css +56 -56
  160. package/react/components/common/css/toggle.css +32 -32
  161. package/react/components/common/css/tooltip.css +78 -78
  162. package/react/components/common/file_helpers.js.map +1 -1
  163. package/react/components/common/fixtures/FinsembleIcon.css +4 -4
  164. package/react/components/common/helpers.js.map +1 -1
  165. package/react/components/common/stories/Accordion.stories.js.map +1 -1
  166. package/react/components/common/stories/Button.stories.js.map +1 -1
  167. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  168. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  169. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  170. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  171. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  172. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  173. package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
  174. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  175. package/react/components/common/stories/FileInput.stories.js +6 -0
  176. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  177. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  178. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  179. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  180. package/react/components/common/stories/Header.stories.js.map +1 -1
  181. package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
  182. package/react/components/common/stories/InputTable.stories.js.map +1 -1
  183. package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
  184. package/react/components/common/stories/Tab.stories.js.map +1 -1
  185. package/react/components/common/stories/Tooltip.stories.js.map +1 -1
  186. package/react/components/common/tests/Accordion.spec.js.map +1 -1
  187. package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
  188. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  189. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  190. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  191. package/react/components/common/tests/FileInput.spec.js +20 -5
  192. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  193. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  194. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  195. package/react/components/common/tests/Header.spec.js +6 -2
  196. package/react/components/common/tests/Header.spec.js.map +1 -1
  197. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  198. package/react/components/common/tests/InputTable.spec.js.map +1 -1
  199. package/react/components/common/tests/Tab.spec.js.map +1 -1
  200. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  201. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  202. package/react/components/favorites/FavoritesShell.js.map +1 -1
  203. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  204. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  205. package/react/components/favorites/index.js.map +1 -1
  206. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  207. package/react/components/fdc3Resolver/ResolverDialog.css +126 -126
  208. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  209. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  210. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  211. package/react/components/icon/Icon.js.map +1 -1
  212. package/react/components/icon/index.js.map +1 -1
  213. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  214. package/react/components/legacyControls/FinsembleDialogButton.js +1 -1
  215. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  216. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  217. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  218. package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
  219. package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
  220. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  221. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  222. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  223. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  224. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  225. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  226. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  227. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  228. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  229. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  230. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  231. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  232. package/react/components/linker/LinkerMenu.js.map +1 -1
  233. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  234. package/react/components/linker/index.js.map +1 -1
  235. package/react/components/linker/remoteRedux.d.ts +1 -1
  236. package/react/components/linker/remoteRedux.js.map +1 -1
  237. package/react/components/menu/Menu.d.ts +1 -0
  238. package/react/components/menu/Menu.js.map +1 -1
  239. package/react/components/menu/MenuAutoResizer.d.ts +2 -1
  240. package/react/components/menu/MenuAutoResizer.js +3 -2
  241. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  242. package/react/components/menu/MenuContent.js.map +1 -1
  243. package/react/components/menu/MenuHotKey.js.map +1 -1
  244. package/react/components/menu/MenuItem.js.map +1 -1
  245. package/react/components/menu/MenuPortal.js +118 -92
  246. package/react/components/menu/MenuPortal.js.map +1 -1
  247. package/react/components/menu/MenuShell.d.ts +1 -0
  248. package/react/components/menu/MenuShell.js +3 -2
  249. package/react/components/menu/MenuShell.js.map +1 -1
  250. package/react/components/menu/MenuToggle.js.map +1 -1
  251. package/react/components/menu/index.js.map +1 -1
  252. package/react/components/menu/keyboardNavigation.js.map +1 -1
  253. package/react/components/menu/menuContext.d.ts +1 -0
  254. package/react/components/menu/menuContext.js.map +1 -1
  255. package/react/components/menu/menuHelpers.d.ts +1 -1
  256. package/react/components/menu/menuHelpers.js +2 -2
  257. package/react/components/menu/menuHelpers.js.map +1 -1
  258. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  259. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  260. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  261. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  262. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  263. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +20 -27
  264. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  265. package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
  266. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  267. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  268. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  269. package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
  270. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  271. package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
  272. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  273. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
  274. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  275. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
  276. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
  277. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  278. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  279. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  280. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
  281. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  282. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  283. package/react/components/notifications/components/views/CardView.js.map +1 -1
  284. package/react/components/notifications/components/views/ListView.d.ts +1 -1
  285. package/react/components/notifications/components/views/ListView.js +1 -1
  286. package/react/components/notifications/components/views/ListView.js.map +1 -1
  287. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
  288. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  289. package/react/components/notifications/constants.js.map +1 -1
  290. package/react/components/notifications/icons/Card.js.map +1 -1
  291. package/react/components/notifications/icons/Chevron.js.map +1 -1
  292. package/react/components/notifications/icons/CloseIcon.js.map +1 -1
  293. package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
  294. package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
  295. package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
  296. package/react/components/notifications/index.js.map +1 -1
  297. package/react/components/notifications/notificationsContext.js.map +1 -1
  298. package/react/components/notifications/types.d.ts +1 -1
  299. package/react/components/notifications/types.js.map +1 -1
  300. package/react/components/notifications/utils.d.ts +1 -1
  301. package/react/components/notifications/utils.js.map +1 -1
  302. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  303. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  304. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  305. package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
  306. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  307. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  308. package/react/components/processMonitor/constants.js.map +1 -1
  309. package/react/components/processMonitor/helpers.js.map +1 -1
  310. package/react/components/processMonitor/helpers.spec.js.map +1 -1
  311. package/react/components/processMonitor/index.js.map +1 -1
  312. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +4 -3
  313. package/react/components/processMonitor/stores/ProcessMonitorStore.js +51 -50
  314. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  315. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  316. package/react/components/quickComponentForm/index.js.map +1 -1
  317. package/react/components/quickComponentForm/quickComponent.css +3 -3
  318. package/react/components/search/Highlight.js.map +1 -1
  319. package/react/components/search/Highlight.spec.js.map +1 -1
  320. package/react/components/search/Highlight.stories.js.map +1 -1
  321. package/react/components/search/Search.js.map +1 -1
  322. package/react/components/search/SearchBestMatch.js.map +1 -1
  323. package/react/components/search/SearchInput.js.map +1 -1
  324. package/react/components/search/SearchProviderResults.js.map +1 -1
  325. package/react/components/search/SearchResult.js +4 -3
  326. package/react/components/search/SearchResult.js.map +1 -1
  327. package/react/components/search/SearchResults.js.map +1 -1
  328. package/react/components/search/index.js.map +1 -1
  329. package/react/components/shared/Animate.js.map +1 -1
  330. package/react/components/shared/BellIcon.js.map +1 -1
  331. package/react/components/shared/BellIconCrossed.js.map +1 -1
  332. package/react/components/shared/Button.js.map +1 -1
  333. package/react/components/shared/ConditionalWrapper.js.map +1 -1
  334. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  335. package/react/components/shared/NavigationButton.js.map +1 -1
  336. package/react/components/shared/Tag.js.map +1 -1
  337. package/react/components/shared/TagsMenu.js.map +1 -1
  338. package/react/components/shared/addProtocolToValidURL.js.map +1 -1
  339. package/react/components/shared/linkerUtil.js.map +1 -1
  340. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  341. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  342. package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
  343. package/react/components/shared/validateURL.js.map +1 -1
  344. package/react/components/shared/validateURL.spec.js.map +1 -1
  345. package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
  346. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  347. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  348. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  349. package/react/components/singleInputDialog/index.js.map +1 -1
  350. package/react/components/smartDesktopDesigner/AddApp.d.ts +2 -2
  351. package/react/components/smartDesktopDesigner/AddApp.js +28 -17
  352. package/react/components/smartDesktopDesigner/AddApp.js.map +1 -1
  353. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  354. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +2 -2
  355. package/react/components/smartDesktopDesigner/AppEditPage.js +311 -242
  356. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  357. package/react/components/smartDesktopDesigner/Appearance.css +35 -28
  358. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
  359. package/react/components/smartDesktopDesigner/Appearance.js +1 -1
  360. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  361. package/react/components/smartDesktopDesigner/Application.d.ts +10 -3
  362. package/react/components/smartDesktopDesigner/Application.js +37 -44
  363. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  364. package/react/components/smartDesktopDesigner/Applications.d.ts +2 -0
  365. package/react/components/smartDesktopDesigner/Applications.js +29 -20
  366. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  367. package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
  368. package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
  369. package/react/components/smartDesktopDesigner/Authentication.js +2 -9
  370. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  371. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +1 -1
  372. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  373. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  374. package/react/components/smartDesktopDesigner/ContentHeader.d.ts +5 -0
  375. package/react/components/smartDesktopDesigner/ContentHeader.js +10 -0
  376. package/react/components/smartDesktopDesigner/ContentHeader.js.map +1 -0
  377. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  378. package/react/components/smartDesktopDesigner/EditPreload.d.ts +14 -0
  379. package/react/components/smartDesktopDesigner/EditPreload.js +169 -0
  380. package/react/components/smartDesktopDesigner/EditPreload.js.map +1 -0
  381. package/react/components/smartDesktopDesigner/Export.js +5 -5
  382. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  383. package/react/components/smartDesktopDesigner/ExportCloud.d.ts +3 -1
  384. package/react/components/smartDesktopDesigner/ExportCloud.js +4 -4
  385. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  386. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  387. package/react/components/smartDesktopDesigner/ExportZip.d.ts +3 -1
  388. package/react/components/smartDesktopDesigner/ExportZip.js +8 -3
  389. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  390. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -0
  391. package/react/components/smartDesktopDesigner/GettingStarted.js +11 -22
  392. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  393. package/react/components/smartDesktopDesigner/ItemList.d.ts +17 -0
  394. package/react/components/smartDesktopDesigner/ItemList.js +58 -0
  395. package/react/components/smartDesktopDesigner/ItemList.js.map +1 -0
  396. package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
  397. package/react/components/smartDesktopDesigner/OptionalSettingsView.d.ts +11 -0
  398. package/react/components/smartDesktopDesigner/OptionalSettingsView.js +71 -0
  399. package/react/components/smartDesktopDesigner/OptionalSettingsView.js.map +1 -0
  400. package/react/components/smartDesktopDesigner/Preloads.d.ts +8 -0
  401. package/react/components/smartDesktopDesigner/Preloads.js +26 -0
  402. package/react/components/smartDesktopDesigner/Preloads.js.map +1 -0
  403. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
  404. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  405. package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
  406. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +1 -1
  407. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +34 -3
  408. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  409. package/react/components/smartDesktopDesigner/ThemePage.css +109 -109
  410. package/react/components/smartDesktopDesigner/ThemePage.js +0 -7
  411. package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
  412. package/react/components/smartDesktopDesigner/Themes.js +0 -2
  413. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  414. package/react/components/smartDesktopDesigner/Toolbar.js +16 -18
  415. package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -1
  416. package/react/components/smartDesktopDesigner/View.js +1 -1
  417. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  418. package/react/components/smartDesktopDesigner/common/fsbl_functions.d.ts +1 -1
  419. package/react/components/smartDesktopDesigner/common/fsbl_functions.js +2 -2
  420. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
  421. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  422. package/react/components/smartDesktopDesigner/common/views.js +27 -3
  423. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  424. package/react/components/smartDesktopDesigner/css/appearance.css +21 -18
  425. package/react/components/smartDesktopDesigner/css/applications.css +167 -167
  426. package/react/components/smartDesktopDesigner/css/authentication.css +119 -130
  427. package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
  428. package/react/components/smartDesktopDesigner/css/export.css +176 -167
  429. package/react/components/smartDesktopDesigner/css/getting-started.css +28 -8
  430. package/react/components/smartDesktopDesigner/css/nav.css +120 -109
  431. package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
  432. package/react/components/smartDesktopDesigner/css/project-header.css +124 -121
  433. package/react/components/smartDesktopDesigner/css/styles.css +178 -179
  434. package/react/components/smartDesktopDesigner/css/views.css +23 -17
  435. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +1 -1
  436. package/react/components/smartDesktopDesigner/fixtures/apps.js +23 -1
  437. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  438. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
  439. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
  440. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  441. package/react/components/smartDesktopDesigner/fixtures/preloads.d.ts +22 -0
  442. package/react/components/smartDesktopDesigner/fixtures/preloads.js +40 -0
  443. package/react/components/smartDesktopDesigner/fixtures/preloads.js.map +1 -0
  444. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
  445. package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +1 -1
  446. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  447. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
  448. package/react/components/smartDesktopDesigner/fixtures/views.js +14 -6
  449. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  450. package/react/components/smartDesktopDesigner/sdd_helpers.js +1 -1
  451. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  452. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +2 -1
  453. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +2 -0
  454. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  455. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  456. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  457. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
  458. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  459. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.d.ts +10 -0
  460. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js +13 -0
  461. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +1 -0
  462. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.d.ts +11 -0
  463. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js +35 -0
  464. package/react/components/smartDesktopDesigner/stories/EditPreload.stories.js.map +1 -0
  465. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  466. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.d.ts +1 -1
  467. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +1 -1
  468. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  469. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.d.ts +1 -1
  470. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +1 -1
  471. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  472. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  473. package/react/components/smartDesktopDesigner/stories/ItemList.stories.d.ts +16 -0
  474. package/react/components/smartDesktopDesigner/stories/{ApplicationList.stories.js → ItemList.stories.js} +30 -23
  475. package/react/components/smartDesktopDesigner/stories/ItemList.stories.js.map +1 -0
  476. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  477. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.d.ts +11 -0
  478. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js +28 -0
  479. package/react/components/smartDesktopDesigner/stories/OptionalSettingsView.stories.js.map +1 -0
  480. package/react/components/smartDesktopDesigner/stories/Preloads.stories.d.ts +11 -0
  481. package/react/components/smartDesktopDesigner/stories/Preloads.stories.js +31 -0
  482. package/react/components/smartDesktopDesigner/stories/Preloads.stories.js.map +1 -0
  483. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  484. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  485. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  486. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +7 -1
  487. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  488. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
  489. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  490. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +1 -1
  491. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +1100 -311
  492. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  493. package/react/components/smartDesktopDesigner/tests/{ApplicationList.spec.d.ts → Application.spec.d.ts} +0 -0
  494. package/react/components/smartDesktopDesigner/tests/Application.spec.js +1496 -0
  495. package/react/components/smartDesktopDesigner/tests/Application.spec.js.map +1 -0
  496. package/react/components/smartDesktopDesigner/tests/Applications.spec.d.ts +1 -1
  497. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +94 -7
  498. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  499. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  500. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.d.ts +1 -0
  501. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js +31 -0
  502. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +1 -0
  503. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.d.ts +1 -0
  504. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js +61 -0
  505. package/react/components/smartDesktopDesigner/tests/EditPreload.spec.js.map +1 -0
  506. package/react/components/smartDesktopDesigner/tests/Export.spec.js +95 -0
  507. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  508. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +7 -0
  509. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  510. package/react/components/smartDesktopDesigner/tests/ItemList.spec.d.ts +1 -0
  511. package/react/components/smartDesktopDesigner/tests/{ApplicationList.spec.js → ItemList.spec.js} +8 -8
  512. package/react/components/smartDesktopDesigner/tests/ItemList.spec.js.map +1 -0
  513. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  514. package/react/components/smartDesktopDesigner/tests/Preloads.spec.d.ts +1 -0
  515. package/react/components/smartDesktopDesigner/tests/Preloads.spec.js +47 -0
  516. package/react/components/smartDesktopDesigner/tests/Preloads.spec.js.map +1 -0
  517. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +1 -1
  518. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  519. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  520. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  521. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +7 -30
  522. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  523. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  524. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.d.ts +1 -1
  525. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js +5 -6
  526. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +1 -1
  527. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  528. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js +1 -0
  529. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +1 -1
  530. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
  531. package/react/components/system/System.js.map +1 -1
  532. package/react/components/system/System.spec.js.map +1 -1
  533. package/react/components/system/System.stories.js.map +1 -1
  534. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  535. package/react/components/system/index.js.map +1 -1
  536. package/react/components/toolbar/AutoArrange.js.map +1 -1
  537. package/react/components/toolbar/DragHandle.js.map +1 -1
  538. package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
  539. package/react/components/toolbar/DragHandle.spec.js +31 -0
  540. package/react/components/toolbar/DragHandle.spec.js.map +1 -0
  541. package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
  542. package/react/components/toolbar/DragHandle.stories.js +39 -0
  543. package/react/components/toolbar/DragHandle.stories.js.map +1 -0
  544. package/react/components/toolbar/MinimizeAll.js.map +1 -1
  545. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  546. package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
  547. package/react/components/toolbar/NotificationControl.js.map +1 -1
  548. package/react/components/toolbar/RevealAll.js.map +1 -1
  549. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  550. package/react/components/toolbar/RevealAll.stories.js.map +1 -1
  551. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  552. package/react/components/toolbar/ToolbarSection.js.map +1 -1
  553. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  554. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
  555. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  556. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  557. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  558. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  559. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  560. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  561. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  562. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
  563. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  564. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  565. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
  566. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +47 -45
  567. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  568. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  569. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  570. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  571. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  572. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
  573. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  574. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  575. package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
  576. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  577. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  578. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
  579. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  580. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  581. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  582. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  583. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  584. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +1 -0
  585. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  586. package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
  587. package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
  588. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  589. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +3 -2
  590. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +17 -34
  591. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  592. package/react/components/toolbar/dashbar/Dashbar.js +9 -12
  593. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  594. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  595. package/react/components/toolbar/index.js.map +1 -1
  596. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
  597. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  598. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  599. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  600. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  601. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  602. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  603. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
  604. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +1 -1
  605. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  606. package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +90 -90
  607. package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
  608. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -1
  609. package/react/components/userPreferences/UserPreferences.js.map +1 -1
  610. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  611. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  612. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  613. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  614. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  615. package/react/components/userPreferences/components/content/DashbarEditorItem.js.map +1 -1
  616. package/react/components/userPreferences/components/content/General.js.map +1 -1
  617. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  618. package/react/components/userPreferences/components/content/Workspaces.d.ts +1 -1
  619. package/react/components/userPreferences/components/content/Workspaces.js +1 -1
  620. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  621. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  622. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  623. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  624. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  625. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  626. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  627. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  628. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  629. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  630. package/react/components/userPreferences/index.js.map +1 -1
  631. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +1 -1
  632. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  633. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  634. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  635. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  636. package/react/components/userPreferences/stories/Notifications.stories.js.map +1 -1
  637. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  638. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  639. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  640. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  641. package/react/components/userPreferences/stories/WorkspaceComponents.stories.js.map +1 -1
  642. package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
  643. package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
  644. package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
  645. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  646. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  647. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  648. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  649. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  650. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  651. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  652. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  653. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  654. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +1 -1
  655. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  656. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  657. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  658. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  659. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  660. package/react/components/utils.js.map +1 -1
  661. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +4 -2
  662. package/react/components/windowTitleBar/WindowTitleBarShell.js +60 -59
  663. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  664. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -1
  665. package/react/components/windowTitleBar/components/center/Tab.js +2 -2
  666. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  667. package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -3
  668. package/react/components/windowTitleBar/components/center/TabList.js +19 -82
  669. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  670. package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
  671. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  672. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
  673. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  674. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
  675. package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
  676. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
  677. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  678. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  679. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +7 -0
  680. package/react/components/windowTitleBar/components/right/MaximizeButton.js +8 -2
  681. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  682. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  683. package/react/components/windowTitleBar/components/windowTitle.d.ts +9 -6
  684. package/react/components/windowTitleBar/components/windowTitle.js +154 -45
  685. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  686. package/react/components/windowTitleBar/index.js.map +1 -1
  687. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
  688. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +213 -217
  689. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  690. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  691. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  692. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  693. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  694. package/react/components/yesNoDialog/YesNoDialog.css +3 -3
  695. package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
  696. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  697. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  698. package/react/components/yesNoDialog/index.js.map +1 -1
  699. package/react/components/yesNoDialog/timer.js.map +1 -1
  700. package/react/enzymeSetup.js.map +1 -1
  701. package/react/hooks/index.js.map +1 -1
  702. package/react/hooks/useAuth.js.map +1 -1
  703. package/react/hooks/useDashbar.js.map +1 -1
  704. package/react/hooks/useDeepEffect.js.map +1 -1
  705. package/react/hooks/useFavorites.js.map +1 -1
  706. package/react/hooks/useFavoritesShell.js.map +1 -1
  707. package/react/hooks/useHotkey.js.map +1 -1
  708. package/react/hooks/useLinker.js.map +1 -1
  709. package/react/hooks/useMenu.js.map +1 -1
  710. package/react/hooks/useNotifications.d.ts +1 -1
  711. package/react/hooks/useNotifications.js.map +1 -1
  712. package/react/hooks/useOutsideClickDetector.js.map +1 -1
  713. package/react/hooks/usePubSub.js.map +1 -1
  714. package/react/hooks/useSearch.js.map +1 -1
  715. package/react/hooks/useToolbar.js.map +1 -1
  716. package/react/hooks/useWorkspace.js.map +1 -1
  717. package/react/reducers/favoriteReducer.js.map +1 -1
  718. package/react/reducers/linkerReducer.js.map +1 -1
  719. package/react/reducers/menuReducer.js.map +1 -1
  720. package/react/reducers/rootReducer.d.ts +11 -3
  721. package/react/reducers/rootReducer.js.map +1 -1
  722. package/react/reducers/searchReducer.js.map +1 -1
  723. package/react/reducers/smartDesktopDesignerReducer.js +8 -0
  724. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  725. package/react/reducers/toolbarReducer.js.map +1 -1
  726. package/react/reducers/workspaceReducer.js.map +1 -1
  727. package/react/store.d.ts +22 -6
  728. package/react/store.js.map +1 -1
  729. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  730. package/react/types/dashbarTypes.js.map +1 -1
  731. package/react/types/favoriteTypes.js.map +1 -1
  732. package/react/types/fdc3.d.ts +2 -2
  733. package/react/types/fdc3.js.map +1 -1
  734. package/react/types/hotkeyTypes.js.map +1 -1
  735. package/react/types/iconTypes.js.map +1 -1
  736. package/react/types/linkerTypes.js.map +1 -1
  737. package/react/types/searchTypes.d.ts +1 -8
  738. package/react/types/searchTypes.js.map +1 -1
  739. package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
  740. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  741. package/react/types/windowTitleBar.d.ts +4 -2
  742. package/react/types/windowTitleBar.js.map +1 -1
  743. package/react/types/workspaceTypes.js.map +1 -1
  744. package/react/components/common/FontSizeSelector.d.ts +0 -7
  745. package/react/components/common/FontSizeSelector.js +0 -42
  746. package/react/components/common/FontSizeSelector.js.map +0 -1
  747. package/react/components/common/stories/FontSizeSelector.stories.d.ts +0 -12
  748. package/react/components/common/stories/FontSizeSelector.stories.js +0 -24
  749. package/react/components/common/stories/FontSizeSelector.stories.js.map +0 -1
  750. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -15
  751. package/react/components/smartDesktopDesigner/ApplicationList.js +0 -56
  752. package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
  753. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -15
  754. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
  755. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
@@ -1,14 +1,13 @@
1
1
  import * as React from "react";
2
- import { StandardError } from "@finsemble/finsemble-core/types/types";
2
+ import { StandardError } from "@finsemble/finsemble-api/types/types";
3
3
  import { TabListProps, TabListState, GetTabWidthParams, TabProperties } from "../../../../types/windowTitleBar";
4
- import { WindowIdentifier } from "@finsemble/finsemble-core";
4
+ import { WindowIdentifier } from "@finsemble/finsemble-api";
5
5
  export declare class TabList extends React.Component<TabListProps, TabListState> {
6
6
  mousePositionOnDragEnd: {
7
7
  x: number;
8
8
  y: number;
9
9
  };
10
10
  onWindowResizeThrottled: (this: Window, ev: UIEvent) => any;
11
- updateTitle: EventTarget;
12
11
  constructor(props: TabListProps);
13
12
  bindCorrectContext(): void;
14
13
  getTabWidth(params?: GetTabWidthParams): number;
@@ -36,70 +36,6 @@ const isPointInBox = (point, box) => {
36
36
  box.right = box.left + box.width;
37
37
  return point.x > box.left && point.x < box.right && point.y < box.bottom && point.y > box.top;
38
38
  };
39
- function EditTab(props) {
40
- const [editingTitle, setEditingTitle] = React.useState(false);
41
- const [clickTimeout, setClickTimeout] = React.useState(undefined);
42
- React.useEffect(() => {
43
- FSBL.Clients.WindowClient.getComponentState({ field: "persistedTitle" }, (err, title) => {
44
- if (title)
45
- document.title = title;
46
- });
47
- }, []);
48
- const inputEl = React.useRef(null);
49
- const updateTabTitle = (e) => {
50
- const title = e.target.value;
51
- FSBL.Clients.WindowClient.setComponentState({
52
- field: "persistedTitle",
53
- value: title,
54
- }, () => {
55
- document.title = title;
56
- setEditingTitle(false);
57
- });
58
- };
59
- const beginEditing = async () => {
60
- var _a;
61
- await setEditingTitle(true);
62
- await ((_a = inputEl === null || inputEl === void 0 ? void 0 : inputEl.current) === null || _a === void 0 ? void 0 : _a.focus());
63
- const { wrap: win } = await FSBL.FinsembleWindow.getInstance(FSBL.Clients.WindowClient.getWindowIdentifier());
64
- win.getComponentState({ field: "persistedTitle" }, (error, persistedTitle) => {
65
- if (persistedTitle && (inputEl === null || inputEl === void 0 ? void 0 : inputEl.current)) {
66
- inputEl.current.value = persistedTitle;
67
- }
68
- else {
69
- win.getOptions((err, data) => {
70
- if (inputEl === null || inputEl === void 0 ? void 0 : inputEl.current) {
71
- inputEl.current.value = data.title;
72
- }
73
- });
74
- }
75
- });
76
- };
77
- const clickHandler = () => {
78
- const allowTabEditing = Store.getValue("allowTabEditing");
79
- if (clickTimeout) {
80
- if (allowTabEditing) {
81
- beginEditing();
82
- }
83
- }
84
- else if (!editingTitle) {
85
- let timeout = setTimeout(() => {
86
- clearTimeout(clickTimeout);
87
- setClickTimeout(undefined);
88
- }, 500);
89
- setClickTimeout(timeout);
90
- if (props.tab && props.setActiveTab)
91
- props.setActiveTab(props.tab);
92
- }
93
- };
94
- const blurHandler = (e) => {
95
- updateTabTitle(e);
96
- };
97
- const keyDownHandler = (e) => {
98
- e.key === "Enter" && updateTabTitle(e);
99
- };
100
- return (React.createElement("div", { id: "tab-editor", onClick: clickHandler }, editingTitle ? (React.createElement("div", { className: "fsbl-tab fsbl-active-tab", style: { width: props.tabWidth || "auto" } },
101
- React.createElement("input", { ref: inputEl, onBlur: blurHandler, onKeyDown: keyDownHandler, type: "text", className: "tab__input", maxLength: 32 }))) : (props.children)));
102
- }
103
39
  export class TabList extends React.Component {
104
40
  constructor(props) {
105
41
  super(props);
@@ -131,7 +67,6 @@ export class TabList extends React.Component {
131
67
  x: 0,
132
68
  y: 0,
133
69
  };
134
- this.updateTitle = new EventTarget();
135
70
  }
136
71
  bindCorrectContext() {
137
72
  this.startDrag = this.startDrag.bind(this);
@@ -262,6 +197,9 @@ export class TabList extends React.Component {
262
197
  FSBL.Clients.RouterClient.transmit("DockingService.cancelTilingOrTabbing", {
263
198
  windowIdentifier: this.state.activeTab,
264
199
  });
200
+ this.setState({
201
+ iAmDragging: false,
202
+ });
265
203
  return;
266
204
  }
267
205
  stopTilingOrTabbing({ allowDropOnSelf: true, action: "tabbing" }, () => {
@@ -433,7 +371,6 @@ export class TabList extends React.Component {
433
371
  tabs: value,
434
372
  tabWidth: this.getTabWidth({ tabList: value }),
435
373
  });
436
- this.updateTitle.dispatchEvent(new Event("title-changed"));
437
374
  }
438
375
  onTabListTranslateChanged(err, response) {
439
376
  let { value } = response;
@@ -489,25 +426,25 @@ export class TabList extends React.Component {
489
426
  windowName: finsembleWindow.name,
490
427
  uuid: finsembleWindow.uuid,
491
428
  };
492
- return (React.createElement(EditTab, null,
493
- React.createElement("div", { draggable: "true", onDragStart: (e) => {
494
- FSBL.Clients.Logger.system.debug("Tab drag start - TITLE");
495
- let activeIdentifier = finsembleWindow.identifier;
496
- activeIdentifier.title = finsembleWindow.windowOptions.title;
497
- this.startDrag(e, activeIdentifier);
498
- }, onDragEnd: this.stopDrag, "data-hover": this.state.hoverState, className: "fsbl-header-title" },
499
- React.createElement(FinsembleHoverDetector, { edge: "top", hoverAction: this.hoverAction.bind(this) }),
500
- React.createElement(Title, { onUpdate: this.props.onTitleUpdated, windowIdentifier: windowIdentifier }))));
429
+ return (React.createElement("div", { draggable: "true", onDragStart: (e) => {
430
+ FSBL.Clients.Logger.system.debug("Tab drag start - TITLE");
431
+ let activeIdentifier = finsembleWindow.identifier;
432
+ activeIdentifier.title = finsembleWindow.windowOptions.title;
433
+ this.startDrag(e, activeIdentifier);
434
+ }, onDragEnd: this.stopDrag, "data-hover": this.state.hoverState, className: "fsbl-header-title" },
435
+ React.createElement(FinsembleHoverDetector, { edge: "top", hoverAction: this.hoverAction.bind(this) }),
436
+ React.createElement(Title, { onUpdate: this.props.onTitleUpdated, windowIdentifier: windowIdentifier })));
501
437
  }
502
438
  renderTabs() {
503
439
  let titleWidth = this.state.tabWidth - ICON_AREA - CLOSE_BUTTON_MARGIN;
504
- return this.state.tabs.map((tab) => (React.createElement(EditTab, { tabWidth: this.state.tabWidth, key: tab.windowName, tab: tab, setActiveTab: this.setActiveTab },
505
- React.createElement(Tab, { draggable: "true", key: tab.windowName, className: this.getTabClasses(tab), onDragStart: (e, identifier) => {
506
- FSBL.Clients.Logger.system.debug("Tab drag - TAB", identifier.windowName);
507
- this.startDrag(e, identifier);
508
- }, onDrop: this.drop, onDragEnd: this.stopDrag, onTabClose: () => {
509
- this.onTabClosed(tab);
510
- }, onTabDraggedOver: this.onTabDraggedOver, listenForDragOver: this.props.listenForDragOver, tabWidth: this.state.tabWidth, titleWidth: titleWidth, windowIdentifier: tab, updateTitle: this.updateTitle }))));
440
+ return this.state.tabs.map((tab) => (React.createElement(Tab, { draggable: "true", key: tab.windowName, className: this.getTabClasses(tab), onClick: () => {
441
+ this.setActiveTab(tab);
442
+ }, onDragStart: (e, identifier) => {
443
+ FSBL.Clients.Logger.system.debug("Tab drag - TAB", identifier.windowName);
444
+ this.startDrag(e, identifier);
445
+ }, onDrop: this.drop, onDragEnd: this.stopDrag, onTabClose: () => {
446
+ this.onTabClosed(tab);
447
+ }, onTabDraggedOver: this.onTabDraggedOver, listenForDragOver: this.props.listenForDragOver, tabWidth: this.state.tabWidth, titleWidth: titleWidth, windowIdentifier: tab })));
511
448
  }
512
449
  }
513
450
  //# sourceMappingURL=TabList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabList.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAUxC,IAAI,SAAS,GAAG,GAAG,CAAC;AAEpB,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,MAAM,mBAAmB,GAAG,CAC3B,MAOC,EACD,EAAe,EACd,EAAE;IACH,MAAM,oBAAoB,GAAG,GAAG,EAAE;QAEjC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,oCAAoC,EAAE,MAAM,EAAE,GAAG,EAAE;YAClF,EAAE,aAAF,EAAE,uBAAF,EAAE,EAAI,CAAC;QACR,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;IAClF,CAAC,CAAC;IAEF,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE;QAC1B,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAA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AAE,GAAG,EAAE;oBAChB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACvB,CAAC,EACD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,EACrB,WAAW,EAAE,IAAI,CAAC,WAAW,GAC5B,CACO,CACV,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import * as React from \"react\";\r\nimport { StandardError } from \"@finsemble/finsemble-core/types/types\";\r\nimport Tab from \"./Tab\";\r\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\r\nimport { Store, Actions } from \"../../stores/windowTitleBarStore\";\r\nimport { Title } from \"../windowTitle\";\r\nimport _throttle from \"lodash/throttle\";\r\nimport {\r\n\tEditTabProps,\r\n\tTabListProps,\r\n\tTabListState,\r\n\tGetTabWidthParams,\r\n\tTabProperties,\r\n} from \"../../../../types/windowTitleBar\";\r\nimport { WindowIdentifier } from \"@finsemble/finsemble-core\";\r\n\r\nlet TAB_WIDTH = 300;\r\n// Next two items are for calculating how large the title should be within a tab.\r\nconst ICON_AREA = 16;\r\nconst CLOSE_BUTTON_MARGIN = 12;\r\nconst MINIMUM_TAB_SIZE = 100;\r\n\r\nconst stopTilingOrTabbing = (\r\n\tparams: {\r\n\t\tmousePosition?: {\r\n\t\t\tx: number;\r\n\t\t\ty: number;\r\n\t\t};\r\n\t\taction?: string;\r\n\t\tallowDropOnSelf?: boolean;\r\n\t},\r\n\tcb?: () => void\r\n) => {\r\n\tconst transmitAndQueryStop = () => {\r\n\t\t// docking service has a responder for the query\r\n\t\tFSBL.Clients.RouterClient.query(\"DockingService.stopTilingOrTabbing\", params, () => {\r\n\t\t\tcb?.();\r\n\t\t});\r\n\t\t// WindowTitleBarShell is listening for transmit events so that it knows when tiling/tabbing has stopped\r\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.stopTilingOrTabbing\", params);\r\n\t};\r\n\t// Get the mouse position if not passed in.\r\n\tif (!params.mousePosition) {\r\n\t\tfin.desktop.System.getMousePosition((position) => {\r\n\t\t\tparams.mousePosition = position;\r\n\t\t\ttransmitAndQueryStop();\r\n\t\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\r\n\t\t\tif (!params.allowDropOnSelf) cb?.();\r\n\t\t});\r\n\t} else {\r\n\t\ttransmitAndQueryStop();\r\n\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\r\n\t\tif (!params.allowDropOnSelf) cb?.();\r\n\t}\r\n};\r\n\r\nconst isPointInBox = (\r\n\tpoint: {\r\n\t\tx: number;\r\n\t\ty: number;\r\n\t},\r\n\tbox: {\r\n\t\ttop: number;\r\n\t\tleft: number;\r\n\t\tbottom?: number;\r\n\t\tright?: number;\r\n\t\twidth: number;\r\n\t\theight: number;\r\n\t}\r\n): boolean => {\r\n\tif (!box.bottom) box.bottom = box.top + box.height;\r\n\tif (!box.right) box.right = box.left + box.width;\r\n\treturn point.x > box.left && point.x < box.right && point.y < box.bottom && point.y > box.top;\r\n};\r\n\r\n/**\r\n * The wrapper component for tab renaming\r\n * @param {*} props\r\n */\r\nfunction EditTab(props: EditTabProps) {\r\n\tconst [editingTitle, setEditingTitle] = React.useState(false);\r\n\tconst [clickTimeout, setClickTimeout] = React.useState<NodeJS.Timeout | undefined>(undefined);\r\n\r\n\tReact.useEffect(() => {\r\n\t\t//Update document title cause after restart it has a default value which doesn't equal to persisted title.\r\n\t\tFSBL.Clients.WindowClient.getComponentState<string>({ field: \"persistedTitle\" }, (err, title) => {\r\n\t\t\tif (title) document.title = title;\r\n\t\t});\r\n\t}, []);\r\n\r\n\tconst inputEl = React.useRef<HTMLInputElement>(null);\r\n\tconst updateTabTitle = (e: React.KeyboardEvent<HTMLInputElement> | React.FocusEvent<HTMLInputElement>) => {\r\n\t\tconst title = (e.target as HTMLInputElement).value;\r\n\t\tFSBL.Clients.WindowClient.setComponentState(\r\n\t\t\t{\r\n\t\t\t\tfield: \"persistedTitle\",\r\n\t\t\t\tvalue: title,\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tdocument.title = title;\r\n\t\t\t\tsetEditingTitle(false);\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tconst beginEditing = async () => {\r\n\t\tawait setEditingTitle(true);\r\n\t\tawait inputEl?.current?.focus();\r\n\r\n\t\tconst { wrap: win } = await FSBL.FinsembleWindow.getInstance(FSBL.Clients.WindowClient.getWindowIdentifier());\r\n\t\twin.getComponentState({ field: \"persistedTitle\" }, (error: any, persistedTitle: any) => {\r\n\t\t\tif (persistedTitle && inputEl?.current) {\r\n\t\t\t\tinputEl.current.value = persistedTitle;\r\n\t\t\t} else {\r\n\t\t\t\twin.getOptions((err: any, data: any) => {\r\n\t\t\t\t\tif (inputEl?.current) {\r\n\t\t\t\t\t\tinputEl.current.value = data.title;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tconst clickHandler = () => {\r\n\t\tconst allowTabEditing = Store.getValue(\"allowTabEditing\");\r\n\r\n\t\tif (clickTimeout) {\r\n\t\t\t// double click\r\n\t\t\tif (allowTabEditing) {\r\n\t\t\t\tbeginEditing();\r\n\t\t\t}\r\n\t\t} else if (!editingTitle) {\r\n\t\t\t// single click\r\n\t\t\tlet timeout = setTimeout(() => {\r\n\t\t\t\tclearTimeout(clickTimeout);\r\n\t\t\t\tsetClickTimeout(undefined);\r\n\t\t\t}, 500);\r\n\t\t\tsetClickTimeout(timeout);\r\n\t\t\tif (props.tab && props.setActiveTab) props.setActiveTab(props.tab);\r\n\t\t}\r\n\t};\r\n\r\n\tconst blurHandler = (e: React.FocusEvent<HTMLInputElement>) => {\r\n\t\tupdateTabTitle(e);\r\n\t};\r\n\r\n\tconst keyDownHandler = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n\t\te.key === \"Enter\" && updateTabTitle(e);\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div\r\n\t\t\tid=\"tab-editor\"\r\n\t\t\t//We can't use Click and Dblclick events together cause for one dblclick fires two click events which close title editor.\r\n\t\t\t//Workaround with setTimeout should resolve this behaviour.\r\n\t\t\tonClick={clickHandler}\r\n\t\t>\r\n\t\t\t{editingTitle ? (\r\n\t\t\t\t<div className=\"fsbl-tab fsbl-active-tab\" style={{ width: props.tabWidth || \"auto\" }}>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\tref={inputEl}\r\n\t\t\t\t\t\tonBlur={blurHandler}\r\n\t\t\t\t\t\tonKeyDown={keyDownHandler}\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tclassName=\"tab__input\"\r\n\t\t\t\t\t\tmaxLength={32}\r\n\t\t\t\t\t/>\r\n\t\t\t\t</div>\r\n\t\t\t) : (\r\n\t\t\t\tprops.children\r\n\t\t\t)}\r\n\t\t</div>\r\n\t);\r\n}\r\n\r\nexport class TabList extends React.Component<TabListProps, TabListState> {\r\n\tmousePositionOnDragEnd: { x: number; y: number };\r\n\r\n\tonWindowResizeThrottled: (this: Window, ev: UIEvent) => any;\r\n\r\n\tupdateTitle: EventTarget;\r\n\r\n\tconstructor(props: TabListProps) {\r\n\t\tsuper(props);\r\n\t\tlet initialState = Store.getValues([\"activeTab\", \"tabs\"]);\r\n\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\r\n\r\n\t\tif (activeIdentifier) {\r\n\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\r\n\t\t}\r\n\t\tthis.state = {\r\n\t\t\ttranslateX: 0,\r\n\t\t\ttabs: initialState.tabs,\r\n\t\t\tactiveTab: activeIdentifier as TabProperties,\r\n\t\t\tboundingBox: {\r\n\t\t\t\tright: 0,\r\n\t\t\t\tleft: 0,\r\n\t\t\t\ttop: 0,\r\n\t\t\t\tbottom: 0,\r\n\t\t\t\theight: 0,\r\n\t\t\t\twidth: 0,\r\n\t\t\t},\r\n\t\t\tiAmDragging: false,\r\n\t\t\thoverState: \"false\",\r\n\t\t\ttabWidth: TAB_WIDTH,\r\n\t\t\thoveredTabIndex: undefined,\r\n\t\t};\r\n\t\tthis.onWindowResizeThrottled = () => {};\r\n\t\tthis.bindCorrectContext();\r\n\t\tthis.mousePositionOnDragEnd = {\r\n\t\t\tx: 0,\r\n\t\t\ty: 0,\r\n\t\t};\r\n\t\tthis.updateTitle = new EventTarget();\r\n\t}\r\n\r\n\t/**\r\n\t * Make sure that _this_ is correct inside of our event handlers.\r\n\t */\r\n\tbindCorrectContext() {\r\n\t\tthis.startDrag = this.startDrag.bind(this);\r\n\t\tthis.stopDrag = this.stopDrag.bind(this);\r\n\t\tthis.cancelTabbing = this.cancelTabbing.bind(this);\r\n\t\tthis.drop = this.drop.bind(this);\r\n\t\tthis.dragOver = this.dragOver.bind(this);\r\n\t\tthis.dragLeave = this.dragLeave.bind(this);\r\n\t\tthis.onMouseWheel = this.onMouseWheel.bind(this);\r\n\t\tthis.renderTitle = this.renderTitle.bind(this);\r\n\t\tthis.renderTabs = this.renderTabs.bind(this);\r\n\t\tthis.findTabIndex = this.findTabIndex.bind(this);\r\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\r\n\t\tthis.onTabAdded = this.onTabAdded.bind(this);\r\n\t\tthis.onTabClosed = this.onTabClosed.bind(this);\r\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\r\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\r\n\t\tthis.onTabDraggedOver = this.onTabDraggedOver.bind(this);\r\n\t\tthis.isTabRegionOverflowing = this.isTabRegionOverflowing.bind(this);\r\n\t\tthis.onWindowResize = this.onWindowResize.bind(this);\r\n\t\tthis.onWindowResizeThrottled = _throttle(this.onWindowResize, 100);\r\n\t\tthis.getTabWidth = this.getTabWidth.bind(this);\r\n\t\tthis.setTabListTranslateX = this.setTabListTranslateX.bind(this);\r\n\t\tthis.onTabListTranslateChanged = this.onTabListTranslateChanged.bind(this);\r\n\t}\r\n\r\n\tgetTabWidth(params: GetTabWidthParams = {}) {\r\n\t\tlet { boundingBox, tabList } = params;\r\n\t\tif (typeof tabList === \"undefined\") {\r\n\t\t\ttabList = this.state.tabs;\r\n\t\t}\r\n\t\tif (typeof boundingBox === \"undefined\") {\r\n\t\t\tboundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\r\n\t\t}\r\n\t\tif (typeof boundingBox.right === \"undefined\") {\r\n\t\t\treturn TAB_WIDTH;\r\n\t\t}\r\n\t\tlet containerWidth = boundingBox.right - boundingBox.left;\r\n\t\tlet newTabWidth = containerWidth / tabList.length;\r\n\r\n\t\treturn newTabWidth < MINIMUM_TAB_SIZE ? MINIMUM_TAB_SIZE : newTabWidth;\r\n\t}\r\n\r\n\t/**\r\n\t * Resize handler. Calculates the space that the center-region is taking up. May be used to scale tabs proportionally.\r\n\t */\r\n\tonWindowResize() {\r\n\t\tlet bounds = (this.refs.Me as HTMLElement).getBoundingClientRect();\r\n\t\tthis.setState({\r\n\t\t\tboundingBox: bounds,\r\n\t\t\ttabWidth: this.getTabWidth(),\r\n\t\t});\r\n\t}\r\n\r\n\tfindTabIndex(tab: TabProperties) {\r\n\t\treturn this.state.tabs.findIndex((el) => tab.windowName === el.windowName && tab.uuid === el.uuid);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * Function that's called when this component fires the onDragStart event, this will start the tiling or tabbing process\r\n\t *\r\n\t * @param e The SyntheticEvent created by React when the startdrag event is called\r\n\t * @memberof windowTitleBar\r\n\t */\r\n\tstartDrag(e: React.DragEvent<HTMLDivElement>, windowIdentifier: WindowIdentifier) {\r\n\t\tthis.setState({\r\n\t\t\tiAmDragging: true,\r\n\t\t});\r\n\t\te.dataTransfer.setData(\"application/fsbl-tab-data\", JSON.stringify(windowIdentifier));\r\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.startTilingOrTabbing\", {\r\n\t\t\twindowIdentifier,\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Called when the react component detects a drop (or stop drag, which is equivalent)\r\n\t *\r\n\t * @param e The SyntheticEvent created by React when the stopdrag event is called\r\n\t * @memberof windowTitleBar\r\n\t */\r\n\tstopDrag(e: React.DragEvent<HTMLDivElement>) {\r\n\t\t// We don't want onDropHandler() in windowTitleBarComponent.jsx\r\n\t\t// to handle this drop event, so we call event.stopPropagation().\r\n\t\te.stopPropagation();\r\n\t\tFSBL.Clients.Logger.system.debug(\"Tab stopDrag.\");\r\n\t\tthis.mousePositionOnDragEnd = {\r\n\t\t\tx: e.nativeEvent.screenX,\r\n\t\t\ty: e.nativeEvent.screenY,\r\n\t\t};\r\n\r\n\t\tconst { boundingBox } = this.state;\r\n\t\tfinsembleWindow.getBounds((err, bounds) => {\r\n\t\t\t// We ONLY want to know if we're in the tab region!\r\n\t\t\tconst tabRegion = {\r\n\t\t\t\ttop: boundingBox.top + (bounds?.top ?? 0),\r\n\t\t\t\tbottom: boundingBox.bottom + (bounds?.top ?? 0),\r\n\t\t\t\tleft: boundingBox.left + (bounds?.left ?? 0),\r\n\t\t\t\tright: boundingBox.right + (bounds?.left ?? 0),\r\n\t\t\t\twidth: 0,\r\n\t\t\t\theight: 0,\r\n\t\t\t};\r\n\t\t\tif (!isPointInBox(this.mousePositionOnDragEnd, tabRegion)) {\r\n\t\t\t\t// allow for a 50ms delay so this message goes after a drop message from a target window if tabbing\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tstopTilingOrTabbing({\r\n\t\t\t\t\t\tmousePosition: this.mousePositionOnDragEnd,\r\n\t\t\t\t\t});\r\n\t\t\t\t}, 50);\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\tiAmDragging: false,\r\n\t\t\t\t});\r\n\t\t\t\tthis.onWindowResize();\r\n\t\t\t} else {\r\n\t\t\t\t// sometimes a tab gets dropped in a bad spot where no action gets taken and we get stuck in tiling mode\r\n\t\t\t\t// to make sure nothing bad happens, call cancel after a similar 50ms delay\r\n\t\t\t\t// If some action was taken, this will be ignored by Finsemble\r\n\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\r\n\t\t\t\t\t\twindowIdentifier: this.state.activeTab,\r\n\t\t\t\t\t});\r\n\t\t\t\t}, 50);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Helper function that will pull data from a drop event, parse it, and return it.\r\n\t * @param {event} e\r\n\t */\r\n\textractWindowIdentifier(e: React.DragEvent<HTMLElement>) {\r\n\t\ttry {\r\n\t\t\tlet identifier = JSON.parse(e.dataTransfer.getData(\"application/fsbl-tab-data\"));\r\n\t\t\t// If the \"identifier\" is formed properly, it'll have this properly. Otherwise, it's something else (e.g., share data, image, etc).\r\n\t\t\tif (typeof identifier.windowName !== \"undefined\") {\r\n\t\t\t\treturn identifier;\r\n\t\t\t} else if (identifier.waitForIdentifier) {\r\n\t\t\t\treturn identifier;\r\n\t\t\t} else {\r\n\t\t\t\tFSBL.Clients.Logger.system.error(\r\n\t\t\t\t\t\"Malformed drop object detected in windowTitleBar. Check tab dropping code. Expected windowIdentifier, got \",\r\n\t\t\t\t\tidentifier\r\n\t\t\t\t);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t} catch (e2) {\r\n\t\t\tFSBL.Clients.Logger.system.error(\r\n\t\t\t\t\"Error in 'extractWindowIdentifier'. Check TabRegion.jsx. Either there was no data in the event, or it was a circular object that caused JSON.parse to fail. Javascript Error:\",\r\n\t\t\t\te2\r\n\t\t\t);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Called when a drop event occurs on the tab region. We (hope) that this came from a tab. Could be a share icon, an image, something else - that's why we check to see if the identifier exists before doing anything.\r\n\t * @param {event} e\r\n\t */\r\n\tdrop(e?: React.DragEvent<HTMLElement>) {\r\n\t\tlet identifier: any;\r\n\t\tif (e) {\r\n\t\t\te.preventDefault();\r\n\t\t\te.stopPropagation();\r\n\t\t\tidentifier = this.extractWindowIdentifier(e);\r\n\t\t}\r\n\t\tFSBL.Clients.Logger.system.debug(\"Tab drag drop.\");\r\n\t\tif (!identifier) return; // the dropped item is not a tab\r\n\t\tif (this.state.tabs.length === 1 && identifier.windowName === finsembleWindow.name) {\r\n\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\r\n\t\t\t\twindowIdentifier: this.state.activeTab,\r\n\t\t\t});\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true, action: \"tabbing\" }, () => {\r\n\t\t\tFSBL.Clients.RouterClient.transmit(\"tabbingDragEnd\", { success: true });\r\n\t\t\tif (identifier && identifier.windowName) {\r\n\t\t\t\t// Calls a method defined inside of windowTitleBar.jsx.\r\n\t\t\t\tthis.onTabAdded(identifier, this.state.hoveredTabIndex);\r\n\t\t\t} else if (identifier && identifier.waitForIdentifier) {\r\n\t\t\t\tlet subscribeId: { subscribeID: string; topic: string };\r\n\t\t\t\tlet tabIdentifierSubscriber = (err: StandardError, response: { data: TabProperties }) => {\r\n\t\t\t\t\tif (!response.data.windowName) return;\r\n\t\t\t\t\tFSBL.Clients.RouterClient.unsubscribe(subscribeId);\r\n\t\t\t\t\tthis.onTabAdded(response.data, this.state.hoveredTabIndex);\r\n\t\t\t\t};\r\n\t\t\t\tsubscribeId = FSBL.Clients.RouterClient.subscribe(`Finsemble.${identifier.guid}`, tabIdentifierSubscriber);\r\n\t\t\t} else {\r\n\t\t\t\tFSBL.Clients.Logger.system.error(\r\n\t\t\t\t\t\"Unexpected drop event on window title bar. Check the 'drop' method on TabRegion.jsx.\"\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tisTabRegionOverflowing() {\r\n\t\tlet lastTab = {\r\n\t\t\tright: this.state.tabs.length * this.state.tabWidth,\r\n\t\t};\r\n\t\treturn lastTab.right + this.state.translateX > this.state.boundingBox.right - this.state.boundingBox.left;\r\n\t}\r\n\r\n\t/**\r\n\t * Event handler for when a user wheels inside of the tab region. We translate the deltaY that the event provides into horizontal movement. The translateX value that we return will be used in the render method below.\r\n\t * @param {event} e\r\n\t * This should probably be refactored into separate handlers for scroll and mousewheel to account for the differences in event properties.\r\n\t */\r\n\tonMouseWheel(e: React.WheelEvent) {\r\n\t\te.preventDefault();\r\n\t\tlet numTabs = this.state.tabs.length;\r\n\t\tlet translateX = 0;\r\n\t\t// If there's more than one tab, do some calculations, otherwise we aren't going to scroll this region, no matter how much the user wants us to.\r\n\t\tif (numTabs > 1) {\r\n\t\t\tlet currentX = (this.refs.Me as HTMLElement).scrollLeft;\r\n\t\t\tlet { boundingBox } = this.state;\r\n\t\t\t// Figure out position of first tab and last tab.\r\n\t\t\tlet firstTab = {\r\n\t\t\t\tleft: 0 + boundingBox.left,\r\n\t\t\t};\r\n\t\t\tlet lastTab = {\r\n\t\t\t\tright: numTabs * this.state.tabWidth,\r\n\t\t\t};\r\n\t\t\tlet deltaX = this.state.tabWidth / 3;\r\n\t\t\tif (e.nativeEvent.deltaY < 0) {\r\n\t\t\t\tdeltaX = 0 - deltaX;\r\n\t\t\t}\r\n\t\t\t// Mouses with high sensitivity will cause massive scroll amounts. We don't want to scroll more than one tab's width in a single mouse wheel, otherwise you risk missing a tab.\r\n\t\t\tif (Math.abs(deltaX) > this.state.tabWidth) {\r\n\t\t\t\tlet isNegative = false;\r\n\t\t\t\tif (deltaX < 0) {\r\n\t\t\t\t\tisNegative = true;\r\n\t\t\t\t}\r\n\t\t\t\tdeltaX = isNegative ? 0 - this.state.tabWidth : this.state.tabWidth;\r\n\t\t\t}\r\n\r\n\t\t\t// when we set scrollLeft on the element, this event fires. But there's no actual event. so stop.\r\n\t\t\tif (!e.nativeEvent.deltaY) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tlet originalDeltaY = e.nativeEvent.deltaY;\r\n\t\t\tlet deltaY = originalDeltaY;\r\n\t\t\tif (Math.abs(originalDeltaY) > this.state.tabWidth / 3) {\r\n\t\t\t\tdeltaY = this.state.tabWidth / 3;\r\n\t\t\t\tif (originalDeltaY < 0) {\r\n\t\t\t\t\tdeltaY = 0 - deltaY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttranslateX = deltaY + currentX;\r\n\t\t\tlet newRightForLastTab = lastTab.right + translateX;\r\n\t\t\tlet newLeftForFirstTab = firstTab.left + translateX;\r\n\t\t\t// Do not let the left of the first tab move to the right of the left edge of the bounding box.\r\n\t\t\tif (newLeftForFirstTab < 0) {\r\n\t\t\t\treturn this.scrollToFirstTab();\r\n\t\t\t} else if (e.nativeEvent.deltaY < 0 && newRightForLastTab <= boundingBox.right) {\r\n\t\t\t\t// ONLY IF the user is scrolling from right-to-left (deltaY will be negative). IF they try to do that, do not allow the right edge of the last tab to detach.\r\n\t\t\t\treturn this.scrollToLastTab();\r\n\t\t\t}\r\n\t\t\t// Else, the translation is okay. We're in the middle of our list and the first and last tabs aren't being rendered improperly.\r\n\t\t\ttranslateX < 0 ? (translateX = 0) : translateX;\r\n\t\t\tthis.setState({ translateX });\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Scrolls to our active tab.\r\n\t */\r\n\tscrollToActiveTab() {\r\n\t\tthis.scrollToTab(this.state.activeTab);\r\n\t}\r\n\r\n\t/**\r\n\t * Scrolls to the first tab in our list of tabs.\r\n\t */\r\n\tscrollToFirstTab() {\r\n\t\tlet firstTab = this.state.tabs[0];\r\n\t\tthis.scrollToTab(firstTab);\r\n\t}\r\n\r\n\t/**\r\n\t * Scrolls to the last tab in our list of tabs\r\n\t */\r\n\tscrollToLastTab() {\r\n\t\tlet lastTab = this.state.tabs[this.state.tabs.length - 1];\r\n\t\tthis.scrollToTab(lastTab);\r\n\t}\r\n\r\n\t/**\r\n\t * Function that will horizontally scroll the tab region so that the right edge of the tab lines up with the right edge of the tab region.\r\n\t * @param {} tab\r\n\t */\r\n\tscrollToTab(tab: TabProperties) {\r\n\t\t// 'BoundingBox' is just the boundingClientRect of the tab region. It is, in essence, the center part of the windowTitleBar.\r\n\t\tlet { boundingBox } = this.state;\r\n\r\n\t\tlet tabIndex = this.state.tabs.findIndex((el) => el.windowName === tab.windowName && el.uuid === tab.uuid);\r\n\t\tif (tabIndex > -1) {\r\n\t\t\tlet leftEdgeOfTab = tabIndex * this.state.tabWidth;\r\n\t\t\tlet rightEdgeOfTab = leftEdgeOfTab + this.state.tabWidth;\r\n\t\t\tlet translateX = rightEdgeOfTab;\r\n\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box. We also account for the 30 px region on the right.\r\n\r\n\t\t\t// If there's no overflow, we don't scroll.\r\n\t\t\tif (rightEdgeOfTab < boundingBox.right) {\r\n\t\t\t\ttranslateX = 0;\r\n\t\t\t} else {\r\n\t\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box.\r\n\t\t\t\ttranslateX = boundingBox.right - boundingBox.left - rightEdgeOfTab;\r\n\t\t\t\t// If there's no overflow, we don't scroll.\r\n\t\t\t\tif (rightEdgeOfTab < boundingBox.right) {\r\n\t\t\t\t\ttranslateX = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tthis.setTabListTranslateX(translateX);\r\n\t\t}\r\n\t}\r\n\r\n\tsetTabListTranslateX(translateX: number) {\r\n\t\tActions.setTabListScrollPosition(translateX);\r\n\t}\r\n\r\n\t/**\r\n\t * Someone is dragging _something_ over the tab region. We respond by rendering the ghost tab.\r\n\t * @param {event} e\r\n\t */\r\n\tdragOver(e: React.DragEvent) {\r\n\t\te.preventDefault();\r\n\t}\r\n\r\n\t/**\r\n\t * Triggered when the user moves their mouse out of the tabRegion after a dragOver event happens. When they leave, we hide our placeholder tab.\r\n\t * @param {event} e\r\n\t */\r\n\tdragLeave(e: React.DragEvent<HTMLDivElement>) {\r\n\t\tlet boundingRect = this.state.boundingBox;\r\n\t\tif (!isPointInBox({ x: e.screenX, y: e.screenY }, boundingRect)) {\r\n\t\t\tthis.setState({\r\n\t\t\t\thoveredTabIndex: undefined,\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Set to a timeout. An event is sent to the RouterClient which will be handled by the drop handler on the window.\r\n\t * In the event that a drop handler never fires to stop tiling or tabbing, this will take care of it.\r\n\t *\r\n\t * @memberof windowTitleBar\r\n\t */\r\n\tcancelTabbing() {\r\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true });\r\n\t\tthis.onWindowResize();\r\n\t}\r\n\r\n\t/**\r\n\t * Basically exists just to keep the render method clean. Gives conditional classes to the active tab.\r\n\t * @param {tab} tab\r\n\t */\r\n\tgetTabClasses(tab: TabProperties) {\r\n\t\tlet classes = \"fsbl-tab\";\r\n\t\tlet tabIndex = this.findTabIndex(tab);\r\n\t\tif (tabIndex === this.state.hoveredTabIndex) classes = `${classes} ghost-tab`;\r\n\t\tif (this.state.activeTab && tab.windowName === this.state.activeTab.windowName) {\r\n\t\t\tclasses = `${classes} fsbl-active-tab`;\r\n\t\t}\r\n\t\treturn classes;\r\n\t}\r\n\r\n\tonTabDraggedOver(e: React.DragEvent<HTMLElement>, tabDraggedOver: TabProperties) {\r\n\t\te.preventDefault();\r\n\t\t// Find index of tab.\r\n\t\tlet tabIndex = this.findTabIndex(tabDraggedOver);\r\n\t\tthis.setState({\r\n\t\t\thoveredTabIndex: tabIndex,\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * OnClick handler for the close button on individual tabs.\r\n\t * @PLACEHOLDER will interact with tabbing API\r\n\t * @param {*} tab\r\n\t */\r\n\tonTabClosed(identifier: TabProperties) {\r\n\t\tActions.closeTab(identifier);\r\n\t}\r\n\r\n\t/**\r\n\t * drop handler for the tab region.\r\n\t * @param {*} tab\r\n\t */\r\n\tonTabAdded(identifier: TabProperties, newIndex: number | undefined) {\r\n\t\tif (newIndex === -1) {\r\n\t\t\tnewIndex = undefined;\r\n\t\t}\r\n\r\n\t\tlet myIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\r\n\t\tif (myIdentifier) {\r\n\t\t\tmyIdentifier.title = finsembleWindow.windowOptions.title;\r\n\t\t}\r\n\t\tif (this.state.tabs.length === 1 && identifier.windowName == myIdentifier.windowName) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (typeof newIndex === \"number\") {\r\n\t\t\tActions.reorderTab(identifier, newIndex);\r\n\t\t}\r\n\t\tthis.setState({\r\n\t\t\thoveredTabIndex: undefined,\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * OnClick handler for individual tabs.\r\n\t * @PLACEHOLDER will interact with tabbing API\r\n\t * @param {*} tab\r\n\t */\r\n\tsetActiveTab(tab: TabProperties) {\r\n\t\tActions.setActiveTab(tab);\r\n\t}\r\n\r\n\tonTabsChanged(err: StandardError, response: { value: TabProperties[] }) {\r\n\t\tlet { value } = response;\r\n\t\tthis.setState({\r\n\t\t\ttabs: value,\r\n\t\t\ttabWidth: this.getTabWidth({ tabList: value }),\r\n\t\t});\r\n\t\tthis.updateTitle.dispatchEvent(new Event(\"title-changed\"));\r\n\t}\r\n\r\n\tonTabListTranslateChanged(err: StandardError, response: { value: number }) {\r\n\t\tlet { value } = response;\r\n\t\tthis.setState({\r\n\t\t\ttranslateX: value,\r\n\t\t});\r\n\t}\r\n\r\n\tUNSAFE_componentWillMount() {\r\n\t\t// Store.addListener({ field: \"activeTab\" }, this.onActiveTabChanged);\r\n\t\tStore.addListener({ field: \"tabs\" }, this.onTabsChanged);\r\n\t\tStore.addListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\twindow.addEventListener(\"resize\", this.onWindowResizeThrottled);\r\n\t\tlet boundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\r\n\t\tthis.setState({\r\n\t\t\tboundingBox: boundingBox,\r\n\t\t\ttabWidth: this.getTabWidth({ boundingBox }),\r\n\t\t});\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\t// Store.removeListener({ field: \"activeTab\" }, this.onActiveTabChanged);\r\n\t\tStore.removeListener({ field: \"tabs\" }, this.onTabsChanged);\r\n\t\tStore.removeListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\r\n\t\twindow.removeEventListener(\"resize\", this.onWindowResizeThrottled);\r\n\t}\r\n\r\n\thoverAction(newHoverState: string) {\r\n\t\tthis.setState({ hoverState: newHoverState });\r\n\t}\r\n\r\n\trender() {\r\n\t\tlet { translateX } = this.state;\r\n\t\ttranslateX = Math.abs(translateX);\r\n\t\t// If we have just 1 tab, we render the title. Unless someone is dragging a tab around - in that case, we will render the tab view, even though we only have 1.\r\n\r\n\t\tlet componentToRender = \"title\";\r\n\t\tif (this.state.tabs.length === 1 && this.props.listenForDragOver && !this.state.iAmDragging) {\r\n\t\t\tcomponentToRender = \"tabs\";\r\n\t\t}\r\n\t\tif (this.state.tabs.length > 1) {\r\n\t\t\tcomponentToRender = \"tabs\";\r\n\t\t}\r\n\t\t// Cleanup in case we were translated before closing the second to last tab. This left-aligns the title.\r\n\t\tif (componentToRender === \"title\") {\r\n\t\t\ttranslateX = 0;\r\n\t\t}\r\n\r\n\t\tif (this.refs.Me) {\r\n\t\t\t(this.refs.Me as HTMLElement).scrollLeft = translateX;\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t<div\r\n\t\t\t\tref=\"Me\"\r\n\t\t\t\tonDragLeave={this.dragLeave}\r\n\t\t\t\tclassName={this.props.className}\r\n\t\t\t\tonWheel={this.onMouseWheel}\r\n\t\t\t\tonScroll={(e) => {\r\n\t\t\t\t\tthis.onMouseWheel(e as unknown as React.WheelEvent);\r\n\t\t\t\t}}\r\n\t\t\t\tonDrop={this.drop}\r\n\t\t\t\tonDragOver={this.dragOver}\r\n\t\t\t>\r\n\t\t\t\t<div className=\"tab-region-wrapper\">\r\n\t\t\t\t\t{componentToRender === \"title\" && this.renderTitle()}\r\n\t\t\t\t\t{componentToRender === \"tabs\" && this.renderTabs()}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Function to render the title. Helps keep the render code clean.\r\n\t */\r\n\trenderTitle() {\r\n\t\tconst windowIdentifier: WindowIdentifier = {\r\n\t\t\twindowName: finsembleWindow.name,\r\n\t\t\tuuid: finsembleWindow.uuid,\r\n\t\t};\r\n\t\treturn (\r\n\t\t\t<EditTab>\r\n\t\t\t\t<div\r\n\t\t\t\t\tdraggable=\"true\"\r\n\t\t\t\t\tonDragStart={(e) => {\r\n\t\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag start - TITLE\");\r\n\t\t\t\t\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\r\n\t\t\t\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\r\n\t\t\t\t\t\tthis.startDrag(e, activeIdentifier);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonDragEnd={this.stopDrag}\r\n\t\t\t\t\tdata-hover={this.state.hoverState}\r\n\t\t\t\t\tclassName={\"fsbl-header-title\"}\r\n\t\t\t\t>\r\n\t\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\r\n\t\t\t\t\t<Title onUpdate={this.props.onTitleUpdated} windowIdentifier={windowIdentifier}></Title>\r\n\t\t\t\t</div>\r\n\t\t\t</EditTab>\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the array of tabs.\r\n\t * @param {*} props\r\n\t */\r\n\trenderTabs() {\r\n\t\tlet titleWidth = this.state.tabWidth - ICON_AREA - CLOSE_BUTTON_MARGIN;\r\n\r\n\t\treturn this.state.tabs.map((tab) => (\r\n\t\t\t<EditTab tabWidth={this.state.tabWidth} key={tab.windowName} tab={tab} setActiveTab={this.setActiveTab}>\r\n\t\t\t\t<Tab\r\n\t\t\t\t\tdraggable=\"true\"\r\n\t\t\t\t\tkey={tab.windowName} // this is a unique identifier for React so it knows when to update the DOM\r\n\t\t\t\t\tclassName={this.getTabClasses(tab)}\r\n\t\t\t\t\tonDragStart={(e, identifier) => {\r\n\t\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag - TAB\", identifier.windowName);\r\n\t\t\t\t\t\tthis.startDrag(e, identifier);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonDrop={this.drop}\r\n\t\t\t\t\tonDragEnd={this.stopDrag}\r\n\t\t\t\t\tonTabClose={() => {\r\n\t\t\t\t\t\tthis.onTabClosed(tab);\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tonTabDraggedOver={this.onTabDraggedOver}\r\n\t\t\t\t\tlistenForDragOver={this.props.listenForDragOver}\r\n\t\t\t\t\ttabWidth={this.state.tabWidth}\r\n\t\t\t\t\ttitleWidth={titleWidth}\r\n\t\t\t\t\twindowIdentifier={tab}\r\n\t\t\t\t\tupdateTitle={this.updateTitle}\r\n\t\t\t\t/>\r\n\t\t\t</EditTab>\r\n\t\t));\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"TabList.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MA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CAAC,EACD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,GACpB,CACF,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import * as React from \"react\";\nimport { StandardError } from \"@finsemble/finsemble-api/types/types\";\nimport Tab from \"./Tab\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { Store, Actions } from \"../../stores/windowTitleBarStore\";\nimport { Title } from \"../windowTitle\";\nimport _throttle from \"lodash/throttle\";\nimport { TabListProps, TabListState, GetTabWidthParams, TabProperties } from \"../../../../types/windowTitleBar\";\nimport { WindowIdentifier } from \"@finsemble/finsemble-api\";\n\nlet TAB_WIDTH = 300;\n// Next two items are for calculating how large the title should be within a tab.\nconst ICON_AREA = 16;\nconst CLOSE_BUTTON_MARGIN = 12;\nconst MINIMUM_TAB_SIZE = 100;\n\nconst stopTilingOrTabbing = (\n\tparams: {\n\t\tmousePosition?: {\n\t\t\tx: number;\n\t\t\ty: number;\n\t\t};\n\t\taction?: string;\n\t\tallowDropOnSelf?: boolean;\n\t},\n\tcb?: () => void\n) => {\n\tconst transmitAndQueryStop = () => {\n\t\t// docking service has a responder for the query\n\t\tFSBL.Clients.RouterClient.query(\"DockingService.stopTilingOrTabbing\", params, () => {\n\t\t\tcb?.();\n\t\t});\n\t\t// WindowTitleBarShell is listening for transmit events so that it knows when tiling/tabbing has stopped\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.stopTilingOrTabbing\", params);\n\t};\n\t// Get the mouse position if not passed in.\n\tif (!params.mousePosition) {\n\t\tfin.desktop.System.getMousePosition((position) => {\n\t\t\tparams.mousePosition = position;\n\t\t\ttransmitAndQueryStop();\n\t\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\t\tif (!params.allowDropOnSelf) cb?.();\n\t\t});\n\t} else {\n\t\ttransmitAndQueryStop();\n\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\tif (!params.allowDropOnSelf) cb?.();\n\t}\n};\n\nconst isPointInBox = (\n\tpoint: {\n\t\tx: number;\n\t\ty: number;\n\t},\n\tbox: {\n\t\ttop: number;\n\t\tleft: number;\n\t\tbottom?: number;\n\t\tright?: number;\n\t\twidth: number;\n\t\theight: number;\n\t}\n): boolean => {\n\tif (!box.bottom) box.bottom = box.top + box.height;\n\tif (!box.right) box.right = box.left + box.width;\n\treturn point.x > box.left && point.x < box.right && point.y < box.bottom && point.y > box.top;\n};\n\nexport class TabList extends React.Component<TabListProps, TabListState> {\n\tmousePositionOnDragEnd: { x: number; y: number };\n\n\tonWindowResizeThrottled: (this: Window, ev: UIEvent) => any;\n\n\tconstructor(props: TabListProps) {\n\t\tsuper(props);\n\t\tlet initialState = Store.getValues([\"activeTab\", \"tabs\"]);\n\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\n\t\tif (activeIdentifier) {\n\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tthis.state = {\n\t\t\ttranslateX: 0,\n\t\t\ttabs: initialState.tabs,\n\t\t\tactiveTab: activeIdentifier as TabProperties,\n\t\t\tboundingBox: {\n\t\t\t\tright: 0,\n\t\t\t\tleft: 0,\n\t\t\t\ttop: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\theight: 0,\n\t\t\t\twidth: 0,\n\t\t\t},\n\t\t\tiAmDragging: false,\n\t\t\thoverState: \"false\",\n\t\t\ttabWidth: TAB_WIDTH,\n\t\t\thoveredTabIndex: undefined,\n\t\t};\n\t\tthis.onWindowResizeThrottled = () => {};\n\t\tthis.bindCorrectContext();\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t};\n\t}\n\n\t/**\n\t * Make sure that _this_ is correct inside of our event handlers.\n\t */\n\tbindCorrectContext() {\n\t\tthis.startDrag = this.startDrag.bind(this);\n\t\tthis.stopDrag = this.stopDrag.bind(this);\n\t\tthis.cancelTabbing = this.cancelTabbing.bind(this);\n\t\tthis.drop = this.drop.bind(this);\n\t\tthis.dragOver = this.dragOver.bind(this);\n\t\tthis.dragLeave = this.dragLeave.bind(this);\n\t\tthis.onMouseWheel = this.onMouseWheel.bind(this);\n\t\tthis.renderTitle = this.renderTitle.bind(this);\n\t\tthis.renderTabs = this.renderTabs.bind(this);\n\t\tthis.findTabIndex = this.findTabIndex.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabAdded = this.onTabAdded.bind(this);\n\t\tthis.onTabClosed = this.onTabClosed.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\n\t\tthis.onTabDraggedOver = this.onTabDraggedOver.bind(this);\n\t\tthis.isTabRegionOverflowing = this.isTabRegionOverflowing.bind(this);\n\t\tthis.onWindowResize = this.onWindowResize.bind(this);\n\t\tthis.onWindowResizeThrottled = _throttle(this.onWindowResize, 100);\n\t\tthis.getTabWidth = this.getTabWidth.bind(this);\n\t\tthis.setTabListTranslateX = this.setTabListTranslateX.bind(this);\n\t\tthis.onTabListTranslateChanged = this.onTabListTranslateChanged.bind(this);\n\t}\n\n\tgetTabWidth(params: GetTabWidthParams = {}) {\n\t\tlet { boundingBox, tabList } = params;\n\t\tif (typeof tabList === \"undefined\") {\n\t\t\ttabList = this.state.tabs;\n\t\t}\n\t\tif (typeof boundingBox === \"undefined\") {\n\t\t\tboundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\t}\n\t\tif (typeof boundingBox.right === \"undefined\") {\n\t\t\treturn TAB_WIDTH;\n\t\t}\n\t\tlet containerWidth = boundingBox.right - boundingBox.left;\n\t\tlet newTabWidth = containerWidth / tabList.length;\n\n\t\treturn newTabWidth < MINIMUM_TAB_SIZE ? MINIMUM_TAB_SIZE : newTabWidth;\n\t}\n\n\t/**\n\t * Resize handler. Calculates the space that the center-region is taking up. May be used to scale tabs proportionally.\n\t */\n\tonWindowResize() {\n\t\tlet bounds = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: bounds,\n\t\t\ttabWidth: this.getTabWidth(),\n\t\t});\n\t}\n\n\tfindTabIndex(tab: TabProperties) {\n\t\treturn this.state.tabs.findIndex((el) => tab.windowName === el.windowName && tab.uuid === el.uuid);\n\t}\n\n\t/**\n\t *\n\t * Function that's called when this component fires the onDragStart event, this will start the tiling or tabbing process\n\t *\n\t * @param e The SyntheticEvent created by React when the startdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstartDrag(e: React.DragEvent<HTMLDivElement>, windowIdentifier: WindowIdentifier) {\n\t\tthis.setState({\n\t\t\tiAmDragging: true,\n\t\t});\n\t\te.dataTransfer.setData(\"application/fsbl-tab-data\", JSON.stringify(windowIdentifier));\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.startTilingOrTabbing\", {\n\t\t\twindowIdentifier,\n\t\t});\n\t}\n\n\t/**\n\t * Called when the react component detects a drop (or stop drag, which is equivalent)\n\t *\n\t * @param e The SyntheticEvent created by React when the stopdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstopDrag(e: React.DragEvent<HTMLDivElement>) {\n\t\t// We don't want onDropHandler() in windowTitleBarComponent.jsx\n\t\t// to handle this drop event, so we call event.stopPropagation().\n\t\te.stopPropagation();\n\t\tFSBL.Clients.Logger.system.debug(\"Tab stopDrag.\");\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: e.nativeEvent.screenX,\n\t\t\ty: e.nativeEvent.screenY,\n\t\t};\n\n\t\tconst { boundingBox } = this.state;\n\t\tfinsembleWindow.getBounds((err, bounds) => {\n\t\t\t// We ONLY want to know if we're in the tab region!\n\t\t\tconst tabRegion = {\n\t\t\t\ttop: boundingBox.top + (bounds?.top ?? 0),\n\t\t\t\tbottom: boundingBox.bottom + (bounds?.top ?? 0),\n\t\t\t\tleft: boundingBox.left + (bounds?.left ?? 0),\n\t\t\t\tright: boundingBox.right + (bounds?.left ?? 0),\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t\tif (!isPointInBox(this.mousePositionOnDragEnd, tabRegion)) {\n\t\t\t\t// allow for a 50ms delay so this message goes after a drop message from a target window if tabbing\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tstopTilingOrTabbing({\n\t\t\t\t\t\tmousePosition: this.mousePositionOnDragEnd,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t\tthis.setState({\n\t\t\t\t\tiAmDragging: false,\n\t\t\t\t});\n\t\t\t\tthis.onWindowResize();\n\t\t\t} else {\n\t\t\t\t// sometimes a tab gets dropped in a bad spot where no action gets taken and we get stuck in tiling mode\n\t\t\t\t// to make sure nothing bad happens, call cancel after a similar 50ms delay\n\t\t\t\t// If some action was taken, this will be ignored by Finsemble\n\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Helper function that will pull data from a drop event, parse it, and return it.\n\t * @param {event} e\n\t */\n\textractWindowIdentifier(e: React.DragEvent<HTMLElement>) {\n\t\ttry {\n\t\t\tlet identifier = JSON.parse(e.dataTransfer.getData(\"application/fsbl-tab-data\"));\n\t\t\t// If the \"identifier\" is formed properly, it'll have this properly. Otherwise, it's something else (e.g., share data, image, etc).\n\t\t\tif (typeof identifier.windowName !== \"undefined\") {\n\t\t\t\treturn identifier;\n\t\t\t} else if (identifier.waitForIdentifier) {\n\t\t\t\treturn identifier;\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Malformed drop object detected in windowTitleBar. Check tab dropping code. Expected windowIdentifier, got \",\n\t\t\t\t\tidentifier\n\t\t\t\t);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (e2) {\n\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\"Error in 'extractWindowIdentifier'. Check TabRegion.jsx. Either there was no data in the event, or it was a circular object that caused JSON.parse to fail. Javascript Error:\",\n\t\t\t\te2\n\t\t\t);\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Called when a drop event occurs on the tab region. We (hope) that this came from a tab. Could be a share icon, an image, something else - that's why we check to see if the identifier exists before doing anything.\n\t * @param {event} e\n\t */\n\tdrop(e?: React.DragEvent<HTMLElement>) {\n\t\tlet identifier: any;\n\t\tif (e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tidentifier = this.extractWindowIdentifier(e);\n\t\t}\n\t\tFSBL.Clients.Logger.system.debug(\"Tab drag drop.\");\n\t\tif (!identifier) return; // the dropped item is not a tab\n\t\tif (this.state.tabs.length === 1 && identifier.windowName === finsembleWindow.name) {\n\t\t\t// The source and destination tabs are the same\n\t\t\t//\n\t\t\t// Cancel the tabbing event\n\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t});\n\t\t\t// But also set \"iAmDragging\" to false in order to allow other tabs to be dragged in here\n\t\t\tthis.setState({\n\t\t\t\tiAmDragging: false,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true, action: \"tabbing\" }, () => {\n\t\t\tFSBL.Clients.RouterClient.transmit(\"tabbingDragEnd\", { success: true });\n\t\t\tif (identifier && identifier.windowName) {\n\t\t\t\t// Calls a method defined inside of windowTitleBar.jsx.\n\t\t\t\tthis.onTabAdded(identifier, this.state.hoveredTabIndex);\n\t\t\t} else if (identifier && identifier.waitForIdentifier) {\n\t\t\t\tlet subscribeId: { subscribeID: string; topic: string };\n\t\t\t\tlet tabIdentifierSubscriber = (err: StandardError, response: { data: TabProperties }) => {\n\t\t\t\t\tif (!response.data.windowName) return;\n\t\t\t\t\tFSBL.Clients.RouterClient.unsubscribe(subscribeId);\n\t\t\t\t\tthis.onTabAdded(response.data, this.state.hoveredTabIndex);\n\t\t\t\t};\n\t\t\t\tsubscribeId = FSBL.Clients.RouterClient.subscribe(`Finsemble.${identifier.guid}`, tabIdentifierSubscriber);\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Unexpected drop event on window title bar. Check the 'drop' method on TabRegion.jsx.\"\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\n\tisTabRegionOverflowing() {\n\t\tlet lastTab = {\n\t\t\tright: this.state.tabs.length * this.state.tabWidth,\n\t\t};\n\t\treturn lastTab.right + this.state.translateX > this.state.boundingBox.right - this.state.boundingBox.left;\n\t}\n\n\t/**\n\t * Event handler for when a user wheels inside of the tab region. We translate the deltaY that the event provides into horizontal movement. The translateX value that we return will be used in the render method below.\n\t * @param {event} e\n\t * This should probably be refactored into separate handlers for scroll and mousewheel to account for the differences in event properties.\n\t */\n\tonMouseWheel(e: React.WheelEvent) {\n\t\te.preventDefault();\n\t\tlet numTabs = this.state.tabs.length;\n\t\tlet translateX = 0;\n\t\t// If there's more than one tab, do some calculations, otherwise we aren't going to scroll this region, no matter how much the user wants us to.\n\t\tif (numTabs > 1) {\n\t\t\tlet currentX = (this.refs.Me as HTMLElement).scrollLeft;\n\t\t\tlet { boundingBox } = this.state;\n\t\t\t// Figure out position of first tab and last tab.\n\t\t\tlet firstTab = {\n\t\t\t\tleft: 0 + boundingBox.left,\n\t\t\t};\n\t\t\tlet lastTab = {\n\t\t\t\tright: numTabs * this.state.tabWidth,\n\t\t\t};\n\t\t\tlet deltaX = this.state.tabWidth / 3;\n\t\t\tif (e.nativeEvent.deltaY < 0) {\n\t\t\t\tdeltaX = 0 - deltaX;\n\t\t\t}\n\t\t\t// Mouses with high sensitivity will cause massive scroll amounts. We don't want to scroll more than one tab's width in a single mouse wheel, otherwise you risk missing a tab.\n\t\t\tif (Math.abs(deltaX) > this.state.tabWidth) {\n\t\t\t\tlet isNegative = false;\n\t\t\t\tif (deltaX < 0) {\n\t\t\t\t\tisNegative = true;\n\t\t\t\t}\n\t\t\t\tdeltaX = isNegative ? 0 - this.state.tabWidth : this.state.tabWidth;\n\t\t\t}\n\n\t\t\t// when we set scrollLeft on the element, this event fires. But there's no actual event. so stop.\n\t\t\tif (!e.nativeEvent.deltaY) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet originalDeltaY = e.nativeEvent.deltaY;\n\t\t\tlet deltaY = originalDeltaY;\n\t\t\tif (Math.abs(originalDeltaY) > this.state.tabWidth / 3) {\n\t\t\t\tdeltaY = this.state.tabWidth / 3;\n\t\t\t\tif (originalDeltaY < 0) {\n\t\t\t\t\tdeltaY = 0 - deltaY;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttranslateX = deltaY + currentX;\n\t\t\tlet newRightForLastTab = lastTab.right + translateX;\n\t\t\tlet newLeftForFirstTab = firstTab.left + translateX;\n\t\t\t// Do not let the left of the first tab move to the right of the left edge of the bounding box.\n\t\t\tif (newLeftForFirstTab < 0) {\n\t\t\t\treturn this.scrollToFirstTab();\n\t\t\t} else if (e.nativeEvent.deltaY < 0 && newRightForLastTab <= boundingBox.right) {\n\t\t\t\t// ONLY IF the user is scrolling from right-to-left (deltaY will be negative). IF they try to do that, do not allow the right edge of the last tab to detach.\n\t\t\t\treturn this.scrollToLastTab();\n\t\t\t}\n\t\t\t// Else, the translation is okay. We're in the middle of our list and the first and last tabs aren't being rendered improperly.\n\t\t\ttranslateX < 0 ? (translateX = 0) : translateX;\n\t\t\tthis.setState({ translateX });\n\t\t}\n\t}\n\n\t/**\n\t * Scrolls to our active tab.\n\t */\n\tscrollToActiveTab() {\n\t\tthis.scrollToTab(this.state.activeTab);\n\t}\n\n\t/**\n\t * Scrolls to the first tab in our list of tabs.\n\t */\n\tscrollToFirstTab() {\n\t\tlet firstTab = this.state.tabs[0];\n\t\tthis.scrollToTab(firstTab);\n\t}\n\n\t/**\n\t * Scrolls to the last tab in our list of tabs\n\t */\n\tscrollToLastTab() {\n\t\tlet lastTab = this.state.tabs[this.state.tabs.length - 1];\n\t\tthis.scrollToTab(lastTab);\n\t}\n\n\t/**\n\t * Function that will horizontally scroll the tab region so that the right edge of the tab lines up with the right edge of the tab region.\n\t * @param {} tab\n\t */\n\tscrollToTab(tab: TabProperties) {\n\t\t// 'BoundingBox' is just the boundingClientRect of the tab region. It is, in essence, the center part of the windowTitleBar.\n\t\tlet { boundingBox } = this.state;\n\n\t\tlet tabIndex = this.state.tabs.findIndex((el) => el.windowName === tab.windowName && el.uuid === tab.uuid);\n\t\tif (tabIndex > -1) {\n\t\t\tlet leftEdgeOfTab = tabIndex * this.state.tabWidth;\n\t\t\tlet rightEdgeOfTab = leftEdgeOfTab + this.state.tabWidth;\n\t\t\tlet translateX = rightEdgeOfTab;\n\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box. We also account for the 30 px region on the right.\n\n\t\t\t// If there's no overflow, we don't scroll.\n\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\ttranslateX = 0;\n\t\t\t} else {\n\t\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box.\n\t\t\t\ttranslateX = boundingBox.right - boundingBox.left - rightEdgeOfTab;\n\t\t\t\t// If there's no overflow, we don't scroll.\n\t\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\t\ttranslateX = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.setTabListTranslateX(translateX);\n\t\t}\n\t}\n\n\tsetTabListTranslateX(translateX: number) {\n\t\tActions.setTabListScrollPosition(translateX);\n\t}\n\n\t/**\n\t * Someone is dragging _something_ over the tab region. We respond by rendering the ghost tab.\n\t * @param {event} e\n\t */\n\tdragOver(e: React.DragEvent) {\n\t\te.preventDefault();\n\t}\n\n\t/**\n\t * Triggered when the user moves their mouse out of the tabRegion after a dragOver event happens. When they leave, we hide our placeholder tab.\n\t * @param {event} e\n\t */\n\tdragLeave(e: React.DragEvent<HTMLDivElement>) {\n\t\tlet boundingRect = this.state.boundingBox;\n\t\tif (!isPointInBox({ x: e.screenX, y: e.screenY }, boundingRect)) {\n\t\t\tthis.setState({\n\t\t\t\thoveredTabIndex: undefined,\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Set to a timeout. An event is sent to the RouterClient which will be handled by the drop handler on the window.\n\t * In the event that a drop handler never fires to stop tiling or tabbing, this will take care of it.\n\t *\n\t * @memberof windowTitleBar\n\t */\n\tcancelTabbing() {\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true });\n\t\tthis.onWindowResize();\n\t}\n\n\t/**\n\t * Basically exists just to keep the render method clean. Gives conditional classes to the active tab.\n\t * @param {tab} tab\n\t */\n\tgetTabClasses(tab: TabProperties) {\n\t\tlet classes = \"fsbl-tab\";\n\t\tlet tabIndex = this.findTabIndex(tab);\n\t\tif (tabIndex === this.state.hoveredTabIndex) classes = `${classes} ghost-tab`;\n\t\tif (this.state.activeTab && tab.windowName === this.state.activeTab.windowName) {\n\t\t\tclasses = `${classes} fsbl-active-tab`;\n\t\t}\n\t\treturn classes;\n\t}\n\n\tonTabDraggedOver(e: React.DragEvent<HTMLElement>, tabDraggedOver: TabProperties) {\n\t\te.preventDefault();\n\t\t// Find index of tab.\n\t\tlet tabIndex = this.findTabIndex(tabDraggedOver);\n\t\tthis.setState({\n\t\t\thoveredTabIndex: tabIndex,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for the close button on individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tonTabClosed(identifier: TabProperties) {\n\t\tActions.closeTab(identifier);\n\t}\n\n\t/**\n\t * drop handler for the tab region.\n\t * @param {*} tab\n\t */\n\tonTabAdded(identifier: TabProperties, newIndex: number | undefined) {\n\t\tif (newIndex === -1) {\n\t\t\tnewIndex = undefined;\n\t\t}\n\n\t\tlet myIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\tif (myIdentifier) {\n\t\t\tmyIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tif (this.state.tabs.length === 1 && identifier.windowName == myIdentifier.windowName) {\n\t\t\treturn;\n\t\t}\n\t\tif (typeof newIndex === \"number\") {\n\t\t\tActions.reorderTab(identifier, newIndex);\n\t\t}\n\t\tthis.setState({\n\t\t\thoveredTabIndex: undefined,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tsetActiveTab(tab: TabProperties) {\n\t\tActions.setActiveTab(tab);\n\t}\n\n\tonTabsChanged(err: StandardError, response: { value: TabProperties[] }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttabs: value,\n\t\t\ttabWidth: this.getTabWidth({ tabList: value }),\n\t\t});\n\t}\n\n\tonTabListTranslateChanged(err: StandardError, response: { value: number }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttranslateX: value,\n\t\t});\n\t}\n\n\tUNSAFE_componentWillMount() {\n\t\t// Store.addListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.addListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.addListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t}\n\n\tcomponentDidMount() {\n\t\twindow.addEventListener(\"resize\", this.onWindowResizeThrottled);\n\t\tlet boundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: boundingBox,\n\t\t\ttabWidth: this.getTabWidth({ boundingBox }),\n\t\t});\n\t}\n\n\tcomponentWillUnmount() {\n\t\t// Store.removeListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.removeListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.removeListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t\twindow.removeEventListener(\"resize\", this.onWindowResizeThrottled);\n\t}\n\n\thoverAction(newHoverState: string) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\trender() {\n\t\tlet { translateX } = this.state;\n\t\ttranslateX = Math.abs(translateX);\n\t\t// If we have just 1 tab, we render the title. Unless someone is dragging a tab around - in that case, we will render the tab view, even though we only have 1.\n\n\t\tlet componentToRender = \"title\";\n\t\tif (this.state.tabs.length === 1 && this.props.listenForDragOver && !this.state.iAmDragging) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\tif (this.state.tabs.length > 1) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\t// Cleanup in case we were translated before closing the second to last tab. This left-aligns the title.\n\t\tif (componentToRender === \"title\") {\n\t\t\ttranslateX = 0;\n\t\t}\n\n\t\tif (this.refs.Me) {\n\t\t\t(this.refs.Me as HTMLElement).scrollLeft = translateX;\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref=\"Me\"\n\t\t\t\tonDragLeave={this.dragLeave}\n\t\t\t\tclassName={this.props.className}\n\t\t\t\tonWheel={this.onMouseWheel}\n\t\t\t\tonScroll={(e) => {\n\t\t\t\t\tthis.onMouseWheel(e as unknown as React.WheelEvent);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragOver={this.dragOver}\n\t\t\t>\n\t\t\t\t<div className=\"tab-region-wrapper\">\n\t\t\t\t\t{componentToRender === \"title\" && this.renderTitle()}\n\t\t\t\t\t{componentToRender === \"tabs\" && this.renderTabs()}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Function to render the title. Helps keep the render code clean.\n\t */\n\trenderTitle() {\n\t\tconst windowIdentifier: WindowIdentifier = {\n\t\t\twindowName: finsembleWindow.name,\n\t\t\tuuid: finsembleWindow.uuid,\n\t\t};\n\t\treturn (\n\t\t\t<div\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tonDragStart={(e) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag start - TITLE\");\n\t\t\t\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\t\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t\t\t\tthis.startDrag(e, activeIdentifier);\n\t\t\t\t}}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\tclassName={\"fsbl-header-title\"}\n\t\t\t>\n\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\n\t\t\t\t<Title onUpdate={this.props.onTitleUpdated} windowIdentifier={windowIdentifier}></Title>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Renders the array of tabs.\n\t * @param {*} props\n\t */\n\trenderTabs() {\n\t\tlet titleWidth = this.state.tabWidth - ICON_AREA - CLOSE_BUTTON_MARGIN;\n\n\t\treturn this.state.tabs.map((tab) => (\n\t\t\t<Tab\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tkey={tab.windowName} // this is a unique identifier for React so it knows when to update the DOM\n\t\t\t\tclassName={this.getTabClasses(tab)}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tthis.setActiveTab(tab);\n\t\t\t\t}}\n\t\t\t\tonDragStart={(e, identifier) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag - TAB\", identifier.windowName);\n\t\t\t\t\tthis.startDrag(e, identifier);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tonTabClose={() => {\n\t\t\t\t\tthis.onTabClosed(tab);\n\t\t\t\t}}\n\t\t\t\tonTabDraggedOver={this.onTabDraggedOver}\n\t\t\t\tlistenForDragOver={this.props.listenForDragOver}\n\t\t\t\ttabWidth={this.state.tabWidth}\n\t\t\t\ttitleWidth={titleWidth}\n\t\t\t\twindowIdentifier={tab}\n\t\t\t/>\n\t\t));\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TabRegion.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabRegion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,cAAc,EAAE,GACtG,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IACzC,OAAO,CACN;QACE,CAAC,QAAQ,IAAI,CACb,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,KAAK,IAAC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,GAAI,CACvE,CACN;QACA,QAAQ,IAAI,CACZ,oBAAC,OAAO,IACP,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,eAAe,EACzB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,GAC7B,CACF,CACC,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\r\n\r\nimport { TabList } from \"./TabList\";\r\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\r\nimport { Title } from \"../windowTitle\";\r\n\r\nexport const TabRegion = () => {\r\n\tconst { showTabs, thisWindowTitle, boundingBox, onTabDropped, listenForDragOver, tabs, onTitleUpdated } =\r\n\t\tReact.useContext(WindowTitleBarContext);\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{!showTabs && (\r\n\t\t\t\t<div className=\"fsbl-header-center\">\r\n\t\t\t\t\t<Title windowIdentifier={FSBL.Clients.WindowClient.getWindowIdentifier()} />\r\n\t\t\t\t</div>\r\n\t\t\t)}\r\n\t\t\t{showTabs && (\r\n\t\t\t\t<TabList\r\n\t\t\t\t\tonTabDropped={onTabDropped}\r\n\t\t\t\t\tclassName=\"fsbl-tab-area\"\r\n\t\t\t\t\tthisWindowTitle={thisWindowTitle}\r\n\t\t\t\t\tboundingBox={boundingBox}\r\n\t\t\t\t\tlistenForDragOver={listenForDragOver}\r\n\t\t\t\t\ttabs={tabs}\r\n\t\t\t\t\tonTitleUpdated={onTitleUpdated}\r\n\t\t\t\t/>\r\n\t\t\t)}\r\n\t\t</>\r\n\t);\r\n};\r\n"]}
1
+ {"version":3,"file":"TabRegion.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabRegion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,cAAc,EAAE,GACtG,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IACzC,OAAO,CACN;QACE,CAAC,QAAQ,IAAI,CACb,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,KAAK,IAAC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,mBAAmB,EAAE,GAAI,CACvE,CACN;QACA,QAAQ,IAAI,CACZ,oBAAC,OAAO,IACP,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAC,eAAe,EACzB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,cAAc,GAC7B,CACF,CACC,CACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["import * as React from \"react\";\n\nimport { TabList } from \"./TabList\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { Title } from \"../windowTitle\";\n\nexport const TabRegion = () => {\n\tconst { showTabs, thisWindowTitle, boundingBox, onTabDropped, listenForDragOver, tabs, onTitleUpdated } =\n\t\tReact.useContext(WindowTitleBarContext);\n\treturn (\n\t\t<>\n\t\t\t{!showTabs && (\n\t\t\t\t<div className=\"fsbl-header-center\">\n\t\t\t\t\t<Title windowIdentifier={FSBL.Clients.WindowClient.getWindowIdentifier()} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{showTabs && (\n\t\t\t\t<TabList\n\t\t\t\t\tonTabDropped={onTabDropped}\n\t\t\t\t\tclassName=\"fsbl-tab-area\"\n\t\t\t\t\tthisWindowTitle={thisWindowTitle}\n\t\t\t\t\tboundingBox={boundingBox}\n\t\t\t\t\tlistenForDragOver={listenForDragOver}\n\t\t\t\t\ttabs={tabs}\n\t\t\t\t\tonTitleUpdated={onTitleUpdated}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file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\r\nimport React, { useRef, useEffect } from \"react\";\r\nimport { LinkerGroups } from \"./LinkerGroups\";\r\nimport { useDispatch, useSelector, Provider } from \"react-redux\";\r\nimport { actions, LinkerStore, store } from \"../../../linker/remoteRedux\";\r\nimport { LinkerButton as LinkerButtonDeprecated } from \"./LinkerButtonDeprecated\";\r\nimport { services, ShowWindowParams } from \"@finsemble/finsemble-core\";\r\n\r\ntype SpawnParams = services.window.types.SpawnParams;\r\n\r\nconst LinkerButtonIcon = () => (\r\n\t<svg\r\n\t\twidth=\"15px\"\r\n\t\theight=\"15px\"\r\n\t\tviewBox=\"2 1 13 13\"\r\n\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\txmlnsXlink=\"http://www.w3.org/1999/xlink\"\r\n\t>\r\n\t\t<title>Linker</title>\r\n\t\t<defs>\r\n\t\t\t<path\r\n\t\t\t\tid=\"prefix__b\"\r\n\t\t\t\td=\"M17.925 15.425h-1v-2.5a2.5 2.5 0 0 0-5 0v2.5h-1v-2.5a3.5 3.5 0 1 1 7 0v2.5zm0 2v2.5a3.5 3.5 0 1 1-7 0v-2.5h1v2.5a2.5 2.5 0 0 0 5 0v-2.5h1zm-3.5-4a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5z\"\r\n\t\t\t/>\r\n\t\t\t<filter id=\"prefix__a\" x=\"-28.6%\" y=\"-7.1%\" width=\"157.1%\" height=\"128.6%\">\r\n\t\t\t\t<feOffset dy=\"1\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\r\n\t\t\t\t<feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\".5\" />\r\n\t\t\t\t<feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0\" />\r\n\t\t\t</filter>\r\n\t\t</defs>\r\n\t\t<g transform=\"rotate(45 22.289 4.682)\" fillRule=\"nonzero\" fill=\"none\">\r\n\t\t\t<use filter=\"url(#prefix__a)\" xlinkHref=\"#prefix__b\" />\r\n\t\t\t<use xlinkHref=\"#prefix__b\" />\r\n\t\t</g>\r\n\t</svg>\r\n);\r\n\r\nconst LinkerButtonRedux: React.FunctionComponent = () => {\r\n\tconst dispatch = useDispatch();\r\n\tconst state: LinkerStore = useSelector((currentState: any) => currentState);\r\n\tconst buttonRef = useRef(null);\r\n\r\n\tconst showLinkerWindow = () => {\r\n\t\t// These action creators can now be imported from finsemble-core\r\n\t\tdispatch(\r\n\t\t\tactions.setActiveWindow({\r\n\t\t\t\ttype: \"linker/setActiveWindow\",\r\n\t\t\t\tpayload: {\r\n\t\t\t\t\twindowName: finsembleWindow.name,\r\n\t\t\t\t},\r\n\t\t\t})\r\n\t\t);\r\n\r\n\t\t// The offset parent is needed so that the menu isn't shown relative to the icon.\r\n\t\t// The HTMLElement.offsetParent read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.\r\n\t\t// Necessary to cast because refs are type \"Element\" (which could be an SVGElement...)\r\n\r\n\t\tconst linkerButton = buttonRef.current;\r\n\t\tif (linkerButton) {\r\n\t\t\tconst linkerButtonDiv = linkerButton as HTMLElement;\r\n\t\t\tconst linkerParent = (linkerButtonDiv.offsetParent ?? linkerButtonDiv.parentElement) as HTMLElement;\r\n\r\n\t\t\tconst params: ShowWindowParams = {\r\n\t\t\t\tposition: \"relative\",\r\n\t\t\t\tleft: linkerParent?.offsetLeft ?? 0,\r\n\t\t\t\ttop: linkerParent?.offsetHeight ?? 0,\r\n\t\t\t\tforceOntoMonitor: true,\r\n\t\t\t\tspawnIfNotFound: false,\r\n\t\t\t};\r\n\t\t\tconst wi = {\r\n\t\t\t\tcomponentType: \"linkerWindow\",\r\n\t\t\t};\r\n\t\t\tFSBL.Clients.LauncherClient.toggleWindowOnClick(linkerButtonDiv, wi, params);\r\n\t\t}\r\n\t};\r\n\r\n\t// If this window is in the list of linker clients then display this button\r\n\tconst displayMe = state.clients[finsembleWindow.name] !== undefined;\r\n\r\n\t// Add keyboard shortcut to launch the Linker Menu\r\n\t// Using `addBrowserHotkey` so that the linker menu is only launched when the user is focused on the titlebar\r\n\t// If we had used `addGlobalHotkey`, it would cause a lot of intermittent errors (linker menu would think it\r\n\t// was launched from the Notifications Center component for some reason, and would display incorrect channel\r\n\t// information, or float the linker menu in the wrong location. Lots of flakiness.)\r\n\tFSBL.Clients.HotkeyClient.addBrowserHotkey([\"CommandOrControl\", \"l\"], showLinkerWindow);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{displayMe && (\r\n\t\t\t\t<div ref={buttonRef} title=\"Link Data\" className=\"linkerSection\">\r\n\t\t\t\t\t<div className=\"fsbl-icon fsbl-linker\" onClick={showLinkerWindow}>\r\n\t\t\t\t\t\t<LinkerButtonIcon />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<LinkerGroups />\r\n\t\t\t\t</div>\r\n\t\t\t)}\r\n\t\t</>\r\n\t);\r\n};\r\n\r\n/**\r\n * Picks whether to display the current or deprecated LinkerElement.\r\n * If config `finsemble.servicesConfig.linker.enabled` is set to true then the deprecated version will be used.\r\n *\r\n * This code should be removed once the linkerClient is removed from Finsemble.\r\n */\r\nconst WhichLinker = () => {\r\n\tconst [whichLinker, setWhichLinker] = React.useState(\"\");\r\n\r\n\tuseEffect(() => {\r\n\t\t(async () => {\r\n\t\t\tconst { data } = await FSBL.Clients.ConfigClient.getValue({\r\n\t\t\t\tfield: \"finsemble.servicesConfig.linker.enabled\",\r\n\t\t\t});\r\n\t\t\tif (data) {\r\n\t\t\t\tsetWhichLinker(\"LinkerElementDeprecated\");\r\n\t\t\t} else {\r\n\t\t\t\tsetWhichLinker(\"LinkerElement\");\r\n\t\t\t}\r\n\t\t})();\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{whichLinker === \"LinkerElement\" && (\r\n\t\t\t\t<Provider store={store}>\r\n\t\t\t\t\t<LinkerButtonRedux />\r\n\t\t\t\t</Provider>\r\n\t\t\t)}\r\n\t\t\t{whichLinker === \"LinkerElementDeprecated\" && <LinkerButtonDeprecated />}\r\n\t\t</>\r\n\t);\r\n};\r\n\r\nexport const LinkerButton: React.FunctionComponent = () => <WhichLinker />;\r\n"]}
1
+ {"version":3,"file":"LinkerButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,EAAe,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlF,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAC9B,6BACC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B;IAEzC,4CAAqB;IACrB;QACC,8BACC,EAAE,EAAC,WAAW,EACd,CAAC,EAAC,yMAAyM,GAC1M;QACF,gCAAQ,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,QAAQ;YACzE,kCAAU,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,aAAa,EAAC,MAAM,EAAC,oBAAoB,GAAG;YAChE,wCAAgB,EAAE,EAAC,oBAAoB,EAAC,MAAM,EAAC,kBAAkB,EAAC,YAAY,EAAC,IAAI,GAAG;YACtF,uCAAe,EAAE,EAAC,kBAAkB,EAAC,MAAM,EAAC,2CAA2C,GAAG,CAClF,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AG,CACtE,CACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA4B,GAAG,EAAE,CAAC,oBAAC,WAAW,OAAG,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React, { useRef, useEffect } from \"react\";\nimport { LinkerGroups } from \"./LinkerGroups\";\nimport { useDispatch, useSelector, Provider } from \"react-redux\";\nimport { actions, LinkerStore, store } from \"../../../linker/remoteRedux\";\nimport { LinkerButton as LinkerButtonDeprecated } from \"./LinkerButtonDeprecated\";\nimport { services, ShowWindowParams } from \"@finsemble/finsemble-api\";\n\ntype SpawnParams = services.window.types.SpawnParams;\n\nconst LinkerButtonIcon = () => (\n\t<svg\n\t\twidth=\"15px\"\n\t\theight=\"15px\"\n\t\tviewBox=\"2 1 13 13\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\txmlnsXlink=\"http://www.w3.org/1999/xlink\"\n\t>\n\t\t<title>Linker</title>\n\t\t<defs>\n\t\t\t<path\n\t\t\t\tid=\"prefix__b\"\n\t\t\t\td=\"M17.925 15.425h-1v-2.5a2.5 2.5 0 0 0-5 0v2.5h-1v-2.5a3.5 3.5 0 1 1 7 0v2.5zm0 2v2.5a3.5 3.5 0 1 1-7 0v-2.5h1v2.5a2.5 2.5 0 0 0 5 0v-2.5h1zm-3.5-4a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5z\"\n\t\t\t/>\n\t\t\t<filter id=\"prefix__a\" x=\"-28.6%\" y=\"-7.1%\" width=\"157.1%\" height=\"128.6%\">\n\t\t\t\t<feOffset dy=\"1\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\n\t\t\t\t<feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\".5\" />\n\t\t\t\t<feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0\" />\n\t\t\t</filter>\n\t\t</defs>\n\t\t<g transform=\"rotate(45 22.289 4.682)\" fillRule=\"nonzero\" fill=\"none\">\n\t\t\t<use filter=\"url(#prefix__a)\" xlinkHref=\"#prefix__b\" />\n\t\t\t<use xlinkHref=\"#prefix__b\" />\n\t\t</g>\n\t</svg>\n);\n\nconst LinkerButtonRedux: React.FunctionComponent = () => {\n\tconst dispatch = useDispatch();\n\tconst state: LinkerStore = useSelector((currentState: any) => currentState);\n\tconst buttonRef = useRef(null);\n\n\tconst showLinkerWindow = () => {\n\t\t// These action creators can now be imported from finsemble-core\n\t\tdispatch(\n\t\t\tactions.setActiveWindow({\n\t\t\t\ttype: \"linker/setActiveWindow\",\n\t\t\t\tpayload: {\n\t\t\t\t\twindowName: finsembleWindow.name,\n\t\t\t\t},\n\t\t\t})\n\t\t);\n\n\t\t// The offset parent is needed so that the menu isn't shown relative to the icon.\n\t\t// The HTMLElement.offsetParent read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.\n\t\t// Necessary to cast because refs are type \"Element\" (which could be an SVGElement...)\n\n\t\tconst linkerButton = buttonRef.current;\n\t\tif (linkerButton) {\n\t\t\tconst linkerButtonDiv = linkerButton as HTMLElement;\n\t\t\tconst linkerParent = (linkerButtonDiv.offsetParent ?? linkerButtonDiv.parentElement) as HTMLElement;\n\n\t\t\tconst params: ShowWindowParams = {\n\t\t\t\tposition: \"relative\",\n\t\t\t\tleft: linkerParent?.offsetLeft ?? 0,\n\t\t\t\ttop: linkerParent?.offsetHeight ?? 0,\n\t\t\t\tforceOntoMonitor: true,\n\t\t\t\tspawnIfNotFound: false,\n\t\t\t};\n\t\t\tconst wi = {\n\t\t\t\tcomponentType: \"linkerWindow\",\n\t\t\t};\n\t\t\tFSBL.Clients.LauncherClient.toggleWindowOnClick(linkerButtonDiv, wi, params);\n\t\t}\n\t};\n\n\t// If this window is in the list of linker clients then display this button\n\tconst displayMe = state.clients[finsembleWindow.name] !== undefined;\n\n\t// Add keyboard shortcut to launch the Linker Menu\n\t// Using `addBrowserHotkey` so that the linker menu is only launched when the user is focused on the titlebar\n\t// If we had used `addGlobalHotkey`, it would cause a lot of intermittent errors (linker menu would think it\n\t// was launched from the Notifications Center component for some reason, and would display incorrect channel\n\t// information, or float the linker menu in the wrong location. Lots of flakiness.)\n\tFSBL.Clients.HotkeyClient.addBrowserHotkey([\"CommandOrControl\", \"l\"], showLinkerWindow);\n\n\treturn (\n\t\t<>\n\t\t\t{displayMe && (\n\t\t\t\t<div ref={buttonRef} title=\"Link Data\" className=\"linkerSection\">\n\t\t\t\t\t<div className=\"fsbl-icon fsbl-linker\" onClick={showLinkerWindow}>\n\t\t\t\t\t\t<LinkerButtonIcon />\n\t\t\t\t\t</div>\n\t\t\t\t\t<LinkerGroups />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\n/**\n * Picks whether to display the current or deprecated LinkerElement.\n * If config `finsemble.servicesConfig.linker.enabled` is set to true then the deprecated version will be used.\n *\n * This code should be removed once the linkerClient is removed from Finsemble.\n */\nconst WhichLinker = () => {\n\tconst [whichLinker, setWhichLinker] = React.useState(\"\");\n\n\tuseEffect(() => {\n\t\t(async () => {\n\t\t\tconst { data } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\t\tfield: \"finsemble.servicesConfig.linker.enabled\",\n\t\t\t});\n\t\t\tif (data) {\n\t\t\t\tsetWhichLinker(\"LinkerElementDeprecated\");\n\t\t\t} else {\n\t\t\t\tsetWhichLinker(\"LinkerElement\");\n\t\t\t}\n\t\t})();\n\t}, []);\n\n\treturn (\n\t\t<>\n\t\t\t{whichLinker === \"LinkerElement\" && (\n\t\t\t\t<Provider store={store}>\n\t\t\t\t\t<LinkerButtonRedux />\n\t\t\t\t</Provider>\n\t\t\t)}\n\t\t\t{whichLinker === \"LinkerElementDeprecated\" && <LinkerButtonDeprecated />}\n\t\t</>\n\t);\n};\n\nexport const LinkerButton: React.FunctionComponent = () => <WhichLinker />;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkerButtonDeprecated.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerButtonDeprecated.jsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAC9B,6BACC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B;IAEzC,4CAAqB;IACrB;QACC,8BACC,EAAE,EAAC,WAAW,EACd,CAAC,EAAC,yMAAyM,GAC1M;QACF,gCAAQ,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,QAAQ;YACzE,kCAAU,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,aAAa,EAAC,MAAM,EAAC,oBAAoB,GAAG;YAChE,wCAAgB,EAAE,EAAC,oBAAoB,EAAC,MAAM,EAAC,kBAAkB,EAAC,YAAY,EAAC,IAAI,GAAG;YACtF,uCAAe,EAAE,EAAC,kBAAkB,EAAC,MAAM,EAAC,2CAA2C,GAAG,CAClF,CACH;IACP,2BAAG,SAAS,EAAC,yBAAyB,EAAC,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM;QACpE,6BAAK,MAAM,EAAC,iBAAiB,EAAC,SAAS,EAAC,YAAY,GAAG;QACvD,6BAAK,SAAS,EAAC,YAAY,GAAG,CAC3B,CACC,CACN,CAAC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artIQ, Inc.\r\n * All rights reserved.\r\n *\r\n * This is a deprecated version of the LinkerButton which uses linkerClient. It is not compatible with FDC3 interop.\r\n */\r\nimport * as React from \"react\";\r\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\r\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\r\nimport LinkerGroups from \"./LinkerGroupsDeprecated\";\r\nimport { getStore } from \"../../stores/windowTitleBarStore\";\r\nconst LinkerButtonIcon = () => (\r\n\t<svg\r\n\t\twidth=\"15px\"\r\n\t\theight=\"15px\"\r\n\t\tviewBox=\"2 1 13 13\"\r\n\t\txmlns=\"http://www.w3.org/2000/svg\"\r\n\t\txmlnsXlink=\"http://www.w3.org/1999/xlink\"\r\n\t>\r\n\t\t<title>Linker</title>\r\n\t\t<defs>\r\n\t\t\t<path\r\n\t\t\t\tid=\"prefix__b\"\r\n\t\t\t\td=\"M17.925 15.425h-1v-2.5a2.5 2.5 0 0 0-5 0v2.5h-1v-2.5a3.5 3.5 0 1 1 7 0v2.5zm0 2v2.5a3.5 3.5 0 1 1-7 0v-2.5h1v2.5a2.5 2.5 0 0 0 5 0v-2.5h1zm-3.5-4a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5z\"\r\n\t\t\t/>\r\n\t\t\t<filter id=\"prefix__a\" x=\"-28.6%\" y=\"-7.1%\" width=\"157.1%\" height=\"128.6%\">\r\n\t\t\t\t<feOffset dy=\"1\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\r\n\t\t\t\t<feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\".5\" />\r\n\t\t\t\t<feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0\" />\r\n\t\t\t</filter>\r\n\t\t</defs>\r\n\t\t<g transform=\"rotate(45 22.289 4.682)\" fillRule=\"nonzero\" fill=\"none\">\r\n\t\t\t<use filter=\"url(#prefix__a)\" xlinkHref=\"#prefix__b\" />\r\n\t\t\t<use xlinkHref=\"#prefix__b\" />\r\n\t\t</g>\r\n\t</svg>\r\n);\r\n\r\nlet windowTitleBarStore;\r\n\r\n/**\r\n * Linker button; located on the left side of the windowTitleBar.\r\n */\r\nexport class LinkerButton extends React.Component {\r\n\tstatic contextType = WindowTitleBarContext;\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.bindCorrectContext();\r\n\t\t/**\r\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\r\n\t\t */\r\n\t\twindowTitleBarStore = getStore();\r\n\t\tthis.state = {\r\n\t\t\tchannels: {},\r\n\t\t\tallChannels: {},\r\n\t\t\tshowLinker: false,\r\n\t\t\thoverState: \"false\",\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\r\n\t *\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tbindCorrectContext() {\r\n\t\tthis.onChannelsChange = this.onChannelsChange.bind(this);\r\n\t\tthis.onAllChannelsChange = this.onAllChannelsChange.bind(this);\r\n\t\tthis.onShowLinkerButton = this.onShowLinkerButton.bind(this);\r\n\t\tthis.hoverAction = this.hoverAction.bind(this);\r\n\t\tthis.showLinkerWindow = this.showLinkerWindow.bind(this);\r\n\t}\r\n\r\n\t/**\r\n\t * When the user selects/deselects a channel in the linkerWindow, this event listener is invoked.\r\n\t *\r\n\t * @param {any} err\r\n\t * @param {any} response\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tonChannelsChange(err, response) {\r\n\t\tthis.setState({ channels: response.value });\r\n\t}\r\n\r\n\t/**\r\n\t * This listener is invoked when a new channel is registered with linkerService.\r\n\t *\r\n\t * @param {any} err\r\n\t * @param {any} response\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tonAllChannelsChange(err, response) {\r\n\t\tthis.setState({ allChannels: response.value });\r\n\t}\r\n\r\n\t/**\r\n\t * When we read the config from the window, we determine if the linker button should be shown. When that value changes, this listener is invoked.\r\n\t *\r\n\t * @param {any} err\r\n\t * @param {any} response\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tonShowLinkerButton(err, response) {\r\n\t\tthis.setState({ showLinker: response.value });\r\n\t}\r\n\r\n\t/**\r\n\t * When any data in the store changes, we invoke this listener.\r\n\t *\r\n\t * @param {any} newState\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tonStoreChanged(newState) {\r\n\t\tthis.setState(newState);\r\n\t}\r\n\r\n\t/**\r\n\t * Invoked when the linker button is clicked.\r\n\t *\r\n\t * @param {any} e\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tshowLinkerWindow(e) {\r\n\t\te.persist(); // So that React allows us to access the target\r\n\t\te.preventDefault();\r\n\t\te.stopPropagation();\r\n\t\tlet payload = {\r\n\t\t\tchannels: FSBL.Clients.LinkerClient.getState().channels,\r\n\t\t\twindowIdentifier: FSBL.Clients.WindowClient.getWindowIdentifier(),\r\n\t\t};\r\n\t\tlet self = this;\r\n\t\tFSBL.Clients.RouterClient.query(\"Finsemble.LinkerWindow.SetActiveChannels\", payload, () => {\r\n\t\t\tlet wi = {\r\n\t\t\t\tcomponentType: \"linkerWindow\",\r\n\t\t\t};\r\n\t\t\t// The offset parent is needed so that the menu isn't shown relative to the icon.\r\n\t\t\t// The HTMLElement.offsetParent read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.\r\n\t\t\tlet linkerParent = self.refs.LinkerButton.offsetParent\r\n\t\t\t\t? self.refs.LinkerButton.offsetParent\r\n\t\t\t\t: self.refs.LinkerButton.parentElement;\r\n\r\n\t\t\tlet params = {\r\n\t\t\t\tposition: \"relative\",\r\n\t\t\t\tleft: linkerParent.offsetLeft,\r\n\t\t\t\ttop: linkerParent.offsetHeight,\r\n\t\t\t\tforceOntoMonitor: true,\r\n\t\t\t\tspawnIfNotFound: false,\r\n\t\t\t};\r\n\t\t\t// pass linkerbutton. If it's clicked while the menu is open, we let the blur occur.\r\n\t\t\tFSBL.Clients.LauncherClient.toggleWindowOnClick(self.refs.LinkerButton, wi, params);\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\r\n\t *\r\n\t * @param {any} newHoverState\r\n\t * @memberof LinkerButton\r\n\t */\r\n\thoverAction(newHoverState) {\r\n\t\tthis.setState({ hoverState: newHoverState });\r\n\t}\r\n\r\n\t/**\r\n\t * Add listeners to the store.\r\n\t *\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tcomponentDidMount() {\r\n\t\twindowTitleBarStore.addListener({ field: \"Linker.channels\" }, this.onChannelsChange);\r\n\t\twindowTitleBarStore.addListener({ field: \"Linker.allChannels\" }, this.onAllChannelsChange);\r\n\t\twindowTitleBarStore.addListener({ field: \"Linker.showLinkerButton\" }, this.onShowLinkerButton);\r\n\t}\r\n\r\n\t/**\r\n\t * Remove listeners from the store.\r\n\t *\r\n\t * @memberof LinkerButton\r\n\t */\r\n\tcomponentWillUnmount() {\r\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.channels\" }, this.onChannelsChange);\r\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.allChannels\" }, this.onAllChannelsChange);\r\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.showLinkerButton\" }, this.onShowLinkerButton);\r\n\t}\r\n\r\n\t/**\r\n\t * Render method.\r\n\t *\r\n\t * @returns\r\n\t * @memberof LinkerButton\r\n\t */\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{this.context.showLinkerButton && (\r\n\t\t\t\t\t<div ref=\"LinkerButton\" title=\"Link Data\" className=\"linkerSection\">\r\n\t\t\t\t\t\t<div className=\"fsbl-icon fsbl-linker\" data-hover={this.state.hoverState} onClick={this.showLinkerWindow}>\r\n\t\t\t\t\t\t\t<LinkerButtonIcon />\r\n\t\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top left\" hoverAction={this.hoverAction} />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<LinkerGroups />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</>\r\n\t\t);\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"LinkerButtonDeprecated.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerButtonDeprecated.jsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAC9B,6BACC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B;IAEzC,4CAAqB;IACrB;QACC,8BACC,EAAE,EAAC,WAAW,EACd,CAAC,EAAC,yMAAyM,GAC1M;QACF,gCAAQ,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,QAAQ;YACzE,kCAAU,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,aAAa,EAAC,MAAM,EAAC,oBAAoB,GAAG;YAChE,wCAAgB,EAAE,EAAC,oBAAoB,EAAC,MAAM,EAAC,kBAAkB,EAAC,YAAY,EAAC,IAAI,GAAG;YACtF,uCAAe,EAAE,EAAC,kBAAkB,EAAC,MAAM,EAAC,2CAA2C,GAAG,CAClF,CACH;IACP,2BAAG,SAAS,EAAC,yBAAyB,EAAC,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,M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ACN,oBAAC,YAAY,OAAG,CACX,CACN,CACC,CACH,CAAC;IACH,CAAC;;AAlKM,wBAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n *\n * This is a deprecated version of the LinkerButton which uses linkerClient. It is not compatible with FDC3 interop.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport LinkerGroups from \"./LinkerGroupsDeprecated\";\nimport { getStore } from \"../../stores/windowTitleBarStore\";\nconst LinkerButtonIcon = () => (\n\t<svg\n\t\twidth=\"15px\"\n\t\theight=\"15px\"\n\t\tviewBox=\"2 1 13 13\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\txmlnsXlink=\"http://www.w3.org/1999/xlink\"\n\t>\n\t\t<title>Linker</title>\n\t\t<defs>\n\t\t\t<path\n\t\t\t\tid=\"prefix__b\"\n\t\t\t\td=\"M17.925 15.425h-1v-2.5a2.5 2.5 0 0 0-5 0v2.5h-1v-2.5a3.5 3.5 0 1 1 7 0v2.5zm0 2v2.5a3.5 3.5 0 1 1-7 0v-2.5h1v2.5a2.5 2.5 0 0 0 5 0v-2.5h1zm-3.5-4a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5z\"\n\t\t\t/>\n\t\t\t<filter id=\"prefix__a\" x=\"-28.6%\" y=\"-7.1%\" width=\"157.1%\" height=\"128.6%\">\n\t\t\t\t<feOffset dy=\"1\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\n\t\t\t\t<feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\".5\" />\n\t\t\t\t<feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0\" />\n\t\t\t</filter>\n\t\t</defs>\n\t\t<g transform=\"rotate(45 22.289 4.682)\" fillRule=\"nonzero\" fill=\"none\">\n\t\t\t<use filter=\"url(#prefix__a)\" xlinkHref=\"#prefix__b\" />\n\t\t\t<use xlinkHref=\"#prefix__b\" />\n\t\t</g>\n\t</svg>\n);\n\nlet windowTitleBarStore;\n\n/**\n * Linker button; located on the left side of the windowTitleBar.\n */\nexport class LinkerButton extends React.Component {\n\tstatic contextType = WindowTitleBarContext;\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.bindCorrectContext();\n\t\t/**\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\n\t\t */\n\t\twindowTitleBarStore = getStore();\n\t\tthis.state = {\n\t\t\tchannels: {},\n\t\t\tallChannels: {},\n\t\t\tshowLinker: false,\n\t\t\thoverState: \"false\",\n\t\t};\n\t}\n\n\t/**\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\n\t *\n\t * @memberof LinkerButton\n\t */\n\tbindCorrectContext() {\n\t\tthis.onChannelsChange = this.onChannelsChange.bind(this);\n\t\tthis.onAllChannelsChange = this.onAllChannelsChange.bind(this);\n\t\tthis.onShowLinkerButton = this.onShowLinkerButton.bind(this);\n\t\tthis.hoverAction = this.hoverAction.bind(this);\n\t\tthis.showLinkerWindow = this.showLinkerWindow.bind(this);\n\t}\n\n\t/**\n\t * When the user selects/deselects a channel in the linkerWindow, this event listener is invoked.\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t * @memberof LinkerButton\n\t */\n\tonChannelsChange(err, response) {\n\t\tthis.setState({ channels: response.value });\n\t}\n\n\t/**\n\t * This listener is invoked when a new channel is registered with linkerService.\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t * @memberof LinkerButton\n\t */\n\tonAllChannelsChange(err, response) {\n\t\tthis.setState({ allChannels: response.value });\n\t}\n\n\t/**\n\t * When we read the config from the window, we determine if the linker button should be shown. When that value changes, this listener is invoked.\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t * @memberof LinkerButton\n\t */\n\tonShowLinkerButton(err, response) {\n\t\tthis.setState({ showLinker: response.value });\n\t}\n\n\t/**\n\t * When any data in the store changes, we invoke this listener.\n\t *\n\t * @param {any} newState\n\t * @memberof LinkerButton\n\t */\n\tonStoreChanged(newState) {\n\t\tthis.setState(newState);\n\t}\n\n\t/**\n\t * Invoked when the linker button is clicked.\n\t *\n\t * @param {any} e\n\t * @memberof LinkerButton\n\t */\n\tshowLinkerWindow(e) {\n\t\te.persist(); // So that React allows us to access the target\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet payload = {\n\t\t\tchannels: FSBL.Clients.LinkerClient.getState().channels,\n\t\t\twindowIdentifier: FSBL.Clients.WindowClient.getWindowIdentifier(),\n\t\t};\n\t\tlet self = this;\n\t\tFSBL.Clients.RouterClient.query(\"Finsemble.LinkerWindow.SetActiveChannels\", payload, () => {\n\t\t\tlet wi = {\n\t\t\t\tcomponentType: \"linkerWindow\",\n\t\t\t};\n\t\t\t// The offset parent is needed so that the menu isn't shown relative to the icon.\n\t\t\t// The HTMLElement.offsetParent read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.\n\t\t\tlet linkerParent = self.refs.LinkerButton.offsetParent\n\t\t\t\t? self.refs.LinkerButton.offsetParent\n\t\t\t\t: self.refs.LinkerButton.parentElement;\n\n\t\t\tlet params = {\n\t\t\t\tposition: \"relative\",\n\t\t\t\tleft: linkerParent.offsetLeft,\n\t\t\t\ttop: linkerParent.offsetHeight,\n\t\t\t\tforceOntoMonitor: true,\n\t\t\t\tspawnIfNotFound: false,\n\t\t\t};\n\t\t\t// pass linkerbutton. If it's clicked while the menu is open, we let the blur occur.\n\t\t\tFSBL.Clients.LauncherClient.toggleWindowOnClick(self.refs.LinkerButton, wi, params);\n\t\t});\n\t}\n\n\t/**\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\n\t *\n\t * @param {any} newHoverState\n\t * @memberof LinkerButton\n\t */\n\thoverAction(newHoverState) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\t/**\n\t * Add listeners to the store.\n\t *\n\t * @memberof LinkerButton\n\t */\n\tcomponentDidMount() {\n\t\twindowTitleBarStore.addListener({ field: \"Linker.channels\" }, this.onChannelsChange);\n\t\twindowTitleBarStore.addListener({ field: \"Linker.allChannels\" }, this.onAllChannelsChange);\n\t\twindowTitleBarStore.addListener({ field: \"Linker.showLinkerButton\" }, this.onShowLinkerButton);\n\t}\n\n\t/**\n\t * Remove listeners from the store.\n\t *\n\t * @memberof LinkerButton\n\t */\n\tcomponentWillUnmount() {\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.channels\" }, this.onChannelsChange);\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.allChannels\" }, this.onAllChannelsChange);\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.showLinkerButton\" }, this.onShowLinkerButton);\n\t}\n\n\t/**\n\t * Render method.\n\t *\n\t * @returns\n\t * @memberof LinkerButton\n\t */\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{this.context.showLinkerButton && (\n\t\t\t\t\t<div ref=\"LinkerButton\" title=\"Link Data\" className=\"linkerSection\">\n\t\t\t\t\t\t<div className=\"fsbl-icon fsbl-linker\" data-hover={this.state.hoverState} onClick={this.showLinkerWindow}>\n\t\t\t\t\t\t\t<LinkerButtonIcon />\n\t\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top left\" hoverAction={this.hoverAction} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<LinkerGroups />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkerGroups.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerGroups.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,iBAAiB,GAA4B,GAAG,EAAE;;IACvD,MAAM,KAAK,GAAgB,WAAW,CAAC,CAAC,YAAiB,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC;IAC5E,MAAM,cAAc,GAAmB,MAAA,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAG,eAAe,CAAC,IAAI,CAAC,0CAAE,cAAc,mCAAI,EAAE,CAAC;IACpG,MAAM,WAAW,GAAc,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,mCAAI,EAAE,CAAC;IAExD,OAAO,CACN,6BAAK,SAAS,EAAC,eAAe,IAC5B,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;QAC5B,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAErD,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,GAAG,CAAC;QACnC,OAAO,CACN,MAAM,IAAI,CACT,6BACC,GAAG,EAAE,OAAO,CAAC,IAAI,EACjB,SAAS,EAAE,+CAA+C,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,EAAE,EACjG,KAAK,EAAE,WAAW,KAAK,EAAE,IAExB,KAAK,CACD,CACN,CACD,CAAC;IACH,CAAC,CAAC,CACG,CACN,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA4B,GAAG,EAAE,CAAC,oBAAC,iBAAiB,OAAG,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\nimport * as React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { LinkerStore } from \"../../../linker/remoteRedux\";\r\n\r\ntype Channel = LinkerStore[\"allChannels\"][0];\r\ntype JoinedChannels = string[];\r\n\r\nconst LinkerGroupsRedux: React.FunctionComponent = () => {\r\n\tconst state: LinkerStore = useSelector((currentState: any) => currentState);\r\n\tconst joinedChannels: JoinedChannels = state?.clients?.[finsembleWindow.name]?.joinedChannels ?? [];\r\n\tconst allChannels: Channel[] = state?.allChannels ?? [];\r\n\r\n\treturn (\r\n\t\t<div className=\"linker-groups\">\r\n\t\t\t{allChannels.map((channel) => {\r\n\t\t\t\tconst active = joinedChannels.includes(channel.name);\r\n\t\t\t\t// linker-${channel.label} is deprecated in favor of cssClassName\r\n\t\t\t\tconst label = channel.label ?? \"X\";\r\n\t\t\t\treturn (\r\n\t\t\t\t\tactive && (\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tkey={channel.name}\r\n\t\t\t\t\t\t\tclassName={`linker-group linker-group-accessible linker-${channel.label} ${channel.cssClassName}`}\r\n\t\t\t\t\t\t\ttitle={`Channel ${label}`}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{label}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t})}\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport const LinkerGroups: React.FunctionComponent = () => <LinkerGroupsRedux />;\r\n"]}
1
+ {"version":3,"file":"LinkerGroups.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerGroups.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,MAAM,iBAAiB,GAA4B,GAAG,EAAE;;IACvD,MAAM,KAAK,GAAgB,WAAW,CAAC,CAAC,YAAiB,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC;IAC5E,MAAM,cAAc,GAAmB,MAAA,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAG,eAAe,CAAC,IAAI,CAAC,0CAAE,cAAc,mCAAI,EAAE,CAAC;IACpG,MAAM,WAAW,GAAc,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,mCAAI,EAAE,CAAC;IAExD,OAAO,CACN,6BAAK,SAAS,EAAC,eAAe,IAC5B,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;QAC5B,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAErD,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,GAAG,CAAC;QACnC,OAAO,CACN,MAAM,IAAI,CACT,6BACC,GAAG,EAAE,OAAO,CAAC,IAAI,EACjB,SAAS,EAAE,+CAA+C,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,EAAE,EACjG,KAAK,EAAE,WAAW,KAAK,EAAE,IAExB,KAAK,CACD,CACN,CACD,CAAC;IACH,CAAC,CAAC,CACG,CACN,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA4B,GAAG,EAAE,CAAC,oBAAC,iBAAiB,OAAG,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { LinkerStore } from \"../../../linker/remoteRedux\";\n\ntype Channel = LinkerStore[\"allChannels\"][0];\ntype JoinedChannels = string[];\n\nconst LinkerGroupsRedux: React.FunctionComponent = () => {\n\tconst state: LinkerStore = useSelector((currentState: any) => currentState);\n\tconst joinedChannels: JoinedChannels = state?.clients?.[finsembleWindow.name]?.joinedChannels ?? [];\n\tconst allChannels: Channel[] = state?.allChannels ?? [];\n\n\treturn (\n\t\t<div className=\"linker-groups\">\n\t\t\t{allChannels.map((channel) => {\n\t\t\t\tconst active = joinedChannels.includes(channel.name);\n\t\t\t\t// linker-${channel.label} is deprecated in favor of cssClassName\n\t\t\t\tconst label = channel.label ?? \"X\";\n\t\t\t\treturn (\n\t\t\t\t\tactive && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tkey={channel.name}\n\t\t\t\t\t\t\tclassName={`linker-group linker-group-accessible linker-${channel.label} ${channel.cssClassName}`}\n\t\t\t\t\t\t\ttitle={`Channel ${label}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t})}\n\t\t</div>\n\t);\n};\n\nexport const LinkerGroups: React.FunctionComponent = () => <LinkerGroupsRedux />;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkerGroupsDeprecated.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerGroupsDeprecated.jsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,IAAI,mBAAmB,CAAC;AACxB,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAS;IACxD,YAAY,KAAK;QAChB,KAAK,CAAC,KAAK,CAAC,CAAC;QAIb,mBAAmB,GAAG,QAAQ,EAAE,CAAC;QACjC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG;YACZ,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,QAAQ;YACvD,gBAAgB,EAAE,KAAK;SACvB,CAAC;IACH,CAAC;IAOD,kBAAkB;QACjB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAOD,iBAAiB;QAEhB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,4BAA4B,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YAC/E,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAA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AAC,cAAc,EAAE,CAAC,CAAC;aAC1F;QACF,CAAC,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACzB,OAAO,6BAAK,SAAS,EAAC,eAAe,GAAO,CAAC;SAC7C;QAKD,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAClD,MAAM,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,mCAAmC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1F,IAAI,UAAU,GAAG,eAAe,MAAM,EAAE,CAAC;YACzC,OAAO,CACN,6BACC,GAAG,EAAE,OAAO,CAAC,IAAI,EACjB,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,WAAW,wBAAwB,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,EAAE,EACtG,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,EAAE,EACpC,SAAS,EAAE,UAAU,CAAC;oBACrB,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC,IAEA,QAAQ,CAAC,OAAO,CAAC,CACb,CACN,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,6BAAK,SAAS,EAAC,eAAe,IAAE,QAAQ,CAAO,CAAC;IACxD,CAAC;CACD","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n *\r\n * This is a deprecated version of LinkerGroups that uses linkerClient. It is not compatible with FDC3 interop.\r\n */\r\nimport * as React from \"react\";\r\nimport { getStore } from \"../../stores/windowTitleBarStore\";\r\nimport { getChannelLabelFromIndex } from \"../../../shared/linkerUtil\";\r\nlet windowTitleBarStore;\r\nexport default class LinkerGroups extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\t/**\r\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\r\n\t\t */\r\n\t\twindowTitleBarStore = getStore();\r\n\t\tthis.bindCorrectContext();\r\n\t\tthis.state = {\r\n\t\t\tchannels: FSBL.Clients.LinkerClient.getState().channels,\r\n\t\t\taccessibleLinker: false,\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\r\n\t *\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\tbindCorrectContext() {\r\n\t\tthis.onChannelChange = this.onChannelChange.bind(this);\r\n\t}\r\n\r\n\t/**\r\n\t * Add listeners to the store.\r\n\t *\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\tcomponentDidMount() {\r\n\t\t// are we using the accessible linker?\r\n\t\tFSBL.Clients.ConfigClient.getValue(\"finsemble.accessibleLinker\", (err, value) => {\r\n\t\t\tif (err) {\r\n\t\t\t\tconsole.err(\"Error getting accessibleLinker value\", err);\r\n\t\t\t}\r\n\r\n\t\t\t// Default value for accessibleLinker is true.\r\n\t\t\tthis.setState({\r\n\t\t\t\taccessibleLinker: value && typeof value === \"boolean\" ? value : true,\r\n\t\t\t});\r\n\t\t});\r\n\t\twindowTitleBarStore.addListener({ field: \"Linker.channels\" }, this.onChannelChange);\r\n\t}\r\n\r\n\t/**\r\n\t * Remove listeners from the store.\r\n\t *\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\tcomponentWillUnmount() {\r\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.channels\" }, this.onChannelChange);\r\n\t}\r\n\r\n\t/**\r\n\t * When the user adds/removes a link in the linkerWindow, the values in the store will change, and this listener will be invoked.\r\n\t *\r\n\t * @param {any} err\r\n\t * @param {any} response\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\tonChannelChange(err, response) {\r\n\t\tthis.setState({ channels: response.value });\r\n\t}\r\n\r\n\t/**\r\n\t * Whenever the store changes, set state.\r\n\t *\r\n\t * @param {any} newState\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\tonStoreChanged(newState) {\r\n\t\tthis.setState(newState);\r\n\t}\r\n\r\n\tonClick(e, channel) {\r\n\t\tFSBL.Clients.LinkerClient.bringAllToFront({\r\n\t\t\tchannel: channel,\r\n\t\t\trestoreWindows: true,\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Render method.\r\n\t *\r\n\t * @returns\r\n\t * @memberof LinkerGroups\r\n\t */\r\n\trender() {\r\n\t\tlet self = this;\r\n\t\tconst { accessibleLinker } = this.state;\r\n\t\tconst getLabel = (channel) => {\r\n\t\t\tif (!accessibleLinker) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else if (channel.label) {\r\n\t\t\t\treturn channel.label;\r\n\t\t\t} else {\r\n\t\t\t\t// backwards compatibility\r\n\t\t\t\treturn getChannelLabelFromIndex(channel.name, FSBL.Clients.LinkerClient.getAllChannels());\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (!this.state.channels) {\r\n\t\t\treturn <div className=\"linker-groups\"></div>;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Iterate through the channels that the window belongs to, render a colored bar to denote channel membership.\r\n\t\t */\r\n\t\tlet channels = self.state.channels.map((channel) => {\r\n\t\t\tconst suffix = accessibleLinker ? ` linker-group-accessible linker-${channel.label}` : \"\";\r\n\t\t\tlet classNames = `linker-group${suffix}`;\r\n\t\t\treturn (\r\n\t\t\t\t<div\r\n\t\t\t\t\tkey={channel.name}\r\n\t\t\t\t\tclassName={classNames}\r\n\t\t\t\t\ttitle={`Channel ${getChannelLabelFromIndex(channel.name, FSBL.Clients.LinkerClient.getAllChannels())}`}\r\n\t\t\t\t\tstyle={{ background: channel.color }}\r\n\t\t\t\t\tonMouseUp={function (e) {\r\n\t\t\t\t\t\tself.onClick(e, channel.name);\r\n\t\t\t\t\t}}\r\n\t\t\t\t>\r\n\t\t\t\t\t{getLabel(channel)}\r\n\t\t\t\t</div>\r\n\t\t\t);\r\n\t\t});\r\n\t\treturn <div className=\"linker-groups\">{channels}</div>;\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"LinkerGroupsDeprecated.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerGroupsDeprecated.jsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,IAAI,mBAAmB,CAAC;AACxB,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAS;IACxD,YAAY,KAAK;QAChB,KAAK,CAAC,KAAK,CAAC,CAAC;QAIb,mBAAmB,GAAG,QAAQ,EAAE,CAAC;QACjC,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG;YACZ,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,QAAQ;YACvD,gBAAgB,EAAE,KAAK;SACvB,CAAC;IACH,CAAC;IAOD,kBAAkB;QACjB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAOD,iBAAiB;QAEhB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,4BAA4B,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YAC/E,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,GAAG,CAAC,CAAC;aACzD;YAGD,IAAI,CAAC,QAAQ,CAAC;gBACb,gBAAgB,EAAE,KAAK,IAAI,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;aACpE,CAAC,CAAC;QACJ,CAAC,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AI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAClD,MAAM,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,mCAAmC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1F,IAAI,UAAU,GAAG,eAAe,MAAM,EAAE,CAAC;YACzC,OAAO,CACN,6BACC,GAAG,EAAE,OAAO,CAAC,IAAI,EACjB,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,WAAW,wBAAwB,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,EAAE,EACtG,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,EAAE,EACpC,SAAS,EAAE,UAAU,CAAC;oBACrB,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC/B,CAAC,IAEA,QAAQ,CAAC,OAAO,CAAC,CACb,CACN,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,6BAAK,SAAS,EAAC,eAAe,IAAE,QAAQ,CAAO,CAAC;IACxD,CAAC;CACD","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n *\n * This is a deprecated version of LinkerGroups that uses linkerClient. It is not compatible with FDC3 interop.\n */\nimport * as React from \"react\";\nimport { getStore } from \"../../stores/windowTitleBarStore\";\nimport { getChannelLabelFromIndex } from \"../../../shared/linkerUtil\";\nlet windowTitleBarStore;\nexport default class LinkerGroups extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\t/**\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\n\t\t */\n\t\twindowTitleBarStore = getStore();\n\t\tthis.bindCorrectContext();\n\t\tthis.state = {\n\t\t\tchannels: FSBL.Clients.LinkerClient.getState().channels,\n\t\t\taccessibleLinker: false,\n\t\t};\n\t}\n\n\t/**\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\n\t *\n\t * @memberof LinkerGroups\n\t */\n\tbindCorrectContext() {\n\t\tthis.onChannelChange = this.onChannelChange.bind(this);\n\t}\n\n\t/**\n\t * Add listeners to the store.\n\t *\n\t * @memberof LinkerGroups\n\t */\n\tcomponentDidMount() {\n\t\t// are we using the accessible linker?\n\t\tFSBL.Clients.ConfigClient.getValue(\"finsemble.accessibleLinker\", (err, value) => {\n\t\t\tif (err) {\n\t\t\t\tconsole.err(\"Error getting accessibleLinker value\", err);\n\t\t\t}\n\n\t\t\t// Default value for accessibleLinker is true.\n\t\t\tthis.setState({\n\t\t\t\taccessibleLinker: value && typeof value === \"boolean\" ? value : true,\n\t\t\t});\n\t\t});\n\t\twindowTitleBarStore.addListener({ field: \"Linker.channels\" }, this.onChannelChange);\n\t}\n\n\t/**\n\t * Remove listeners from the store.\n\t *\n\t * @memberof LinkerGroups\n\t */\n\tcomponentWillUnmount() {\n\t\twindowTitleBarStore.removeListener({ field: \"Linker.channels\" }, this.onChannelChange);\n\t}\n\n\t/**\n\t * When the user adds/removes a link in the linkerWindow, the values in the store will change, and this listener will be invoked.\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t * @memberof LinkerGroups\n\t */\n\tonChannelChange(err, response) {\n\t\tthis.setState({ channels: response.value });\n\t}\n\n\t/**\n\t * Whenever the store changes, set state.\n\t *\n\t * @param {any} newState\n\t * @memberof LinkerGroups\n\t */\n\tonStoreChanged(newState) {\n\t\tthis.setState(newState);\n\t}\n\n\tonClick(e, channel) {\n\t\tFSBL.Clients.LinkerClient.bringAllToFront({\n\t\t\tchannel: channel,\n\t\t\trestoreWindows: true,\n\t\t});\n\t}\n\n\t/**\n\t * Render method.\n\t *\n\t * @returns\n\t * @memberof LinkerGroups\n\t */\n\trender() {\n\t\tlet self = this;\n\t\tconst { accessibleLinker } = this.state;\n\t\tconst getLabel = (channel) => {\n\t\t\tif (!accessibleLinker) {\n\t\t\t\treturn null;\n\t\t\t} else if (channel.label) {\n\t\t\t\treturn channel.label;\n\t\t\t} else {\n\t\t\t\t// backwards compatibility\n\t\t\t\treturn getChannelLabelFromIndex(channel.name, FSBL.Clients.LinkerClient.getAllChannels());\n\t\t\t}\n\t\t};\n\n\t\tif (!this.state.channels) {\n\t\t\treturn <div className=\"linker-groups\"></div>;\n\t\t}\n\n\t\t/**\n\t\t * Iterate through the channels that the window belongs to, render a colored bar to denote channel membership.\n\t\t */\n\t\tlet channels = self.state.channels.map((channel) => {\n\t\t\tconst suffix = accessibleLinker ? ` linker-group-accessible linker-${channel.label}` : \"\";\n\t\t\tlet classNames = `linker-group${suffix}`;\n\t\t\treturn (\n\t\t\t\t<div\n\t\t\t\t\tkey={channel.name}\n\t\t\t\t\tclassName={classNames}\n\t\t\t\t\ttitle={`Channel ${getChannelLabelFromIndex(channel.name, FSBL.Clients.LinkerClient.getAllChannels())}`}\n\t\t\t\t\tstyle={{ background: channel.color }}\n\t\t\t\t\tonMouseUp={function (e) {\n\t\t\t\t\t\tself.onClick(e, channel.name);\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{getLabel(channel)}\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\t\treturn <div className=\"linker-groups\">{channels}</div>;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ShareButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/ShareButton.jsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACvB,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WA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D,WAAW,CAAC,aAAa;QACxB,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM;QAML,OAAO,CACN,0CACE,IAAI,CAAC,OAAO,CAAC,eAAe,IAAI,CAChC,6BACC,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAC,eAAe,gBACT,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,SAAS,EAAC,MAAM,EAChB,WAAW,EAAE,IAAI,CAAC,WAAW;YAE7B,oBAAC,SAAS,OAAG;YACb,oBAAC,sBAAsB,IAAC,IAAI,EAAC,KAAK,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CAC1E,CACN,CACC,CACH,CAAC;IACH,CAAC;;AApFM,uBAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\nimport * as React from \"react\";\r\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\r\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\r\nimport { getStore } from \"../../stores/windowTitleBarStore\";\r\nconst ShareIcon = () => (\r\n\t<svg width=\"20\" height=\"16\" viewBox=\"0 2 16 13\" xmlns=\"http://www.w3.org/2000/svg\">\r\n\t\t<title>Drag To Share</title>\r\n\t\t<path d=\"M7 3H6V1H1v12h5v-3h1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v2z\" fill=\"#8E939F\" />\r\n\t\t<path\r\n\t\t\td=\"M9 11h1v2h5V1h-5v1H9V1a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-2z\"\r\n\t\t\tfill=\"#ECEDEF\"\r\n\t\t/>\r\n\t\t<rect fill=\"#ECEDEF\" x=\"4\" y=\"6\" width=\"8\" height=\"1\" rx=\".5\" />\r\n\t\t<path stroke=\"#ECEDEF\" strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M9 9l2.755-2.348L9 4.128\" />\r\n\t</svg>\r\n);\r\n\r\nlet windowTitleBarStore;\r\nexport class ShareButton extends React.Component {\r\n\tstatic contextType = WindowTitleBarContext;\r\n\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.bindCorrectContext();\r\n\t\t/**\r\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\r\n\t\t */\r\n\t\twindowTitleBarStore = getStore();\r\n\r\n\t\tthis.state = {\r\n\t\t\thoverState: \"false\",\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\r\n\t *\r\n\t * @memberof ShareButton\r\n\t */\r\n\tbindCorrectContext() {\r\n\t\tthis.hoverAction = this.hoverAction.bind(this);\r\n\t}\r\n\r\n\t/**\r\n\t * When the user starts to drag the share button, let the DragAndDropClient know.\r\n\t *\r\n\t * @param {any} ev\r\n\t * @memberof ShareButton\r\n\t */\r\n\tonDragStart(ev) {\r\n\t\tFSBL.Clients.DragAndDropClient.dragStart(ev);\r\n\t}\r\n\r\n\t/**\r\n\t * Add listeners to store.\r\n\t *\r\n\t * @memberof ShareButton\r\n\t */\r\n\tUNSAFE_componentWillMount() {\r\n\t\twindowTitleBarStore.addListener({ field: \"Sharer.receiverHandler\" }, this.onReceiverhandler);\r\n\t}\r\n\r\n\t/**\r\n\t * Remove listeners from the store.\r\n\t *\r\n\t * @memberof ShareButton\r\n\t */\r\n\tcomponentWillUnmount() {\r\n\t\twindowTitleBarStore.removeListener({ field: \"Sharer.receiverHandler\" }, this.onReceiverhandler);\r\n\t}\r\n\r\n\t/**\r\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\r\n\t *\r\n\t * @param {any} newHoverState\r\n\t * @memberof LinkerButton\r\n\t */\r\n\thoverAction(newHoverState) {\r\n\t\tthis.setState({ hoverState: newHoverState });\r\n\t}\r\n\r\n\trender() {\r\n\t\t/* [Terry] was causing Sharer to never show. Deprecated?\r\n\t\tif (!this.state.emitterEnabled) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t*/\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{this.context.showShareButton && (\r\n\t\t\t\t\t<div\r\n\t\t\t\t\t\tclassName=\"fsbl-icon fsbl-share\"\r\n\t\t\t\t\t\ttitle=\"Drag To Share\"\r\n\t\t\t\t\t\tdata-hover={this.state.hoverState}\r\n\t\t\t\t\t\tdraggable=\"true\"\r\n\t\t\t\t\t\tonDragStart={this.onDragStart}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<ShareIcon />\r\n\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t)}\r\n\t\t\t</>\r\n\t\t);\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"ShareButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/ShareButton.jsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACvB,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B;IACjF,mDAA4B;IAC5B,8BAAM,CAAC,EAAC,yFAAyF,EAAC,IAAI,EAAC,SAAS,GAAG;IACnH,8BACC,CAAC,EAAC,4FAA4F,EAC9F,IAAI,EAAC,SAAS,GACb;IACF,8BAAM,IAAI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AAS,EAAC,sBAAsB,EAChC,KAAK,EAAC,eAAe,gBACT,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,SAAS,EAAC,MAAM,EAChB,WAAW,EAAE,IAAI,CAAC,WAAW;YAE7B,oBAAC,SAAS,OAAG;YACb,oBAAC,sBAAsB,IAAC,IAAI,EAAC,KAAK,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CAC1E,CACN,CACC,CACH,CAAC;IACH,CAAC;;AApFM,uBAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { getStore } from \"../../stores/windowTitleBarStore\";\nconst ShareIcon = () => (\n\t<svg width=\"20\" height=\"16\" viewBox=\"0 2 16 13\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<title>Drag To Share</title>\n\t\t<path d=\"M7 3H6V1H1v12h5v-3h1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v2z\" fill=\"#8E939F\" />\n\t\t<path\n\t\t\td=\"M9 11h1v2h5V1h-5v1H9V1a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-2z\"\n\t\t\tfill=\"#ECEDEF\"\n\t\t/>\n\t\t<rect fill=\"#ECEDEF\" x=\"4\" y=\"6\" width=\"8\" height=\"1\" rx=\".5\" />\n\t\t<path stroke=\"#ECEDEF\" strokeLinecap=\"round\" strokeLinejoin=\"round\" d=\"M9 9l2.755-2.348L9 4.128\" />\n\t</svg>\n);\n\nlet windowTitleBarStore;\nexport class ShareButton extends React.Component {\n\tstatic contextType = WindowTitleBarContext;\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.bindCorrectContext();\n\t\t/**\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\n\t\t */\n\t\twindowTitleBarStore = getStore();\n\n\t\tthis.state = {\n\t\t\thoverState: \"false\",\n\t\t};\n\t}\n\n\t/**\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\n\t *\n\t * @memberof ShareButton\n\t */\n\tbindCorrectContext() {\n\t\tthis.hoverAction = this.hoverAction.bind(this);\n\t}\n\n\t/**\n\t * When the user starts to drag the share button, let the DragAndDropClient know.\n\t *\n\t * @param {any} ev\n\t * @memberof ShareButton\n\t */\n\tonDragStart(ev) {\n\t\tFSBL.Clients.DragAndDropClient.dragStart(ev);\n\t}\n\n\t/**\n\t * Add listeners to store.\n\t *\n\t * @memberof ShareButton\n\t */\n\tUNSAFE_componentWillMount() {\n\t\twindowTitleBarStore.addListener({ field: \"Sharer.receiverHandler\" }, this.onReceiverhandler);\n\t}\n\n\t/**\n\t * Remove listeners from the store.\n\t *\n\t * @memberof ShareButton\n\t */\n\tcomponentWillUnmount() {\n\t\twindowTitleBarStore.removeListener({ field: \"Sharer.receiverHandler\" }, this.onReceiverhandler);\n\t}\n\n\t/**\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\n\t *\n\t * @param {any} newHoverState\n\t * @memberof LinkerButton\n\t */\n\thoverAction(newHoverState) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\trender() {\n\t\t/* [Terry] was causing Sharer to never show. Deprecated?\n\t\tif (!this.state.emitterEnabled) {\n\t\t\treturn null;\n\t\t}\n\t\t*/\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{this.context.showShareButton && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName=\"fsbl-icon fsbl-share\"\n\t\t\t\t\t\ttitle=\"Drag To Share\"\n\t\t\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\t\t\tdraggable=\"true\"\n\t\t\t\t\t\tonDragStart={this.onDragStart}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ShareIcon />\n\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n}\n"]}