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