pollination-react-io 1.41.4 → 1.41.5
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/build/index.esm.js +17 -10
- package/build/index.esm.js.map +1 -1
- package/build/index.js +17 -10
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -48718,12 +48718,13 @@ var RunCard = function (_a) {
|
|
|
48718
48718
|
return (__assign(__assign({}, prevHover), (_a = {}, _a[id] = value, _a)));
|
|
48719
48719
|
});
|
|
48720
48720
|
};
|
|
48721
|
-
|
|
48722
|
-
|
|
48721
|
+
/*
|
|
48722
|
+
* Reset hover and use default tab
|
|
48723
|
+
*/
|
|
48723
48724
|
useEffect(function () {
|
|
48724
48725
|
var _a;
|
|
48725
|
-
setHover(__assign(__assign({}, initialValues), (_a = {}, _a[
|
|
48726
|
-
}, [
|
|
48726
|
+
setHover(__assign(__assign({}, initialValues), (_a = {}, _a[defaultTab] = true, _a)));
|
|
48727
|
+
}, [defaultTab]);
|
|
48727
48728
|
return (React__default.createElement("div", { className: enableClick ? 'grid-container' : 'grid-container disable-click', tabIndex: 0, role: 'button', style: __assign({ borderColor: (_c = (_b = statusMap[status]) === null || _b === void 0 ? void 0 : _b.color) !== null && _c !== void 0 ? _c : '#d0d7de' }, style), onClick: function () {
|
|
48728
48729
|
if (run && enableClick) {
|
|
48729
48730
|
window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id);
|
|
@@ -48741,34 +48742,40 @@ var RunCard = function (_a) {
|
|
|
48741
48742
|
React__default.createElement(InfoCircleOutlined$1, { className: 'link', onClick: function (e) {
|
|
48742
48743
|
e.stopPropagation();
|
|
48743
48744
|
getValue(RunTabs.details);
|
|
48744
|
-
|
|
48745
|
+
toggleHover(e, RunTabs.workspace, false);
|
|
48746
|
+
toggleHover(e, RunTabs.details, true);
|
|
48747
|
+
toggleHover(e, RunTabs.debug, false);
|
|
48745
48748
|
}, onMouseOver: function (e) {
|
|
48746
48749
|
toggleHover(e, 'detailsOver', true);
|
|
48747
48750
|
}, onMouseLeave: function (e) {
|
|
48748
48751
|
toggleHover(e, 'detailsOver', false);
|
|
48749
48752
|
}, style: { marginRight: '0.75rem',
|
|
48750
|
-
color: "".concat((hover.details || hover.detailsOver) ||
|
|
48753
|
+
color: "".concat((hover.details || hover.detailsOver) || defaultTab === RunTabs.details
|
|
48751
48754
|
? '#40a9ff' : '#000') } }),
|
|
48752
48755
|
React__default.createElement(FolderOutlined$1, { className: 'link', onClick: function (e) {
|
|
48753
48756
|
e.stopPropagation();
|
|
48754
48757
|
getValue(RunTabs.workspace);
|
|
48755
|
-
|
|
48758
|
+
toggleHover(e, RunTabs.workspace, true);
|
|
48759
|
+
toggleHover(e, RunTabs.details, false);
|
|
48760
|
+
toggleHover(e, RunTabs.debug, false);
|
|
48756
48761
|
}, onMouseOver: function (e) {
|
|
48757
48762
|
toggleHover(e, 'workspaceOver', true);
|
|
48758
48763
|
}, onMouseLeave: function (e) {
|
|
48759
48764
|
toggleHover(e, 'workspaceOver', false);
|
|
48760
48765
|
}, style: { marginRight: '0.75rem',
|
|
48761
|
-
color: "".concat((hover.workspace || hover.workspaceOver) ||
|
|
48766
|
+
color: "".concat((hover.workspace || hover.workspaceOver) || defaultTab === RunTabs.workspace
|
|
48762
48767
|
? '#40a9ff' : '#000') } }),
|
|
48763
48768
|
React__default.createElement(PartitionOutlined$1, { className: 'link', onClick: function (e) {
|
|
48764
48769
|
e.stopPropagation();
|
|
48765
48770
|
getValue(RunTabs.debug);
|
|
48766
|
-
|
|
48771
|
+
toggleHover(e, RunTabs.workspace, false);
|
|
48772
|
+
toggleHover(e, RunTabs.details, false);
|
|
48773
|
+
toggleHover(e, RunTabs.debug, true);
|
|
48767
48774
|
}, onMouseOver: function (e) {
|
|
48768
48775
|
toggleHover(e, 'debugOver', true);
|
|
48769
48776
|
}, onMouseLeave: function (e) {
|
|
48770
48777
|
toggleHover(e, 'debugOver', false);
|
|
48771
|
-
}, style: { color: "".concat((hover.debug || hover.debugOver) ||
|
|
48778
|
+
}, style: { color: "".concat((hover.debug || hover.debugOver) || defaultTab === RunTabs.debug
|
|
48772
48779
|
? '#40a9ff' : '#000') } }))),
|
|
48773
48780
|
React__default.createElement("div", { className: 'item3' },
|
|
48774
48781
|
React__default.createElement("div", null,
|