@finsemble/finsemble-ui 8.4.2 → 8.5.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 (230) hide show
  1. package/FEA.d.ts +48 -4
  2. package/FEA.d.ts.map +1 -1
  3. package/FEA.js.map +1 -1
  4. package/clients/Interop/FinsembleDesktopAgent.d.ts +1 -0
  5. package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
  6. package/clients/Interop/FinsembleDesktopAgent.js +7 -6
  7. package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
  8. package/clients/Interop/types.d.ts +1 -0
  9. package/clients/Interop/types.d.ts.map +1 -1
  10. package/clients/StoreModel.js +1 -1
  11. package/clients/StoreModel.js.map +1 -1
  12. package/clients/appsClient.d.ts +34 -0
  13. package/clients/appsClient.d.ts.map +1 -1
  14. package/clients/appsClient.js +56 -9
  15. package/clients/appsClient.js.map +1 -1
  16. package/clients/authenticationClient.d.ts +7 -0
  17. package/clients/authenticationClient.d.ts.map +1 -1
  18. package/clients/authenticationClient.js +7 -0
  19. package/clients/authenticationClient.js.map +1 -1
  20. package/clients/configClient.d.ts +42 -1
  21. package/clients/configClient.d.ts.map +1 -1
  22. package/clients/configClient.js +42 -1
  23. package/clients/configClient.js.map +1 -1
  24. package/clients/dialogManagerClient.d.ts +10 -0
  25. package/clients/dialogManagerClient.d.ts.map +1 -1
  26. package/clients/dialogManagerClient.js +10 -0
  27. package/clients/dialogManagerClient.js.map +1 -1
  28. package/clients/distributedStoreClient.d.ts +3 -0
  29. package/clients/distributedStoreClient.d.ts.map +1 -1
  30. package/clients/distributedStoreClient.js +3 -0
  31. package/clients/distributedStoreClient.js.map +1 -1
  32. package/clients/hotkeyClient.d.ts +5 -0
  33. package/clients/hotkeyClient.d.ts.map +1 -1
  34. package/clients/hotkeyClient.js +5 -0
  35. package/clients/hotkeyClient.js.map +1 -1
  36. package/clients/launcherClient.d.ts +6 -1
  37. package/clients/launcherClient.d.ts.map +1 -1
  38. package/clients/launcherClient.js +3 -1
  39. package/clients/launcherClient.js.map +1 -1
  40. package/clients/logger.d.ts +6 -0
  41. package/clients/logger.d.ts.map +1 -1
  42. package/clients/logger.js +6 -0
  43. package/clients/logger.js.map +1 -1
  44. package/clients/notificationClient.d.ts +17 -0
  45. package/clients/notificationClient.d.ts.map +1 -1
  46. package/clients/notificationClient.js +17 -0
  47. package/clients/notificationClient.js.map +1 -1
  48. package/clients/routerClient.d.ts +14 -0
  49. package/clients/routerClient.d.ts.map +1 -1
  50. package/clients/routerClient.js +14 -0
  51. package/clients/routerClient.js.map +1 -1
  52. package/clients/searchClient.d.ts +5 -0
  53. package/clients/searchClient.d.ts.map +1 -1
  54. package/clients/searchClient.js +5 -0
  55. package/clients/searchClient.js.map +1 -1
  56. package/clients/storageClient.d.ts +11 -1
  57. package/clients/storageClient.d.ts.map +1 -1
  58. package/clients/storageClient.js +11 -1
  59. package/clients/storageClient.js.map +1 -1
  60. package/clients/windowClient.d.ts +47 -1
  61. package/clients/windowClient.d.ts.map +1 -1
  62. package/clients/windowClient.js +47 -1
  63. package/clients/windowClient.js.map +1 -1
  64. package/clients/workspaceClient.d.ts +26 -4
  65. package/clients/workspaceClient.d.ts.map +1 -1
  66. package/clients/workspaceClient.js +26 -4
  67. package/clients/workspaceClient.js.map +1 -1
  68. package/common/Desktop.d.ts +4 -1
  69. package/common/Desktop.d.ts.map +1 -1
  70. package/common/Desktop.js +4 -1
  71. package/common/Desktop.js.map +1 -1
  72. package/common/FinsembleWindow.d.ts +1 -1
  73. package/common/FinsembleWindow.d.ts.map +1 -1
  74. package/common/FinsembleWindow.js +7 -7
  75. package/common/FinsembleWindow.js.map +1 -1
  76. package/deprecated/dragAndDropClient.d.ts +1 -0
  77. package/deprecated/dragAndDropClient.d.ts.map +1 -1
  78. package/deprecated/dragAndDropClient.js +1 -0
  79. package/deprecated/dragAndDropClient.js.map +1 -1
  80. package/main.d.ts +13 -1
  81. package/main.d.ts.map +1 -1
  82. package/package.json +3 -3
  83. package/platform/services/Interop/modules/types.d.ts +2 -0
  84. package/platform/services/Interop/modules/types.d.ts.map +1 -1
  85. package/platform/services/Interop/types.d.ts +16 -1
  86. package/platform/services/Interop/types.d.ts.map +1 -1
  87. package/platform/services/Interop/types.js.map +1 -1
  88. package/platform/services/window/modules/actions.d.ts +5 -0
  89. package/platform/services/window/modules/actions.d.ts.map +1 -1
  90. package/platform/services/window/modules/actions.js +2 -0
  91. package/platform/services/window/modules/actions.js.map +1 -1
  92. package/platform/services/window/types.d.ts +11 -1
  93. package/platform/services/window/types.d.ts.map +1 -1
  94. package/react/actions/smartDesktopDesignerActions.d.ts +7 -1
  95. package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
  96. package/react/actions/smartDesktopDesignerActions.js +3 -0
  97. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  98. package/react/assets/css/dialogs.css +2 -1
  99. package/react/assets/css/userPreferences.css +1 -1
  100. package/react/components/appCatalog/AppCatalog.d.ts +3 -0
  101. package/react/components/appCatalog/AppCatalog.d.ts.map +1 -1
  102. package/react/components/appCatalog/AppCatalog.js +3 -0
  103. package/react/components/appCatalog/AppCatalog.js.map +1 -1
  104. package/react/components/appCatalog/AppCatalogComponent.d.ts +4 -0
  105. package/react/components/appCatalog/AppCatalogComponent.d.ts.map +1 -1
  106. package/react/components/appCatalog/AppCatalogComponent.js +4 -0
  107. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  108. package/react/components/common/Checkbox.d.ts +1 -0
  109. package/react/components/common/Checkbox.d.ts.map +1 -1
  110. package/react/components/common/Checkbox.js +14 -2
  111. package/react/components/common/Checkbox.js.map +1 -1
  112. package/react/components/common/ContextMenu.d.ts.map +1 -1
  113. package/react/components/common/ContextMenu.js +3 -1
  114. package/react/components/common/ContextMenu.js.map +1 -1
  115. package/react/components/common/FinsembleLink.d.ts +7 -0
  116. package/react/components/common/FinsembleLink.d.ts.map +1 -0
  117. package/react/components/common/FinsembleLink.js +13 -0
  118. package/react/components/common/FinsembleLink.js.map +1 -0
  119. package/react/components/common/Header.d.ts +1 -0
  120. package/react/components/common/Header.d.ts.map +1 -1
  121. package/react/components/common/Header.js +4 -2
  122. package/react/components/common/Header.js.map +1 -1
  123. package/react/components/common/css/application-edit-page.css +0 -11
  124. package/react/components/common/css/application-list.css +54 -23
  125. package/react/components/common/css/button.css +20 -0
  126. package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
  127. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  128. package/react/components/icon/Icon.js +1 -1
  129. package/react/components/icon/Icon.js.map +1 -1
  130. package/react/components/notifications/components/shared/IconButton.d.ts +1 -1
  131. package/react/components/notifications/components/shared/IconButton.d.ts.map +1 -1
  132. package/react/components/notifications/components/shared/IconButton.js +2 -2
  133. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  134. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
  135. package/react/components/notifications/components/shared/NotificationCardShell.d.ts.map +1 -1
  136. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
  137. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts.map +1 -1
  138. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
  139. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts.map +1 -1
  140. package/react/components/sdd/Content.d.ts +9 -0
  141. package/react/components/sdd/Content.d.ts.map +1 -0
  142. package/react/components/sdd/Content.js +7 -0
  143. package/react/components/sdd/Content.js.map +1 -0
  144. package/react/components/sdd/Dashboard.d.ts +20 -0
  145. package/react/components/sdd/Dashboard.d.ts.map +1 -0
  146. package/react/components/sdd/Dashboard.js +103 -0
  147. package/react/components/sdd/Dashboard.js.map +1 -0
  148. package/react/components/sdd/Export.d.ts +24 -0
  149. package/react/components/sdd/Export.d.ts.map +1 -0
  150. package/react/components/sdd/Export.js +133 -0
  151. package/react/components/sdd/Export.js.map +1 -0
  152. package/react/components/sdd/ExportCloud.d.ts +7 -0
  153. package/react/components/sdd/ExportCloud.d.ts.map +1 -0
  154. package/react/components/sdd/ExportCloud.js +38 -0
  155. package/react/components/sdd/ExportCloud.js.map +1 -0
  156. package/react/components/sdd/ExportDeployInfo.d.ts +3 -0
  157. package/react/components/sdd/ExportDeployInfo.d.ts.map +1 -0
  158. package/react/components/sdd/ExportDeployInfo.js +18 -0
  159. package/react/components/sdd/ExportDeployInfo.js.map +1 -0
  160. package/react/components/sdd/ExportZip.d.ts +7 -0
  161. package/react/components/sdd/ExportZip.d.ts.map +1 -0
  162. package/react/components/sdd/ExportZip.js +43 -0
  163. package/react/components/sdd/ExportZip.js.map +1 -0
  164. package/react/components/sdd/ProjectErrors.d.ts +12 -0
  165. package/react/components/sdd/ProjectErrors.d.ts.map +1 -0
  166. package/react/components/sdd/ProjectErrors.js +26 -0
  167. package/react/components/sdd/ProjectErrors.js.map +1 -0
  168. package/react/components/sdd/ProjectMasonry.d.ts +13 -0
  169. package/react/components/sdd/ProjectMasonry.d.ts.map +1 -0
  170. package/react/components/sdd/ProjectMasonry.js +22 -0
  171. package/react/components/sdd/ProjectMasonry.js.map +1 -0
  172. package/react/components/sdd/Publish.d.ts +9 -0
  173. package/react/components/sdd/Publish.d.ts.map +1 -0
  174. package/react/components/sdd/Publish.js +113 -0
  175. package/react/components/sdd/Publish.js.map +1 -0
  176. package/react/components/sdd/PublishProgress.d.ts +10 -0
  177. package/react/components/sdd/PublishProgress.d.ts.map +1 -0
  178. package/react/components/sdd/PublishProgress.js +24 -0
  179. package/react/components/sdd/PublishProgress.js.map +1 -0
  180. package/react/components/sdd/View.d.ts +9 -0
  181. package/react/components/sdd/View.d.ts.map +1 -0
  182. package/react/components/sdd/View.js +7 -0
  183. package/react/components/sdd/View.js.map +1 -0
  184. package/react/components/sdd/css/addApp.css +62 -8
  185. package/react/components/sdd/css/appD.css +81 -0
  186. package/react/components/sdd/css/appDViewer.css +93 -0
  187. package/react/components/sdd/css/applications.css +53 -15
  188. package/react/components/sdd/css/exportAppD.css +31 -0
  189. package/react/components/sdd/css/horizontalScroll.css +9 -0
  190. package/react/components/sdd/css/project-header.css +2 -1
  191. package/react/components/sdd/css/views.css +3 -0
  192. package/react/components/sdd/smartDesktopClient.d.ts +627 -0
  193. package/react/components/sdd/smartDesktopClient.d.ts.map +1 -0
  194. package/react/components/sdd/smartDesktopClient.js +1222 -0
  195. package/react/components/sdd/smartDesktopClient.js.map +1 -0
  196. package/react/components/sdd/types.d.ts +9 -0
  197. package/react/components/sdd/types.d.ts.map +1 -0
  198. package/react/components/sdd/types.js +2 -0
  199. package/react/components/sdd/types.js.map +1 -0
  200. package/react/components/toolbar/DownloadButton.d.ts +1 -1
  201. package/react/components/toolbar/DownloadButton.d.ts.map +1 -1
  202. package/react/components/toolbar/DownloadButton.js +3 -6
  203. package/react/components/toolbar/DownloadButton.js.map +1 -1
  204. package/react/components/toolbar/ToolbarIcon.d.ts.map +1 -1
  205. package/react/components/toolbar/ToolbarIcon.js +10 -1
  206. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  207. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
  208. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +3 -0
  209. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  210. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts.map +1 -1
  211. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +1 -1
  212. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  213. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts.map +1 -1
  214. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +1 -1
  215. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  216. package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -1
  217. package/react/components/windowTitleBar/TabRegion.js +4 -0
  218. package/react/components/windowTitleBar/TabRegion.js.map +1 -1
  219. package/react/components/windowTitleBar/TabTitle.js +1 -1
  220. package/react/components/windowTitleBar/TabTitle.js.map +1 -1
  221. package/react/reducers/rootReducer.d.ts +12 -0
  222. package/react/reducers/rootReducer.d.ts.map +1 -1
  223. package/react/reducers/smartDesktopDesignerReducer.d.ts.map +1 -1
  224. package/react/reducers/smartDesktopDesignerReducer.js +12 -0
  225. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  226. package/react/store.d.ts +24 -0
  227. package/react/store.d.ts.map +1 -1
  228. package/react/types/smartDesktopDesignerTypes.d.ts +42 -1
  229. package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
  230. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
@@ -0,0 +1,43 @@
1
+ import React, { useState } from "react";
2
+ import { useSelector } from "../../store";
3
+ import { Button } from "../common/Button";
4
+ import { FinsembleLink } from "../common/FinsembleLink";
5
+ import { faCheck } from "@fortawesome/free-solid-svg-icons";
6
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
+ export const ExportZip = (props) => {
8
+ const projectSettings = useSelector((store) => store.smartDesktopDesigner.projectInfo);
9
+ const projectErrors = useSelector((store) => store.smartDesktopDesigner.errors);
10
+ const [isCopying, setIsCopying] = useState(false);
11
+ const [exportComplete, setExportComplete] = useState(false);
12
+ const [lastExportTime, setLastExportTime] = useState(null);
13
+ const [lastExportError, setLastExportError] = useState(null);
14
+ return (React.createElement("div", { className: "export-method" },
15
+ React.createElement("div", null,
16
+ React.createElement("h2", null, "Create deployment zip"),
17
+ React.createElement("p", null, "You can host your smart desktop in your own infrastructure. A zip file will be generated which can be provided to your IT department. It will contain a README.md file that contains deployment instructions."),
18
+ React.createElement("p", null,
19
+ "For advanced deployment topics such as CI, automation, sharing, and source control, see",
20
+ React.createElement(FinsembleLink, { url: "https://documentation.finsemble.com/docs/smart-desktop-designer/SDD-10-Finish", text: "documentation" }),
21
+ ".")),
22
+ React.createElement("div", { className: "export-method-actions" },
23
+ !isCopying ? (React.createElement(Button, { className: "export-method-button", disabled: projectErrors.length > 0 || !props.valid, fashion: "secondary", text: "Create zip", buttonAttributes: { "data-target-upload-path": "" }, onClick: (e) => {
24
+ setIsCopying(true);
25
+ setLastExportError(null);
26
+ props
27
+ .copyProjectFiles(projectSettings.name, e.currentTarget.dataset.targetUploadPath)
28
+ .then(() => {
29
+ setLastExportTime(new Date().toLocaleTimeString());
30
+ setExportComplete(true);
31
+ setIsCopying(false);
32
+ })
33
+ .catch((error) => {
34
+ setLastExportError(error);
35
+ });
36
+ } })) : (React.createElement("div", null, "Exporting project...")),
37
+ lastExportTime !== null && exportComplete && (React.createElement("span", { className: "last-export-time" },
38
+ React.createElement(FontAwesomeIcon, { icon: faCheck }),
39
+ "Exporting complete at ",
40
+ lastExportTime)),
41
+ lastExportError !== null && React.createElement("span", { className: "last-export-error" }, lastExportError))));
42
+ };
43
+ //# sourceMappingURL=ExportZip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportZip.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ExportZip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBA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AAE,CAAC,kBAAkB,EAAE,CAAC,CAAC;wBAEnD,iBAAiB,CAAC,IAAI,CAAC,CAAC;wBACxB,YAAY,CAAC,KAAK,CAAC,CAAC;oBACrB,CAAC,CAAC;yBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;wBAChB,kBAAkB,CAAC,KAAK,CAAC,CAAC;oBAC3B,CAAC,CAAC,CAAC;gBACL,CAAC,GACA,CACF,CAAC,CAAC,CAAC,CACH,wDAA+B,CAC/B;YACA,cAAc,KAAK,IAAI,IAAI,cAAc,IAAI,CAC7C,8BAAM,SAAS,EAAC,kBAAkB;gBACjC,oBAAC,eAAe,IAAC,IAAI,EAAE,OAAO,GAAI;;gBACX,cAAc,CAC/B,CACP;YACA,eAAe,KAAK,IAAI,IAAI,8BAAM,SAAS,EAAC,mBAAmB,IAAE,eAAe,CAAQ,CAEpF,CACD,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ /// <reference types="react" />
6
+ import { ProjectError } from "../../types/smartDesktopDesignerTypes";
7
+ import "./css/project-errors.css";
8
+ export declare type ProjectErrorsProps = {
9
+ errors: ProjectError[];
10
+ };
11
+ export declare const ProjectErrors: (props: ProjectErrorsProps) => JSX.Element;
12
+ //# sourceMappingURL=ProjectErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectErrors.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ProjectErrors.tsx"],"names":[],"mappings":"AAAA;;;GAGG;;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAIrE,OAAO,0BAA0B,CAAC;AAElC,oBAAY,kBAAkB,GAAG;IAChC,MAAM,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBA4BtD,CAAC"}
@@ -0,0 +1,26 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React, { useEffect } from "react";
6
+ import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
7
+ import { useDispatch, useSelector } from "../../store";
8
+ import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons";
9
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
10
+ import "./css/project-errors.css";
11
+ export const ProjectErrors = (props) => {
12
+ const dispatch = useDispatch();
13
+ const { errors } = props;
14
+ const isReviewingErrors = useSelector((state) => state.smartDesktopDesigner.isReviewingErrors);
15
+ useEffect(() => {
16
+ if (!isReviewingErrors) {
17
+ dispatch(SmartDesktopDesignerActions.set_reviewing_project_errors(true));
18
+ }
19
+ }, []);
20
+ return (React.createElement("div", { className: "project-errors-container" }, errors.map((error, index) => (React.createElement("div", { key: index, className: "project-error", onClick: () => {
21
+ dispatch(SmartDesktopDesignerActions.change_view(error.viewId));
22
+ } },
23
+ React.createElement(FontAwesomeIcon, { icon: faExclamationCircle }),
24
+ error.message)))));
25
+ };
26
+ //# sourceMappingURL=ProjectErrors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectErrors.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ProjectErrors.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,0BAA0B,CAAC;AAMlC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IAC1D,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEzB,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAE1G,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,iBAAiB,EAAE;YACvB,QAAQ,CAAC,2BAA2B,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;SACzE;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,6BAAK,SAAS,EAAC,0BAA0B,IACvC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7B,6BACC,GAAG,EAAE,KAAK,EACV,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,GAAG,EAAE;YACb,QAAQ,CAAC,2BAA2B,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACjE,CAAC;QAED,oBAAC,eAAe,IAAC,IAAI,EAAE,mBAAmB,GAAI;QAC7C,KAAK,CAAC,OAAO,CACT,CACN,CAAC,CACG,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./Dashboard.css";
3
+ import type { SmartDesktopClient } from "./smartDesktopClient";
4
+ export interface ProjectMasonryProps {
5
+ projects: string[];
6
+ activeProject: string;
7
+ addNewProjectFn: () => void;
8
+ drillInProjectFn: (projectName: string) => void;
9
+ deleteProject: typeof SmartDesktopClient.deleteProject;
10
+ outdatedProjects?: string[];
11
+ }
12
+ export declare const ProjectMasonry: React.FunctionComponent<ProjectMasonryProps>;
13
+ //# sourceMappingURL=ProjectMasonry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectMasonry.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ProjectMasonry.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAqD/D,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,OAAO,kBAAkB,CAAC,aAAa,CAAC;IACvD,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CA0BvE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons";
2
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
3
+ import React from "react";
4
+ import { ButtonIcon } from "../common/ButtonIcon";
5
+ import "./Dashboard.css";
6
+ const TileCenter = ({ text = " " }) => (React.createElement("span", { className: "project-tile-letter" }, text.substring(0, 1).toUpperCase()));
7
+ const ProjectTile = ({ title, icon, clickEvent, active = false, deleteProject, outdated = false, }) => (React.createElement("div", { className: `project-tile ${active ? "active-tile" : "inactive-tile"} ${icon ? "has-icon" : ""}` },
8
+ React.createElement("button", { "aria-label": title, className: "project-tile-tile", onClick: () => {
9
+ clickEvent(title);
10
+ } },
11
+ React.createElement(TileCenter, { text: icon ? "+" : title }),
12
+ outdated && (React.createElement("div", { className: "tileBadge", title: "Out of date" },
13
+ React.createElement(FontAwesomeIcon, { icon: faExclamationCircle })))),
14
+ React.createElement("div", { className: "project-tile-name" }, title),
15
+ deleteProject && (React.createElement("div", { className: "buttonRaft" },
16
+ React.createElement(ButtonIcon, { icon: "trash", text: `Delete ${title}`, onClick: () => {
17
+ deleteProject(title);
18
+ } })))));
19
+ export const ProjectMasonry = ({ projects, activeProject, addNewProjectFn, drillInProjectFn, deleteProject, outdatedProjects, }) => (React.createElement("div", { className: "project-tile-masonry" },
20
+ React.createElement(ProjectTile, { active: false, title: "Create new project", icon: React.createElement("span", { className: "icon-plus-circle" }), clickEvent: addNewProjectFn }),
21
+ projects.map((projectName, index) => (React.createElement(ProjectTile, Object.assign({ key: `project-tile-${index}`, active: activeProject === projectName, title: projectName, clickEvent: drillInProjectFn, outdated: outdatedProjects === null || outdatedProjects === void 0 ? void 0 : outdatedProjects.includes(projectName) }, (projectName === activeProject ? {} : { deleteProject })))))));
22
+ //# sourceMappingURL=ProjectMasonry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectMasonry.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ProjectMasonry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,iBAAiB,CAAC;AAYzB,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CACtC,8BAAM,SAAS,EAAC,qBAAqB,IAAE,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAQ,CACjF,CAAC;AAEF,MAAM,WAAW,GAA8C,CAAC,EAC/D,KAAK,EACL,IAAI,EACJ,UAAU,EACV,MAAM,GAAG,KAAK,EACd,aAAa,EACb,QAAQ,GAAG,KAAK,GAChB,EAAE,EAAE,CAAC,CACL,6BAAK,SAAS,EAAE,gBAAgB,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CA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gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,QAAQ,CAAC,WAAW,CAAC,IAC7C,CAAC,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAC3D,CACF,CAAC,CACG,CACN,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ /// <reference types="react" />
6
+ import { ExportProps } from "./Export";
7
+ export declare type PublishProps = ExportProps;
8
+ export declare const Publish: (props: PublishProps) => JSX.Element;
9
+ //# sourceMappingURL=Publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Publish.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Publish.tsx"],"names":[],"mappings":"AAAA;;;GAGG;;AAUH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC,oBAAY,YAAY,GAAG,WAAW,CAAC;AAEvC,eAAO,MAAM,OAAO,UAAW,YAAY,gBAiK1C,CAAC"}
@@ -0,0 +1,113 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React, { useState, useEffect } from "react";
6
+ import { PublishProgress } from "./PublishProgress";
7
+ import { ExportDeployInfo } from "./ExportDeployInfo";
8
+ import { Button } from "../common/Button";
9
+ import { useDispatch, useSelector } from "../../store";
10
+ import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
11
+ import { ProgressState } from "../../types/smartDesktopDesignerTypes";
12
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
13
+ import { faCheck, faXmark } from "@fortawesome/free-solid-svg-icons";
14
+ export const Publish = (props) => {
15
+ const dispatch = useDispatch();
16
+ const [currentStep, setCurrentStep] = useState("");
17
+ const [stepProgress, setStepProgress] = useState([]);
18
+ const exportContext = useSelector((state) => state.smartDesktopDesigner.export);
19
+ const { deployInfo, publishError } = exportContext;
20
+ const tryAgain = () => {
21
+ setCurrentStep("");
22
+ setStepProgress([]);
23
+ dispatch(SmartDesktopDesignerActions.set_deploy_info(null));
24
+ dispatch(SmartDesktopDesignerActions.set_publish_error(null));
25
+ props
26
+ .publishToCosaicCloud()
27
+ .then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))
28
+ .catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));
29
+ };
30
+ const reset = () => {
31
+ dispatch(SmartDesktopDesignerActions.set_is_publishing(false));
32
+ dispatch(SmartDesktopDesignerActions.set_publish_error(null));
33
+ };
34
+ const hasError = stepProgress.some((step) => step.state === ProgressState.Error);
35
+ const didFinish = (stepProgress.length > 0 &&
36
+ stepProgress.every((step) => {
37
+ if (step.state === ProgressState.Error) {
38
+ dispatch(SmartDesktopDesignerActions.set_publish_error(step.error));
39
+ }
40
+ return step.state === ProgressState.Finished;
41
+ })) ||
42
+ hasError;
43
+ useEffect(() => {
44
+ let debounceTimeout = null;
45
+ if (!didFinish) {
46
+ debounceTimeout = setInterval(() => {
47
+ props.getPublishProgress().then((data) => {
48
+ setCurrentStep(data.currentStep);
49
+ setStepProgress(Object.values(data.steps));
50
+ // Finished! When the installer step reaches state "Finished"
51
+ if (data.steps["cloud"].state === ProgressState.Finished) {
52
+ // dispatch(SmartDesktopDesignerActions.SET_IS_PUBLISHING(false));
53
+ clearInterval(debounceTimeout);
54
+ reset();
55
+ }
56
+ });
57
+ }, props.progressCheckInterval);
58
+ }
59
+ return () => {
60
+ if (debounceTimeout) {
61
+ clearInterval(debounceTimeout);
62
+ }
63
+ };
64
+ }, []);
65
+ return (React.createElement("div", { className: "export-publish-container" }, publishError ? (React.createElement("div", { className: "export-publish-error" },
66
+ React.createElement("h3", null, "Your project was not published"),
67
+ React.createElement("p", null, "An error occurred while trying to publish."),
68
+ React.createElement("p", { className: "export-publish-error-message" },
69
+ "\"",
70
+ publishError,
71
+ "\""),
72
+ React.createElement("div", { className: "export-error-actions" },
73
+ React.createElement(Button, { fashion: "ghost", text: "Cancel", onClick: reset }),
74
+ React.createElement(Button, { className: "export-error-btn", fashion: "secondary", text: "Try again", onClick: tryAgain })))) : (React.createElement(React.Fragment, null,
75
+ React.createElement("h2", null, "Publishing..."),
76
+ React.createElement("div", { className: ["export-publish-progress", hasError ? "export-publish-has-error" : ""].join(" ") }, [
77
+ {
78
+ name: "initialize",
79
+ description: "Creating a location for the project",
80
+ error: "Failed to create a location for the project",
81
+ },
82
+ {
83
+ name: "zip",
84
+ description: "Zipping project",
85
+ error: "Failed to zip the project",
86
+ },
87
+ {
88
+ name: "upload",
89
+ description: "Uploading project",
90
+ error: "Failed to upload the project",
91
+ },
92
+ {
93
+ name: "cloud",
94
+ description: "Creating installer and site",
95
+ error: "Failed to publish",
96
+ },
97
+ ].map((step) => {
98
+ let data = stepProgress.find((item) => item.step === step.name);
99
+ return (data && (React.createElement("div", { key: step.name, className: [
100
+ "publish-progress-container",
101
+ currentStep === step.name ? "publish-current-step" : "",
102
+ ].join(" ") },
103
+ React.createElement("div", { className: "publish-progress-icon" }, data.state === ProgressState.Started ? (React.createElement(PublishProgress, Object.assign({}, data))) : data.state === ProgressState.NotStarted ? (React.createElement("div", { className: "publish-progress-pending" })) : data.state === ProgressState.Error ? (React.createElement("div", { className: "publish-progress-error" },
104
+ React.createElement(FontAwesomeIcon, { icon: faXmark, className: "publish-progress-error-icon", "aria-aria-label": "Error" }))) : (React.createElement("div", { className: "publish-progress-success" },
105
+ React.createElement(FontAwesomeIcon, { icon: faCheck, className: "publish-progress-success-icon", "aria-label": "Success" })))),
106
+ React.createElement("div", { className: "publish-progress-text" }, data.error ? step.error : step.description))));
107
+ })),
108
+ deployInfo && (React.createElement("div", { className: "export-publish-uploaded" },
109
+ React.createElement("h3", null, "Project uploaded"),
110
+ React.createElement("p", null, "Your project has been uploaded to the cloud. It will take several minutes to generate an installer. Share the installer link with your team. The desktop you've created will be available shortly by downloading and installing from the link."),
111
+ React.createElement(ExportDeployInfo, null)))))));
112
+ };
113
+ //# sourceMappingURL=Publish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Publish.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Publish.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGtE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAIrE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAyB,CAAC,CAAC;IAE5E,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAE3F,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;IAEnD,MAAM,QAAQ,GAAG,GAAG,EAAE;QACrB,cAAc,CAAC,EAAE,CAAC,CAAC;QACnB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CAAC,CACxC,6BAAK,SAAS,EAAC,wBAAwB;oBACtC,oBAAC,eAAe,IACf,IAAI,EAAE,OAAO,EACb,SAAS,EAAC,6BAA6B,qBACvB,OAAO,GACtB,CACG,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,0BAA0B;oBACxC,oBAAC,eAAe,IACf,IAAI,EAAE,OAAO,EACb,SAAS,EAAC,+BAA+B,gBAC9B,SAAS,GACnB,CACG,CACN,CACI;gBACN,6BAAK,SAAS,EAAC,uBAAuB,IAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAO,CACpF,CACN,CACD,CAAC;QACH,CAAC,CAAC,CACG;QACL,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,yBAAyB;YACvC,mDAAyB;YACzB,gRAII;YACJ,oBAAC,gBAAgB,OAAG,CACf,CACN,CACC,CACH,CACI,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React from "react";
6
+ export declare type PublishProgressProps = {
7
+ percentComplete: number;
8
+ };
9
+ export declare const PublishProgress: React.FunctionComponent<PublishProgressProps>;
10
+ //# sourceMappingURL=PublishProgress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishProgress.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/PublishProgress.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAiBzE,CAAC"}
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React from "react";
6
+ import { CircularProgressbar, buildStyles } from "react-circular-progressbar";
7
+ export const PublishProgress = ({ percentComplete }) => (React.createElement("div", { className: "publish-progress-indicator", style: { width: 24, height: 24 } },
8
+ React.createElement(CircularProgressbar
9
+ // strokeWidth={24}
10
+ // reduction={0}
11
+ // hideBall={true}
12
+ // progress={percentComplete}
13
+ , {
14
+ // strokeWidth={24}
15
+ // reduction={0}
16
+ // hideBall={true}
17
+ // progress={percentComplete}
18
+ value: percentComplete, strokeWidth: 15, styles: buildStyles({
19
+ pathTransitionDuration: 0.5,
20
+ pathColor: `#42a5ba`,
21
+ trailColor: "#373b43",
22
+ backgroundColor: "#3e98c7",
23
+ }) })));
24
+ //# sourceMappingURL=PublishProgress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublishProgress.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/PublishProgress.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9E,MAAM,CAAC,MAAM,eAAe,GAAkD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CACtG,6BAAK,SAAS,EAAC,4BAA4B,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3E,oBAAC,mBAAmB;IACnB,mBAAmB;IACnB,gBAAgB;IAChB,kBAAkB;IAClB,6BAA6B;;QAH7B,mBAAmB;QACnB,gBAAgB;QAChB,kBAAkB;QAClB,6BAA6B;QAC7B,KAAK,EAAE,eAAe,EACtB,WAAW,EAAE,EAAE,EACf,MAAM,EAAE,WAAW,CAAC;YACnB,sBAAsB,EAAE,GAAG;YAC3B,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,SAAS;YACrB,eAAe,EAAE,SAAS;SAC1B,CAAC,GACoB,CAClB,CACN,CAAC"}
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React from "react";
6
+ export declare const View: (props: {
7
+ children: React.ReactNode;
8
+ }) => JSX.Element;
9
+ //# sourceMappingURL=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/View.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,IAAI,UAAW;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE,gBAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * Copyright 2017 - 2020 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import React from "react";
6
+ export const View = (props) => React.createElement(React.Fragment, null, props.children);
7
+ //# sourceMappingURL=View.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/View.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,0CAAG,KAAK,CAAC,QAAQ,CAAI,CAAC"}
@@ -1,20 +1,22 @@
1
1
  .quick-add-app {
2
2
  position: relative;
3
+ overflow-x: hidden;
3
4
  }
4
5
 
5
6
  .quick-add-app .finsembleToggleButtonBar [role="radiogroup"] {
6
7
  width: fit-content;
7
- background-color: #22262f;
8
8
  text-align: center;
9
9
  border-radius: 5px;
10
- margin: 4px;
10
+ margin: 4px 0;
11
11
  position: relative;
12
- top: 6px;
13
- padding: 4px;
14
- margin-left: 0;
12
+ padding: 4px 0;
15
13
  height: auto;
16
14
  }
17
15
 
16
+ .quick-add-app .finsembleToggleButtonBar .toggle-text-label[aria-checked="true"] {
17
+ background-color: var(--accent-primary);
18
+ }
19
+
18
20
  .quick-add-app .finsembleToggleButtonBar {
19
21
  padding: 0;
20
22
  }
@@ -29,15 +31,22 @@
29
31
  }
30
32
 
31
33
  .quick-add-app td:first-child {
32
- width: 88px;
34
+ width: 95px;
35
+ }
36
+
37
+ .quick-add-app .quick-add-app td:first-child {
38
+ width: 110px;
33
39
  }
34
40
 
35
41
  .quick-add-app .toggle-text-label {
36
42
  height: 20px;
37
- width: 80px;
38
43
  border-radius: 5px;
39
44
  justify-self: center;
40
- padding-top: 3px;
45
+ padding-top: 5px;
46
+ justify-content: center;
47
+ background-color: #5b606f;
48
+ color: var(--core-primary);
49
+ flex: 1 1 100%;
41
50
  }
42
51
 
43
52
  .quick-add-app .toggle-text-label[aria-selected="true"] {
@@ -67,6 +76,15 @@
67
76
  border-radius: 5px;
68
77
  }
69
78
 
79
+ .quick-add-app .save-button-container div:not(:last-child),
80
+ .quick-add-app .save-button-container div:not(:last-child) button {
81
+ margin-right: 0;
82
+ }
83
+
84
+ .quick-add-app .save-button-container div + div {
85
+ margin-left: 8px;
86
+ }
87
+
70
88
  .file-input-field {
71
89
  flex-grow: 1;
72
90
  }
@@ -132,3 +150,39 @@
132
150
  padding-left: 0;
133
151
  margin-left: 0;
134
152
  }
153
+
154
+ .quick-add-app .finsembleToggleButtonBar .toggle-text-label-wrapper {
155
+ max-width: none;
156
+ top: 0;
157
+ width: 97%;
158
+ border: none;
159
+ gap: 10px;
160
+ background-color: transparent;
161
+ }
162
+
163
+ .appd-folder {
164
+ position: relative;
165
+ }
166
+
167
+ .appd-folder .finsemble-icon__btn {
168
+ position: absolute;
169
+ top: 35%;
170
+ left: 50%;
171
+ }
172
+
173
+ .appd-folder .finsemble-icon__btn:hover:not(.no-hover) {
174
+ background-color: var(--accent-primary);
175
+ }
176
+
177
+ .extra-options div {
178
+ display: flex;
179
+ }
180
+
181
+ .extra-options .checkbox-wrapper,
182
+ .apiAccessRow .checkbox-wrapper {
183
+ margin-top: 4px;
184
+ }
185
+
186
+ .quick-add-app .tooltip {
187
+ margin-left: 8px;
188
+ }
@@ -0,0 +1,81 @@
1
+ .appd-list {
2
+ padding-bottom: 10px;
3
+ }
4
+
5
+ .appdOption {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+
10
+ .appdOption > span.finsembleToggle {
11
+ padding-right: 5px;
12
+ }
13
+
14
+ .appdOption .finsembleToggle label {
15
+ top: -9px;
16
+ }
17
+
18
+ .hide-app-button button {
19
+ margin-top: 20px;
20
+ border-radius: 5px;
21
+ border: solid 1px var(--accent-negative);
22
+ }
23
+
24
+ .auto-update-tooltip {
25
+ padding-left: 100px;
26
+ }
27
+
28
+ .appd-list button {
29
+ cursor: pointer;
30
+ }
31
+
32
+ .appd-list button * {
33
+ cursor: inherit;
34
+ }
35
+
36
+ .appd-list button svg[data-icon^="folder"] {
37
+ width: 50px;
38
+ height: 50px;
39
+ }
40
+
41
+ .appd-list .project-tile {
42
+ display: flex;
43
+ min-width: 100px;
44
+ width: 100px;
45
+ }
46
+
47
+ .add-all {
48
+ text-align: right;
49
+ margin-right: 11px;
50
+ }
51
+
52
+ .add-all[aria-disabled="false"],
53
+ .add-all[aria-disabled="false"] * {
54
+ cursor: pointer;
55
+ }
56
+
57
+ .add-all span {
58
+ margin-right: 4px;
59
+ }
60
+
61
+ .appd-list button[aria-label="Remove"] {
62
+ margin-right: 2.5px;
63
+ }
64
+
65
+ .add-all[aria-disabled="true"] {
66
+ opacity: 0.5;
67
+ }
68
+
69
+ .project-tile .appd-folder + div {
70
+ max-height: 30px;
71
+ max-width: 75px;
72
+ overflow: hidden;
73
+ }
74
+
75
+ .quick-add-app .app-list-row span.item-list-inner-column {
76
+ white-space: nowrap;
77
+ }
78
+
79
+ .finsembleToggleButtonBar + .frontmatter {
80
+ margin-bottom: 0;
81
+ }
@@ -0,0 +1,93 @@
1
+ .appd-table {
2
+ display: grid;
3
+ align-items: start;
4
+ grid-template-columns: repeat(auto-fill, 250px);
5
+ grid-auto-rows: 170px;
6
+ row-gap: 10px;
7
+ justify-content: space-around;
8
+ column-gap: 20px;
9
+ padding: 10px;
10
+ }
11
+
12
+ .app-table {
13
+ display: grid;
14
+ align-items: start;
15
+ grid-template-columns: [first] 40% [line2] 60%;
16
+ }
17
+
18
+ .app-tile-image {
19
+ width: 75%;
20
+ grid-column: 1;
21
+ height: 80%;
22
+ }
23
+
24
+ .icon-avatar[data-category="Application"] {
25
+ border-radius: 0%;
26
+ width: 100%;
27
+ height: 100%;
28
+ background-color: white;
29
+ font-size: 50px;
30
+ }
31
+
32
+ img {
33
+ width: 100%;
34
+ }
35
+
36
+ .app-tile-info {
37
+ grid-column: 2;
38
+ }
39
+
40
+ .app-tile-description {
41
+ grid-column: 1 / span 2;
42
+ }
43
+
44
+ .app-tile-publisher {
45
+ margin: 5px 0 10px;
46
+ font-size: 12px;
47
+ font-weight: lighter;
48
+ }
49
+
50
+ .app-tile {
51
+ vertical-align: middle;
52
+ position: relative;
53
+ }
54
+
55
+ .finsemble-dropdown-action__btn {
56
+ width: 100%;
57
+ background-color: transparent;
58
+ outline: 2px solid;
59
+ }
60
+
61
+ .finsemble-dropdown-action__btn span.btn-label:hover {
62
+ background-color: white;
63
+ color: #22262f;
64
+ }
65
+
66
+ .finsemble-dropdown-action__btn .expand-options:hover {
67
+ background-color: white;
68
+ }
69
+
70
+ .finsemble-dropdown-action__btn .expand-options:hover .caret {
71
+ border-top: 5px solid #22262f;
72
+ }
73
+
74
+ .finsemble-dropdown-action__btn span.btn-label:focus {
75
+ background-color: white;
76
+ color: #22262f;
77
+ }
78
+
79
+ .finsemble-dropdown-action__btn .expand-options:focus {
80
+ background-color: white;
81
+ }
82
+
83
+ .finsemble-dropdown-action__btn .expand-options:focus .caret {
84
+ border-top: 5px solid #22262f;
85
+ }
86
+
87
+ .finsemble-dropdown-action__btn-options {
88
+ background-color: black;
89
+ color: white;
90
+ outline: 2px solid;
91
+ width: 100%;
92
+ align-items: start;
93
+ }