@finsemble/finsemble-ui 8.3.0 → 8.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (548) hide show
  1. package/FEA.d.ts +54 -24
  2. package/FEA.d.ts.map +1 -1
  3. package/FEA.js.map +1 -1
  4. package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
  5. package/clients/Interop/FinsembleDesktopAgent.js +7 -10
  6. package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
  7. package/clients/Startup/FSBLDesktop.d.ts +2 -8
  8. package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
  9. package/clients/Startup/FSBLDesktop.js +2 -4
  10. package/clients/Startup/FSBLDesktop.js.map +1 -1
  11. package/clients/Startup/unhandledErrors.d.ts.map +1 -1
  12. package/clients/Startup/unhandledErrors.js +6 -4
  13. package/clients/Startup/unhandledErrors.js.map +1 -1
  14. package/clients/Startup/windowStartup.d.ts.map +1 -1
  15. package/clients/Startup/windowStartup.js +125 -112
  16. package/clients/Startup/windowStartup.js.map +1 -1
  17. package/clients/StoreModel.d.ts +8 -8
  18. package/clients/StoreModel.js +8 -8
  19. package/clients/appsClient.d.ts +429 -0
  20. package/clients/appsClient.d.ts.map +1 -0
  21. package/clients/appsClient.js +649 -0
  22. package/clients/appsClient.js.map +1 -0
  23. package/clients/authenticationClient.d.ts +29 -27
  24. package/clients/authenticationClient.d.ts.map +1 -1
  25. package/clients/authenticationClient.js +11 -15
  26. package/clients/authenticationClient.js.map +1 -1
  27. package/clients/configClient.d.ts +134 -70
  28. package/clients/configClient.d.ts.map +1 -1
  29. package/clients/configClient.js +129 -112
  30. package/clients/configClient.js.map +1 -1
  31. package/clients/controller/DialogManagerClientController.d.ts +78 -0
  32. package/clients/controller/DialogManagerClientController.d.ts.map +1 -0
  33. package/clients/controller/DialogManagerClientController.js +213 -0
  34. package/clients/controller/DialogManagerClientController.js.map +1 -0
  35. package/clients/dialogManagerClient.d.ts +1 -75
  36. package/clients/dialogManagerClient.d.ts.map +1 -1
  37. package/clients/dialogManagerClient.js +1 -208
  38. package/clients/dialogManagerClient.js.map +1 -1
  39. package/clients/distributedStoreClient.d.ts +1 -0
  40. package/clients/distributedStoreClient.d.ts.map +1 -1
  41. package/clients/distributedStoreClient.js +1 -0
  42. package/clients/distributedStoreClient.js.map +1 -1
  43. package/clients/hotkeyClient.d.ts +18 -9
  44. package/clients/hotkeyClient.d.ts.map +1 -1
  45. package/clients/hotkeyClient.js +30 -14
  46. package/clients/hotkeyClient.js.map +1 -1
  47. package/clients/index.d.ts +2 -0
  48. package/clients/index.d.ts.map +1 -1
  49. package/clients/index.js +2 -0
  50. package/clients/index.js.map +1 -1
  51. package/clients/launcherClient.d.ts +50 -209
  52. package/clients/launcherClient.d.ts.map +1 -1
  53. package/clients/launcherClient.js +35 -422
  54. package/clients/launcherClient.js.map +1 -1
  55. package/clients/logger.d.ts.map +1 -1
  56. package/clients/logger.js +43 -41
  57. package/clients/logger.js.map +1 -1
  58. package/clients/notificationClient.d.ts +15 -8
  59. package/clients/notificationClient.d.ts.map +1 -1
  60. package/clients/notificationClient.js +15 -8
  61. package/clients/notificationClient.js.map +1 -1
  62. package/clients/routerClient.d.ts +25 -21
  63. package/clients/routerClient.d.ts.map +1 -1
  64. package/clients/routerClient.js +24 -20
  65. package/clients/routerClient.js.map +1 -1
  66. package/clients/searchClient.d.ts +2 -2
  67. package/clients/searchClient.js +2 -2
  68. package/clients/storageClient.d.ts +8 -5
  69. package/clients/storageClient.d.ts.map +1 -1
  70. package/clients/storageClient.js +7 -5
  71. package/clients/storageClient.js.map +1 -1
  72. package/clients/windowClient.d.ts +160 -79
  73. package/clients/windowClient.d.ts.map +1 -1
  74. package/clients/windowClient.js +244 -138
  75. package/clients/windowClient.js.map +1 -1
  76. package/clients/workspaceClient.d.ts +19 -14
  77. package/clients/workspaceClient.d.ts.map +1 -1
  78. package/clients/workspaceClient.js +15 -9
  79. package/clients/workspaceClient.js.map +1 -1
  80. package/common/Desktop.d.ts +9 -50
  81. package/common/Desktop.d.ts.map +1 -1
  82. package/common/Desktop.js +11 -64
  83. package/common/Desktop.js.map +1 -1
  84. package/common/FinsembleWindow.d.ts +4 -107
  85. package/common/FinsembleWindow.d.ts.map +1 -1
  86. package/common/FinsembleWindow.js +21 -342
  87. package/common/FinsembleWindow.js.map +1 -1
  88. package/common/Monitors.d.ts +30 -18
  89. package/common/Monitors.d.ts.map +1 -1
  90. package/common/Monitors.js +45 -80
  91. package/common/Monitors.js.map +1 -1
  92. package/common/Singleton.d.ts +7 -1
  93. package/common/Singleton.d.ts.map +1 -1
  94. package/common/Singleton.js +24 -11
  95. package/common/Singleton.js.map +1 -1
  96. package/common/constants.d.ts +3 -9
  97. package/common/constants.d.ts.map +1 -1
  98. package/common/constants.js +3 -14
  99. package/common/constants.js.map +1 -1
  100. package/common/events/FinsembleEvent.d.ts +1 -1
  101. package/common/events/FinsembleEvent.d.ts.map +1 -1
  102. package/common/redux/getRemoteStore.d.ts +53 -0
  103. package/common/redux/getRemoteStore.d.ts.map +1 -0
  104. package/common/redux/getRemoteStore.js +50 -0
  105. package/common/redux/getRemoteStore.js.map +1 -0
  106. package/common/redux/remoteReduxEnhancer.d.ts +7 -7
  107. package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
  108. package/common/redux/remoteReduxEnhancer.js +35 -20
  109. package/common/redux/remoteReduxEnhancer.js.map +1 -1
  110. package/common/redux/types.d.ts +14 -1
  111. package/common/redux/types.d.ts.map +1 -1
  112. package/common/systemManagerClient.d.ts +11 -5
  113. package/common/systemManagerClient.d.ts.map +1 -1
  114. package/common/systemManagerClient.js +25 -8
  115. package/common/systemManagerClient.js.map +1 -1
  116. package/common/util.d.ts +1 -7
  117. package/common/util.d.ts.map +1 -1
  118. package/common/util.js +1 -14
  119. package/common/util.js.map +1 -1
  120. package/deprecated/deprecatedFunctions.d.ts +1 -1
  121. package/deprecated/deprecatedFunctions.d.ts.map +1 -1
  122. package/deprecated/deprecatedFunctions.js +3 -4
  123. package/deprecated/deprecatedFunctions.js.map +1 -1
  124. package/deprecated/deprecatedlauncherClient.d.ts +1 -1
  125. package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
  126. package/deprecated/deprecatedlauncherClient.js.map +1 -1
  127. package/deprecated/dragAndDropClient.d.ts +3 -3
  128. package/deprecated/dragAndDropClient.d.ts.map +1 -1
  129. package/deprecated/dragAndDropClient.js +14 -4
  130. package/deprecated/dragAndDropClient.js.map +1 -1
  131. package/deprecated/linkerClient.d.ts +1 -1
  132. package/deprecated/linkerClient.d.ts.map +1 -1
  133. package/main.d.ts +277 -171
  134. package/main.d.ts.map +1 -1
  135. package/main.js +3 -1
  136. package/main.js.map +1 -1
  137. package/package.json +3 -3
  138. package/platform/services/Interop/types.d.ts +8 -1
  139. package/platform/services/Interop/types.d.ts.map +1 -1
  140. package/platform/services/Interop/types.js.map +1 -1
  141. package/platform/services/router/types.d.ts +5 -6
  142. package/platform/services/router/types.d.ts.map +1 -1
  143. package/platform/services/systemManager/_constants.d.ts +1 -0
  144. package/platform/services/systemManager/_constants.d.ts.map +1 -1
  145. package/platform/services/systemManager/_constants.js +2 -0
  146. package/platform/services/systemManager/_constants.js.map +1 -1
  147. package/platform/services/systemManager/types.d.ts +1 -1
  148. package/platform/services/systemManager/types.d.ts.map +1 -1
  149. package/platform/services/systemManager/types.js.map +1 -1
  150. package/platform/services/window/modules/actions.d.ts +63 -0
  151. package/platform/services/window/modules/actions.d.ts.map +1 -0
  152. package/platform/services/window/modules/actions.js +58 -0
  153. package/platform/services/window/modules/actions.js.map +1 -0
  154. package/platform/services/window/types.d.ts +257 -50
  155. package/platform/services/window/types.d.ts.map +1 -1
  156. package/platform/services/workspace/types.d.ts +4 -3
  157. package/platform/services/workspace/types.d.ts.map +1 -1
  158. package/react/assets/css/core/icons.css +0 -5
  159. package/react/assets/css/fonts/icons-reference.html +1 -1
  160. package/react/assets/css/processMonitor.css +9 -4
  161. package/react/assets/css/windowTitleBar.css +100 -284
  162. package/react/assets/icons/chevron-down.svg +1 -0
  163. package/react/assets/icons/chevron-up.svg +1 -0
  164. package/react/components/common/ButtonRow.d.ts.map +1 -1
  165. package/react/components/common/ButtonRow.js +4 -9
  166. package/react/components/common/ButtonRow.js.map +1 -1
  167. package/react/components/common/ContextMenu.d.ts.map +1 -1
  168. package/react/components/common/ContextMenu.js +2 -10
  169. package/react/components/common/ContextMenu.js.map +1 -1
  170. package/react/components/common/DropdownButton.d.ts.map +1 -1
  171. package/react/components/common/DropdownButton.js +11 -24
  172. package/react/components/common/DropdownButton.js.map +1 -1
  173. package/react/components/common/FinsembleIcon.d.ts +1 -1
  174. package/react/components/common/FinsembleIcon.d.ts.map +1 -1
  175. package/react/components/common/FinsembleIcon.js +6 -4
  176. package/react/components/common/FinsembleIcon.js.map +1 -1
  177. package/react/components/common/css/accordion.css +9 -21
  178. package/react/components/common/css/application-edit-page.css +0 -4
  179. package/react/components/common/css/selector.css +3 -1
  180. package/react/components/downloadManager/DownloadManager.d.ts +1 -1
  181. package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
  182. package/react/components/downloadManager/DownloadManager.js +2 -4
  183. package/react/components/downloadManager/DownloadManager.js.map +1 -1
  184. package/react/components/fdc3Resolver/ResolverContainer.d.ts +6 -0
  185. package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
  186. package/react/components/fdc3Resolver/ResolverContainer.js +37 -89
  187. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  188. package/react/components/fdc3Resolver/ResolverDialog.d.ts +10 -1
  189. package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
  190. package/react/components/fdc3Resolver/ResolverDialog.js +78 -66
  191. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  192. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
  193. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
  194. package/react/components/linker/remoteRedux.d.ts +2 -9
  195. package/react/components/linker/remoteRedux.d.ts.map +1 -1
  196. package/react/components/linker/remoteRedux.js +2 -22
  197. package/react/components/linker/remoteRedux.js.map +1 -1
  198. package/react/components/notifications/css/notification-center.css +2 -0
  199. package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
  200. package/react/components/processMonitor/ProcessMonitor.js +14 -36
  201. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  202. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +0 -4
  203. package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
  204. package/react/components/processMonitor/ProcessMonitorTypes.js +1 -5
  205. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  206. package/react/components/processMonitor/components/ChildWindow.d.ts +2 -3
  207. package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
  208. package/react/components/processMonitor/components/ChildWindow.js +5 -9
  209. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  210. package/react/components/processMonitor/components/ListHeader.d.ts +1 -5
  211. package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
  212. package/react/components/processMonitor/components/ListHeader.js +3 -2
  213. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  214. package/react/components/processMonitor/components/Process.d.ts +10 -0
  215. package/react/components/processMonitor/components/Process.d.ts.map +1 -0
  216. package/react/components/processMonitor/components/Process.js +11 -0
  217. package/react/components/processMonitor/components/Process.js.map +1 -0
  218. package/react/components/processMonitor/components/ProcessStatistics.d.ts +5 -4
  219. package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
  220. package/react/components/processMonitor/components/ProcessStatistics.js +10 -7
  221. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  222. package/react/components/processMonitor/constants.d.ts +1 -2
  223. package/react/components/processMonitor/constants.d.ts.map +1 -1
  224. package/react/components/processMonitor/constants.js +2 -8
  225. package/react/components/processMonitor/constants.js.map +1 -1
  226. package/react/components/processMonitor/helpers.d.ts +0 -1
  227. package/react/components/processMonitor/helpers.d.ts.map +1 -1
  228. package/react/components/processMonitor/helpers.js +2 -9
  229. package/react/components/processMonitor/helpers.js.map +1 -1
  230. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +0 -4
  231. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
  232. package/react/components/processMonitor/stores/ProcessMonitorStore.js +0 -29
  233. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  234. package/react/components/search/SearchInput.d.ts +1 -2
  235. package/react/components/search/SearchInput.d.ts.map +1 -1
  236. package/react/components/search/SearchInput.js +11 -13
  237. package/react/components/search/SearchInput.js.map +1 -1
  238. package/react/components/search/SearchResults.d.ts.map +1 -1
  239. package/react/components/search/SearchResults.js +6 -6
  240. package/react/components/search/SearchResults.js.map +1 -1
  241. package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
  242. package/react/components/shared/openQuitConfirmationDialog.js +31 -4
  243. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  244. package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
  245. package/react/components/singleInputDialog/SingleInputDialog.js +83 -100
  246. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  247. package/react/components/toolbar/DragHandle.d.ts.map +1 -1
  248. package/react/components/toolbar/DragHandle.js +8 -5
  249. package/react/components/toolbar/DragHandle.js.map +1 -1
  250. package/react/components/toolbar/ToolbarShell.d.ts +1 -0
  251. package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
  252. package/react/components/toolbar/ToolbarShell.js +3 -2
  253. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  254. package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -0
  255. package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
  256. package/react/components/userPreferences/components/content/Workspaces.js +14 -1
  257. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  258. package/react/components/utils.d.ts +50 -0
  259. package/react/components/utils.d.ts.map +1 -0
  260. package/react/components/utils.js +60 -0
  261. package/react/components/utils.js.map +1 -0
  262. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +9 -0
  263. package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -0
  264. package/react/components/windowTitleBar/AlwaysOnTopButton.js +29 -0
  265. package/react/components/windowTitleBar/AlwaysOnTopButton.js.map +1 -0
  266. package/react/components/windowTitleBar/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -0
  267. package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -0
  268. package/react/components/windowTitleBar/CloseButton.js +22 -0
  269. package/react/components/windowTitleBar/CloseButton.js.map +1 -0
  270. package/react/components/windowTitleBar/GroupingButton.d.ts +3 -0
  271. package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -0
  272. package/react/components/windowTitleBar/GroupingButton.js +25 -0
  273. package/react/components/windowTitleBar/GroupingButton.js.map +1 -0
  274. package/react/components/windowTitleBar/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -0
  275. package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -0
  276. package/react/components/windowTitleBar/{components/left/LinkerButton.js → LinkerButton.js} +4 -4
  277. package/react/components/windowTitleBar/LinkerButton.js.map +1 -0
  278. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +11 -0
  279. package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -0
  280. package/react/components/windowTitleBar/LinkerButtonDeprecated.js +63 -0
  281. package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -0
  282. package/react/components/windowTitleBar/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -0
  283. package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -0
  284. package/react/components/windowTitleBar/{components/left/LinkerGroups.js → LinkerGroups.js} +2 -3
  285. package/react/components/windowTitleBar/LinkerGroups.js.map +1 -0
  286. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +7 -0
  287. package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -0
  288. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +35 -0
  289. package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -0
  290. package/react/components/windowTitleBar/MaximizeButton.d.ts +3 -0
  291. package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -0
  292. package/react/components/windowTitleBar/MaximizeButton.js +18 -0
  293. package/react/components/windowTitleBar/MaximizeButton.js.map +1 -0
  294. package/react/components/windowTitleBar/MinimizeButton.d.ts +3 -0
  295. package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -0
  296. package/react/components/windowTitleBar/MinimizeButton.js +21 -0
  297. package/react/components/windowTitleBar/MinimizeButton.js.map +1 -0
  298. package/react/components/windowTitleBar/ShareButton.d.ts +3 -0
  299. package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -0
  300. package/react/components/windowTitleBar/ShareButton.js +24 -0
  301. package/react/components/windowTitleBar/ShareButton.js.map +1 -0
  302. package/react/components/windowTitleBar/TabRegion.d.ts +7 -0
  303. package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -0
  304. package/react/components/windowTitleBar/TabRegion.js +453 -0
  305. package/react/components/windowTitleBar/TabRegion.js.map +1 -0
  306. package/react/components/windowTitleBar/TabTitle.d.ts +8 -0
  307. package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -0
  308. package/react/components/windowTitleBar/TabTitle.js +17 -0
  309. package/react/components/windowTitleBar/TabTitle.js.map +1 -0
  310. package/react/components/windowTitleBar/TitleEdit.d.ts +10 -0
  311. package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -0
  312. package/react/components/windowTitleBar/TitleEdit.js +30 -0
  313. package/react/components/windowTitleBar/TitleEdit.js.map +1 -0
  314. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +12 -0
  315. package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -0
  316. package/react/components/windowTitleBar/WindowTitleBarContext.js +3 -0
  317. package/react/components/windowTitleBar/WindowTitleBarContext.js.map +1 -0
  318. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +14 -272
  319. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
  320. package/react/components/windowTitleBar/WindowTitleBarShell.js +41 -929
  321. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  322. package/react/components/windowTitleBar/index.d.ts +9 -8
  323. package/react/components/windowTitleBar/index.d.ts.map +1 -1
  324. package/react/components/windowTitleBar/index.js +9 -8
  325. package/react/components/windowTitleBar/index.js.map +1 -1
  326. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +7 -0
  327. package/react/components/windowTitleBar/useKeyboardNavigation.d.ts.map +1 -0
  328. package/react/components/windowTitleBar/useKeyboardNavigation.js +57 -0
  329. package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -0
  330. package/react/components/windowTitleBar/useMaximize.d.ts +5 -0
  331. package/react/components/windowTitleBar/useMaximize.d.ts.map +1 -0
  332. package/react/components/windowTitleBar/useMaximize.js +23 -0
  333. package/react/components/windowTitleBar/useMaximize.js.map +1 -0
  334. package/react/components/yesNoDialog/timer.js +2 -1
  335. package/react/components/yesNoDialog/timer.js.map +1 -1
  336. package/react/hooks/useDashbar.d.ts.map +1 -1
  337. package/react/hooks/useDashbar.js.map +1 -1
  338. package/react/hooks/useDragRegion.d.ts +27 -0
  339. package/react/hooks/useDragRegion.d.ts.map +1 -0
  340. package/react/hooks/useDragRegion.js +74 -0
  341. package/react/hooks/useDragRegion.js.map +1 -0
  342. package/react/hooks/useInjectedTitleBar.d.ts +3 -0
  343. package/react/hooks/useInjectedTitleBar.d.ts.map +1 -0
  344. package/react/hooks/useInjectedTitleBar.js +437 -0
  345. package/react/hooks/useInjectedTitleBar.js.map +1 -0
  346. package/react/hooks/useNotifications.d.ts +1 -1
  347. package/react/hooks/useToolbar.d.ts +1 -0
  348. package/react/hooks/useToolbar.d.ts.map +1 -1
  349. package/react/hooks/useToolbar.js +13 -3
  350. package/react/hooks/useToolbar.js.map +1 -1
  351. package/typedefs/FDC3/api/AppMetadata.d.ts +1 -0
  352. package/typedefs/FDC3/api/AppMetadata.d.ts.map +1 -1
  353. package/typedoc-types.d.ts +9 -0
  354. package/typedoc-types.d.ts.map +1 -0
  355. package/typedoc-types.js +6 -0
  356. package/typedoc-types.js.map +1 -0
  357. package/types.d.ts +5 -11
  358. package/types.d.ts.map +1 -1
  359. package/types.js +2 -0
  360. package/types.js.map +1 -1
  361. package/common/events/PrivateEventManager.d.ts +0 -95
  362. package/common/events/PrivateEventManager.d.ts.map +0 -1
  363. package/common/events/PrivateEventManager.js +0 -295
  364. package/common/events/PrivateEventManager.js.map +0 -1
  365. package/common/events/PrivateFinsembleEvent.d.ts +0 -30
  366. package/common/events/PrivateFinsembleEvent.d.ts.map +0 -1
  367. package/common/events/PrivateFinsembleEvent.js +0 -65
  368. package/common/events/PrivateFinsembleEvent.js.map +0 -1
  369. package/common/redux/createReducer.d.ts +0 -128
  370. package/common/redux/createReducer.d.ts.map +0 -1
  371. package/common/redux/createReducer.js +0 -298
  372. package/common/redux/createReducer.js.map +0 -1
  373. package/common/redux/index.d.ts +0 -3
  374. package/common/redux/index.d.ts.map +0 -1
  375. package/common/redux/index.js +0 -3
  376. package/common/redux/index.js.map +0 -1
  377. package/platform/services/window/Common/Pools/ObjectPool.d.ts +0 -11
  378. package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +0 -1
  379. package/platform/services/window/Common/Pools/ObjectPool.js +0 -43
  380. package/platform/services/window/Common/Pools/ObjectPool.js.map +0 -1
  381. package/platform/services/window/Common/Pools/PoolSingletons.d.ts +0 -10
  382. package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +0 -1
  383. package/platform/services/window/Common/Pools/PoolSingletons.js +0 -10
  384. package/platform/services/window/Common/Pools/PoolSingletons.js.map +0 -1
  385. package/platform/services/window/Common/Pools/WindowPool.d.ts +0 -7
  386. package/platform/services/window/Common/Pools/WindowPool.d.ts.map +0 -1
  387. package/platform/services/window/Common/Pools/WindowPool.js +0 -16
  388. package/platform/services/window/Common/Pools/WindowPool.js.map +0 -1
  389. package/platform/services/window/Docking/boxMath.d.ts +0 -144
  390. package/platform/services/window/Docking/boxMath.d.ts.map +0 -1
  391. package/platform/services/window/Docking/boxMath.js +0 -511
  392. package/platform/services/window/Docking/boxMath.js.map +0 -1
  393. package/platform/services/window/Docking/constants.d.ts +0 -29
  394. package/platform/services/window/Docking/constants.d.ts.map +0 -1
  395. package/platform/services/window/Docking/constants.js +0 -29
  396. package/platform/services/window/Docking/constants.js.map +0 -1
  397. package/platform/services/window/Docking/dockableBox.d.ts +0 -117
  398. package/platform/services/window/Docking/dockableBox.d.ts.map +0 -1
  399. package/platform/services/window/Docking/dockableBox.js +0 -525
  400. package/platform/services/window/Docking/dockableBox.js.map +0 -1
  401. package/platform/services/window/Docking/dockableGroup.d.ts +0 -252
  402. package/platform/services/window/Docking/dockableGroup.d.ts.map +0 -1
  403. package/platform/services/window/Docking/dockableGroup.js +0 -1054
  404. package/platform/services/window/Docking/dockableGroup.js.map +0 -1
  405. package/platform/services/window/Docking/dockableMonitor.d.ts +0 -99
  406. package/platform/services/window/Docking/dockableMonitor.d.ts.map +0 -1
  407. package/platform/services/window/Docking/dockableMonitor.js +0 -427
  408. package/platform/services/window/Docking/dockableMonitor.js.map +0 -1
  409. package/platform/services/window/Docking/dockableWindow.d.ts +0 -272
  410. package/platform/services/window/Docking/dockableWindow.d.ts.map +0 -1
  411. package/platform/services/window/Docking/dockableWindow.js +0 -1239
  412. package/platform/services/window/Docking/dockableWindow.js.map +0 -1
  413. package/platform/services/window/Docking/dockingCalculator.d.ts +0 -741
  414. package/platform/services/window/Docking/dockingCalculator.d.ts.map +0 -1
  415. package/platform/services/window/Docking/dockingCalculator.js +0 -3438
  416. package/platform/services/window/Docking/dockingCalculator.js.map +0 -1
  417. package/platform/services/window/Docking/dockingMain.d.ts +0 -349
  418. package/platform/services/window/Docking/dockingMain.d.ts.map +0 -1
  419. package/platform/services/window/Docking/dockingMain.js +0 -2541
  420. package/platform/services/window/Docking/dockingMain.js.map +0 -1
  421. package/platform/services/window/Docking/maskBoundsCalculator.d.ts +0 -28
  422. package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +0 -1
  423. package/platform/services/window/Docking/maskBoundsCalculator.js +0 -67
  424. package/platform/services/window/Docking/maskBoundsCalculator.js.map +0 -1
  425. package/platform/services/window/Docking/monitorUpdateHandler.d.ts +0 -32
  426. package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +0 -1
  427. package/platform/services/window/Docking/monitorUpdateHandler.js +0 -117
  428. package/platform/services/window/Docking/monitorUpdateHandler.js.map +0 -1
  429. package/platform/services/window/Docking/types.d.ts +0 -334
  430. package/platform/services/window/Docking/types.d.ts.map +0 -1
  431. package/platform/services/window/Docking/types.js +0 -12
  432. package/platform/services/window/Docking/types.js.map +0 -1
  433. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +0 -90
  434. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +0 -1
  435. package/platform/services/window/MultiWindowFeatures/autoArrange.js +0 -510
  436. package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +0 -1
  437. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +0 -411
  438. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +0 -1
  439. package/platform/services/window/StackedWindowManager/stackedWindowManager.js +0 -1641
  440. package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +0 -1
  441. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts +0 -469
  442. package/platform/services/window/WindowAbstractions/BaseWindow.d.ts.map +0 -1
  443. package/platform/services/window/WindowAbstractions/BaseWindow.js +0 -1347
  444. package/platform/services/window/WindowAbstractions/BaseWindow.js.map +0 -1
  445. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +0 -9
  446. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +0 -1
  447. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +0 -23
  448. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +0 -1
  449. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +0 -227
  450. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +0 -1
  451. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +0 -1168
  452. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +0 -1
  453. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +0 -121
  454. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +0 -1
  455. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +0 -591
  456. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +0 -1
  457. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +0 -194
  458. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +0 -1
  459. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +0 -680
  460. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +0 -1
  461. package/platform/services/window/windowGroup.d.ts +0 -86
  462. package/platform/services/window/windowGroup.d.ts.map +0 -1
  463. package/platform/services/window/windowGroup.js +0 -323
  464. package/platform/services/window/windowGroup.js.map +0 -1
  465. package/platform/services/workspace/windowStorageManager.d.ts +0 -180
  466. package/platform/services/workspace/windowStorageManager.d.ts.map +0 -1
  467. package/platform/services/workspace/windowStorageManager.js +0 -195
  468. package/platform/services/workspace/windowStorageManager.js.map +0 -1
  469. package/react/assets/icons/question-circle.svg +0 -6
  470. package/react/components/legacyControls/FinsembleHoverDetector.d.ts +0 -23
  471. package/react/components/legacyControls/FinsembleHoverDetector.d.ts.map +0 -1
  472. package/react/components/legacyControls/FinsembleHoverDetector.js +0 -57
  473. package/react/components/legacyControls/FinsembleHoverDetector.js.map +0 -1
  474. package/react/components/sdd/Appearance.helpers.d.ts +0 -2
  475. package/react/components/sdd/Appearance.helpers.d.ts.map +0 -1
  476. package/react/components/sdd/Appearance.helpers.js +0 -2
  477. package/react/components/sdd/Appearance.helpers.js.map +0 -1
  478. package/react/components/shared/linkerUtil.d.ts +0 -4
  479. package/react/components/shared/linkerUtil.d.ts.map +0 -1
  480. package/react/components/shared/linkerUtil.js +0 -10
  481. package/react/components/shared/linkerUtil.js.map +0 -1
  482. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -31
  483. package/react/components/windowTitleBar/components/center/Tab.d.ts.map +0 -1
  484. package/react/components/windowTitleBar/components/center/Tab.js +0 -58
  485. package/react/components/windowTitleBar/components/center/Tab.js.map +0 -1
  486. package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -138
  487. package/react/components/windowTitleBar/components/center/TabList.d.ts.map +0 -1
  488. package/react/components/windowTitleBar/components/center/TabList.js +0 -614
  489. package/react/components/windowTitleBar/components/center/TabList.js.map +0 -1
  490. package/react/components/windowTitleBar/components/center/TabRegion.d.ts +0 -3
  491. package/react/components/windowTitleBar/components/center/TabRegion.d.ts.map +0 -1
  492. package/react/components/windowTitleBar/components/center/TabRegion.js +0 -13
  493. package/react/components/windowTitleBar/components/center/TabRegion.js.map +0 -1
  494. package/react/components/windowTitleBar/components/left/LinkerButton.d.ts.map +0 -1
  495. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +0 -1
  496. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +0 -85
  497. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts.map +0 -1
  498. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +0 -172
  499. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +0 -1
  500. package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts.map +0 -1
  501. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +0 -1
  502. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +0 -50
  503. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts.map +0 -1
  504. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +0 -120
  505. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +0 -1
  506. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +0 -42
  507. package/react/components/windowTitleBar/components/left/ShareButton.d.ts.map +0 -1
  508. package/react/components/windowTitleBar/components/left/ShareButton.js +0 -82
  509. package/react/components/windowTitleBar/components/left/ShareButton.js.map +0 -1
  510. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts +0 -3
  511. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts.map +0 -1
  512. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +0 -15
  513. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +0 -1
  514. package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +0 -1
  515. package/react/components/windowTitleBar/components/right/CloseButton.js +0 -16
  516. package/react/components/windowTitleBar/components/right/CloseButton.js.map +0 -1
  517. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +0 -50
  518. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts.map +0 -1
  519. package/react/components/windowTitleBar/components/right/GroupingButton.js +0 -82
  520. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +0 -1
  521. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +0 -59
  522. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts.map +0 -1
  523. package/react/components/windowTitleBar/components/right/MaximizeButton.js +0 -96
  524. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +0 -1
  525. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +0 -26
  526. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts.map +0 -1
  527. package/react/components/windowTitleBar/components/right/MinimizeButton.js +0 -32
  528. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +0 -1
  529. package/react/components/windowTitleBar/components/windowTitle.d.ts +0 -67
  530. package/react/components/windowTitleBar/components/windowTitle.d.ts.map +0 -1
  531. package/react/components/windowTitleBar/components/windowTitle.js +0 -382
  532. package/react/components/windowTitleBar/components/windowTitle.js.map +0 -1
  533. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +0 -69
  534. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts.map +0 -1
  535. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +0 -610
  536. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +0 -1
  537. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +0 -44
  538. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts.map +0 -1
  539. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js +0 -43
  540. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +0 -1
  541. package/react/components/windowTitleBar/windowTitleBarContext.d.ts +0 -23
  542. package/react/components/windowTitleBar/windowTitleBarContext.d.ts.map +0 -1
  543. package/react/components/windowTitleBar/windowTitleBarContext.js +0 -22
  544. package/react/components/windowTitleBar/windowTitleBarContext.js.map +0 -1
  545. package/react/types/windowTitleBar.d.ts +0 -49
  546. package/react/types/windowTitleBar.d.ts.map +0 -1
  547. package/react/types/windowTitleBar.js +0 -2
  548. package/react/types/windowTitleBar.js.map +0 -1
@@ -1,298 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { produce, isDraft, isDraftable } from "immer";
13
- import { loop, Cmd, isLoop, } from "redux-loop";
14
- /**
15
- * Use `unImmer()` to safely pass objects from reducers to effects.
16
- *
17
- * @param obj Any object
18
- * @returns any
19
- */
20
- export const unImmer = (obj) => JSON.parse(JSON.stringify(obj));
21
- const formatRunCmd = (cmd) => {
22
- let obj = {
23
- RUN: cmd.func.name,
24
- };
25
- if (cmd.args && cmd.args.length > 0) {
26
- // nested if args contains an object
27
- if (cmd.args.some((arg) => typeof arg === "object"))
28
- obj.args = cmd.args;
29
- // string, for quick reading
30
- else
31
- obj.args = cmd.args.join(" ");
32
- }
33
- if (cmd.successActionCreator)
34
- obj.successActionCreator = cmd.successActionCreator.name;
35
- if (cmd.failActionCreator)
36
- obj.successActionCreator = cmd.failActionCreator.name;
37
- return obj;
38
- };
39
- const formatActionCmd = (cmd) => {
40
- const _a = cmd.actionToDispatch, { type } = _a, members = __rest(_a, ["type"]);
41
- return Object.assign({ ACTION: type }, members);
42
- };
43
- /**
44
- * Formats redux-loop cmds for very quick human perusal in redux-devtools.
45
- */
46
- const formatCmdForDisplay = (cmd) => {
47
- switch (cmd.type) {
48
- case "RUN": {
49
- return formatRunCmd(cmd);
50
- }
51
- case "LIST":
52
- return Object.assign(Object.assign({}, cmd), { cmds: cmd.cmds.map(formatCmdForDisplay) });
53
- case "MAP":
54
- return Object.assign(Object.assign({}, cmd), { tagger: cmd.tagger.name, nestedCmd: formatCmdForDisplay(cmd.nestedCmd) });
55
- case "ACTION":
56
- return formatActionCmd(cmd);
57
- case "NONE":
58
- default:
59
- return cmd;
60
- }
61
- };
62
- /**
63
- * Intercepts calls to `cmd()` within reducers. The cmds are remembered and then
64
- * consolidated into a singl Cmd.List() at the end of the reducer process (bottom of this file).
65
- */
66
- class CmdProxy {
67
- constructor() {
68
- this.commands = [];
69
- }
70
- run(fn, args) {
71
- let runCmd = Cmd.run(fn, args);
72
- this.commands.push(runCmd);
73
- return runCmd;
74
- }
75
- action(action) {
76
- let runCmd = Cmd.action(action);
77
- this.commands.push(runCmd);
78
- return runCmd;
79
- }
80
- list(cmds, options) {
81
- let runCmd = Cmd.list(cmds, options);
82
- this.commands.push(runCmd);
83
- return runCmd;
84
- }
85
- map(cmd, tagger, args) {
86
- let runCmd = Cmd.map(cmd, tagger, args);
87
- this.commands.push(runCmd);
88
- return runCmd;
89
- }
90
- clearTimeout(timerId) {
91
- let runCmd = Cmd.clearTimeout(timerId);
92
- this.commands.push(runCmd);
93
- return runCmd;
94
- }
95
- clearInterval(timerId) {
96
- let runCmd = Cmd.clearInterval(timerId);
97
- this.commands.push(runCmd);
98
- return runCmd;
99
- }
100
- setTimeout(cmd, delayMs, options) {
101
- let runCmd = Cmd.setTimeout(cmd, delayMs, options);
102
- this.commands.push(runCmd);
103
- return runCmd;
104
- }
105
- setInterval(cmd, delayMs, options) {
106
- let runCmd = Cmd.setInterval(cmd, delayMs, options);
107
- this.commands.push(runCmd);
108
- return runCmd;
109
- }
110
- }
111
- /**
112
- * A slimmed down version of RTK's builder. See comments below in createReducer() for more information.
113
- */
114
- export function executeReducerBuilderCallback(builderCallback) {
115
- // Unlike RTK, supports multiple reducer cases per action, but does not support isMatcher or default cases
116
- const actionsMap = {};
117
- const builder = {
118
- addNoImmerCase(typeOrActionCreator, reducer) {
119
- var _a;
120
- const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
121
- actionsMap[type] = ((_a = actionsMap[type]) !== null && _a !== void 0 ? _a : []).concat({ reducer });
122
- return builder;
123
- },
124
- addCase(typeOrActionCreator, loopReducer) {
125
- var _a;
126
- const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
127
- actionsMap[type] = ((_a = actionsMap[type]) !== null && _a !== void 0 ? _a : []).concat({ loopReducer });
128
- return builder;
129
- },
130
- };
131
- builderCallback(builder);
132
- return actionsMap;
133
- }
134
- /**
135
- * Runs the loop reducer on a non-draftable reducer (one that returns a value rather than using immer). This
136
- * has a little extra logic to protect against the reducer being used improperly.
137
- */
138
- const reduceNonDraftable = (loopReducer, state, action, cmdProxy) => {
139
- const resultState = loopReducer(state, action, cmdProxy);
140
- // case reducers that aren't working on immer drafts should always return a value
141
- // The sole exception is the first pass through (indicated by previousState being null)
142
- if (typeof resultState === "undefined") {
143
- if (state !== null) {
144
- throw Error("A case reducer on a non-draftable value must not return undefined");
145
- }
146
- return state;
147
- }
148
- return resultState;
149
- };
150
- /**
151
- * This is what makes the redux-toolkit style createReducer function compatible with redux-loops.
152
- * It runs the reducer (loopReducer from redux-loop) but instead of running each individual Cmd, it compiles
153
- * them into an array so that they can all be run in one swoop.
154
- */
155
- const runLoopReducer = (caseReducers, state, action, hook) => {
156
- let commands = [];
157
- const reducedState = caseReducers.reduce((previousState, caseReducer) => {
158
- const cmdProxy = new CmdProxy();
159
- hook === null || hook === void 0 ? void 0 : hook(previousState, null, action);
160
- let nextState = previousState;
161
- if (caseReducer) {
162
- const { reducer, loopReducer } = caseReducer;
163
- if (reducer) {
164
- nextState = reducer(previousState, action);
165
- if (isLoop(nextState)) {
166
- commands = commands.concat([nextState[1]]);
167
- nextState = nextState[0];
168
- }
169
- }
170
- else if (loopReducer) {
171
- if (isDraft(previousState)) {
172
- // If it's already a draft, we must already be inside a `createNextState` call,
173
- // likely because this is being wrapped in `createReducer`, `createSlice`, or nested
174
- // inside an existing draft. It's safe to just pass the draft to the mutator. We
175
- // run loopReducer here only to get the commands
176
- loopReducer(previousState, action, cmdProxy);
177
- commands = commands.concat(cmdProxy.commands);
178
- }
179
- else if (!isDraftable(previousState)) {
180
- // If state is not draftable (ex: a primitive, such as 0), we want to directly
181
- // return the caseReducer func and not wrap it with produce.
182
- nextState = reduceNonDraftable(loopReducer, previousState, action, cmdProxy);
183
- }
184
- else {
185
- nextState = produce(previousState, (draft) => {
186
- loopReducer(draft, action, cmdProxy);
187
- commands = commands.concat(cmdProxy.commands);
188
- });
189
- }
190
- }
191
- }
192
- return nextState;
193
- }, state);
194
- return { reducedState, commands };
195
- };
196
- /**
197
- * This requires that redux-loops middleware has been installed in the store.
198
- *
199
- * This is a forked version of the custom createReducer() from React-Toolkit (RTK).
200
- * This version adds support for redux-loops by passing a `cmd` as an optional third parameter in the reducer call.
201
- * That `cmd` is a proxy for redux-loop's "Cmd" and can be use in the same way.
202
- *
203
- * Unlike RTK's createReducer, this version does allow you to add multiple reducer cases for the same dispatch. Be
204
- * careful not to make assumptions about which reducer will run first! This is best used when there are no dependencies.
205
- *
206
- * The following RTK functionality has been removed: addMatcher(), addDefaultCase(), "Map Object" notation
207
- *
208
- * Direct state mutation via return values is still supported but a special builder function `addNoImmerCase`
209
- * is better suited for those situations because it enforces read only state. This case will also not send a redux-loop
210
- * cmd as a third parameter because you can use redux-loops the normal way.
211
- *
212
- * Example: Using redux-loop
213
- * ```
214
- * builder.addCase(myAction, (state, action: PayloadAction<ClientAdded>, cmd) => {
215
- * state.blah = action.payload.blah; // Do normal reducer stuff
216
- *
217
- * // Create a loop, see redux-loop documentation
218
- * cmd.run(getLinkerState, {
219
- * args : [windowName],
220
- * successActionCreator : actions.initializeWindow
221
- * })
222
- * })
223
- * ```
224
- *
225
- * Use `Cmd.getState`, `Cmd.dispatch` or `Cmd.none` by importing them from redux-loop. There aren't equivalents for cmd because
226
- * redux-loop uses the "unique symbol" type which cannot be copied (or so it seems).
227
- *
228
- * Example: Using Cmd.getState
229
- * ```
230
- * cmd.run(getLinkerState, { args: [Cmd.getState] })
231
- * ```
232
- *
233
- * Example: using addNoImmerCase
234
- * ```
235
- * builder.addNoImmerCase(myAction, (state, action: PayloadAction<ClientAdded>) => {
236
- * const newState = produce(state, (draft) => {
237
- * draft.blah=action.payload.blah; // Good!
238
- * state.blah=action.payload.blah; // Typescript error, you can't modify state!
239
- * });
240
- *
241
- * // Use redux-loop the old fashioned way
242
- * return loop(
243
- * newState,
244
- * Cmd.action(actions.dummy("blah"))
245
- * )
246
- * });
247
- *
248
- * ```
249
- *
250
- * Internals:
251
- *
252
- * Like RTK, the reducer cases are reduced to single nextState and returned to redux. To extract the loops
253
- * we use the CmdProxy to temporarily store the loop commands. They are compiled into a single `Cmd.list`
254
- * at the very end of the dispatch cycle. So in effect, redux is always receiving a loop from this reducer
255
- * rather than a state. This will therefore not work correctly if redux-loops middleware is not installed!
256
- */
257
- export function createReducer(initialState, mapOrBuilderCallback, hook) {
258
- const actionsMap = executeReducerBuilderCallback(mapOrBuilderCallback);
259
- return function (state = initialState, action) {
260
- const caseReducers = actionsMap[action.type];
261
- if (!(caseReducers === null || caseReducers === void 0 ? void 0 : caseReducers.length)) {
262
- return state;
263
- }
264
- const { reducedState, commands } = runLoopReducer(caseReducers, state, action, hook);
265
- const cmds = Cmd.list(commands);
266
- /**
267
- * If any cmds are to be run, inject them into state so that we can see them using devtools.
268
- * We jump through some hoops here in order to format the result for the quickest observation.
269
- * The convoluted code is worth the result.
270
- */
271
- // Scrub out the old @@cmds
272
- const _a = reducedState, { "@@cmds": oldCmds } = _a, scrubbedState = __rest(_a, ["@@cmds"]);
273
- const oneOrNoneCommandState = cmds.cmds.length == 1
274
- ? Object.assign(Object.assign({}, scrubbedState), { "@@cmds": formatCmdForDisplay(cmds.cmds[0]) }) : scrubbedState;
275
- // Add in the new @@cmds, if any
276
- const loopEnhancedState = cmds.cmds.length > 1
277
- ? Object.assign(Object.assign({}, scrubbedState), { "@@cmds": cmds.cmds.map((cmd) => formatCmdForDisplay(cmd)) }) : oneOrNoneCommandState;
278
- // Hard casting to avoid the store thinking it is a `Loop<S> | S` type
279
- // This is okay because redux-loop middleware extracts the loops inside of redux
280
- return loop(loopEnhancedState, cmds);
281
- };
282
- }
283
- /**
284
- * Use this instead of console.log() when inside of reducers. Since addCase uses
285
- * immer under the covers, console.log will print out the entire immer proxy object which is ugly
286
- */
287
- export const log = (label, value) => {
288
- if (value)
289
- console.log(label, JSON.parse(JSON.stringify(value)));
290
- else
291
- console.log(label, value);
292
- };
293
- /**
294
- * Predicate function for comparing an actionCreator to a raw action
295
- * Example: `addMatcherCase(is(action.joinChannels), ...`
296
- */
297
- export const is = (actionCreator) => (action) => action.type === actionCreator.type;
298
- //# sourceMappingURL=createReducer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReducer.js","sourceRoot":"","sources":["../../../../src/common/redux/createReducer.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAS,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACN,IAAI,EACJ,GAAG,EAGH,MAAM,GAON,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAmDrE,MAAM,YAAY,GAAG,CAAC,GAAW,EAAE,EAAE;IACpC,IAAI,GAAG,GAAQ;QACd,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI;KAClB,CAAC;IACF,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;QACpC,oCAAoC;QACpC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC;YAAE,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACzE,4BAA4B;;YACvB,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACnC;IACD,IAAI,GAAG,CAAC,oBAAoB;QAAE,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,oBAAoB,CAAC,IAAI,CAAC;IAEvF,IAAI,GAAG,CAAC,iBAAiB;QAAE,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC;IAEjF,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,GA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C,EAArC,aAAa,cAArC,UAAuC,CAAsB,CAAC;QACpE,MAAM,qBAAqB,GAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC;YACpB,CAAC,iCACI,aAAa,KAChB,QAAQ,EAAE,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAE7C,CAAC,CAAC,aAAa,CAAC;QAClB,gCAAgC;QAChC,MAAM,iBAAiB,GACtB,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC;YACnB,CAAC,iCACI,aAAa,KAChB,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,IAE5D,CAAC,CAAC,qBAAqB,CAAC;QAE1B,sEAAsE;QACtE,gFAAgF;QAChF,OAAO,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAa,CAAC;IAClD,CAAC,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,KAAU,EAAE,EAAE;IAC7C,IAAI,KAAK;QAAE,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;;QAC5D,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,EAAE,GACd,CAAC,aAAkB,EAAoC,EAAE,CACzD,CAAC,MAAiB,EAAE,EAAE,CACrB,MAAM,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- export { remoteReduxClientEnhancer, remoteReduxServerEnhancer } from "./remoteReduxEnhancer";
2
- export { createReducer, CreateReducerHook } from "./createReducer";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/redux/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { remoteReduxClientEnhancer, remoteReduxServerEnhancer } from "./remoteReduxEnhancer";
2
- export { createReducer } from "./createReducer";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/redux/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAqB,MAAM,iBAAiB,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare class ObjectPool<T = any> {
2
- objects: Record<string, T>;
3
- poolName: string;
4
- constructor(name: string);
5
- get(name: string, throwError?: boolean): T;
6
- remove(name: string, throwError?: boolean): void;
7
- add(name: string, obj: T): void;
8
- iterator(): Generator<T, void, unknown>;
9
- getAll(): Record<string, T>;
10
- }
11
- //# sourceMappingURL=ObjectPool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ObjectPool.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/ObjectPool.ts"],"names":[],"mappings":"AACA,qBAAa,UAAU,CAAC,CAAC,GAAG,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAE3B,QAAQ,EAAE,MAAM,CAAC;gBAEL,IAAI,EAAE,MAAM;IAKxB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,GAAG,CAAC;IAYhD,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE,OAAc,GAAG,IAAI;IAStD,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI;IAS9B,QAAQ;IAOT,MAAM;CAGN"}
@@ -1,43 +0,0 @@
1
- import Logger from "../../../../../clients/logger";
2
- export class ObjectPool {
3
- constructor(name) {
4
- this.objects = {};
5
- this.poolName = name;
6
- }
7
- get(name, throwError = true) {
8
- let result;
9
- if (!this.objects.hasOwnProperty(name)) {
10
- if (throwError && name) {
11
- Logger.system.debug(`${this.poolName} pool.get failed for ${name}`);
12
- }
13
- }
14
- else {
15
- result = this.objects[name];
16
- }
17
- return result;
18
- }
19
- remove(name, throwError = true) {
20
- Logger.system.debug(`${this.poolName} pool.remove for ${name}`);
21
- if (throwError && !this.objects.hasOwnProperty(name)) {
22
- Logger.system.debug(`${this.poolName} pool.remove operating on non-existent value for ${name}`);
23
- }
24
- delete this.objects[name];
25
- }
26
- add(name, obj) {
27
- Logger.system.debug(`${this.poolName} pool.add for ${name}`);
28
- if (this.objects.hasOwnProperty(name)) {
29
- Logger.system.debug(`${this.poolName} pool.add overwriting existing value for ${name}`);
30
- }
31
- this.objects[name] = obj;
32
- }
33
- *iterator() {
34
- for (const name in this.objects) {
35
- const obj = this.get(name);
36
- yield obj;
37
- }
38
- }
39
- getAll() {
40
- return this.objects;
41
- }
42
- }
43
- //# sourceMappingURL=ObjectPool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ObjectPool.js","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/ObjectPool.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,MAAM,OAAO,UAAU;IAKtB,YAAY,IAAY;QACvB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,GAAG,CAAC,IAAY,EAAE,aAAsB,IAAI;QAC3C,IAAI,MAAM,CAAC;QACX,IAAI,CAAC,IAAI,CAAC,OAAO,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SACV;IACF,CAAC;IAED,MAAM;QACL,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD"}
@@ -1,10 +0,0 @@
1
- import { ObjectPool } from "./ObjectPool";
2
- import { WindowPool } from "./WindowPool";
3
- import { DockableGroup } from "../../Docking/dockableGroup";
4
- import { DockableMonitor } from "../../Docking/dockableMonitor";
5
- declare const GroupPoolSingleton: ObjectPool<DockableGroup>;
6
- declare const MonitorPoolSingleton: ObjectPool<DockableMonitor>;
7
- declare const WindowPoolSingleton: ObjectPool<any>;
8
- declare const DockingPoolSingleton: WindowPool;
9
- export { GroupPoolSingleton, WindowPoolSingleton, MonitorPoolSingleton, DockingPoolSingleton };
10
- //# sourceMappingURL=PoolSingletons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PoolSingletons.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/PoolSingletons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,QAAA,MAAM,kBAAkB,2BAAsD,CAAC;AAC/E,QAAA,MAAM,oBAAoB,6BAA0D,CAAC;AAErF,QAAA,MAAM,mBAAmB,iBAAwC,CAAC;AAGlE,QAAA,MAAM,oBAAoB,YAAyC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,10 +0,0 @@
1
- import { ObjectPool } from "./ObjectPool";
2
- import { WindowPool } from "./WindowPool";
3
- const GroupPoolSingleton = new ObjectPool("GroupPoolSingleton");
4
- const MonitorPoolSingleton = new ObjectPool("MonitorPoolSingleton");
5
- // Generic list of all windows that the windowService knows about. Contains finsemble windows
6
- const WindowPoolSingleton = new ObjectPool("WindowPoolSingleton");
7
- // Specific pool of dockable windows.
8
- const DockingPoolSingleton = new WindowPool("DockingPoolSingleton");
9
- export { GroupPoolSingleton, WindowPoolSingleton, MonitorPoolSingleton, DockingPoolSingleton };
10
- //# sourceMappingURL=PoolSingletons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PoolSingletons.js","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/PoolSingletons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,MAAM,kBAAkB,GAAG,IAAI,UAAU,CAAgB,oBAAoB,CAAC,CAAC;AAC/E,MAAM,oBAAoB,GAAG,IAAI,UAAU,CAAkB,sBAAsB,CAAC,CAAC;AACrF,6FAA6F;AAC7F,MAAM,mBAAmB,GAAG,IAAI,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAElE,qCAAqC;AACrC,MAAM,oBAAoB,GAAG,IAAI,UAAU,CAAC,sBAAsB,CAAC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ObjectPool } from "./ObjectPool";
2
- import DockableWindow from "../../Docking/dockableWindow";
3
- declare class WindowPool extends ObjectPool<DockableWindow> {
4
- iterator(): Generator<DockableWindow, void, unknown>;
5
- }
6
- export { WindowPool };
7
- //# sourceMappingURL=WindowPool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WindowPool.d.ts","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/WindowPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAE1D,cAAM,UAAW,SAAQ,UAAU,CAAC,cAAc,CAAC;IACjD,QAAQ;CAYT;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ObjectPool } from "./ObjectPool";
2
- import { WINDOWSTATE } from "../../../../../common/constants";
3
- class WindowPool extends ObjectPool {
4
- *iterator() {
5
- for (const windowName in this.objects) {
6
- const win = this.get(windowName);
7
- if (win.win.windowState !== WINDOWSTATE.MINIMIZED_WAS_MAXIMIZED &&
8
- win.win.windowState !== WINDOWSTATE.MINIMIZED_WAS_NORMAL &&
9
- !win.isHidden) {
10
- yield win;
11
- }
12
- }
13
- }
14
- }
15
- export { WindowPool };
16
- //# sourceMappingURL=WindowPool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WindowPool.js","sourceRoot":"","sources":["../../../../../../../src/platform/services/window/Common/Pools/WindowPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAG9D,MAAM,UAAW,SAAQ,UAA0B;IAClD,CAAC,QAAQ;QACR,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,OAAO,EAAE;YACtC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACjC,IACC,GAAG,CAAC,GAAG,CAAC,WAAW,KAAK,WAAW,CAAC,uBAAuB;gBAC3D,GAAG,CAAC,GAAG,CAAC,WAAW,KAAK,WAAW,CAAC,oBAAoB;gBACxD,CAAC,GAAG,CAAC,QAAQ,EACZ;gBACD,MAAM,GAAG,CAAC;aACV;SACD;IACF,CAAC;CACD;AACD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,144 +0,0 @@
1
- import { BoundingBox, SnappingRegions, BoxCoordinates, XYCoordinates, Vertex, BetweenParams, XYOrTopLeft } from "./types";
2
- import DockableBox from "./dockableBox";
3
- declare class BoxMath {
4
- static isPointOnSegment(point: XYCoordinates, segment: BoundingBox): boolean;
5
- /**
6
- * @function {function name}
7
- * @param {type} req {description}
8
- * @return {type} {description}
9
- */
10
- static getVertices(req: BoxCoordinates): Vertex[];
11
- /**
12
- * @function {function name}
13
- * @param {type} bounds {description}
14
- * @param {type} bufferSize {description}
15
- * @return {type} {description}
16
- */
17
- static getSnappingRegions(bounds: BoxCoordinates, bufferSize?: number): SnappingRegions;
18
- /**
19
- * @function {function name}
20
- * @param {type} bounds {description}
21
- * @return {type} {description}
22
- */
23
- static getWindowBoundingBox(bounds: BoxCoordinates): BoundingBox;
24
- static between(params: BetweenParams): boolean;
25
- /**
26
- * @function {function name}
27
- * @param {type} window1 {description}
28
- * @param {type} window2 {description}
29
- * @return {type} {description}
30
- */
31
- static intersectBoundingBoxes(window1: BoundingBox, window2: BoundingBox): boolean;
32
- /**
33
- * @function {function name}
34
- * @param {type} num {description}
35
- * @param {type} pct {description}
36
- * @return {type} {description}
37
- */
38
- static getPct(num: number, pct: number): number;
39
- /**
40
- * @function {function name}
41
- * @param {type} num {description}
42
- * @param {type} pct {description}
43
- * @return {type} {description}
44
- */
45
- static scaleProportionately(num: number, pct: number): number;
46
- /**
47
- * @function {function name}
48
- * @param {type} num1 {description}
49
- * @param {type} num2 {description}
50
- * @return {type} {description}
51
- */
52
- static getPercentChange(num1: number, num2: number): number;
53
- /**
54
- * Gets the area of the overlap between two rectangles.
55
- * @param {*} rect1
56
- * @param {*} rect2
57
- */
58
- static getOverlap(rect1: BoxCoordinates, rect2: BoxCoordinates): number;
59
- /**
60
- * Checks if point is in box (inclusive)
61
- */
62
- static isPointInBox(point: XYOrTopLeft, box: {
63
- top: number;
64
- left: number;
65
- width: number;
66
- height: number;
67
- right?: number;
68
- bottom?: number;
69
- }): boolean;
70
- static cornersInBox(corners: Vertex[], box: DockableBox): string[];
71
- /**
72
- * Going back to our example earlier. Remember, A is the larger box that encompasses B and C. In this case, only two corners are within A. (bottom left, bottom right).
73
- +-------------------+
74
- | |
75
- | |
76
- | |
77
- | |
78
- | B |
79
- | |
80
- | |
81
- | |
82
- +-------------------+
83
- | |
84
- | |
85
- | |
86
- | |
87
- | C |
88
- | |
89
- | |
90
- | |
91
- | |
92
- | |
93
- +-------------------+
94
- * */
95
- static clipWithTwoSharedCorners({ clip, cornersInBox, box, }: {
96
- clip: DockableBox;
97
- cornersInBox: string[];
98
- box: DockableBox;
99
- }): DockableBox;
100
- /** **
101
- * In this case, A is the wide horizontal box. B is the tall vertical box. Their bottom left corners align at point X.
102
- * In this case, only one corner (bottom left of B) is within the bounds of A.
103
-
104
- B
105
- +------------------+
106
- | |
107
- | |
108
- | |
109
- | |
110
- | |
111
- | |
112
- | |
113
- | |
114
- | |
115
- | |
116
- | |
117
- +---------------------------------------------------------------------+
118
- | | |
119
- | | |
120
- | | |
121
- | | CLIP | A
122
- | | |
123
- | | |
124
- +------------------+--------------------------------------------------+
125
- X
126
- */
127
- static clipWithOneSharedCorner({ clip, cornersInBox, rectA, rectB, edge, }: {
128
- clip: DockableBox;
129
- cornersInBox: string[];
130
- rectA: DockableBox;
131
- rectB: DockableBox;
132
- edge: string;
133
- }): DockableBox;
134
- /**
135
- * Clip A with B. return where the boxes don't intersect.
136
- * @param {DockableBox} rectA
137
- * @param {DockableBox} rectB
138
- *
139
- * @memberof BoxMath
140
- */
141
- static clipRect(rectA: DockableBox, rectB: DockableBox, edge: string): DockableBox;
142
- }
143
- export default BoxMath;
144
- //# sourceMappingURL=boxMath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boxMath.d.ts","sourceRoot":"","sources":["../../../../../../src/platform/services/window/Docking/boxMath.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,WAAW,MAAM,eAAe,CAAC;AA+CxC,cAAM,OAAO;IACZ,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE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