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