@finsemble/finsemble-ui 8.0.2 → 8.1.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 (254) hide show
  1. package/FEA.d.ts +48 -3
  2. package/FEA.d.ts.map +1 -1
  3. package/FEA.js.map +1 -1
  4. package/clients/Interop/FinsembleDesktopAgent.js +1 -1
  5. package/clients/Startup/FSBLDesktop.d.ts +2 -14
  6. package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
  7. package/clients/Startup/FSBLDesktop.js +4 -21
  8. package/clients/Startup/FSBLDesktop.js.map +1 -1
  9. package/clients/Startup/types.d.ts +17 -0
  10. package/clients/Startup/types.d.ts.map +1 -1
  11. package/clients/Startup/windowStartup.d.ts.map +1 -1
  12. package/clients/Startup/windowStartup.js +16 -14
  13. package/clients/Startup/windowStartup.js.map +1 -1
  14. package/clients/routerClient.d.ts +2 -169
  15. package/clients/routerClient.d.ts.map +1 -1
  16. package/clients/routerClient.js +4 -7
  17. package/clients/routerClient.js.map +1 -1
  18. package/common/Desktop.d.ts +8 -0
  19. package/common/Desktop.d.ts.map +1 -1
  20. package/common/Desktop.js +23 -0
  21. package/common/Desktop.js.map +1 -1
  22. package/common/FinsembleWindow.d.ts +1 -2
  23. package/common/FinsembleWindow.d.ts.map +1 -1
  24. package/common/FinsembleWindow.js +1 -1
  25. package/common/FinsembleWindow.js.map +1 -1
  26. package/common/Monitors.d.ts +6 -0
  27. package/common/Monitors.d.ts.map +1 -1
  28. package/common/Monitors.js +22 -0
  29. package/common/Monitors.js.map +1 -1
  30. package/common/system.d.ts +1 -1
  31. package/common/system.d.ts.map +1 -1
  32. package/main.d.ts +29 -29
  33. package/package.json +44 -44
  34. package/platform/services/Interop/types.d.ts +1 -0
  35. package/platform/services/Interop/types.d.ts.map +1 -1
  36. package/platform/services/Interop/types.js.map +1 -1
  37. package/platform/services/router/routerTransport.d.ts.map +1 -1
  38. package/platform/services/router/routerTransport.js +5 -7
  39. package/platform/services/router/routerTransport.js.map +1 -1
  40. package/platform/services/router/types.d.ts +214 -0
  41. package/platform/services/router/types.d.ts.map +1 -0
  42. package/platform/services/router/types.js +2 -0
  43. package/platform/services/router/types.js.map +1 -0
  44. package/platform/services/types.d.ts +1 -0
  45. package/platform/services/types.d.ts.map +1 -1
  46. package/platform/services/types.js +1 -0
  47. package/platform/services/types.js.map +1 -1
  48. package/platform/services/window/Common/Pools/ObjectPool.d.ts +11 -0
  49. package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +1 -0
  50. package/platform/services/window/Common/Pools/ObjectPool.js +43 -0
  51. package/platform/services/window/Common/Pools/ObjectPool.js.map +1 -0
  52. package/platform/services/window/Common/Pools/PoolSingletons.d.ts +10 -0
  53. package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +1 -0
  54. package/platform/services/window/Common/Pools/PoolSingletons.js +10 -0
  55. package/platform/services/window/Common/Pools/PoolSingletons.js.map +1 -0
  56. package/platform/services/window/Common/Pools/WindowPool.d.ts +7 -0
  57. package/platform/services/window/Common/Pools/WindowPool.d.ts.map +1 -0
  58. package/platform/services/window/Common/Pools/WindowPool.js +16 -0
  59. package/platform/services/window/Common/Pools/WindowPool.js.map +1 -0
  60. package/platform/services/window/Docking/boxMath.d.ts +144 -0
  61. package/platform/services/window/Docking/boxMath.d.ts.map +1 -0
  62. package/platform/services/window/Docking/boxMath.js +511 -0
  63. package/platform/services/window/Docking/boxMath.js.map +1 -0
  64. package/platform/services/window/Docking/constants.d.ts +29 -0
  65. package/platform/services/window/Docking/constants.d.ts.map +1 -0
  66. package/platform/services/window/Docking/constants.js +29 -0
  67. package/platform/services/window/Docking/constants.js.map +1 -0
  68. package/platform/services/window/Docking/dockableBox.d.ts +117 -0
  69. package/platform/services/window/Docking/dockableBox.d.ts.map +1 -0
  70. package/platform/services/window/Docking/dockableBox.js +525 -0
  71. package/platform/services/window/Docking/dockableBox.js.map +1 -0
  72. package/platform/services/window/Docking/dockableGroup.d.ts +252 -0
  73. package/platform/services/window/Docking/dockableGroup.d.ts.map +1 -0
  74. package/platform/services/window/Docking/dockableGroup.js +1054 -0
  75. package/platform/services/window/Docking/dockableGroup.js.map +1 -0
  76. package/platform/services/window/Docking/dockableMonitor.d.ts +99 -0
  77. package/platform/services/window/Docking/dockableMonitor.d.ts.map +1 -0
  78. package/platform/services/window/Docking/dockableMonitor.js +427 -0
  79. package/platform/services/window/Docking/dockableMonitor.js.map +1 -0
  80. package/platform/services/window/Docking/dockableWindow.d.ts +272 -0
  81. package/platform/services/window/Docking/dockableWindow.d.ts.map +1 -0
  82. package/platform/services/window/Docking/dockableWindow.js +1239 -0
  83. package/platform/services/window/Docking/dockableWindow.js.map +1 -0
  84. package/platform/services/window/Docking/dockingCalculator.d.ts +749 -0
  85. package/platform/services/window/Docking/dockingCalculator.d.ts.map +1 -0
  86. package/platform/services/window/Docking/dockingCalculator.js +3473 -0
  87. package/platform/services/window/Docking/dockingCalculator.js.map +1 -0
  88. package/platform/services/window/Docking/dockingMain.d.ts +349 -0
  89. package/platform/services/window/Docking/dockingMain.d.ts.map +1 -0
  90. package/platform/services/window/Docking/dockingMain.js +2584 -0
  91. package/platform/services/window/Docking/dockingMain.js.map +1 -0
  92. package/platform/services/window/Docking/maskBoundsCalculator.d.ts +28 -0
  93. package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +1 -0
  94. package/platform/services/window/Docking/maskBoundsCalculator.js +67 -0
  95. package/platform/services/window/Docking/maskBoundsCalculator.js.map +1 -0
  96. package/platform/services/window/Docking/monitorUpdateHandler.d.ts +32 -0
  97. package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +1 -0
  98. package/platform/services/window/Docking/monitorUpdateHandler.js +117 -0
  99. package/platform/services/window/Docking/monitorUpdateHandler.js.map +1 -0
  100. package/platform/services/window/Docking/types.d.ts +334 -0
  101. package/platform/services/window/Docking/types.d.ts.map +1 -0
  102. package/platform/services/window/Docking/types.js +12 -0
  103. package/platform/services/window/Docking/types.js.map +1 -0
  104. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +90 -0
  105. package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +1 -0
  106. package/platform/services/window/MultiWindowFeatures/autoArrange.js +510 -0
  107. package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +1 -0
  108. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +411 -0
  109. package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +1 -0
  110. package/platform/services/window/StackedWindowManager/stackedWindowManager.js +1641 -0
  111. package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +1 -0
  112. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +9 -0
  113. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +1 -0
  114. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +23 -0
  115. package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +1 -0
  116. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +227 -0
  117. package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +1 -0
  118. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +1168 -0
  119. package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +1 -0
  120. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +121 -0
  121. package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +1 -0
  122. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +591 -0
  123. package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +1 -0
  124. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +194 -0
  125. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +1 -0
  126. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +680 -0
  127. package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +1 -0
  128. package/platform/services/window/types.d.ts +13 -13
  129. package/platform/services/window/windowGroup.d.ts +86 -0
  130. package/platform/services/window/windowGroup.d.ts.map +1 -0
  131. package/platform/services/window/windowGroup.js +323 -0
  132. package/platform/services/window/windowGroup.js.map +1 -0
  133. package/platform/services/workspace/windowStorageManager.d.ts +178 -0
  134. package/platform/services/workspace/windowStorageManager.d.ts.map +1 -0
  135. package/platform/services/workspace/windowStorageManager.js +195 -0
  136. package/platform/services/workspace/windowStorageManager.js.map +1 -0
  137. package/platform/services/workspace/workspaceAdminAPI.d.ts +1 -1
  138. package/platform/services/workspace/workspaceAdminAPI.d.ts.map +1 -1
  139. package/react/actions/smartDesktopDesignerActions.d.ts +2 -0
  140. package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
  141. package/react/actions/smartDesktopDesignerActions.js +1 -0
  142. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  143. package/react/assets/css/download.css +119 -0
  144. package/react/assets/css/userPreferences.css +50 -0
  145. package/react/assets/css/windowTitleBar.css +2 -1
  146. package/react/assets/icons/cancel.svg +15 -0
  147. package/react/assets/icons/gear.svg +9 -0
  148. package/react/assets/icons/pause.svg +15 -0
  149. package/react/assets/icons/resume.svg +17 -0
  150. package/react/assets/img/Finsemble-installation.gif +0 -0
  151. package/react/components/common/Button.d.ts +1 -0
  152. package/react/components/common/Button.d.ts.map +1 -1
  153. package/react/components/common/Button.js.map +1 -1
  154. package/react/components/common/ButtonIcon.d.ts.map +1 -1
  155. package/react/components/common/ButtonIcon.js +3 -2
  156. package/react/components/common/ButtonIcon.js.map +1 -1
  157. package/react/components/common/FinsembleIcon.d.ts +1 -1
  158. package/react/components/common/FinsembleIcon.d.ts.map +1 -1
  159. package/react/components/common/FinsembleIcon.js +8 -0
  160. package/react/components/common/FinsembleIcon.js.map +1 -1
  161. package/react/components/common/css/button.css +8 -2
  162. package/react/components/downloadManager/DownloadItem.d.ts +16 -0
  163. package/react/components/downloadManager/DownloadItem.d.ts.map +1 -0
  164. package/react/components/downloadManager/DownloadItem.js +74 -0
  165. package/react/components/downloadManager/DownloadItem.js.map +1 -0
  166. package/react/components/downloadManager/DownloadManager.d.ts +10 -0
  167. package/react/components/downloadManager/DownloadManager.d.ts.map +1 -0
  168. package/react/components/downloadManager/DownloadManager.js +42 -0
  169. package/react/components/downloadManager/DownloadManager.js.map +1 -0
  170. package/react/components/downloadManager/index.d.ts +2 -0
  171. package/react/components/downloadManager/index.d.ts.map +1 -0
  172. package/react/components/downloadManager/index.js +2 -0
  173. package/react/components/downloadManager/index.js.map +1 -0
  174. package/react/components/fdc3Resolver/ResolverDialog.css +1 -1
  175. package/react/components/index.d.ts +1 -0
  176. package/react/components/index.d.ts.map +1 -1
  177. package/react/components/index.js +1 -0
  178. package/react/components/index.js.map +1 -1
  179. package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
  180. package/react/components/processMonitor/ProcessMonitor.js +56 -75
  181. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  182. package/react/components/processMonitor/components/ChildWindow.d.ts +5 -7
  183. package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
  184. package/react/components/processMonitor/components/ChildWindow.js +30 -33
  185. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  186. package/react/components/processMonitor/components/ListHeader.d.ts +4 -16
  187. package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
  188. package/react/components/processMonitor/components/ListHeader.js +30 -39
  189. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  190. package/react/components/processMonitor/components/ProcessStatistics.d.ts +3 -6
  191. package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
  192. package/react/components/processMonitor/components/ProcessStatistics.js +18 -23
  193. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  194. package/react/components/sdd/Dashboard.css +21 -0
  195. package/react/components/sdd/css/export.css +33 -3
  196. package/react/components/sdd/css/nav.css +1 -1
  197. package/react/components/shared/DefaultDropdownButton.js +1 -1
  198. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  199. package/react/components/toolbar/DownloadButton.d.ts +8 -0
  200. package/react/components/toolbar/DownloadButton.d.ts.map +1 -0
  201. package/react/components/toolbar/DownloadButton.js +30 -0
  202. package/react/components/toolbar/DownloadButton.js.map +1 -0
  203. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.d.ts.map +1 -1
  204. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +6 -0
  205. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  206. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +1 -1
  207. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  208. package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
  209. package/react/components/toolbar/dashbar/Dashbar.js +72 -47
  210. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  211. package/react/components/toolbar/dashbar/DashbarItem.d.ts +1 -1
  212. package/react/components/toolbar/dashbar/DashbarItem.d.ts.map +1 -1
  213. package/react/components/toolbar/dashbar/DashbarItem.js +25 -4
  214. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  215. package/react/components/toolbar/index.d.ts +1 -0
  216. package/react/components/toolbar/index.d.ts.map +1 -1
  217. package/react/components/toolbar/index.js +1 -0
  218. package/react/components/toolbar/index.js.map +1 -1
  219. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +3 -4
  220. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts.map +1 -1
  221. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +3 -10
  222. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  223. package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
  224. package/react/components/userPreferences/components/content/General.js +3 -0
  225. package/react/components/userPreferences/components/content/General.js.map +1 -1
  226. package/react/components/userPreferences/components/general/DownloadPreferences.d.ts +10 -0
  227. package/react/components/userPreferences/components/general/DownloadPreferences.d.ts.map +1 -0
  228. package/react/components/userPreferences/components/general/DownloadPreferences.js +111 -0
  229. package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -0
  230. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +6 -0
  231. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts.map +1 -1
  232. package/react/components/userPreferences/stores/UserPreferencesStore.js +11 -0
  233. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  234. package/react/components/windowTitleBar/components/right/CloseButton.d.ts +2 -26
  235. package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +1 -1
  236. package/react/components/windowTitleBar/components/right/CloseButton.js +8 -25
  237. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  238. package/react/hooks/useDownloadItems.d.ts +24 -0
  239. package/react/hooks/useDownloadItems.d.ts.map +1 -0
  240. package/react/hooks/useDownloadItems.js +68 -0
  241. package/react/hooks/useDownloadItems.js.map +1 -0
  242. package/react/hooks/useNotifications.d.ts +1 -1
  243. package/react/reducers/rootReducer.d.ts +4 -0
  244. package/react/reducers/rootReducer.d.ts.map +1 -1
  245. package/react/reducers/smartDesktopDesignerReducer.d.ts.map +1 -1
  246. package/react/reducers/smartDesktopDesignerReducer.js +4 -0
  247. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  248. package/react/store.d.ts +8 -0
  249. package/react/store.d.ts.map +1 -1
  250. package/react/types/dashbarTypes.d.ts +3 -1
  251. package/react/types/dashbarTypes.d.ts.map +1 -1
  252. package/react/types/smartDesktopDesignerTypes.d.ts +2 -0
  253. package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
  254. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DashbarItem.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/toolbar/dashbar/DashbarItem.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,iCAAiC,CAAC;AAEzC,aAAK,gBAAgB,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,QAAQ,CAAC;IACzB,eAAe,EAAE,QAAQ,CAAC;IAC1B,oBAAoB,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,WAAW,wIAWrB,gBAAgB,gBA0ClB,CAAC"}
1
+ {"version":3,"file":"DashbarItem.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/toolbar/dashbar/DashbarItem.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,iCAAiC,CAAC;AAEzC,aAAK,gBAAgB,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,QAAQ,CAAC;IACzB,eAAe,EAAE,QAAQ,CAAC;IAC1B,oBAAoB,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,WAAW,wIAWrB,gBAAgB,gBAsElB,CAAC"}
@@ -5,10 +5,21 @@ import "../../../assets/css/dashbar.css";
5
5
  export const DashbarItem = ({ id = `finsemble-draggable-${Date.now()}-${Math.random()}`, index, className, widget, height, dashbarHeight, widgetDividerWidth, setTitleHeight, setGrabLocation, widgetTitleGenerator, }) => {
6
6
  const titleRef = useRef(null);
7
7
  const divRef = useRef(null);
8
- useLayoutEffect(() => {
9
- if ((titleRef === null || titleRef === void 0 ? void 0 : titleRef.current) && dashbarHeight) {
8
+ /**
9
+ * @returns calculated widget title height or full dashbar height as default
10
+ */
11
+ const getTitleHeight = () => {
12
+ if (titleRef === null || titleRef === void 0 ? void 0 : titleRef.current) {
10
13
  const { offsetHeight } = titleRef.current;
11
- const titleHeight = height ? height + offsetHeight : offsetHeight;
14
+ return height ? height + offsetHeight : offsetHeight;
15
+ }
16
+ else {
17
+ return dashbarHeight;
18
+ }
19
+ };
20
+ useLayoutEffect(() => {
21
+ if (titleRef === null || titleRef === void 0 ? void 0 : titleRef.current) {
22
+ const titleHeight = getTitleHeight();
12
23
  setTitleHeight(titleHeight, id);
13
24
  }
14
25
  });
@@ -29,10 +40,20 @@ export const DashbarItem = ({ id = `finsemble-draggable-${Date.now()}-${Math.ran
29
40
  width: widget.width,
30
41
  borderRight: `${widgetDividerWidth}px solid var(--dashbar-divider-color)`,
31
42
  };
43
+ const loadingImgWrapperStyle = {
44
+ display: "flex",
45
+ width: "inherit",
46
+ height: `${getTitleHeight()}px`,
47
+ alignItems: "center",
48
+ justifyContent: "center",
49
+ };
32
50
  const title = widgetTitleGenerator(widget, titleRef);
33
51
  return (React.createElement(FinsembleDraggable, { draggableId: id, index: index, key: id, wrapperClass: wrapperClass },
34
52
  React.createElement("div", { ref: divRef, id: id, onMouseDown: _setGrabLocation, className: "dashbar-item-frame", style: itemStyle },
35
53
  React.createElement("div", null, title),
36
- React.createElement("div", { className: "empty-space" }))));
54
+ React.createElement("div", { className: "empty-space" },
55
+ // renders a loading img if view is not ready and the icon url is provided
56
+ widget.view === null && widget.loadingIconUrl && (React.createElement("div", { style: loadingImgWrapperStyle },
57
+ React.createElement("img", { style: { height: "inherit", width: "inherit" }, src: widget.loadingIconUrl, alt: "loading..." })))))));
37
58
  };
38
59
  //# sourceMappingURL=DashbarItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashbarItem.js","source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AM,YAAY,GAAG,0BAA0B,SAAS,IAAI,EAAE,EAAE,CAAC;IACjE,MAAM,SAAS,GAAG;QACjB,OAAO,EAAE,MAAM;QACf,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,WAAW,EAAE,GAAG,kBAAkB,uCAAuC;KACzE,CAAC;IAEF,MAAM,KAAK,GAAG,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAErD,OAAO,CACN,oBAAC,kBAAkB,IAAC,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY;QACrF,6BAAK,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAE,SAAS;YACvG,iCAAM,KAAK,CAAO;YAClB,6BAAK,SAAS,EAAC,aAAa,GAAO,CAC9B,CACc,CACrB,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"DashbarItem.js","sourceRoot":"","sources":["../../../../../../src/ui/components/toolbar/dashbar/DashbarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAG7E,OAAO,iCAAiC,CAAC;AAezC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC3B,EAAE,GAAG,uBAAuB,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,EACzD,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,oBAAoB,GACF,EAAE,EAAE;IACtB,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC9C,MAAM,M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AAG,oBAAoB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAErD,OAAO,CACN,oBAAC,kBAAkB,IAAC,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY;QACrF,6BAAK,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAE,SAAS;YACvG,iCAAM,KAAK,CAAO;YAClB,6BAAK,SAAS,EAAC,aAAa;YAE1B,0EAA0E;YAC1E,MAAM,CAAC,IAAI,KAAK,IAAI,IAAI,MAAM,CAAC,cAAc,IAAI,CAChD,6BAAK,KAAK,EAAE,sBAAsB;gBACjC,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,cAAc,EAAE,GAAG,EAAC,YAAY,GAAG,CAC/F,CACN,CAEG,CACD,CACc,CACrB,CAAC;AACH,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { ToolbarShell } from "./ToolbarShell";
2
2
  export { AutoArrange } from "./AutoArrange";
3
3
  export { MinimizeAll } from "./MinimizeAll";
4
+ export { DownloadButton } from "./DownloadButton";
4
5
  export { NotificationControl } from "./NotificationControl";
5
6
  export { RevealAll } from "./RevealAll";
6
7
  export { ToolbarSection } from "./ToolbarSection";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OA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M,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export { ToolbarShell } from "./ToolbarShell";
2
2
  export { AutoArrange } from "./AutoArrange";
3
3
  export { MinimizeAll } from "./MinimizeAll";
4
+ export { DownloadButton } from "./DownloadButton";
4
5
  export { NotificationControl } from "./NotificationControl";
5
6
  export { RevealAll } from "./RevealAll";
6
7
  export { ToolbarSection } from "./ToolbarSection";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/toolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC"}
@@ -15,24 +15,23 @@ export default class WorkspaceActions extends React.Component<IProps> {
15
15
  userActions: UserActionsType[];
16
16
  constructor(props: IProps);
17
17
  /**
18
- * Blurs window. Pops up a dialog asking for a name for the new workspace.
18
+ * Pops up a dialog asking for a name for the new workspace.
19
19
  *
20
20
  * @memberof WorkspaceActions
21
21
  */
22
22
  createWorkspace(): void;
23
23
  /**
24
- * Blurs window. Persists activeWorkspace to the storage.
24
+ * Persists activeWorkspace to the storage.
25
25
  *
26
26
  * @memberof WorkspaceActions
27
27
  */
28
28
  saveWorkspace(): void;
29
29
  /**
30
- * Blurs window. Pops up a dialog asking for a name for the new workspace.
30
+ * Pops up a dialog asking for a name for the new workspace.
31
31
  *
32
32
  * @memberof WorkspaceActions
33
33
  */
34
34
  saveWorkspaceAs(): void;
35
- showPreferences(): void;
36
35
  /**
37
36
  * Render method.
38
37
  *
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceActions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,MAAM;CAAG;AACnB,aAAK,eAAe,GAAG;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AACF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;IACpE,WAAW,EAAE,eAAe,EAAE,CAAC;gBAEnB,KAAK,EAAE,MAAM;IAqBzB;;;;OAIG;IACH,eAAe;IAKf;;;;OAIG;IACH,aAAa;IAKb;;;;OAIG;IACH,eAAe;IAKf,eAAe;IAKf;;;;;OAKG;IACH,MAAM;CAcN"}
1
+ {"version":3,"file":"WorkspaceActions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,MAAM;CAAG;AACnB,aAAK,eAAe,GAAG;IACtB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AACF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;IACpE,WAAW,EAAE,eAAe,EAAE,CAAC;gBAEnB,KAAK,EAAE,MAAM;IAqBzB;;;;OAIG;IACH,eAAe;IAIf;;;;OAIG;IACH,aAAa;IAIb;;;;OAIG;IACH,eAAe;IAIf;;;;;OAKG;IACH,MAAM;CAcN"}
@@ -28,36 +28,29 @@ export default class WorkspaceActions extends React.Component {
28
28
  ];
29
29
  }
30
30
  /**
31
- * Blurs window. Pops up a dialog asking for a name for the new workspace.
31
+ * Pops up a dialog asking for a name for the new workspace.
32
32
  *
33
33
  * @memberof WorkspaceActions
34
34
  */
35
35
  createWorkspace() {
36
- WorkspaceManagementMenuActions.blurWindow();
37
36
  WorkspaceManagementMenuActions.newWorkspace();
38
37
  }
39
38
  /**
40
- * Blurs window. Persists activeWorkspace to the storage.
39
+ * Persists activeWorkspace to the storage.
41
40
  *
42
41
  * @memberof WorkspaceActions
43
42
  */
44
43
  saveWorkspace() {
45
- WorkspaceManagementMenuActions.blurWindow();
46
44
  WorkspaceManagementMenuActions.saveWorkspace();
47
45
  }
48
46
  /**
49
- * Blurs window. Pops up a dialog asking for a name for the new workspace.
47
+ * Pops up a dialog asking for a name for the new workspace.
50
48
  *
51
49
  * @memberof WorkspaceActions
52
50
  */
53
51
  saveWorkspaceAs() {
54
- WorkspaceManagementMenuActions.blurWindow();
55
52
  WorkspaceManagementMenuActions.saveWorkspaceAs();
56
53
  }
57
- showPreferences() {
58
- WorkspaceManagementMenuActions.blurWindow();
59
- WorkspaceManagementMenuActions.showPreferences();
60
- }
61
54
  /**
62
55
  * Render method.
63
56
  *
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceActions.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAQlD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAiB;IAGpE,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,WAAW,GAAG;YAClB;gBACC,MAAM,EAAE,IAAI,CAAC,eAAe;gBAC5B,KAAK,EAAE,eAAe;gBACtB,EAAE,EAAE,cAAc;aAClB;YACD;gBACC,MAAM,EAAE,IAAI,CAAC,aAAa;gBAC1B,KAAK,EAAE,MAAM;gBACb,EAAE,EAAE,eAAe;aACnB;YACD;gBACC,MAAM,EAAE,IAAI,CAAC,eAAe;gBAC5B,KAAK,EAAE,SAAS;gBAChB,EAAE,EAAE,iBAAiB;aACrB;SACD,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,eAAe;QACd,8BAA8B,CAAC,UAAU,EAAE,CAAC;QAC5C,8BAA8B,CAAC,YAAY,EAAE,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,aAAa;QACZ,8BAA8B,CAAC,UAAU,EAAE,CAAC;QAC5C,8BAA8B,CAAC,aAAa,EAAE,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,eAAe;QACd,8BAA8B,CAAC,UAAU,EAAE,CAAC;QAC5C,8BAA8B,CAAC,eAAe,EAAE,CAAC;IAClD,CAAC;IAED,eAAe;QACd,8BAA8B,CAAC,UAAU,EAAE,CAAC;QAC5C,8BAA8B,CAAC,eAAe,EAAE,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,MAAM;QACL;;WAEG;QACH,OAAO,CACN,6BAAK,SAAS,EAAC,kCAAkC,IAC/C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,IAC1C,MAAM,CAAC,KAAK,CACH,CACX,CAAC,CACG,CACN,CAAC;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"WorkspaceActions.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAQlD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAiB;IAGpE,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,WAAW,GAAG;YAClB;gBACC,MAAM,EAAE,IAAI,CAAC,eAAe;gBAC5B,KAAK,EAAE,eAAe;gBACtB,EAAE,EAAE,cAAc;aAClB;YACD;gBACC,MAAM,EAAE,IAAI,CAAC,aAAa;gBAC1B,KAAK,EAAE,MAAM;gBACb,EAAE,EAAE,eAAe;aACnB;YACD;gBACC,MAAM,EAAE,IAAI,CAAC,eAAe;gBAC5B,KAAK,EAAE,SAAS;gBAChB,EAAE,EAAE,iBAAiB;aACrB;SACD,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,eAAe;QACd,8BAA8B,CAAC,YAAY,EAAE,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,aAAa;QACZ,8BAA8B,CAAC,aAAa,EAAE,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,eAAe;QACd,8BAA8B,CAAC,eAAe,EAAE,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,MAAM;QACL;;WAEG;QACH,OAAO,CACN,6BAAK,SAAS,EAAC,kCAAkC,IAC/C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,IAC1C,MAAM,CAAC,KAAK,CACH,CACX,CAAC,CACG,CACN,CAAC;IACH,CAAC;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"General.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/content/General.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,aAAK,YAAY,GAAG;IACnB,WAAW,EAAE,QAAQ,CAAC;IACtB,cAAc,EAAE,QAAQ,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CA8DlD,CAAC;AACF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"General.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/content/General.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,aAAK,YAAY,GAAG;IACnB,WAAW,EAAE,QAAQ,CAAC;IACtB,cAAc,EAAE,QAAQ,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAoElD,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import ScheduledClose from "../general/ScheduledClose";
3
+ import DownloadPreferences from "../general/DownloadPreferences";
3
4
  import { Actions, UserPreferencesStore } from "../../stores/UserPreferencesStore";
4
5
  import { Checkbox } from "../../../common/Checkbox";
5
6
  import { FEAGlobals } from "../../../../../common/Globals";
@@ -39,6 +40,8 @@ const General = () => {
39
40
  React.createElement(ScheduledClose, { getPreferences: Actions.getPreferences, setPreferences: Actions.setScheduledClose, configKey: "finsemble.scheduledShutdown", label: "Shutdown" }),
40
41
  React.createElement("span", { className: "general-row" },
41
42
  React.createElement(Checkbox, { onClick: toggleDiscardUnsavedChanges, checked: discardUnsavedChanges, label: "Discard unsaved workspace changes" })),
43
+ React.createElement("div", { className: "download-preferences-container" },
44
+ React.createElement(DownloadPreferences, { getPreferences: Actions.getPreferences, setPreferences: Actions.setDownloads, configKey: "finsemble.downloads" })),
42
45
  React.createElement("span", { className: "general-row" },
43
46
  React.createElement(ResetPreferences, null))));
44
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"General.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/content/General.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAQ3D,MAAM,OAAO,GAA0C,GAAG,EAAE;IAC3D,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAG,GAAG,EAAE;QAC5B,wBAAwB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,iHAAiH;IACjH,SAAS,CAAC,GAAG,EAAE;QACd,o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ACd,cAAc,EAAE,OAAO,CAAC,cAAc,EACtC,cAAc,EAAE,OAAO,CAAC,iBAAiB,EACzC,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAC,UAAU,GACf;QACF,8BAAM,SAAS,EAAC,aAAa;YAC5B,oBAAC,QAAQ,IACR,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAC,mCAAmC,GACxC,CACI;QAEP,8BAAM,SAAS,EAAC,aAAa;YAC5B,oBAAC,gBAAgB,OAAG,CACd,CACF,CACN,CAAC;AACH,CAAC,CAAC;AACF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"General.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/content/General.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAQ3D,MAAM,OAAO,GAA0C,GAAG,EAAE;IAC3D,MAAM,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1E,MAAM,eAAe,GAAG,GAAG,EAAE;QAC5B,wBAAwB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,iHAAiH;IACjH,SAAS,CAAC,GAAG,EAAE;QACd,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,WAAW,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,eAAe,CAAC,CAAC;QAEhF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AAU,GACf;QACF,8BAAM,SAAS,EAAC,aAAa;YAC5B,oBAAC,QAAQ,IACR,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,qBAAqB,EAC9B,KAAK,EAAC,mCAAmC,GACxC,CACI;QACP,6BAAK,SAAS,EAAC,gCAAgC;YAC9C,oBAAC,mBAAmB,IACnB,cAAc,EAAE,OAAO,CAAC,cAAc,EACtC,cAAc,EAAE,OAAO,CAAC,YAAY,EACpC,SAAS,EAAC,qBAAqB,GAC9B,CACG;QACN,8BAAM,SAAS,EAAC,aAAa;YAC5B,oBAAC,gBAAgB,OAAG,CACd,CACF,CACN,CAAC;AACH,CAAC,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { StandardCallback } from "../../../../../types";
3
+ export declare type DownloadPreferencesProps = {
4
+ getPreferences: (cb: StandardCallback) => void;
5
+ setPreferences: (key: any, value: any) => void;
6
+ configKey: string;
7
+ };
8
+ export declare const DownloadPreferences: React.FunctionComponent<DownloadPreferencesProps>;
9
+ export default DownloadPreferences;
10
+ //# sourceMappingURL=DownloadPreferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadPreferences.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/general/DownloadPreferences.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,oBAAY,wBAAwB,GAAG;IACtC,cAAc,EAAE,CAAC,EAAE,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/C,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CA6HjF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,111 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import DefaultDropdownButton from "../../../shared/DefaultDropdownButton";
3
+ import { FEAGlobals } from "../../../../../common/Globals";
4
+ export const DownloadPreferences = (props) => {
5
+ const [initialized, setInitialized] = useState(false);
6
+ const [downloadLocation, setDownloadLocation] = useState("");
7
+ const [previousLocations, setPreviousLocations] = useState([]);
8
+ const [downloadLocationOptions, setDownloadLocationOptions] = useState([]);
9
+ const DOWNLOAD_LOCATION_OPTIONS_LIMIT = 3;
10
+ /**
11
+ * Sets up a dynamic dropdown to track saved locations the user picks.
12
+ * The dropdown can contain the two static options + up to the last three locations
13
+ * selected by the user.
14
+ * @returns
15
+ */
16
+ const createDownloadLocationOptions = () => {
17
+ let downloadOptions = [
18
+ {
19
+ optionLabel: "Ask for each download",
20
+ optionValue: "",
21
+ clickHandler: () => setDownloadLocation(""),
22
+ },
23
+ {
24
+ optionLabel: "New Location",
25
+ optionValue: "new",
26
+ clickHandler: () => {
27
+ FEAGlobals.finsembleWindow.showNativeOpenDialog({
28
+ title: "Download Location",
29
+ buttonLabel: "Choose Location",
30
+ properties: ["openDirectory"],
31
+ }, (err, response) => {
32
+ var _a, _b, _c;
33
+ if (((_b = (_a = response === null || response === void 0 ? void 0 : response[0]) === null || _a === void 0 ? void 0 : _a.filePaths) === null || _b === void 0 ? void 0 : _b.length) > 0) {
34
+ const path = (_c = response === null || response === void 0 ? void 0 : response[0]) === null || _c === void 0 ? void 0 : _c.filePaths[0];
35
+ // When a new location is selected, update the download location and add it to the dropdown
36
+ // list and list of previous locations.
37
+ setDownloadLocation(path);
38
+ // If the new location selected is already in the dropdown, set it as the download location
39
+ // but don't add it to the list again
40
+ if (previousLocations.includes(path))
41
+ return;
42
+ if ((previousLocations === null || previousLocations === void 0 ? void 0 : previousLocations.length) >= DOWNLOAD_LOCATION_OPTIONS_LIMIT) {
43
+ const result = previousLocations.shift();
44
+ FEAGlobals.FSBL.Clients.Logger.system.debug(`DownloadPrefrences: removing oldest option from list: ${result}`);
45
+ }
46
+ previousLocations.push(path);
47
+ setPreviousLocations([...previousLocations]);
48
+ downloadOptions.push({
49
+ optionLabel: path,
50
+ optionValue: path,
51
+ clickHandler: () => setDownloadLocation(path),
52
+ });
53
+ }
54
+ });
55
+ },
56
+ },
57
+ ];
58
+ Object.values(previousLocations).forEach((location) => {
59
+ downloadOptions.push({
60
+ optionLabel: location,
61
+ optionValue: location,
62
+ clickHandler: () => setDownloadLocation(location),
63
+ });
64
+ });
65
+ return downloadOptions;
66
+ };
67
+ /**
68
+ * Set initial local state from the store
69
+ */
70
+ useEffect(() => {
71
+ props.getPreferences((err, data) => {
72
+ if (data) {
73
+ const configValue = data[props.configKey];
74
+ if (configValue) {
75
+ setDownloadLocation(configValue.downloadLocation);
76
+ setPreviousLocations(configValue.previousLocations);
77
+ }
78
+ else {
79
+ setDownloadLocation("");
80
+ setPreviousLocations([]);
81
+ }
82
+ setInitialized(true);
83
+ }
84
+ });
85
+ }, []);
86
+ // Write the store when local state updates. Also keep the dropdown options up to date
87
+ // Only the download location and the list of previous locations is saved in the store.
88
+ // The list of previous locations is used to create the dropdown options.
89
+ useEffect(() => {
90
+ if (initialized) {
91
+ props.setPreferences(props.configKey, { downloadLocation, previousLocations });
92
+ setDownloadLocationOptions(createDownloadLocationOptions());
93
+ }
94
+ }, [downloadLocation, previousLocations, initialized]);
95
+ // Send the download location path down to fea after changes and on startup
96
+ // since it needs to persist between restarts.
97
+ useEffect(() => {
98
+ if (initialized) {
99
+ FEAGlobals.fin.desktop.System.setDownloadSavePath(downloadLocation);
100
+ }
101
+ }, [downloadLocation, initialized]);
102
+ return (React.createElement("div", null,
103
+ React.createElement("div", { className: "download-header" }, "Downloads"),
104
+ React.createElement("div", { className: "complex-menu-content-row", style: { overflow: "visible" } },
105
+ React.createElement("div", { className: "download-location-row" },
106
+ React.createElement("div", { className: "download-location-label" }, "File download location"),
107
+ React.createElement("div", { className: "download-location-dropdown" },
108
+ React.createElement(DefaultDropdownButton, { buttonOptions: downloadLocationOptions, classNames: "file-left file-options-left", allowEmpty: false, caretLocation: "right", defaultSelection: downloadLocationOptions.find((element) => element.optionValue === downloadLocation) }))))));
109
+ };
110
+ export default DownloadPreferences;
111
+ //# sourceMappingURL=DownloadPreferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadPreferences.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/userPreferences/components/general/DownloadPreferences.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,qBAEN,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAQ3D,MAAM,CAAC,MAAM,mBAAmB,GAAsD,CAAC,KAAK,EAAE,EAAE;IAC/F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IAC/D,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IACrE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAM,EAAE,CAAC,CAAC;IACpE,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GAAG,QAAQ,CAAM,EAAE,CAAC,CAAC;IAChF,MAAM,+BAA+B,GAAG,CAAC,CAAC;IAE1C;;;;;OAKG;IACH,MAAM,6BAA6B,GAAG,GAAG,EAAE;QAC1C,IAAI,eAAe,GAAkD;YACpE;gBACC,WAAW,EAAE,uBAAuB;gBACpC,WAAW,EAAE,EAAE;gBACf,YAAY,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;aAC3C;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,WAAW,EAAE,KAAK;gBAClB,YAAY,EAAE,GAAG,EAAE;oBAClB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,IAAI,WAAW,EAAE;YAChB,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;SACpE;IACF,CAAC,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;IAEpC,OAAO,CACN;QACC,6BAAK,SAAS,EAAC,iBAAiB,gBAAgB;QAChD,6BAAK,SAAS,EAAC,0BAA0B,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;YACvE,6BAAK,SAAS,EAAC,uBAAuB;gBACrC,6BAAK,SAAS,EAAC,yBAAyB,6BAA6B;gBACrE,6BAAK,SAAS,EAAC,4BAA4B;oBAC1C,oBAAC,qBAAqB,IACrB,aAAa,EAAE,uBAAuB,EACtC,UAAU,EAAE,6BAA6B,EACzC,UAAU,EAAE,KAAK,EACjB,aAAa,EAAE,OAAO,EACtB,gBAAgB,EAAE,uBAAuB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,KAAK,gBAAgB,CAAC,GACpG,CACG,CACD,CACD,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -23,6 +23,12 @@ declare const Actions: {
23
23
  *
24
24
  */
25
25
  setScheduledClose: (key: "finsemble.scheduledRestart" | "finsemble.scheduledShutdown", value: ScheduledDayTimeObjectType | false) => void;
26
+ /**
27
+ * Allows download settings to persist after restart.
28
+ * Saves an object containing the choosen location and a list of the last
29
+ * three (or less) choosen locations to show in the dropdown
30
+ */
31
+ setDownloads: (key: "finsemble.downloads", value: string) => void;
26
32
  setDiscardUnsavedChangesPreference: (value: boolean) => void;
27
33
  getPreferences: (callback: StandardCallback) => void;
28
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UserPreferencesStore.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/userPreferences/stores/UserPreferencesStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAiB,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGpE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAY5D,QAAA,IAAI,oBAAoB,EAAE,UAAU,CAAC;AACrC,QAAA,IAAI,4BAA4B,EAAE,UAAU,CAAC;AAI7C,QAAA,MAAM,OAAO;;;IAyEZ;;;OAGG;;IAYH;;;;OAIG;+BACwB,0BAA0B,GAAG,KAAK;IAO7D;;;;OAIG;6BAEG,4BAA4B,GAAG,6BAA6B,SAC1D,0BAA0B,GAAG,KAAK;gDAQE,OAAO;+BAOxB,gBAAgB;CAG3C,CAAC;AAoBF;;GAEG;AACH,iBAAS,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,QAMrF;AAED,OAAO,EAAE,4BAA4B,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"UserPreferencesStore.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/userPreferences/stores/UserPreferencesStore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAiB,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGpE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAY5D,QAAA,IAAI,oBAAoB,EAAE,UAAU,CAAC;AACrC,QAAA,IAAI,4BAA4B,EAAE,UAAU,CAAC;AAI7C,QAAA,MAAM,OAAO;;;IAyEZ;;;OAGG;;IAYH;;;;OAIG;+BACwB,0BAA0B,GAAG,KAAK;IAO7D;;;;OAIG;6BAEG,4BAA4B,GAAG,6BAA6B,SAC1D,0BAA0B,GAAG,KAAK;IAQ1C;;;;OAIG;wBACiB,qBAAqB,SAAS,MAAM;gDAOZ,OAAO;+BAOxB,gBAAgB;CAG3C,CAAC;AAoBF;;GAEG;AACH,iBAAS,UAAU,CAAC,qBAAqB,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,QAMrF;AAED,OAAO,EAAE,4BAA4B,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC"}
@@ -103,6 +103,17 @@ const Actions = {
103
103
  value: value,
104
104
  });
105
105
  },
106
+ /**
107
+ * Allows download settings to persist after restart.
108
+ * Saves an object containing the choosen location and a list of the last
109
+ * three (or less) choosen locations to show in the dropdown
110
+ */
111
+ setDownloads: (key, value) => {
112
+ FEAGlobals.FSBL.Clients.ConfigClient.setPreference({
113
+ field: key,
114
+ value: value,
115
+ });
116
+ },
106
117
  setDiscardUnsavedChangesPreference: (value) => {
107
118
  FEAGlobals.FSBL.Clients.ConfigClient.setPreference({
108
119
  field: "finsemble.scheduledCloseDiscardUnsavedChanges",
@@ -1 +1 @@
1
- {"version":3,"file":"UserPreferencesStore.js","sourceRoot":"","sources":["../../../../../../src/ui/components/userPreferences/stores/UserPreferencesStore.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAWxD,IAAI,oBAAgC,CAAC;AACrC,IAAI,4BAAwC,CAAC;AAE7C,IAAI,eAA8B,CAAC;AAEnC,MAAM,OAAO,GAAG;IACf,UAAU,EAAE;QACX,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;YAC9E,IAAI,SAAS;gBAAE,eAAe,GAAG,SAA0B,CAAC;QAC7D,CAAC,CAAC,CAAC;QAEH,2DAA2D;QAC3D,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,GAAkB,EAAE,UAA4B,EAAE,EAAE;YAC1G,IAAI,UAAU;gBACb,oBAAoB,CAAC,QAAQ,CAAC;oB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,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;YAClD,KAAK,EAAE,+CAA+C;YACtD,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;IACJ,CAAC;IAED,cAAc,EAAE,CAAC,QAA0B,EAAE,EAAE;QAC9C,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;CACD,CAAC;AAEF,KAAK,UAAU,gBAAgB,CAAC,IAAgB;IAC/C,wGAAwG;IACxG,qGAAqG;IACrG,yEAAyE;IACzE,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CACzD,EAAE,KAAK,EAAE,uCAAuC,EAAE,EAClD,CAAC,cAA6B,EAAE,gBAAwC,EAAE,EAAE;QAC3E,IAAI,cAAc,EAAE;YACnB,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,EAAE,cAAc,CAAC,CAAC;SACtG;QACD,IAAI,gBAAgB,EAAE;YACrB,oBAAoB,GAAG,gBAAgB,CAAC;SACxC;QACD,IAAI,EAAE,CAAC;IACR,CAAC,CACD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,qBAAiC,EAAE,EAA+B;IACrF,4BAA4B,GAAG,qBAAqB,CAAC;IACrD,gBAAgB,CAAC,GAAG,EAAE;QACrB,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,EAAE,CAAC,oBAAoB,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,4BAA4B,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"UserPreferencesStore.js","sourceRoot":"","sources":["../../../../../../src/ui/components/userPreferences/stores/UserPreferencesStore.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,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,cAAc,EAAE;YACnB,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,EAAE,cAAc,CAAC,CAAC;SACtG;QACD,IAAI,gBAAgB,EAAE;YACrB,oBAAoB,GAAG,gBAAgB,CAAC;SACxC;QACD,IAAI,EAAE,CAAC;IACR,CAAC,CACD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,qBAAiC,EAAE,EAA+B;IACrF,4BAA4B,GAAG,qBAAqB,CAAC;IACrD,gBAAgB,CAAC,GAAG,EAAE;QACrB,OAAO,CAAC,UAAU,EAAE,CAAC;QACrB,EAAE,CAAC,oBAAoB,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,4BAA4B,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC"}
@@ -1,27 +1,3 @@
1
- /*!
2
- * Copyright 2017 by ChartIQ, Inc.
3
- * All rights reserved.
4
- */
5
- import * as React from "react";
6
- interface IProps {
7
- }
8
- /**
9
- * Close button, located on the far right of the window Manager.
10
- */
11
- export declare class CloseButton extends React.Component<IProps> {
12
- static contextType: React.Context<import("../../windowTitleBarContext").WindowTitleBarContextType>;
13
- constructor(props: IProps);
14
- /**
15
- * Listener invoked when the user clicks the close button.
16
- *
17
- * @memberof CloseButton
18
- */
19
- onClick(): void;
20
- /**
21
- * Render method
22
- * @memberof CloseButton
23
- */
24
- render(): JSX.Element;
25
- }
26
- export {};
1
+ /// <reference types="react" />
2
+ export declare const CloseButton: () => JSX.Element;
27
3
  //# sourceMappingURL=CloseButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/windowTitleBar/components/right/CloseButton.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,MAAM;CAAG;AAEnB;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;IACvD,MAAM,CAAC,WAAW,iFAAyB;gBAE/B,KAAK,EAAE,MAAM;IAIzB;;;;OAIG;IACH,OAAO;IAIP;;;OAGG;IACH,MAAM;CAWN"}
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/windowTitleBar/components/right/CloseButton.tsx"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW,mBAYvB,CAAC"}
@@ -5,29 +5,12 @@
5
5
  import * as React from "react";
6
6
  import { Actions as HeaderActions } from "../../stores/windowTitleBarStore";
7
7
  import { WindowTitleBarContext } from "../../windowTitleBarContext";
8
- /**
9
- * Close button, located on the far right of the window Manager.
10
- */
11
- export class CloseButton extends React.Component {
12
- constructor(props) {
13
- super(props);
14
- }
15
- /**
16
- * Listener invoked when the user clicks the close button.
17
- *
18
- * @memberof CloseButton
19
- */
20
- onClick() {
21
- HeaderActions.clickClose();
22
- }
23
- /**
24
- * Render method
25
- * @memberof CloseButton
26
- */
27
- render() {
28
- return (React.createElement(React.Fragment, null, this.context.showCloseButton && (React.createElement("div", { onClick: this.onClick, className: "fsbl-icon fsbl-close", title: "Close", id: "fsbl-window-close" },
29
- React.createElement("i", { className: "ff-close" })))));
30
- }
31
- }
32
- CloseButton.contextType = WindowTitleBarContext;
8
+ const onClick = () => {
9
+ HeaderActions.clickClose();
10
+ };
11
+ export const CloseButton = () => {
12
+ const context = React.useContext(WindowTitleBarContext);
13
+ return (React.createElement(React.Fragment, null, context.showCloseButton && (React.createElement("div", { onClick: onClick, className: "fsbl-icon fsbl-close", title: "Close", id: "fsbl-window-close" },
14
+ React.createElement("i", { className: "ff-close" })))));
15
+ };
33
16
  //# sourceMappingURL=CloseButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/windowTitleBar/components/right/CloseButton.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAIpE;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAiB;IAGvD,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,OAAO;QACN,aAAa,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,MAAM;QACL,OAAO,CACN,0CACE,IAAI,CAAC,OAAO,CAAC,eAAe,IAAI,CAChC,6BAAK,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAC,mBAAmB;YAChG,2BAAG,SAAS,EAAC,UAAU,GAAK,CACvB,CACN,CACC,CACH,CAAC;IACH,CAAC;;AA7BM,uBAAW,GAAG,qBAAqB,CAAC"}
1
+ {"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/windowTitleBar/components/right/CloseButton.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,OAAO,GAAG,GAAG,EAAE;IACpB,aAAa,CAAC,UAAU,EAAE,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAExD,OAAO,CACN,0CACE,OAAO,CAAC,eAAe,IAAI,CAC3B,6BAAK,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,sBAAsB,EAAC,KAAK,EAAC,OAAO,EAAC,EAAE,EAAC,mBAAmB;QAC3F,2BAAG,SAAS,EAAC,UAAU,GAAK,CACvB,CACN,CACC,CACH,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ declare type DownloadItem = {
2
+ id: string;
3
+ displayInfo: {
4
+ filename: string;
5
+ url: string;
6
+ state: string;
7
+ receivedBytes?: number;
8
+ totalBytes: number;
9
+ };
10
+ };
11
+ declare type DownloadState = {
12
+ downloadItems: DownloadItem[];
13
+ };
14
+ /**
15
+ * A hook to handle state from the download Manager UI. The state is initialized and updated
16
+ * based on information from fea.
17
+ */
18
+ export default function useDownloadItems(): {
19
+ downloadItems: any;
20
+ removeDownloadItem: (downloadItem: DownloadItem) => void;
21
+ initDownloadItems: (downloadItems: DownloadState) => void;
22
+ };
23
+ export {};
24
+ //# sourceMappingURL=useDownloadItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDownloadItems.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useDownloadItems.ts"],"names":[],"mappings":"AAGA,aAAK,YAAY,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;CACF,CAAC;AAEF,aAAK,aAAa,GAAG;IACpB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAC;AA2CF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB;;uCAKG,YAAY;uCAMZ,aAAa;EAiBvD"}
@@ -0,0 +1,68 @@
1
+ import { useEffect, useReducer } from "react";
2
+ import { FEAGlobals } from "../../common/Globals";
3
+ const initialState = { downloadItems: [] };
4
+ /*
5
+ Action Types
6
+ */
7
+ const UPDATE = "UPDATE";
8
+ const REMOVED = "REMOVED";
9
+ const INIT = "INIT";
10
+ function reducer(state, action) {
11
+ var _a;
12
+ switch (action.type) {
13
+ case INIT:
14
+ // Initialize the state with the downloadItems saved in FEA. Values are only expected when the UI is reopened.
15
+ return {
16
+ downloadItems: [...state.downloadItems, ...(_a = action.payload) === null || _a === void 0 ? void 0 : _a.reverse()],
17
+ };
18
+ case UPDATE: {
19
+ // Adds or updates the downloadItem if it already exists
20
+ const downloadItemExistsInArray = state.downloadItems.find((downloadItem) => downloadItem.id === action.payload.id);
21
+ const downloadItems = downloadItemExistsInArray
22
+ ? state.downloadItems.map((downloadItem) => downloadItem.id === action.payload.id ? action.payload : downloadItem)
23
+ : [action.payload, ...state.downloadItems];
24
+ return { downloadItems };
25
+ }
26
+ case REMOVED: {
27
+ // Removes the downloadItem from the list of downloads
28
+ const downloadItems = state.downloadItems.filter((downloadItem) => downloadItem.id !== action.payload.id);
29
+ return {
30
+ downloadItems,
31
+ };
32
+ }
33
+ default:
34
+ throw new Error();
35
+ }
36
+ }
37
+ /**
38
+ * A hook to handle state from the download Manager UI. The state is initialized and updated
39
+ * based on information from fea.
40
+ */
41
+ export default function useDownloadItems() {
42
+ const [state, dispatch] = useReducer(reducer, initialState);
43
+ /*
44
+ Action Creators
45
+ */
46
+ const removeDownloadItem = (downloadItem) => {
47
+ dispatch({ type: REMOVED, payload: downloadItem });
48
+ };
49
+ const updateDownloadItem = (downloadItem) => {
50
+ dispatch({ type: UPDATE, payload: downloadItem });
51
+ };
52
+ const initDownloadItems = (downloadItems) => {
53
+ dispatch({ type: INIT, payload: downloadItems });
54
+ };
55
+ // Listens for message from fea that a download was initiated/updated
56
+ useEffect(() => {
57
+ FEAGlobals.fin.desktop.System.addEventListener("download-update", updateDownloadItem);
58
+ return () => {
59
+ FEAGlobals.fin.desktop.System.removeEventListener("download-update", updateDownloadItem);
60
+ };
61
+ }, []);
62
+ return {
63
+ downloadItems: state.downloadItems,
64
+ removeDownloadItem,
65
+ initDownloadItems,
66
+ };
67
+ }
68
+ //# sourceMappingURL=useDownloadItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDownloadItems.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useDownloadItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAiBlD,MAAM,YAAY,GAAkB,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC;AAE1D;;EAEE;AACF,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB,SAAS,OAAO,CAAC,KAAkC,EAAE,MAAsC;;IAC1F,QAAQ,MAAM,CAAC,IAAI,EAAE;QACpB,KAAK,IAAI;YACR,8GAA8G;YAC9G,OAAO;gBACN,aAAa,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,EAAE,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;aACrE,CAAC;QACH,KAAK,MAAM,CAAC,CAAC;YACZ,wDAAwD;YACxD,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CACzD,CAAC,YAAiB,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,CAC5D,CAAC;YACF,MAAM,aAAa,GAAG,yBAAyB;gBAC9C,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAiB,EAAE,EAAE,CAC9C,YAAY,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CACpE;gBACH,CAAC,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AAO,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;QAC1F,CAAC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACN,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,kBAAkB;QAClB,iBAAiB;KACjB,CAAC;AACH,CAAC"}
@@ -8,7 +8,7 @@ declare type NotificationUIStatePublish = (state: NotificationServiceState) => v
8
8
  */
9
9
  export declare const useNotificationUI: () => [state: NotificationServiceState, setState: NotificationUIStatePublish];
10
10
  export declare const moveToToolbarMonitor: () => Promise<void>;
11
- export declare const getOS: () => "Windows" | "Linux" | "Mac" | undefined;
11
+ export declare const getOS: () => "Mac" | "Windows" | "Linux" | undefined;
12
12
  /**
13
13
  * Example for setting up button clicks
14
14
  *