pollination-react-io 1.41.7 → 1.42.0

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RunRowProps } from './RunTable.types';
3
+ import './RunTable.scss';
4
+ declare const RunRow: React.FC<RunRowProps>;
5
+ export default RunRow;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RunTableProps } from './RunTable.types';
3
+ import './RunTable.scss';
4
+ declare const RunTable: React.FC<RunTableProps>;
5
+ export default RunTable;
@@ -0,0 +1,26 @@
1
+ import { CloudJob, Run, UserPrivate } from '@pollination-solutions/pollination-sdk';
2
+ import { APIClient } from '../hooks';
3
+ import { CSSProperties } from 'react';
4
+ import { FileCardProps } from '../RunDetails/Cards/FileCard';
5
+ import { FolderCardProps } from '../RunDetails/Cards/FolderCard';
6
+ export interface RunRowProps {
7
+ projectOwner: string;
8
+ projectName: string;
9
+ run: Run;
10
+ index: number;
11
+ client: APIClient;
12
+ authUser?: UserPrivate;
13
+ style?: CSSProperties;
14
+ getFileCard?: (card: FileCardProps) => any;
15
+ getFolderCard?: (card: FolderCardProps) => any;
16
+ }
17
+ export interface RunTableProps {
18
+ projectOwner: string;
19
+ projectName: string;
20
+ study: CloudJob;
21
+ client: APIClient;
22
+ authUser?: UserPrivate;
23
+ style?: CSSProperties;
24
+ getFileCard?: (card: FileCardProps) => any;
25
+ getFolderCard?: (card: FolderCardProps) => any;
26
+ }
@@ -48830,7 +48830,10 @@ var ParamCard = function (_a) {
48830
48830
  React__default.createElement("span", { style: { margin: '0 8px 0 0' } }, getParamIcon(type)),
48831
48831
  label),
48832
48832
  React__default.createElement("div", { style: { textAlign: 'right' } },
48833
- React__default.createElement("button", { style: { all: 'unset', cursor: 'pointer', margin: '0 0 0 8px' }, onMouseOver: function () { return setOver(true); }, onMouseLeave: function () { return setOver(false); }, onClick: function () { return setOpen(function (prev) { return !prev; }); } },
48833
+ React__default.createElement("button", { style: { all: 'unset', cursor: 'pointer', margin: '0 0 0 8px' }, onMouseOver: function () { return setOver(true); }, onMouseLeave: function () { return setOver(false); }, onClick: function (event) {
48834
+ event.stopPropagation();
48835
+ setOpen(function (prev) { return !prev; });
48836
+ } },
48834
48837
  React__default.createElement(InfoCircle$1, { size: 14, style: over ? { color: '#40a9ff' } : {} })))),
48835
48838
  React__default.createElement("hr", null),
48836
48839
  React__default.createElement("div", { className: 'value-param' }, value),
@@ -48912,7 +48915,10 @@ var FileCard = function (_a) {
48912
48915
  var label = _a.label, path = _a.path, file = _a.file, description = _a.description, onClicked = _a.onClicked;
48913
48916
  var _d = useState(false), open = _d[0], setOpen = _d[1];
48914
48917
  var _e = useState(false), over = _e[0], setOver = _e[1];
48915
- return React__default.createElement("div", { className: 'card-param card-folder', tabIndex: 0, role: 'button', key: label, onClick: function () { return onClicked({ label: label, path: path, file: file, description: description }); } },
48918
+ return React__default.createElement("div", { className: 'card-param card-folder', tabIndex: 0, role: 'button', key: label, onClick: function (event) {
48919
+ event.stopPropagation();
48920
+ onClicked({ label: label, path: path, file: file, description: description });
48921
+ } },
48916
48922
  React__default.createElement("div", { className: 'title-param' },
48917
48923
  React__default.createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } },
48918
48924
  React__default.createElement("span", { style: { margin: '0 8px 0 0' } }, getFileIcon(18, ((_c = (_b = path.split('/')
@@ -48931,7 +48937,10 @@ var FolderCard = function (_a) {
48931
48937
  var label = _a.label, path = _a.path, description = _a.description, onClicked = _a.onClicked;
48932
48938
  var _b = useState(false), open = _b[0], setOpen = _b[1];
48933
48939
  var _c = useState(false), over = _c[0], setOver = _c[1];
48934
- return React__default.createElement("div", { className: 'card-param card-folder', tabIndex: 0, role: 'button', key: label, onClick: function () { return onClicked({ label: label, path: path, description: description }); } },
48940
+ return React__default.createElement("div", { className: 'card-param card-folder', tabIndex: 0, role: 'button', key: label, onClick: function (event) {
48941
+ event.stopPropagation();
48942
+ onClicked({ label: label, path: path, description: description });
48943
+ } },
48935
48944
  React__default.createElement("div", { className: 'title-param' },
48936
48945
  React__default.createElement("div", { style: { float: 'left', margin: '0 8px 0 0' } },
48937
48946
  React__default.createElement("span", { style: { margin: '0 8px 0 0' } },