@finsemble/finsemble-ui 10.0.0-iocd.2 → 10.0.0-iocd.9
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/clients/Interop/FinsembleDesktopAgent.d.ts +1 -3
- package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/authenticationClient.d.ts +1 -0
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +2 -0
- package/clients/authenticationClient.js.map +1 -1
- package/clients/dialogManagerClient.d.ts +3 -3
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +6 -6
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +1 -0
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +2 -0
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/searchClient.d.ts +1 -0
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +2 -0
- package/clients/searchClient.js.map +1 -1
- package/clients/windowClient.d.ts +8 -0
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +38 -0
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +4 -2
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +14 -7
- package/clients/workspaceClient.js.map +1 -1
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +1 -2
- package/common/Monitors.js.map +1 -1
- package/common/constants.d.ts +1 -0
- package/common/constants.d.ts.map +1 -1
- package/common/constants.js +1 -0
- package/common/constants.js.map +1 -1
- package/package.json +2 -3
- package/platform/services/Interop/modules/types.d.ts +1 -0
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.js +1 -0
- package/platform/services/systemManager/_constants.js.map +1 -1
- package/platform/services/systemManager/types.d.ts +1 -1
- package/platform/services/systemManager/types.d.ts.map +1 -1
- package/platform/services/systemManager/types.js.map +1 -1
- package/platform/services/window/types.d.ts +2 -1
- package/platform/services/window/types.d.ts.map +1 -1
- package/react/assets/css/advancedAppLauncher.css +65 -52
- package/react/components/favorites/FavoriteMaker.d.ts.map +1 -1
- package/react/components/favorites/FavoriteMaker.js +5 -3
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js +0 -12
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +5 -4
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +0 -1
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +2 -5
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/system/System.d.ts.map +1 -1
- package/react/components/system/System.js +20 -5
- package/react/components/system/System.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +1 -4
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js +14 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts +2 -0
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js +22 -8
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts +5 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js +57 -25
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js +22 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +3 -15
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js +11 -28
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js +2 -6
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +91 -44
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +0 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +0 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts +17 -0
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts.map +1 -0
- package/react/components/userPreferences/FinsembleUserPreferences.js +28 -0
- package/react/components/userPreferences/FinsembleUserPreferences.js.map +1 -0
- package/react/components/userPreferences/UserPreferences.d.ts +1 -1
- package/react/components/userPreferences/UserPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferences.js +8 -11
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts +9 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.d.ts +3 -14
- package/react/components/userPreferences/components/ContentSection.d.ts.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +0 -1
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/content/General.d.ts +2 -1
- package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/General.js +11 -30
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -5
- package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +36 -53
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js +2 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts +2 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.js +5 -12
- package/react/components/userPreferences/components/general/ResetPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts +5 -5
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +30 -84
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/iocdUserPreferences.d.ts +17 -0
- package/react/components/userPreferences/iocdUserPreferences.d.ts.map +1 -0
- package/react/components/userPreferences/iocdUserPreferences.js +49 -0
- package/react/components/userPreferences/iocdUserPreferences.js.map +1 -0
- package/react/components/userPreferences/utils.d.ts +3 -0
- package/react/components/userPreferences/utils.d.ts.map +1 -0
- package/react/components/userPreferences/utils.js +11 -0
- package/react/components/userPreferences/utils.js.map +1 -0
- package/react/components/utils.d.ts +2 -2
- package/react/components/utils.d.ts.map +1 -1
- package/react/components/utils.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.d.ts.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.js +7 -10
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js +6 -3
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useFavoritesShell.d.ts.map +1 -1
- package/react/hooks/useFavoritesShell.js +6 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/typedefs/FDC3/api/DesktopAgent.d.ts +7 -5
- package/typedefs/FDC3/api/DesktopAgent.d.ts.map +1 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts +2 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts.map +1 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts +2 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts.map +1 -1
- package/typedefs/FDC3/api/Methods.d.ts +19 -5
- package/typedefs/FDC3/api/Methods.d.ts.map +1 -1
- package/typedefs/FDC3/api/Methods.js +19 -3
- package/typedefs/FDC3/api/Methods.js.map +1 -1
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts +519 -306
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts.map +1 -1
- package/typedefs/FDC3/bridging/BridgingTypes.js +1372 -1386
- package/typedefs/FDC3/bridging/BridgingTypes.js.map +1 -1
- package/typedefs/FDC3/context/ContextType.d.ts +19 -1
- package/typedefs/FDC3/context/ContextType.d.ts.map +1 -1
- package/typedefs/FDC3/context/ContextType.js +7 -0
- package/typedefs/FDC3/context/ContextType.js.map +1 -1
- package/typedefs/FDC3/context/ContextTypes.d.ts +1373 -135
- package/typedefs/FDC3/context/ContextTypes.d.ts.map +1 -1
- package/typedefs/FDC3/context/ContextTypes.js +590 -508
- package/typedefs/FDC3/context/ContextTypes.js.map +1 -1
- package/typedefs/FDC3/intents/Intents.d.ts +15 -0
- package/typedefs/FDC3/intents/Intents.d.ts.map +1 -1
- package/typedefs/FDC3/intents/Intents.js +7 -0
- package/typedefs/FDC3/intents/Intents.js.map +1 -1
- package/typedefs/FDC3/internal/contextConfiguration.d.ts +2 -0
- package/typedefs/FDC3/internal/contextConfiguration.d.ts.map +1 -0
- package/typedefs/FDC3/internal/contextConfiguration.js +5 -0
- package/typedefs/FDC3/internal/contextConfiguration.js.map +1 -0
- package/typedefs/FDC3/internal/intentConfiguration.d.ts +2 -0
- package/typedefs/FDC3/internal/intentConfiguration.d.ts.map +1 -0
- package/typedefs/FDC3/internal/intentConfiguration.js +5 -0
- package/typedefs/FDC3/internal/intentConfiguration.js.map +1 -0
- package/typedefs/FDC3/internal/typeHelpers.d.ts +7 -0
- package/typedefs/FDC3/internal/typeHelpers.d.ts.map +1 -0
- package/typedefs/FDC3/internal/typeHelpers.js +5 -0
- package/typedefs/FDC3/internal/typeHelpers.js.map +1 -0
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.d.ts +0 -43
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.js +0 -123
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppActionsMenu.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.d.ts +0 -26
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.js +0 -34
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FilterSort.js.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts +0 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts.map +0 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.js +0 -27
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/ToggleFavoriteDropdown.js.map +0 -1
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import React from "react";
|
|
2
13
|
import { useFavorites } from "../../../../../hooks/useFavorites";
|
|
3
14
|
import { FinsembleDraggable } from "../../../../legacyControls/FinsembleDraggable";
|
|
4
15
|
import { FinsembleDnDContext } from "../../../../legacyControls/FinsembleDnDContext";
|
|
5
16
|
import { ADVANCED_APP_LAUNCHER, DASHBOARDS, FAVORITES } from "../constants";
|
|
17
|
+
import { onClickA11y } from "../../../../utils";
|
|
6
18
|
const RenderButtons = (props) => {
|
|
7
19
|
if (!props.showIcon)
|
|
8
20
|
return React.createElement(React.Fragment, null);
|
|
@@ -12,20 +24,21 @@ const RenderButtons = (props) => {
|
|
|
12
24
|
// technically don't fire on the same button. This means onClick is never fired, so we trigger the buttons on mousedown instead.
|
|
13
25
|
// For more information see: https://www.eventbrite.com/engineering/a-story-of-a-react-re-rendering-bug/
|
|
14
26
|
return (React.createElement("span", { className: "folder-action-icons" },
|
|
15
|
-
React.createElement("i", { id: "confirm-edit", className: "ff-check-mark-2",
|
|
16
|
-
React.createElement("i", { id: "cancel-edit", className: "ff-close",
|
|
27
|
+
React.createElement("i", Object.assign({ role: "button", id: "confirm-edit", className: "ff-check-mark-2", "aria-label": "Accept Rename", title: "Accept Rename" }, onClickA11y(attemptRename))),
|
|
28
|
+
React.createElement("i", Object.assign({ role: "button", id: "cancel-edit", className: "ff-close", "aria-label": "Cancel", title: "Cancel" }, onClickA11y(cancelEdit)))));
|
|
17
29
|
}
|
|
18
30
|
else {
|
|
19
31
|
return (React.createElement("span", { className: "folder-action-icons" },
|
|
20
|
-
canEdit && React.createElement("i", { className: "ff-adp-edit",
|
|
21
|
-
canDelete && React.createElement("i", { className: "ff-adp-trash-outline",
|
|
32
|
+
canEdit && (React.createElement("i", Object.assign({ role: "button", className: "ff-adp-edit", "aria-label": "Rename", title: "Rename" }, onClickA11y(renameFolder)))),
|
|
33
|
+
canDelete && (React.createElement("i", Object.assign({ role: "button", className: "ff-adp-trash-outline", "aria-label": "Delete Folder", title: "Delete Folder" }, onClickA11y(deleteFolder))))));
|
|
22
34
|
}
|
|
23
35
|
};
|
|
24
36
|
const RenderFolder = (props) => {
|
|
37
|
+
const { onClick, onDrop: passedOnDrop } = props, restOfProps = __rest(props, ["onClick", "onDrop"]);
|
|
25
38
|
const { addFavorite, isFavorited } = useFavorites();
|
|
26
39
|
// If an app is dropped in the Favorites folder, favorite the app
|
|
27
40
|
const onDrop = (e) => {
|
|
28
|
-
|
|
41
|
+
passedOnDrop(e);
|
|
29
42
|
const app = JSON.parse(e.dataTransfer.getData("app"));
|
|
30
43
|
if (props.title === FAVORITES && !isFavorited(app.name)) {
|
|
31
44
|
const favoriteApp = {
|
|
@@ -37,7 +50,7 @@ const RenderFolder = (props) => {
|
|
|
37
50
|
addFavorite(favoriteApp);
|
|
38
51
|
}
|
|
39
52
|
};
|
|
40
|
-
return (React.createElement("div", Object.assign({
|
|
53
|
+
return (React.createElement("div", Object.assign({ role: "tab", onDrop: onDrop }, onClickA11y(onClick), restOfProps), props.children));
|
|
41
54
|
};
|
|
42
55
|
export default class FoldersList extends React.Component {
|
|
43
56
|
constructor(props) {
|
|
@@ -101,7 +114,7 @@ export default class FoldersList extends React.Component {
|
|
|
101
114
|
this.props.addAppToFolder(folder, app);
|
|
102
115
|
}
|
|
103
116
|
}
|
|
104
|
-
async onFolderClicked(
|
|
117
|
+
async onFolderClicked(folder) {
|
|
105
118
|
this.props.updateActiveFolder(folder);
|
|
106
119
|
}
|
|
107
120
|
onFocusRemove() {
|
|
@@ -220,7 +233,7 @@ export default class FoldersList extends React.Component {
|
|
|
220
233
|
}
|
|
221
234
|
const showIcon = canEdit || canDelete;
|
|
222
235
|
// This DOM will be rendered within a draggable (if the folder can be dragged), and a plain ol div if it cannot be dragged.
|
|
223
|
-
return (React.createElement(RenderFolder, { onDragOver: (event) => event.preventDefault(), onDrop: (event) => this.onAppDrop(event, folderName), onClick: (
|
|
236
|
+
return (React.createElement(RenderFolder, { onDragOver: (event) => event.preventDefault(), onDrop: (event) => this.onAppDrop(event, folderName), onClick: () => this.onFolderClicked(folderName), className: className, key: index, title: folderName },
|
|
224
237
|
React.createElement("div", { className: "left-nav-label" },
|
|
225
238
|
folder.icon && React.createElement("i", { className: folder.icon }),
|
|
226
239
|
React.createElement("div", { className: "folder-name" }, nameField)),
|
|
@@ -251,7 +264,7 @@ export default class FoldersList extends React.Component {
|
|
|
251
264
|
}
|
|
252
265
|
render() {
|
|
253
266
|
return (React.createElement("div", { className: "advanced-app-launcher-nav-top" },
|
|
254
|
-
React.createElement("div", { className: "folder-list", ref: this.listDiv },
|
|
267
|
+
React.createElement("div", { className: "folder-list", role: "tablist", ref: this.listDiv },
|
|
255
268
|
this.renderUnorderableFolders(),
|
|
256
269
|
React.createElement(FinsembleDnDContext, { onDragEnd: this.onDragEnd }, this.renderOrderableFolders()))));
|
|
257
270
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FoldersList.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"FoldersList.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.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AsB,EAAE,CAAuB,CAChG,CACD,CACN,CAAC;IACH,CAAC;CACD"}
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface IProps {
|
|
3
3
|
enableQuickComponents: boolean;
|
|
4
4
|
addNewAppFolder: () => void;
|
|
5
5
|
showAddAppForm: () => void;
|
|
6
6
|
removeStore: () => void;
|
|
7
|
-
[prop: string]: string | boolean | (() => void);
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
click: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export default class LeftNavBottomLinks extends React.Component<IProps, IState> {
|
|
17
|
-
constructor(props: IProps);
|
|
18
|
-
removeStore(): void;
|
|
19
|
-
render(): JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
8
|
+
declare const LeftNavBottomLinks: ({ showAddAppForm, removeStore, addNewAppFolder, enableQuickComponents }: IProps) => JSX.Element;
|
|
9
|
+
export default LeftNavBottomLinks;
|
|
22
10
|
//# sourceMappingURL=LeftNavBottomLinks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeftNavBottomLinks.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LeftNavBottomLinks.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.tsx"],"names":[],"mappings":";AAIA,UAAU,MAAM;IACf,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,4EAA6E,MAAM,gBAgD1G,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FEAGlobals } from "../../../../../../common/Globals";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.state = {
|
|
7
|
-
bottomEntries: [
|
|
8
|
-
{ name: "New App", click: "showAddAppForm" },
|
|
9
|
-
{
|
|
10
|
-
name: "Restore Defaults",
|
|
11
|
-
icon: "ff-arrow-back",
|
|
12
|
-
click: "removeStore",
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
removeStore() {
|
|
3
|
+
import { onClickA11y } from "../../../../utils";
|
|
4
|
+
const LeftNavBottomLinks = ({ showAddAppForm, removeStore, addNewAppFolder, enableQuickComponents }) => {
|
|
5
|
+
const askToRemoveStore = () => {
|
|
18
6
|
FEAGlobals.FSBL.Clients.DialogManager.open("YesNoDialog", {
|
|
19
7
|
monitor: "primary",
|
|
20
8
|
title: "Restore App Launcher?",
|
|
@@ -30,6 +18,7 @@ export default class LeftNavBottomLinks extends React.Component {
|
|
|
30
18
|
if (choice) {
|
|
31
19
|
switch (choice) {
|
|
32
20
|
case "affirmative":
|
|
21
|
+
removeStore();
|
|
33
22
|
FEAGlobals.FSBL.restartApplication();
|
|
34
23
|
return;
|
|
35
24
|
case "negative":
|
|
@@ -39,17 +28,11 @@ export default class LeftNavBottomLinks extends React.Component {
|
|
|
39
28
|
}
|
|
40
29
|
}
|
|
41
30
|
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
: Function.prototype;
|
|
50
|
-
let className = entry.icon ? `${entry.icon} complex-menu-action` : "ff-plus-2 complex-menu-action";
|
|
51
|
-
return (React.createElement("div", { className: className, key: index, onClick: handler }, entry.name));
|
|
52
|
-
})));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement("div", { className: "advanced-app-launcher-nav-bottom" },
|
|
33
|
+
React.createElement("div", Object.assign({ role: "button" }, onClickA11y(addNewAppFolder), { className: "ff-plus-2 complex-menu-action" }), "New Folder"),
|
|
34
|
+
enableQuickComponents && (React.createElement("div", Object.assign({ role: "button", className: "ff-plus-2 complex-menu-action" }, onClickA11y(showAddAppForm)), "New App")),
|
|
35
|
+
React.createElement("div", Object.assign({ role: "button", className: "ff-arrow-back complex-menu-action" }, onClickA11y(askToRemoveStore)), "Restore Defaults")));
|
|
36
|
+
};
|
|
37
|
+
export default LeftNavBottomLinks;
|
|
55
38
|
//# sourceMappingURL=LeftNavBottomLinks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeftNavBottomLinks.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"LeftNavBottomLinks.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAShD,MAAM,kBAAkB,GAAG,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAU,EAAE,EAAE;IAC9G,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC7B,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CACzC,aAAa,EACb;YACC,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,uBAAuB;YAC9B,QAAQ,EAAE,iFAAiF;YAC3F,SAAS,EAAE,KAAK;YAChB,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,IAAI;YACnB,gBAAgB,EAAE,IAAI;YACtB,kBAAkB,EAAE,KAAK;YACzB,wBAAwB,EAAE,SAAS;SACnC,EACD,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YACjB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;YAC5B,IAAI,MAAM,EAAE;gBACX,QAAQ,MAAM,EAAE;oBACf,KAAK,aAAa;wBACjB,WAAW,EAAE,CAAC;wBACd,UAAU,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC;wBACrC,OAAO;oBACR,KAAK,UAAU,CAAC;oBAChB,KAAK,QAAQ,CAAC;oBACd;wBACC,OAAO;iBACR;aACD;QACF,CAAC,CACD,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACN,6BAAK,SAAS,EAAC,kCAAkC;QAChD,2CAAK,IAAI,EAAC,QAAQ,IAAK,WAAW,CAAC,eAAe,CAAC,IAAE,SAAS,EAAC,+BAA+B,kBAExF;QACL,qBAAqB,IAAI,CACzB,2CAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,+BAA+B,IAAK,WAAW,CAAC,cAAc,CAAC,aAEtF,CACN;QACD,2CAAK,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,mCAAmC,IAAK,WAAW,CAAC,gBAAgB,CAAC,sBAE5F,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortBy.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"SortBy.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,UAAU,MAAM;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,CAAC,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;CAC9C;AAED,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;gBAC9C,KAAK,EAAE,MAAM;IAIzB,iBAAiB;IAcjB,MAAM;CAGN"}
|
package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import sortFunctions from "../utils/sort-functions";
|
|
3
|
+
import { onClickA11y } from "../../../../utils";
|
|
3
4
|
export default class SortBy extends React.Component {
|
|
4
5
|
constructor(props) {
|
|
5
6
|
super(props);
|
|
6
7
|
}
|
|
7
8
|
renderOptionsList() {
|
|
8
|
-
return Object.keys(sortFunctions).map((option, index) => {
|
|
9
|
-
let classes = "sort-option pointer ";
|
|
10
|
-
if (option === this.props.sortBy)
|
|
11
|
-
classes = `${classes} active`;
|
|
12
|
-
return (React.createElement("span", { key: index, onClick: () => this.props.setSortBy(option), className: classes }, option));
|
|
13
|
-
});
|
|
9
|
+
return Object.keys(sortFunctions).map((option, index) => (React.createElement("span", Object.assign({ key: index, role: "button", "aria-pressed": option === this.props.sortBy }, onClickA11y(() => this.props.setSortBy(option)), { className: "sort-option pointer" }), option)));
|
|
14
10
|
}
|
|
15
11
|
render() {
|
|
16
12
|
return React.createElement("div", { className: "sort" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortBy.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"SortBy.js","sourceRoot":"","sources":["../../../../../../../../src/ui/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAOhD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAiB;IAC1D,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,iBAAiB;QAChB,OAAQ,MAAM,CAAC,IAAI,CAAC,aAAa,CAAqB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7E,4CACC,GAAG,EAAE,KAAK,EACV,IAAI,EAAC,QAAQ,kBACC,MAAM,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,IACtC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,IACnD,SAAS,EAAC,qBAAqB,KAE9B,MAAM,CACD,CACP,CAAC,CAAC;IACJ,CAAC;IAED,MAAM;QACL,OAAO,6BAAK,SAAS,EAAC,MAAM;;YAAW,IAAI,CAAC,iBAAiB,EAAE,CAAO,CAAC;IACxE,CAAC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/toolbar/dashbar/Dashbar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,IAAI,WAAW,EAA+C,MAAM,6BAA6B,CAAC;AAKlH,OAAO,iCAAiC,CAAC;AAYzC,eAAO,MAAM,OAAO,kDAAmD,WAAW,
|
|
1
|
+
{"version":3,"file":"Dashbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/toolbar/dashbar/Dashbar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,IAAI,WAAW,EAA+C,MAAM,6BAA6B,CAAC;AAKlH,OAAO,iCAAiC,CAAC;AAYzC,eAAO,MAAM,OAAO,kDAAmD,WAAW,uBA8jBjF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
1
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
2
2
|
import { DashbarItem } from "./DashbarItem";
|
|
3
3
|
import { useDashbar } from "../../../hooks/useDashbar";
|
|
4
4
|
import { useToolbar } from "../../../hooks/useToolbar";
|
|
@@ -12,7 +12,8 @@ let createWidgetTasks = [];
|
|
|
12
12
|
export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
13
13
|
const { dashbarItems, reorderDashbarItems } = useDashbar();
|
|
14
14
|
const { launchPreferences } = useToolbar();
|
|
15
|
-
const
|
|
15
|
+
const widgetsRef = useRef({});
|
|
16
|
+
const [widgets, _setWidgets] = useState({});
|
|
16
17
|
const [horizontalBounds, setHorizontalBounds] = useState(0);
|
|
17
18
|
const [wasReorganized, setReorganized] = useState(false);
|
|
18
19
|
const [fastRender, setFastRender] = useState(Date.now());
|
|
@@ -24,7 +25,6 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
24
25
|
let movingIndex = null; // The dashbarItem index being dragged, null if none
|
|
25
26
|
let titleGrabPosition = null; // The mouse of event when a widget title is dragged
|
|
26
27
|
let offsetX = null; // The original grab location of a given view titlebar
|
|
27
|
-
const WIDGET_COUNT = Object.keys(widgets).length;
|
|
28
28
|
const SCROLL_BUTTON_DEFAULT_WIDTH = 30;
|
|
29
29
|
const defaultWidgetTitleGenerator = (widget, titleRef) => {
|
|
30
30
|
const handleWidgetTitleClick = () => {
|
|
@@ -36,6 +36,14 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
36
36
|
React.createElement("span", { dangerouslySetInnerHTML: { __html: widget.title } })));
|
|
37
37
|
};
|
|
38
38
|
const titleGenerator = widgetTitleGenerator !== null && widgetTitleGenerator !== void 0 ? widgetTitleGenerator : defaultWidgetTitleGenerator;
|
|
39
|
+
/**
|
|
40
|
+
* Set the reference (instance variable) to keeps the same value of widgets to prevent a difficult to reproduce bug
|
|
41
|
+
* where it would somehow create two browserviews for the same widget in rapid succession.
|
|
42
|
+
*/
|
|
43
|
+
const setWidgets = (widgets) => {
|
|
44
|
+
widgetsRef.current = widgets;
|
|
45
|
+
_setWidgets(widgets);
|
|
46
|
+
};
|
|
39
47
|
/**
|
|
40
48
|
*
|
|
41
49
|
* @param {object} params
|
|
@@ -74,7 +82,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
74
82
|
// For calculation widgets position that function uses the HTML elements.
|
|
75
83
|
// If something will be changed in HTML hierarchy for widgets, that function should be refactored.
|
|
76
84
|
const setWidgetsPositions = async () => {
|
|
77
|
-
var _a, _b, _c;
|
|
85
|
+
var _a, _b, _c, _d;
|
|
86
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Setting widget positions");
|
|
78
87
|
const { data: bounds } = await FEAGlobals.finsembleWindow.getBounds();
|
|
79
88
|
const widgetsWidth = getTotalWidth();
|
|
80
89
|
const scrollButtonsEnabled = widgetsWidth >= ((_a = bounds === null || bounds === void 0 ? void 0 : bounds.width) !== null && _a !== void 0 ? _a : 0);
|
|
@@ -124,7 +133,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
124
133
|
widget.bounds.width = 0;
|
|
125
134
|
newRightItemsCount++;
|
|
126
135
|
}
|
|
127
|
-
(_c = widget.view) === null || _c === void 0 ? void 0 : _c.
|
|
136
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Setting widget position. view.setBounds", `ViewID ${(_c = widget.view) === null || _c === void 0 ? void 0 : _c.id}`, `view title ${widget.title}`, widget.url, widget.bounds, rect);
|
|
137
|
+
(_d = widget.view) === null || _d === void 0 ? void 0 : _d.setBounds(widget.bounds);
|
|
128
138
|
}
|
|
129
139
|
if (leftItemsCount !== newLeftItemsCount)
|
|
130
140
|
setLeftItemsCount(newLeftItemsCount);
|
|
@@ -133,9 +143,12 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
133
143
|
};
|
|
134
144
|
const addWidgets = async () => {
|
|
135
145
|
var _a;
|
|
136
|
-
|
|
146
|
+
// Clone the reference since `widget` could possibly have an old value
|
|
147
|
+
const _widgets = clone(widgetsRef.current);
|
|
137
148
|
let tempHorizontalBounds = horizontalBounds;
|
|
138
|
-
|
|
149
|
+
// Check against the reference since `widget` could possibly have an old value
|
|
150
|
+
const newItems = dashbarItems.filter((item) => !widgetsRef.current.hasOwnProperty(item.id));
|
|
151
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Adding widgets", newItems);
|
|
139
152
|
for (const item of newItems) {
|
|
140
153
|
const widgetBounds = {
|
|
141
154
|
top: verticalBounds,
|
|
@@ -153,6 +166,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
153
166
|
loadingIconUrl: (_a = dashbar.loadingIconUrl) !== null && _a !== void 0 ? _a : defaultLoadingIconUrl,
|
|
154
167
|
};
|
|
155
168
|
const webContentsName = `(Dashbar) ${item.id}`;
|
|
169
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Adding widget webview", _widgets[item.id]);
|
|
156
170
|
// Don't await task here to render parent container otherwise widgets will be loaded and displayed one by one.
|
|
157
171
|
const loadWidgetTask = FEAGlobals.finsembleWindow
|
|
158
172
|
.addBrowserView({
|
|
@@ -162,8 +176,20 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
162
176
|
allowAutoResize: false,
|
|
163
177
|
})
|
|
164
178
|
.then((view) => {
|
|
179
|
+
var _a;
|
|
180
|
+
if ((_a = widgetsRef.current[item.id]) === null || _a === void 0 ? void 0 : _a.view) {
|
|
181
|
+
// No idea how a 2nd view was added in the first place. The usage of useRef above should prevent this
|
|
182
|
+
// already but this a defensive removal of a second browser view
|
|
183
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Added duplicate view for. Removing", _widgets[item.id]);
|
|
184
|
+
widgetsRef.current[item.id].view.remove();
|
|
185
|
+
}
|
|
165
186
|
// save widget's view
|
|
166
187
|
_widgets[item.id].view = view;
|
|
188
|
+
})
|
|
189
|
+
.catch((err) => {
|
|
190
|
+
FEAGlobals.FSBL.Clients.Logger.system.error("Error adding browser view", err);
|
|
191
|
+
})
|
|
192
|
+
.finally(() => {
|
|
167
193
|
// after widget is loaded we should re-render parent container to calculate correct widget size
|
|
168
194
|
setFastRender(Date.now());
|
|
169
195
|
});
|
|
@@ -171,11 +197,17 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
171
197
|
createWidgetTasks.push(loadWidgetTask);
|
|
172
198
|
tempHorizontalBounds = tempHorizontalBounds + item.width;
|
|
173
199
|
}
|
|
200
|
+
// Set the state before the promises have completed to allows loading widgets to be rendered while still loading.
|
|
174
201
|
setWidgets(_widgets);
|
|
175
202
|
setHorizontalBounds(tempHorizontalBounds);
|
|
203
|
+
// Wait for all browserviews to load
|
|
204
|
+
await Promise.all(createWidgetTasks);
|
|
205
|
+
createWidgetTasks = [];
|
|
206
|
+
// Set widget state again now that all views have been added.
|
|
207
|
+
setWidgets(_widgets);
|
|
176
208
|
};
|
|
177
209
|
const removeWidgets = async () => {
|
|
178
|
-
var _a, _b;
|
|
210
|
+
var _a, _b, _c;
|
|
179
211
|
const _widgets = clone(widgets);
|
|
180
212
|
// Widgets is an object, with each key being a reference to an item in dashbarItems
|
|
181
213
|
// but dashbarItems is an array of objects. Its necessary to loop through them to determine
|
|
@@ -198,6 +230,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
198
230
|
toRemove.push(widgetId);
|
|
199
231
|
}
|
|
200
232
|
});
|
|
233
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: removing widgets", toRemove, remainingWidgets);
|
|
201
234
|
// toRemove is an array of widgetIds which were no longer found in dashbarItems
|
|
202
235
|
// As items are removed, the remaining items have to be shuffled to fill the space
|
|
203
236
|
for (const id of toRemove) {
|
|
@@ -219,7 +252,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
219
252
|
left: tempNewHorizontalBounds,
|
|
220
253
|
top: widget.bounds.top,
|
|
221
254
|
};
|
|
222
|
-
(_b = widget.view) === null || _b === void 0 ? void 0 : _b.
|
|
255
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Removed widgets. view.setBounds", `ViewID ${(_b = widget.view) === null || _b === void 0 ? void 0 : _b.id}`, `view title ${widget.title}`, widget.url, widget.bounds);
|
|
256
|
+
(_c = widget.view) === null || _c === void 0 ? void 0 : _c.setBounds(widget.bounds);
|
|
223
257
|
tempNewHorizontalBounds = tempNewHorizontalBounds + widget.bounds.width;
|
|
224
258
|
}
|
|
225
259
|
setWidgets(_widgets);
|
|
@@ -227,13 +261,14 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
227
261
|
};
|
|
228
262
|
const reorganizeWidgets = () => {
|
|
229
263
|
const _widgets = clone(widgets);
|
|
264
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Reorganising widgets", Object.keys(widgets));
|
|
230
265
|
// Each view needs to be resituated to fill any holes
|
|
231
266
|
// left by views that have been removed. Use a tempBounds
|
|
232
267
|
// int to keep track of new widths and set the overall width
|
|
233
268
|
// once everything is re-seated
|
|
234
269
|
let tempBounds = 0;
|
|
235
270
|
dashbarItems.forEach((item) => {
|
|
236
|
-
var _a;
|
|
271
|
+
var _a, _b;
|
|
237
272
|
const widget = _widgets[item.id];
|
|
238
273
|
widget.bounds = {
|
|
239
274
|
height: cachedWidgetHeight || widget.bounds.height,
|
|
@@ -241,7 +276,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
241
276
|
top: cachedWidgetTop || verticalBounds,
|
|
242
277
|
left: tempBounds,
|
|
243
278
|
};
|
|
244
|
-
(_a = widget.view) === null || _a === void 0 ? void 0 : _a.
|
|
279
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Reorganising widget. view.setBounds", `ViewID ${(_a = widget.view) === null || _a === void 0 ? void 0 : _a.id}`, `view title ${widget.title}`, widget.url, widget.bounds);
|
|
280
|
+
(_b = widget.view) === null || _b === void 0 ? void 0 : _b.setBounds(widget.bounds);
|
|
245
281
|
delete _widgets[item.id];
|
|
246
282
|
_widgets[item.id] = widget;
|
|
247
283
|
tempBounds = tempBounds + item.width;
|
|
@@ -250,36 +286,40 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
250
286
|
setWidgets(_widgets);
|
|
251
287
|
setHorizontalBounds(tempBounds);
|
|
252
288
|
};
|
|
289
|
+
const doUpdate = async () => {
|
|
290
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: doUpdate()");
|
|
291
|
+
/**
|
|
292
|
+
* To keep consistent widgets state wait while all widgets finish loading.
|
|
293
|
+
* That check creates a queue of new widgets, so the client could see a delay between enabling new widget and when it actually is rendered.
|
|
294
|
+
*
|
|
295
|
+
* Without this check, if client is doing a widget manipulation (reordering/adding/removing) while loading,
|
|
296
|
+
* the widget's position will break and some of them could disappear.
|
|
297
|
+
*/
|
|
298
|
+
if (createWidgetTasks.length > 0) {
|
|
299
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: doUpdate() waiting for addToComplete");
|
|
300
|
+
await Promise.all(createWidgetTasks);
|
|
301
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: doUpdate() addToComplete done. continuing doUpdate()");
|
|
302
|
+
createWidgetTasks = [];
|
|
303
|
+
}
|
|
304
|
+
const WIDGET_COUNT = Object.keys(widgets).length;
|
|
305
|
+
if (dashbarItems.length > WIDGET_COUNT) {
|
|
306
|
+
//Items have been added
|
|
307
|
+
await addWidgets();
|
|
308
|
+
}
|
|
309
|
+
else if (dashbarItems.length < WIDGET_COUNT) {
|
|
310
|
+
//Items have been removed
|
|
311
|
+
await removeWidgets();
|
|
312
|
+
}
|
|
313
|
+
else if (wasReorganized) {
|
|
314
|
+
if (movingIndex)
|
|
315
|
+
return;
|
|
316
|
+
// Length is the same, order has changed
|
|
317
|
+
reorganizeWidgets();
|
|
318
|
+
}
|
|
319
|
+
await setWidgetsPositions();
|
|
320
|
+
setIsUpdatingState(false);
|
|
321
|
+
};
|
|
253
322
|
const updateItems = () => {
|
|
254
|
-
const doUpdate = async () => {
|
|
255
|
-
/**
|
|
256
|
-
* To keep consistent widgets state wait while all widgets finish loading.
|
|
257
|
-
* That check creates a queue of new widgets, so the client could see a delay between enabling new widget and when it actually is rendered.
|
|
258
|
-
*
|
|
259
|
-
* Without this check, if client is doing a widget manipulation (reordering/adding/removing) while loading,
|
|
260
|
-
* the widget's position will break and some of them could disappear.
|
|
261
|
-
*/
|
|
262
|
-
if (createWidgetTasks.length > 0) {
|
|
263
|
-
await Promise.all(createWidgetTasks);
|
|
264
|
-
createWidgetTasks = [];
|
|
265
|
-
}
|
|
266
|
-
if (dashbarItems.length > WIDGET_COUNT) {
|
|
267
|
-
//Items have been added
|
|
268
|
-
await addWidgets();
|
|
269
|
-
}
|
|
270
|
-
else if (dashbarItems.length < WIDGET_COUNT) {
|
|
271
|
-
//Items have been removed
|
|
272
|
-
await removeWidgets();
|
|
273
|
-
}
|
|
274
|
-
else if (wasReorganized) {
|
|
275
|
-
if (movingIndex)
|
|
276
|
-
return;
|
|
277
|
-
// Length is the same, order has changed
|
|
278
|
-
reorganizeWidgets();
|
|
279
|
-
}
|
|
280
|
-
await setWidgetsPositions();
|
|
281
|
-
setIsUpdatingState(false);
|
|
282
|
-
};
|
|
283
323
|
if (isUpdatingState === false) {
|
|
284
324
|
setIsUpdatingState(true);
|
|
285
325
|
doUpdate();
|
|
@@ -296,6 +336,9 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
296
336
|
useEffect(() => {
|
|
297
337
|
updateItems();
|
|
298
338
|
}, [dashbarItems]);
|
|
339
|
+
useEffect(() => {
|
|
340
|
+
// Force a re-render when fastRender changes
|
|
341
|
+
}, [fastRender]);
|
|
299
342
|
/**
|
|
300
343
|
* DashbarItems can be changed very quickly before all widgets will be initialized.
|
|
301
344
|
* Double-calling updateItems() fixes a bug.
|
|
@@ -317,8 +360,9 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
317
360
|
* @param {string} id The key'ed id of the view
|
|
318
361
|
*/
|
|
319
362
|
const setTitleHeight = (titleHeight, id) => {
|
|
320
|
-
var _a;
|
|
363
|
+
var _a, _b, _c;
|
|
321
364
|
const widget = widgets[id];
|
|
365
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Setting title height", `ViewID ${(_a = widget.view) === null || _a === void 0 ? void 0 : _a.id}`, `View Title ${widget.title}`, widget.url, widget.bounds, `Title height ${titleHeight}`, `cachedTop ${cachedWidgetTop}`);
|
|
322
366
|
if (cachedWidgetTop) {
|
|
323
367
|
titleHeight = 0;
|
|
324
368
|
}
|
|
@@ -331,7 +375,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
331
375
|
};
|
|
332
376
|
cachedWidgetTop = newBounds.top;
|
|
333
377
|
cachedWidgetHeight = newBounds.height;
|
|
334
|
-
(
|
|
378
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: Setting title height view.setBounds", `ViewID ${(_b = widget.view) === null || _b === void 0 ? void 0 : _b.id}`, `view title ${widget.title}`, widget.url, newBounds);
|
|
379
|
+
(_c = widget.view) === null || _c === void 0 ? void 0 : _c.setBounds(newBounds);
|
|
335
380
|
widget.bounds = newBounds;
|
|
336
381
|
}
|
|
337
382
|
};
|
|
@@ -355,7 +400,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
355
400
|
* @param {MouseEvent} event
|
|
356
401
|
*/
|
|
357
402
|
const moveItem = (event) => {
|
|
358
|
-
var _a, _b;
|
|
403
|
+
var _a, _b, _c;
|
|
359
404
|
if (movingIndex !== null) {
|
|
360
405
|
const movingWidget = Object.values(widgets)[movingIndex];
|
|
361
406
|
(_a = movingWidget.view) === null || _a === void 0 ? void 0 : _a.setBounds({
|
|
@@ -371,7 +416,8 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
371
416
|
const widget = widgets[element.id];
|
|
372
417
|
if (widget !== movingWidget && widget.bounds.left !== rect.left) {
|
|
373
418
|
widget.bounds.left = rect.left;
|
|
374
|
-
(_b = widget.view) === null || _b === void 0 ? void 0 : _b.
|
|
419
|
+
FEAGlobals.FSBL.Clients.Logger.system.debug("Dashbar: moveItem view.setBounds", `ViewID ${(_b = widget.view) === null || _b === void 0 ? void 0 : _b.id}`, `view title ${widget.title}`, widget.url, widget.bounds);
|
|
420
|
+
(_c = widget.view) === null || _c === void 0 ? void 0 : _c.setBounds(widget.bounds);
|
|
375
421
|
}
|
|
376
422
|
}
|
|
377
423
|
}
|
|
@@ -393,6 +439,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
|
|
|
393
439
|
.map((entry) => entry[0])
|
|
394
440
|
.sort()
|
|
395
441
|
.join("-");
|
|
442
|
+
const WIDGET_COUNT = Object.keys(widgets).length;
|
|
396
443
|
return (React.createElement("div", { className: wrapperClasses, style: { height: dashbarHeight } },
|
|
397
444
|
WIDGET_COUNT > 0 && (React.createElement(FinsembleDnDContext, { key: elementKey, onDragEnd: reorderItems, onDragStart: startMove, onDragMove: moveItem, onLayoutUpdate: setWidgetsPositions, className: "finsemble-dashbar-section rearrange-region", id: "dashbar-container", axis: AllowableDnDAxis.x, lockAxis: AllowableDnDAxis.x, allowHorizontalScroll: allowHorizontalScroll, showScrollButtonsTooltip: true, leftButtonTooltip: `${leftItemsCount} more`, rightButtonTooltip: `${rightItemsCount} more`, metadata: { dashbar } }, Object.values(widgets).map((widget, i) => (React.createElement(DashbarItem, { key: i, id: Object.keys(widgets)[i], index: i, widgetTitleGenerator: titleGenerator, widget: widget, dashbarHeight: dashbar.height, widgetDividerWidth: widgetDividerWidth, setTitleHeight: setTitleHeight, setGrabLocation: setGrabLocation }))))),
|
|
398
445
|
WIDGET_COUNT === 0 && (React.createElement("div", { className: "add-dashbar-item-button", onClick: launchDashbar },
|