@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.
- package/FEA.d.ts +48 -4
- package/FEA.d.ts.map +1 -1
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.d.ts +1 -0
- package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +7 -6
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/Interop/types.d.ts +1 -0
- package/clients/Interop/types.d.ts.map +1 -1
- package/clients/StoreModel.js +1 -1
- package/clients/StoreModel.js.map +1 -1
- package/clients/appsClient.d.ts +34 -0
- package/clients/appsClient.d.ts.map +1 -1
- package/clients/appsClient.js +56 -9
- package/clients/appsClient.js.map +1 -1
- package/clients/authenticationClient.d.ts +7 -0
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +7 -0
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +42 -1
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +42 -1
- package/clients/configClient.js.map +1 -1
- package/clients/dialogManagerClient.d.ts +10 -0
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +10 -0
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +3 -0
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +3 -0
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +5 -0
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +5 -0
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/launcherClient.d.ts +6 -1
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +3 -1
- package/clients/launcherClient.js.map +1 -1
- package/clients/logger.d.ts +6 -0
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +6 -0
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +17 -0
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +17 -0
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +14 -0
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +14 -0
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +5 -0
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +5 -0
- package/clients/searchClient.js.map +1 -1
- package/clients/storageClient.d.ts +11 -1
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +11 -1
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +47 -1
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +47 -1
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +26 -4
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +26 -4
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +4 -1
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +4 -1
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +1 -1
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +7 -7
- package/common/FinsembleWindow.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +1 -0
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- package/deprecated/dragAndDropClient.js +1 -0
- package/deprecated/dragAndDropClient.js.map +1 -1
- package/main.d.ts +13 -1
- package/main.d.ts.map +1 -1
- package/package.json +3 -3
- package/platform/services/Interop/modules/types.d.ts +2 -0
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/Interop/types.d.ts +16 -1
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/Interop/types.js.map +1 -1
- package/platform/services/window/modules/actions.d.ts +5 -0
- package/platform/services/window/modules/actions.d.ts.map +1 -1
- package/platform/services/window/modules/actions.js +2 -0
- package/platform/services/window/modules/actions.js.map +1 -1
- package/platform/services/window/types.d.ts +11 -1
- package/platform/services/window/types.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.d.ts +7 -1
- package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js +3 -0
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/assets/css/dialogs.css +2 -1
- package/react/assets/css/userPreferences.css +1 -1
- package/react/components/appCatalog/AppCatalog.d.ts +3 -0
- package/react/components/appCatalog/AppCatalog.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalog.js +3 -0
- package/react/components/appCatalog/AppCatalog.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.d.ts +4 -0
- package/react/components/appCatalog/AppCatalogComponent.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js +4 -0
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +1 -0
- package/react/components/common/Checkbox.d.ts.map +1 -1
- package/react/components/common/Checkbox.js +14 -2
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +3 -1
- package/react/components/common/ContextMenu.js.map +1 -1
- package/react/components/common/FinsembleLink.d.ts +7 -0
- package/react/components/common/FinsembleLink.d.ts.map +1 -0
- package/react/components/common/FinsembleLink.js +13 -0
- package/react/components/common/FinsembleLink.js.map +1 -0
- package/react/components/common/Header.d.ts +1 -0
- package/react/components/common/Header.d.ts.map +1 -1
- package/react/components/common/Header.js +4 -2
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/css/application-edit-page.css +0 -11
- package/react/components/common/css/application-list.css +54 -23
- package/react/components/common/css/button.css +20 -0
- package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/icon/Icon.js +1 -1
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +2 -2
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts.map +1 -1
- package/react/components/sdd/Content.d.ts +9 -0
- package/react/components/sdd/Content.d.ts.map +1 -0
- package/react/components/sdd/Content.js +7 -0
- package/react/components/sdd/Content.js.map +1 -0
- package/react/components/sdd/Dashboard.d.ts +20 -0
- package/react/components/sdd/Dashboard.d.ts.map +1 -0
- package/react/components/sdd/Dashboard.js +103 -0
- package/react/components/sdd/Dashboard.js.map +1 -0
- package/react/components/sdd/Export.d.ts +24 -0
- package/react/components/sdd/Export.d.ts.map +1 -0
- package/react/components/sdd/Export.js +133 -0
- package/react/components/sdd/Export.js.map +1 -0
- package/react/components/sdd/ExportCloud.d.ts +7 -0
- package/react/components/sdd/ExportCloud.d.ts.map +1 -0
- package/react/components/sdd/ExportCloud.js +38 -0
- package/react/components/sdd/ExportCloud.js.map +1 -0
- package/react/components/sdd/ExportDeployInfo.d.ts +3 -0
- package/react/components/sdd/ExportDeployInfo.d.ts.map +1 -0
- package/react/components/sdd/ExportDeployInfo.js +18 -0
- package/react/components/sdd/ExportDeployInfo.js.map +1 -0
- package/react/components/sdd/ExportZip.d.ts +7 -0
- package/react/components/sdd/ExportZip.d.ts.map +1 -0
- package/react/components/sdd/ExportZip.js +43 -0
- package/react/components/sdd/ExportZip.js.map +1 -0
- package/react/components/sdd/ProjectErrors.d.ts +12 -0
- package/react/components/sdd/ProjectErrors.d.ts.map +1 -0
- package/react/components/sdd/ProjectErrors.js +26 -0
- package/react/components/sdd/ProjectErrors.js.map +1 -0
- package/react/components/sdd/ProjectMasonry.d.ts +13 -0
- package/react/components/sdd/ProjectMasonry.d.ts.map +1 -0
- package/react/components/sdd/ProjectMasonry.js +22 -0
- package/react/components/sdd/ProjectMasonry.js.map +1 -0
- package/react/components/sdd/Publish.d.ts +9 -0
- package/react/components/sdd/Publish.d.ts.map +1 -0
- package/react/components/sdd/Publish.js +113 -0
- package/react/components/sdd/Publish.js.map +1 -0
- package/react/components/sdd/PublishProgress.d.ts +10 -0
- package/react/components/sdd/PublishProgress.d.ts.map +1 -0
- package/react/components/sdd/PublishProgress.js +24 -0
- package/react/components/sdd/PublishProgress.js.map +1 -0
- package/react/components/sdd/View.d.ts +9 -0
- package/react/components/sdd/View.d.ts.map +1 -0
- package/react/components/sdd/View.js +7 -0
- package/react/components/sdd/View.js.map +1 -0
- package/react/components/sdd/css/addApp.css +62 -8
- package/react/components/sdd/css/appD.css +81 -0
- package/react/components/sdd/css/appDViewer.css +93 -0
- package/react/components/sdd/css/applications.css +53 -15
- package/react/components/sdd/css/exportAppD.css +31 -0
- package/react/components/sdd/css/horizontalScroll.css +9 -0
- package/react/components/sdd/css/project-header.css +2 -1
- package/react/components/sdd/css/views.css +3 -0
- package/react/components/sdd/smartDesktopClient.d.ts +627 -0
- package/react/components/sdd/smartDesktopClient.d.ts.map +1 -0
- package/react/components/sdd/smartDesktopClient.js +1222 -0
- package/react/components/sdd/smartDesktopClient.js.map +1 -0
- package/react/components/sdd/types.d.ts +9 -0
- package/react/components/sdd/types.d.ts.map +1 -0
- package/react/components/sdd/types.js +2 -0
- package/react/components/sdd/types.js.map +1 -0
- package/react/components/toolbar/DownloadButton.d.ts +1 -1
- package/react/components/toolbar/DownloadButton.d.ts.map +1 -1
- package/react/components/toolbar/DownloadButton.js +3 -6
- package/react/components/toolbar/DownloadButton.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +10 -1
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +3 -0
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -1
- package/react/components/windowTitleBar/TabRegion.js +4 -0
- package/react/components/windowTitleBar/TabRegion.js.map +1 -1
- package/react/components/windowTitleBar/TabTitle.js +1 -1
- package/react/components/windowTitleBar/TabTitle.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +12 -0
- package/react/reducers/rootReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.js +12 -0
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/store.d.ts +24 -0
- package/react/store.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +42 -1
- package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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EAAE;wBACtB,UAAU,CAAC,IAAI,CAAC,CAAC;qBACjB;gBACF,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;oBACb,UAAU,CAAC,IAAI,CAAC,CAAC;gBAClB,CAAC,IAEA,WAAW,CAAC,IAAI,CAAC,CACd,CACL,CAAC,CACE,CACA,CACN;QAED,6BAAK,SAAS,EAAC,YAAY;YAC1B,oBAAC,MAAM,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,GAAI,CAC/E,CACD,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -80,7 +80,7 @@ export const Icon = (props) => {
|
|
|
80
80
|
avatar = React.createElement("i", { className: props.path });
|
|
81
81
|
}
|
|
82
82
|
if (props.imageType === "url") {
|
|
83
|
-
avatar = React.createElement("img", { src: props.path });
|
|
83
|
+
avatar = React.createElement("img", { src: props.path, alt: "" });
|
|
84
84
|
}
|
|
85
85
|
const imageType = (_b = props.imageType) !== null && _b !== void 0 ? _b : "initials";
|
|
86
86
|
const classes = deriveClasses(imageType, props.className);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAW,EAAE,KAAa,EAAE,IAAS,EAAkB,EAAE;;IACvF,IAAI,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,0CAAE,MAAM,IAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE;QACjD,OAAO;YACN,SAAS,EAAE,KAAK;YAChB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG;SACvB,CAAC;KACF;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OAAO,mBAAiB,KAAK,CAAC,QAAQ,IACpD,MAAM,CACF,CACN,CAAC;AACH,CAAC,CAAC;AAEF;;;;;;;;;;;EAWE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export interface IFinsembleIconButtonProps {
|
|
3
3
|
tooltip?: string;
|
|
4
|
-
clickHandler?:
|
|
4
|
+
clickHandler?: (e?: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
5
5
|
iconName?: string;
|
|
6
6
|
classNames?: string;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,yBAAyB;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,yBAAyB;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACpG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,yBAAyB,CAsBlE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
const IconButton = ({ clickHandler = () => { }, tooltip, iconName = "ff-finsemble", classNames, children, }) => (React.createElement("div", { className: `finsemble-icon__btn ${classNames ? classNames : ""}`, title: tooltip ? tooltip : "", onClick: () => clickHandler(), tabIndex: 0, onKeyDown: (e) => {
|
|
2
|
+
const IconButton = ({ clickHandler = () => { }, tooltip, iconName = "ff-finsemble", classNames, children, }) => (React.createElement("div", { className: `finsemble-icon__btn ${classNames ? classNames : ""}`, title: tooltip ? tooltip : "", onClick: (e) => clickHandler(e), tabIndex: 0, onKeyDown: (e) => {
|
|
3
3
|
if (e.code === "Space" || e.code === "Enter") {
|
|
4
4
|
e.stopPropagation();
|
|
5
|
-
clickHandler();
|
|
5
|
+
clickHandler(e);
|
|
6
6
|
}
|
|
7
7
|
} },
|
|
8
8
|
React.createElement("i", { className: iconName }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,UAAU,GAAuD,CAAC,EACvE,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,EACvB,OAAO,EACP,QAAQ,GAAG,cAAc,EACzB,UAAU,EACV,QAAQ,GACmB,EAAE,EAAE,CAAC,CAChC,6BACC,SAAS,EAAE,uBAAuB,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,MAAM,UAAU,GAAuD,CAAC,EACvE,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,EACvB,OAAO,EACP,QAAQ,GAAG,cAAc,EACzB,UAAU,EACV,QAAQ,GACmB,EAAE,EAAE,CAAC,CAChC,6BACC,SAAS,EAAE,uBAAuB,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAC7B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,EAC/B,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;QAChB,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE;YAC7C,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,YAAY,CAAC,CAAC,CAAC,CAAC;SAChB;IACF,CAAC;IAED,2BAAG,SAAS,EAAE,QAAQ,GAAI;IACzB,QAAQ,CACJ,CACN,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare type NotificationCardPropType = {
|
|
|
13
13
|
/**
|
|
14
14
|
* The internal function that will be called on toasts when dismissed or marked as read
|
|
15
15
|
*/
|
|
16
|
-
removeNotification:
|
|
16
|
+
removeNotification: () => void;
|
|
17
17
|
preferences?: any;
|
|
18
18
|
};
|
|
19
19
|
export declare const NotificationCardShell: React.FunctionComponent<NotificationCardPropType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCardShell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/NotificationCardShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,EACN,aAAa,EAGb,MAAM,qDAAqD,CAAC;AAE7D,OAAO,iCAAiC,CAAC;AAEzC,oBAAY,wBAAwB,GAAG;IACtC;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAE/B;;OAEG;IACH,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"NotificationCardShell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/notifications/components/shared/NotificationCardShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,EACN,aAAa,EAGb,MAAM,qDAAqD,CAAC;AAE7D,OAAO,iCAAiC,CAAC;AAEzC,oBAAY,wBAAwB,GAAG;IACtC;;OAEG;IACH,YAAY,EAAE,aAAa,CAAC;IAE5B;;OAEG;IACH,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAE/B;;OAEG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAkHnF,CAAC"}
|
|
@@ -7,6 +7,6 @@ export declare const getDefaultContextMenuActions: () => {
|
|
|
7
7
|
export declare const NotificationCardHeaderControls: React.FunctionComponent<{
|
|
8
8
|
notification: INotification;
|
|
9
9
|
uiContext?: string;
|
|
10
|
-
removeNotification?:
|
|
10
|
+
removeNotification?: () => void;
|
|
11
11
|
}>;
|
|
12
12
|
//# sourceMappingURL=NotificationCardHeaderControls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCardHeaderControls.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wDAAwD,CAAC;AAevF,eAAO,MAAM,4BAA4B;;CAoFxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpE,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"NotificationCardHeaderControls.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wDAAwD,CAAC;AAevF,eAAO,MAAM,4BAA4B;;CAoFxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACpE,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC,CAmGA,CAAC"}
|
|
@@ -3,6 +3,6 @@ import { INotification } from "../../../../../../platform/services/notification/
|
|
|
3
3
|
export declare const NotificationCardHeaderShell: React.FunctionComponent<{
|
|
4
4
|
notification: INotification;
|
|
5
5
|
uiContext: string;
|
|
6
|
-
removeNotification:
|
|
6
|
+
removeNotification: () => void;
|
|
7
7
|
}>;
|
|
8
8
|
//# sourceMappingURL=NotificationCardHeaderShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCardHeaderShell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,aAAa,EAAE,MAAM,wDAAwD,CAAC;AAEvF,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjE,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"NotificationCardHeaderShell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,aAAa,EAAE,MAAM,wDAAwD,CAAC;AAEvF,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjE,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAC/B,CA4BA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Content.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,OAAO,UAAW;IAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;CAAE,gBAAyD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Content.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,cAAc,IAAE,KAAK,CAAC,QAAQ,CAAO,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ExportProps } from "./Export";
|
|
3
|
+
import { SmartDesktopClient } from "./smartDesktopClient";
|
|
4
|
+
import { ProjectsType } from "./types";
|
|
5
|
+
import "./Dashboard.css";
|
|
6
|
+
export interface DashboardProps {
|
|
7
|
+
getProjects: () => Promise<{
|
|
8
|
+
err: any;
|
|
9
|
+
details: ProjectsType;
|
|
10
|
+
}>;
|
|
11
|
+
updateProjectDetails: typeof SmartDesktopClient.updateProjectDetails;
|
|
12
|
+
setActiveProject: (projectName: string) => Promise<{
|
|
13
|
+
err: any;
|
|
14
|
+
}>;
|
|
15
|
+
deleteProject: typeof SmartDesktopClient.deleteProject;
|
|
16
|
+
importProjectFolder: typeof SmartDesktopClient.importProjectFolder;
|
|
17
|
+
export: ExportProps;
|
|
18
|
+
}
|
|
19
|
+
export declare const Dashboard: React.FunctionComponent<DashboardProps>;
|
|
20
|
+
//# sourceMappingURL=Dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO1D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,cAAc;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC,CAAC;IAChE,oBAAoB,EAAE,OAAO,kBAAkB,CAAC,oBAAoB,CAAC;IACrE,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,GAAG,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IACjE,aAAa,EAAE,OAAO,kBAAkB,CAAC,aAAa,CAAC;IACvD,mBAAmB,EAAE,OAAO,kBAAkB,CAAC,mBAAmB,CAAC;IACnE,MAAM,EAAE,WAAW,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CA6H7D,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Header } from "../common/Header";
|
|
3
|
+
import { Content } from "./Content";
|
|
4
|
+
import { Export } from "./Export";
|
|
5
|
+
import { ProjectMasonry } from "./ProjectMasonry";
|
|
6
|
+
import { View } from "./View";
|
|
7
|
+
import { useDispatch, useSelector } from "../../store";
|
|
8
|
+
import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
|
|
9
|
+
import { FEAGlobals } from "../../../common/Globals";
|
|
10
|
+
import "./Dashboard.css";
|
|
11
|
+
import { Button } from "../common/Button";
|
|
12
|
+
const isOutdated = (oldSemver, latestSemver) => {
|
|
13
|
+
const [oldMajor, oldMinor, oldPatch] = oldSemver.split(".");
|
|
14
|
+
const [latestMajor, latestMinor, latestPatch] = latestSemver.split(".");
|
|
15
|
+
if (+oldMajor < +latestMajor) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
if (+oldMinor < +latestMinor) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
return !!(+oldPatch < +latestPatch || oldPatch < latestPatch);
|
|
22
|
+
};
|
|
23
|
+
export const Dashboard = (props) => {
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const project = useSelector((state) => state.smartDesktopDesigner.projectInfo);
|
|
26
|
+
const version = useSelector((state) => state.smartDesktopDesigner.fsblVersion);
|
|
27
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
28
|
+
const [projectNames, setProjectNames] = useState([]);
|
|
29
|
+
const [outdatedProjects, setOutdatedProjects] = useState([]);
|
|
30
|
+
const refreshProjectList = async () => {
|
|
31
|
+
const { details } = await props.getProjects();
|
|
32
|
+
setProjectNames(details.projects.map((projectStatus) => projectStatus.name));
|
|
33
|
+
dispatch(SmartDesktopDesignerActions.set_project_info(Object.assign(Object.assign({}, project), { name: details.activeProject })));
|
|
34
|
+
const outdatedProjectList = details.projects.filter((projectInfo) => { var _a; return isOutdated((_a = projectInfo.finsembleCoreVersion) !== null && _a !== void 0 ? _a : "0.0.0", version); });
|
|
35
|
+
setOutdatedProjects(outdatedProjectList.map((projectInfo) => projectInfo.name));
|
|
36
|
+
};
|
|
37
|
+
const addNewProjectFn = (cloneCurrent = false, cb) => {
|
|
38
|
+
FEAGlobals.FSBL.Clients.DialogManager.open("singleInput", {
|
|
39
|
+
title: "New project",
|
|
40
|
+
inputLabel: "Enter a name for your new project.",
|
|
41
|
+
affirmativeResponseLabel: "Confirm",
|
|
42
|
+
showCancelButton: true,
|
|
43
|
+
showNegativeButton: false,
|
|
44
|
+
}, async (err, response) => {
|
|
45
|
+
if (err || response.choice !== "affirmative") {
|
|
46
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
await props.updateProjectDetails({
|
|
50
|
+
oldName: "",
|
|
51
|
+
newName: response.value,
|
|
52
|
+
cloneCurrent,
|
|
53
|
+
});
|
|
54
|
+
refreshProjectList();
|
|
55
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const drillInProjectFn = async (projectName) => {
|
|
59
|
+
if (projectName !== project.name) {
|
|
60
|
+
FEAGlobals.FSBL.Clients.DialogManager.open("yesNo", {
|
|
61
|
+
title: "Switch projects",
|
|
62
|
+
question: `Switching to project ${projectName} will require Finsemble to restart. Are you sure you want to proceed?`,
|
|
63
|
+
affirmativeResponseLabel: "Yes",
|
|
64
|
+
negativeResponseLabel: "No",
|
|
65
|
+
showCancelButton: false,
|
|
66
|
+
showNegativeButton: true,
|
|
67
|
+
}, async (err, response) => {
|
|
68
|
+
if (err || response.choice !== "affirmative") {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
props.setActiveProject(projectName);
|
|
72
|
+
});
|
|
73
|
+
refreshProjectList();
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
setIsEditing(true);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
refreshProjectList();
|
|
81
|
+
}, []);
|
|
82
|
+
return isEditing ? (React.createElement(View, null,
|
|
83
|
+
React.createElement(Header, null, "Manage project"),
|
|
84
|
+
React.createElement(Export, Object.assign({}, props.export, { cancelEditing: () => {
|
|
85
|
+
setIsEditing(false);
|
|
86
|
+
refreshProjectList();
|
|
87
|
+
}, addNewProjectFn: addNewProjectFn, isOutdated: outdatedProjects.includes(project.name) })))) : (React.createElement(View, null,
|
|
88
|
+
React.createElement(Header, null, "Projects"),
|
|
89
|
+
React.createElement(Content, null,
|
|
90
|
+
React.createElement(ProjectMasonry, { projects: projectNames, activeProject: project.name, outdatedProjects: outdatedProjects, addNewProjectFn: addNewProjectFn, drillInProjectFn: drillInProjectFn, deleteProject: async (projectName) => {
|
|
91
|
+
const { err } = await props.deleteProject(projectName);
|
|
92
|
+
if (!err) {
|
|
93
|
+
refreshProjectList();
|
|
94
|
+
}
|
|
95
|
+
return { err };
|
|
96
|
+
} }),
|
|
97
|
+
React.createElement("div", { className: "footer" },
|
|
98
|
+
React.createElement(Button, { fashion: "hollow", text: "Import existing project", onClick: async () => {
|
|
99
|
+
await props.importProjectFolder();
|
|
100
|
+
refreshProjectList();
|
|
101
|
+
} })))));
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=Dashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM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|
+
/// <reference types="react" />
|
|
6
|
+
import { SmartDesktopClient } from "./smartDesktopClient";
|
|
7
|
+
import "./css/export.css";
|
|
8
|
+
export declare type ExportProps = {
|
|
9
|
+
progressCheckInterval: number;
|
|
10
|
+
getProjectConfig: typeof SmartDesktopClient.projectConfig;
|
|
11
|
+
createProjectZip: typeof SmartDesktopClient.createProjectZip;
|
|
12
|
+
publishToCosaicCloud: typeof SmartDesktopClient.publishToCosaicCloud;
|
|
13
|
+
getPublishProgress: typeof SmartDesktopClient.getPublishProgress;
|
|
14
|
+
copyProjectFiles: typeof SmartDesktopClient.copyProjectFiles;
|
|
15
|
+
moveProjectFiles: typeof SmartDesktopClient.moveProjectFiles;
|
|
16
|
+
updateProjectSettings: typeof SmartDesktopClient.updateProjectSettings;
|
|
17
|
+
cancelEditing?: () => void;
|
|
18
|
+
addNewProjectFn?: (clone?: boolean, cb?: () => void) => void;
|
|
19
|
+
resetProject: typeof SmartDesktopClient.resetProject;
|
|
20
|
+
updateFinsembleCoreVersion: typeof SmartDesktopClient.updateFinsembleCoreVersion;
|
|
21
|
+
isOutdated: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const Export: (props: ExportProps) => JSX.Element;
|
|
24
|
+
//# sourceMappingURL=Export.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Export.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Export.tsx"],"names":[],"mappings":"AAAA;;;GAGG;;AAcH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,kBAAkB,CAAC;AAE1B,oBAAY,WAAW,GAAG;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,OAAO,kBAAkB,CAAC,aAAa,CAAC;IAC1D,gBAAgB,EAAE,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,oBAAoB,EAAE,OAAO,kBAAkB,CAAC,oBAAoB,CAAC;IACrE,kBAAkB,EAAE,OAAO,kBAAkB,CAAC,kBAAkB,CAAC;IACjE,gBAAgB,EAAE,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,gBAAgB,EAAE,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC7D,qBAAqB,EAAE,OAAO,kBAAkB,CAAC,qBAAqB,CAAC;IACvE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,OAAO,kBAAkB,CAAC,YAAY,CAAC;IACrD,0BAA0B,EAAE,OAAO,kBAAkB,CAAC,0BAA0B,CAAC;IACjF,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,WAAW,gBAyMxC,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
import React, { useState } from "react";
|
|
6
|
+
import { View } from "./View";
|
|
7
|
+
import { Content } from "./Content";
|
|
8
|
+
import { ExportCloud } from "./ExportCloud";
|
|
9
|
+
import { ExportZip } from "./ExportZip";
|
|
10
|
+
import { Publish } from "./Publish";
|
|
11
|
+
import { ExportDeployInfo } from "./ExportDeployInfo";
|
|
12
|
+
import { useSelector, useDispatch } from "../../store";
|
|
13
|
+
import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
|
|
14
|
+
import { FEAGlobals } from "../../../common/Globals";
|
|
15
|
+
import { SmartDesktopClient } from "./smartDesktopClient";
|
|
16
|
+
import { Button } from "../common/Button";
|
|
17
|
+
import { ButtonIcon } from "../common/ButtonIcon";
|
|
18
|
+
import "./css/export.css";
|
|
19
|
+
export const Export = (props) => {
|
|
20
|
+
const dispatch = useDispatch();
|
|
21
|
+
const isPublishing = useSelector((store) => store.smartDesktopDesigner.export.isPublishing);
|
|
22
|
+
const deployInfo = useSelector((store) => store.smartDesktopDesigner.export.deployInfo);
|
|
23
|
+
const project = useSelector((state) => state.smartDesktopDesigner.projectInfo);
|
|
24
|
+
const version = useSelector((state) => state.smartDesktopDesigner.fsblVersion);
|
|
25
|
+
const [tmpProjectName, setTmpProjectName] = useState((project === null || project === void 0 ? void 0 : project.name) === "default" ? "" : project === null || project === void 0 ? void 0 : project.name);
|
|
26
|
+
const isProjectNameValid = SmartDesktopClient.checkValidProjectName(tmpProjectName);
|
|
27
|
+
const setProject = (value) => {
|
|
28
|
+
dispatch(SmartDesktopDesignerActions.set_project_info(value));
|
|
29
|
+
};
|
|
30
|
+
const [isEditingPath, setIsEditingPath] = useState(false);
|
|
31
|
+
const onSaveProjectName = (name) => {
|
|
32
|
+
props.updateProjectSettings(Object.assign(Object.assign({}, project), { name: name })).then(({ err }) => {
|
|
33
|
+
if (err) {
|
|
34
|
+
FEAGlobals.FSBL.Clients.Logger.system.error(`ERROR updateProjectSettings: ${JSON.stringify(err)}`);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
setProject(Object.assign(Object.assign({}, project), { name }));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const updateProject = () => {
|
|
42
|
+
FEAGlobals.FSBL.Clients.DialogManager.open("yesNo", {
|
|
43
|
+
title: "Update project",
|
|
44
|
+
question: `Updating project ${project === null || project === void 0 ? void 0 : project.name} will require Finsemble to restart. Are you sure you want to proceed?`,
|
|
45
|
+
affirmativeResponseLabel: "Yes",
|
|
46
|
+
negativeResponseLabel: "No",
|
|
47
|
+
showCancelButton: false,
|
|
48
|
+
showNegativeButton: true,
|
|
49
|
+
}, async (error, response) => {
|
|
50
|
+
if (error || response.choice !== "affirmative") {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const { err } = await props.updateFinsembleCoreVersion(project === null || project === void 0 ? void 0 : project.name, version);
|
|
54
|
+
if (err) {
|
|
55
|
+
FEAGlobals.FSBL.Clients.DialogManager.open("YesNoDialog", {
|
|
56
|
+
title: "Error",
|
|
57
|
+
question: `There was an error when trying to update the Finsemble version: ${err}`,
|
|
58
|
+
affirmativeResponseLabel: "OK",
|
|
59
|
+
showCancelButton: false,
|
|
60
|
+
showNegativeButton: false,
|
|
61
|
+
}, () => { });
|
|
62
|
+
}
|
|
63
|
+
FEAGlobals.FSBL.restartApplication();
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const onSaveProjectPath = (path) => {
|
|
67
|
+
props.updateProjectSettings(Object.assign(Object.assign({}, project), { path })).then(({ err }) => {
|
|
68
|
+
if (err) {
|
|
69
|
+
FEAGlobals.FSBL.Clients.Logger.system.error(`ERROR updateProjectSettings: ${JSON.stringify(err)}`);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
setProject(Object.assign(Object.assign({}, project), { path }));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
return (React.createElement(View, null,
|
|
77
|
+
React.createElement(Content, null, isPublishing ? (React.createElement(Publish, Object.assign({}, props))) : (React.createElement("div", { className: "export-block" },
|
|
78
|
+
props.isOutdated && (React.createElement("div", { className: "update-block" },
|
|
79
|
+
React.createElement(Button, { fashion: "hollow", text: "Update project", onClick: updateProject, iconBefore: "exclamation-circle" }))),
|
|
80
|
+
React.createElement("div", { className: "export-label" },
|
|
81
|
+
React.createElement("label", { htmlFor: "project-name" }, "Project name")),
|
|
82
|
+
React.createElement("div", { className: "export-project-name" },
|
|
83
|
+
React.createElement("input", { type: "text", className: "project-name-field", id: "project-name", name: "project-name", placeholder: "Untitled", "aria-invalid": !isProjectNameValid, value: tmpProjectName, style: { fontSize: 14 }, onInput: (e) => {
|
|
84
|
+
setTmpProjectName(e.target.value);
|
|
85
|
+
}, onKeyDown: (e) => {
|
|
86
|
+
if (e.key === "Enter") {
|
|
87
|
+
e.currentTarget.blur();
|
|
88
|
+
}
|
|
89
|
+
} })),
|
|
90
|
+
React.createElement("div", { className: "export-label" },
|
|
91
|
+
React.createElement("label", { htmlFor: "project-location" }, "File location")),
|
|
92
|
+
React.createElement("div", { className: "export-file-location" },
|
|
93
|
+
React.createElement("input", { id: "project-location", className: "project-name-field", type: "text", disabled: true, value: isEditingPath ? "..." : project.path }),
|
|
94
|
+
React.createElement(ButtonIcon, { icon: "search", text: "Select folder location", onClick: async () => {
|
|
95
|
+
setIsEditingPath(true);
|
|
96
|
+
try {
|
|
97
|
+
const { data } = await props.moveProjectFiles(project.name);
|
|
98
|
+
if (data) {
|
|
99
|
+
onSaveProjectPath(data);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
catch (err) { }
|
|
103
|
+
setIsEditingPath(false);
|
|
104
|
+
} })),
|
|
105
|
+
React.createElement("div", { className: "button-row" },
|
|
106
|
+
React.createElement("div", { className: "button-row-left" },
|
|
107
|
+
React.createElement(Button, { fashion: "danger", text: "Reset project", onClick: () => {
|
|
108
|
+
props.resetProject();
|
|
109
|
+
} })),
|
|
110
|
+
React.createElement("div", { className: "button-row-right" },
|
|
111
|
+
props.addNewProjectFn && (React.createElement(Button, { fashion: "hollow", iconBefore: "copy", text: "Clone project", onClick: () => {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = props.addNewProjectFn) === null || _a === void 0 ? void 0 : _a.call(props, true, props.cancelEditing);
|
|
114
|
+
} })),
|
|
115
|
+
React.createElement(Button, { fashion: "hollow", text: "Cancel", onClick: () => {
|
|
116
|
+
var _a;
|
|
117
|
+
(_a = props.cancelEditing) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
118
|
+
} }),
|
|
119
|
+
React.createElement(Button, { className: "project-save", fashion: "secondary", text: "Save", onClick: async () => {
|
|
120
|
+
var _a;
|
|
121
|
+
onSaveProjectName(tmpProjectName);
|
|
122
|
+
(_a = props.cancelEditing) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
123
|
+
} }))),
|
|
124
|
+
React.createElement("div", { className: "hr" }, "\u00A0"),
|
|
125
|
+
React.createElement("h2", null, "Publish to Cosaic Cloud"),
|
|
126
|
+
React.createElement(ExportCloud, Object.assign({}, props, { valid: isProjectNameValid })),
|
|
127
|
+
deployInfo && (React.createElement("div", { className: "deployInfoContainer" },
|
|
128
|
+
React.createElement("div", null,
|
|
129
|
+
React.createElement("p", null, "Project installer link:"),
|
|
130
|
+
React.createElement(ExportDeployInfo, null)))),
|
|
131
|
+
React.createElement(ExportZip, Object.assign({}, props, { valid: isProjectNameValid })))))));
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=Export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Export.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/Export.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAGxF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,kBA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,CAAC,GACA,CACG;gBACN,6BAAK,SAAS,EAAC,kBAAkB;oBAC/B,KAAK,CAAC,eAAe,IAAI,CACzB,oBAAC,MAAM,IACN,OAAO,EAAC,QAAQ,EAChB,UAAU,EAAC,MAAM,EACjB,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,GAAG,EAAE;;4BACb,MAAA,KAAK,CAAC,eAAe,sDAAG,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;wBACpD,CAAC,GACA,CACF;oBACD,oBAAC,MAAM,IACN,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE;;4BACb,MAAA,KAAK,CAAC,aAAa,qDAAI,CAAC;wBACzB,CAAC,GACA;oBACF,oBAAC,MAAM,IACN,SAAS,EAAC,cAAc,EACxB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,KAAK,IAAI,EAAE;;4BACnB,iBAAiB,CAAC,cAAc,CAAC,CAAC;4BAClC,MAAA,KAAK,CAAC,aAAa,qDAAI,CAAC;wBACzB,CAAC,GACA,CACG,CACD;YAEN,6BAAK,SAAS,EAAC,IAAI,aAAa;YAEhC,0DAAgC;YAEhC,oBAAC,WAAW,oBAAK,KAAK,IAAE,KAAK,EAAE,kBAAkB,IAAI;YACpD,UAAU,IAAI,CACd,6BAAK,SAAS,EAAC,qBAAqB;gBACnC;oBACC,yDAA8B;oBAC9B,oBAAC,gBAAgB,OAAG,CACf,CACD,CACN;YAED,oBAAC,SAAS,oBAAK,KAAK,IAAE,KAAK,EAAE,kBAAkB,IAAI,CAC9C,CACN,CACQ,CACJ,CACP,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExportProps } from "./Export";
|
|
3
|
+
export declare type ExportCloudProps = ExportProps & {
|
|
4
|
+
valid: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const ExportCloud: (props: ExportCloudProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ExportCloud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportCloud.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ExportCloud.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,oBAAY,gBAAgB,GAAG,WAAW,GAAG;IAC5C,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,gBAAgB,gBAyDlD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { Button } from "../common/Button";
|
|
3
|
+
import { useDispatch, useSelector } from "../../store";
|
|
4
|
+
import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
|
|
5
|
+
import { ProjectErrors } from "./ProjectErrors";
|
|
6
|
+
export const ExportCloud = (props) => {
|
|
7
|
+
const dispatch = useDispatch();
|
|
8
|
+
const deployInfo = useSelector((store) => store.smartDesktopDesigner.export.deployInfo);
|
|
9
|
+
const projectErrors = useSelector((store) => store.smartDesktopDesigner.errors);
|
|
10
|
+
/**
|
|
11
|
+
* This will run once. We'll check to see if there's a current deployInfo for our
|
|
12
|
+
* project, in other words has it already been published.
|
|
13
|
+
*/
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const getProjectConfig = async () => {
|
|
16
|
+
const projectConfig = await props.getProjectConfig();
|
|
17
|
+
const currentDeployInfo = projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.deployInfo;
|
|
18
|
+
if (currentDeployInfo) {
|
|
19
|
+
dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
getProjectConfig();
|
|
23
|
+
}, []);
|
|
24
|
+
return (React.createElement("div", { className: "export-method package-project" },
|
|
25
|
+
deployInfo ? (React.createElement("div", null,
|
|
26
|
+
React.createElement("p", null, "Publish your project to share it with your users. Click Publish to create a project installer. Please be patient, it can take up to 20 minutes."))) : (React.createElement("div", null,
|
|
27
|
+
React.createElement("p", null, "You can continue working on your desktop project after you publish it. To update the project, republish it. Users will see the changes when they restart their desktop."))),
|
|
28
|
+
React.createElement(ProjectErrors, { errors: projectErrors }),
|
|
29
|
+
React.createElement("div", { className: "export-method-actions" },
|
|
30
|
+
React.createElement(Button, { disabled: projectErrors.length > 0 || !props.valid, fashion: "secondary", text: "Publish", onClick: () => {
|
|
31
|
+
dispatch(SmartDesktopDesignerActions.set_is_publishing(true));
|
|
32
|
+
props
|
|
33
|
+
.publishToCosaicCloud()
|
|
34
|
+
.then((currentDeployInfo) => dispatch(SmartDesktopDesignerActions.set_deploy_info(currentDeployInfo)))
|
|
35
|
+
.catch((error) => dispatch(SmartDesktopDesignerActions.set_publish_error(error)));
|
|
36
|
+
} }))));
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=ExportCloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportCloud.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ExportCloud.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMhD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACtD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,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AE,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACpF,CAAC,GACA,CACG,CACD,CACN,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportDeployInfo.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ExportDeployInfo.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,gBAAgB,mBAsB5B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { useRef } from "react";
|
|
2
|
+
import { ButtonIcon } from "../common/ButtonIcon";
|
|
3
|
+
import { useSelector } from "../../store";
|
|
4
|
+
export const ExportDeployInfo = () => {
|
|
5
|
+
const publishURLRef = useRef(null);
|
|
6
|
+
const deployInfo = useSelector((store) => store.smartDesktopDesigner.export.deployInfo);
|
|
7
|
+
return (React.createElement("div", { className: "export-publish-url" },
|
|
8
|
+
React.createElement("input", { "aria-label": "Publish URL", type: "text", disabled: true, value: deployInfo === null || deployInfo === void 0 ? void 0 : deployInfo.installerURL, ref: publishURLRef }),
|
|
9
|
+
React.createElement(ButtonIcon, { text: "Copy", icon: "copy", onClick: () => {
|
|
10
|
+
const input = publishURLRef.current;
|
|
11
|
+
input.disabled = false;
|
|
12
|
+
input.focus();
|
|
13
|
+
input.select();
|
|
14
|
+
document.execCommand("copy");
|
|
15
|
+
input.disabled = true;
|
|
16
|
+
} })));
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ExportDeployInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportDeployInfo.js","sourceRoot":"","sources":["../../../../../src/ui/components/sdd/ExportDeployInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO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