@iamproperty/components 2.5.1 → 2.6.2
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/assets/sass/_corefiles.scss +0 -1
- package/assets/sass/{foundations/fonts.scss → _fonts.scss} +0 -0
- package/assets/sass/_functions/mixins.scss +10 -0
- package/assets/sass/_print.scss +60 -0
- package/assets/sass/components/nav.scss +1 -1
- package/assets/sass/components/stepper.scss +5 -4
- package/assets/sass/core.scss +3 -1
- package/assets/sass/elements/tables.scss +16 -6
- package/assets/sass/elements/type.scss +1 -1
- package/assets/sass/foundations/icons.scss +1 -1
- package/assets/sass/foundations/reboot.scss +4 -0
- package/assets/sass/foundations/root.scss +26 -24
- package/assets/sass/main.scss +2 -0
- package/dist/components.common.js +30 -26
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/components.umd.js +30 -26
- package/dist/components.umd.js.map +1 -1
- package/dist/components.umd.min.js +1 -1
- package/dist/components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/Table/README.md +1 -0
- package/src/elements/Table/Table.vue +5 -1
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| show | number | - | Limits the number of results shown and will create pagination controls. |
|
|
16
16
|
| page | number | - | Starting page for the pagination. |
|
|
17
17
|
| reorder | bool | - | Create an order column and allow for the table rows to be reordered |
|
|
18
|
+
| headingclass | string | - | Add a class to the table row within the thead, used to add a background or change test colour. |
|
|
18
19
|
|
|
19
20
|
### Class modifiers
|
|
20
21
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="table__wrapper" ref="wrapper" :data-sortby="sortby" :data-sort="sort" :data-show="show" :data-page="page" :data-reorder="reorder">
|
|
3
3
|
<table>
|
|
4
4
|
<thead v-if="fields">
|
|
5
|
-
<tr>
|
|
5
|
+
<tr :class="headingclass">
|
|
6
6
|
<th v-for="(field) in fields" :key="field.key" :data-sortable="field.sortable" :data-filterable="field.filterable">{{ cellHeading(field.key) }}</th>
|
|
7
7
|
</tr>
|
|
8
8
|
</thead>
|
|
@@ -43,6 +43,10 @@ export default {
|
|
|
43
43
|
type: String,
|
|
44
44
|
required: false
|
|
45
45
|
},
|
|
46
|
+
headingclass: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
46
50
|
items: {
|
|
47
51
|
type: Array,
|
|
48
52
|
required: true
|