| 1 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 2 |
/* eslint-disable no-console */ |
| 3 |
import { EditableTextCell } from '../components/Table'; |
| 4 |
export const columns = [ |
| 5 |
{ title: 'Header cell' }, |
| 6 |
'Branches', |
| 7 |
{ title: 'Pull requests' }, |
| 8 |
'Workspaces', |
| 9 |
{ |
| 10 |
title: 'Last Commit' |
| 11 |
} |
| 12 |
]; |
| 13 |
export const rows = [ |
| 14 |
{ |
| 15 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 16 |
}, |
| 17 |
{ |
| 18 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 19 |
}, |
| 20 |
{ |
| 21 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 22 |
}, |
| 23 |
{ |
| 24 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 25 |
}, |
| 26 |
{ |
| 27 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 28 |
}, |
| 29 |
{ |
| 30 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 31 |
}, |
| 32 |
{ |
| 33 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 34 |
}, |
| 35 |
{ |
| 36 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 37 |
}, |
| 38 |
{ |
| 39 |
cells: ['one', 'two', 'three', 'four', 'five'] |
| 40 |
} |
| 41 |
]; |
| 42 |
export const editableColumns = [ |
| 43 |
'Text input col 1', |
| 44 |
'Disabled text input col 2', |
| 45 |
'Text input col 3', |
| 46 |
'Text input col 4' |
| 47 |
]; |
| 48 |
export const editableRows = [ |
| 49 |
{ |
| 50 |
isEditable: true, |
| 51 |
cells: [ |
| 52 |
{ |
| 53 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 1 cell 1 content" })), |
| 54 |
props: { |
| 55 |
value: 'Row 1 cell 1 content', |
| 56 |
name: 'uniqueIdRow1Cell1' |
| 57 |
} |
| 58 |
}, |
| 59 |
{ |
| 60 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, isDisabled: true, handleTextInputChange: () => { }, inputAriaLabel: "Row 1 cell 2 content" })), |
| 61 |
props: { |
| 62 |
value: 'Row 1 cell 2, disabled content', |
| 63 |
name: 'uniqueIdRow1Cell2' |
| 64 |
} |
| 65 |
}, |
| 66 |
{ |
| 67 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 1 cell 3 content" })), |
| 68 |
props: { |
| 69 |
value: 'Row 1 cell 3 content', |
| 70 |
name: 'uniqueIdRow1Cell3' |
| 71 |
} |
| 72 |
}, |
| 73 |
{ |
| 74 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 1 cell 4 content" })), |
| 75 |
props: { |
| 76 |
value: 'Row 1 cell 4 content', |
| 77 |
name: 'uniqueIdRow1Cell4' |
| 78 |
} |
| 79 |
} |
| 80 |
] |
| 81 |
}, |
| 82 |
{ |
| 83 |
isEditable: false, |
| 84 |
cells: [ |
| 85 |
{ |
| 86 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 1 cell 1 content" })), |
| 87 |
props: { |
| 88 |
value: 'Row 2 cell 1 content', |
| 89 |
name: 'uniqueIdRow2Cell1' |
| 90 |
} |
| 91 |
}, |
| 92 |
{ |
| 93 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, isDisabled: true, handleTextInputChange: () => { }, inputAriaLabel: "Row 2 cell 2 content" })), |
| 94 |
props: { |
| 95 |
value: 'Row 2 cell 2, disabled content', |
| 96 |
name: 'uniqueIdRow2Cell2' |
| 97 |
} |
| 98 |
}, |
| 99 |
{ |
| 100 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 2 cell 3 content" })), |
| 101 |
props: { |
| 102 |
value: 'Row 2 cell 3 content', |
| 103 |
name: 'uniqueIdRow2Cell3' |
| 104 |
} |
| 105 |
}, |
| 106 |
{ |
| 107 |
title: (value, rowIndex, cellIndex, props) => (_jsx(EditableTextCell, { value: value, rowIndex: rowIndex, cellIndex: cellIndex, props: props, handleTextInputChange: () => { }, inputAriaLabel: "Row 2 cell 4 content" })), |
| 108 |
props: { |
| 109 |
value: 'Row 2 cell 4 content', |
| 110 |
name: 'uniqueIdRow2Cell4' |
| 111 |
} |
| 112 |
} |
| 113 |
] |
| 114 |
} |
| 115 |
]; |
| 116 |
export const actions = [ |
| 117 |
{ |
| 118 |
title: 'Some action', |
| 119 |
onClick: (event, rowId) => |
| 120 |
// tslint:disable-next-line:no-console |
| 121 |
console.log('clicked on Some action, on row: ', rowId) |
| 122 |
}, |
| 123 |
{ |
| 124 |
title: _jsx("div", { children: "Another action" }), |
| 125 |
onClick: (event, rowId) => |
| 126 |
// tslint:disable-next-line:no-console |
| 127 |
console.log('clicked on Another action, on row: ', rowId) |
| 128 |
}, |
| 129 |
{ |
| 130 |
isSeparator: true, |
| 131 |
onClick: null |
| 132 |
}, |
| 133 |
{ |
| 134 |
title: 'Third action', |
| 135 |
onClick: (event, rowId) => |
| 136 |
// tslint:disable-next-line:no-console |
| 137 |
console.log('clicked on Third action, on row: ', rowId) |
| 138 |
} |
| 139 |
]; |
| 140 |
//# sourceMappingURL=data-sets.js.map |