pollination-react-io 1.41.0 → 1.41.1
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/Cards/RunCard.types.d.ts +6 -0
- package/build/index.esm.js +27 -17
- package/build/index.esm.js.map +1 -1
- package/build/index.js +27 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -48585,7 +48585,7 @@ var StudyCard = function (_a) {
|
|
|
48585
48585
|
React__default["default"].createElement("div", null,
|
|
48586
48586
|
React__default["default"].createElement(InfoCircleOutlined$1, { className: 'link', onClick: function (e) {
|
|
48587
48587
|
e.stopPropagation();
|
|
48588
|
-
document.location = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id, "?tab=
|
|
48588
|
+
document.location = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id, "?tab=details");
|
|
48589
48589
|
}, onMouseOver: function (e) {
|
|
48590
48590
|
toggleHover(e, 'detailsOver', true);
|
|
48591
48591
|
}, onMouseLeave: function (e) {
|
|
@@ -48658,6 +48658,13 @@ var StudyCard = function (_a) {
|
|
|
48658
48658
|
React__default["default"].createElement("div", { className: 'item7' }, study ? study.spec.description : '--'))));
|
|
48659
48659
|
};
|
|
48660
48660
|
|
|
48661
|
+
var RunTabs;
|
|
48662
|
+
(function (RunTabs) {
|
|
48663
|
+
RunTabs["details"] = "details";
|
|
48664
|
+
RunTabs["debug"] = "debug";
|
|
48665
|
+
RunTabs["workspace"] = "workspace";
|
|
48666
|
+
})(RunTabs || (RunTabs = {}));
|
|
48667
|
+
|
|
48661
48668
|
dayjs_min.extend(duration);
|
|
48662
48669
|
dayjs_min.extend(utc);
|
|
48663
48670
|
var formatDuration = function (duration) {
|
|
@@ -48665,7 +48672,7 @@ var formatDuration = function (duration) {
|
|
|
48665
48672
|
};
|
|
48666
48673
|
var RunCard = function (_a) {
|
|
48667
48674
|
var _b, _c, _d, _e;
|
|
48668
|
-
var projectName = _a.projectName, projectOwner = _a.projectOwner, _run = _a.run, style = _a.style, authUser = _a.authUser, client = _a.client, enableClick = _a.enableClick, getValue = _a.getValue;
|
|
48675
|
+
var projectName = _a.projectName, projectOwner = _a.projectOwner, _run = _a.run, style = _a.style, authUser = _a.authUser, client = _a.client, enableClick = _a.enableClick, getValue = _a.getValue, defaultTab = _a.defaultTab;
|
|
48669
48676
|
/*
|
|
48670
48677
|
* Fetch run
|
|
48671
48678
|
*/
|
|
@@ -48752,39 +48759,42 @@ var RunCard = function (_a) {
|
|
|
48752
48759
|
React__default["default"].createElement("div", null,
|
|
48753
48760
|
React__default["default"].createElement(InfoCircleOutlined$1, { className: 'link', onClick: function (e) {
|
|
48754
48761
|
e.stopPropagation();
|
|
48755
|
-
getValue(
|
|
48756
|
-
toggleHover(e,
|
|
48757
|
-
toggleHover(e,
|
|
48758
|
-
toggleHover(e,
|
|
48762
|
+
getValue(RunTabs.details);
|
|
48763
|
+
toggleHover(e, RunTabs.workspace, false);
|
|
48764
|
+
toggleHover(e, RunTabs.details, true);
|
|
48765
|
+
toggleHover(e, RunTabs.debug, false);
|
|
48759
48766
|
}, onMouseOver: function (e) {
|
|
48760
48767
|
toggleHover(e, 'detailsOver', true);
|
|
48761
48768
|
}, onMouseLeave: function (e) {
|
|
48762
48769
|
toggleHover(e, 'detailsOver', false);
|
|
48763
48770
|
}, style: { marginRight: '0.75rem',
|
|
48764
|
-
color: "".concat((hover.details || hover.detailsOver)
|
|
48771
|
+
color: "".concat((hover.details || hover.detailsOver) || defaultTab === RunTabs.details
|
|
48772
|
+
? '#40a9ff' : '#000') } }),
|
|
48765
48773
|
React__default["default"].createElement(FolderOutlined$1, { className: 'link', onClick: function (e) {
|
|
48766
48774
|
e.stopPropagation();
|
|
48767
|
-
getValue(
|
|
48768
|
-
toggleHover(e,
|
|
48769
|
-
toggleHover(e,
|
|
48770
|
-
toggleHover(e,
|
|
48775
|
+
getValue(RunTabs.workspace);
|
|
48776
|
+
toggleHover(e, RunTabs.workspace, true);
|
|
48777
|
+
toggleHover(e, RunTabs.details, false);
|
|
48778
|
+
toggleHover(e, RunTabs.debug, false);
|
|
48771
48779
|
}, onMouseOver: function (e) {
|
|
48772
48780
|
toggleHover(e, 'workspaceOver', true);
|
|
48773
48781
|
}, onMouseLeave: function (e) {
|
|
48774
48782
|
toggleHover(e, 'workspaceOver', false);
|
|
48775
48783
|
}, style: { marginRight: '0.75rem',
|
|
48776
|
-
color: "".concat((hover.workspace || hover.workspaceOver)
|
|
48784
|
+
color: "".concat((hover.workspace || hover.workspaceOver) || defaultTab === RunTabs.workspace
|
|
48785
|
+
? '#40a9ff' : '#000') } }),
|
|
48777
48786
|
React__default["default"].createElement(PartitionOutlined$1, { className: 'link', onClick: function (e) {
|
|
48778
48787
|
e.stopPropagation();
|
|
48779
|
-
getValue(
|
|
48780
|
-
toggleHover(e,
|
|
48781
|
-
toggleHover(e,
|
|
48782
|
-
toggleHover(e,
|
|
48788
|
+
getValue(RunTabs.debug);
|
|
48789
|
+
toggleHover(e, RunTabs.workspace, false);
|
|
48790
|
+
toggleHover(e, RunTabs.details, false);
|
|
48791
|
+
toggleHover(e, RunTabs.debug, true);
|
|
48783
48792
|
}, onMouseOver: function (e) {
|
|
48784
48793
|
toggleHover(e, 'debugOver', true);
|
|
48785
48794
|
}, onMouseLeave: function (e) {
|
|
48786
48795
|
toggleHover(e, 'debugOver', false);
|
|
48787
|
-
}, style: { color: "".concat((hover.debug || hover.debugOver)
|
|
48796
|
+
}, style: { color: "".concat((hover.debug || hover.debugOver) || defaultTab === RunTabs.debug
|
|
48797
|
+
? '#40a9ff' : '#000') } }))),
|
|
48788
48798
|
React__default["default"].createElement("div", { className: 'item3' },
|
|
48789
48799
|
React__default["default"].createElement("div", null,
|
|
48790
48800
|
study ? (_d = study.spec.name) !== null && _d !== void 0 ? _d : "Study: ".concat(study.id) : '--',
|