@naptics/vue-collection 0.2.9 → 0.2.10

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.
@@ -39,6 +39,10 @@ export type TableRow = Record<string, TableItem> & {
39
39
  * merged together in one cell with the button to toggle the details.
40
40
  */
41
41
  action?: TableItem;
42
+ /**
43
+ * This classes will be applied to the whole table row.
44
+ */
45
+ rowClass?: string;
42
46
  };
43
47
  export declare const nTableProps: {
44
48
  /**
@@ -89,7 +89,7 @@ const Component = createComponent('NTable', nTableProps, props => {
89
89
  }, [buildItem(heading.label)]))])]), props.items.length > 0 && props.items.map((item, itemIndex) => _createVNode(_Fragment, {
90
90
  "key": itemIndex
91
91
  }, [_createVNode("tbody", {
92
- "class": ['border-default-200 border-t', itemIndex % 2 === 0 ? 'bg-white' : 'bg-default-50']
92
+ "class": ['border-default-200 border-t', itemIndex % 2 === 0 ? 'bg-white' : 'bg-default-50', item.rowClass]
93
93
  }, [_createVNode("tr", null, [headings.value.map(heading => _createVNode("td", {
94
94
  "key": itemIndex + '-' + heading.key,
95
95
  "class": "p-4"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@naptics/vue-collection",
3
3
  "author": "Timo Siegenthaler",
4
4
  "description": "Vue Collection is a collection of styled and fully functional Vue components which can easily be integrated into our projects.",
5
- "version": "0.2.9",
5
+ "version": "0.2.10",
6
6
  "main": "./index.js",
7
7
  "repository": {
8
8
  "type": "git",