@worksafevictoria/wcl7.5 1.7.0 → 1.7.1
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/package.json +1 -1
- package/src/components/Common/CardGridItem/index.vue +108 -139
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +45 -44
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +28 -30
- package/src/components/Paragraphs/Map/index.vue +77 -59
- package/src/components/Paragraphs/Map/lga-map.json +33462 -0
- package/src/components/Paragraphs/TabulatedData/index.vue +27 -36
- package/src/components/SubComponents/ResourceGroup/index.vue +158 -184
- package/src/components/SubComponents/ResourceGroup/styles.scss +2 -0
- package/src/components/SubComponents/Search/index.vue +1 -1
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
:borderless="false"
|
|
17
17
|
:responsive="!isFluid"
|
|
18
18
|
:stacked="!isFluid ? 'sm' : false"
|
|
19
|
+
:must-sort="true"
|
|
19
20
|
>
|
|
20
21
|
<template #head()="data">
|
|
21
22
|
<span
|
|
@@ -26,23 +27,17 @@
|
|
|
26
27
|
>
|
|
27
28
|
{{ data.label }}
|
|
28
29
|
<span class="sortImg" v-if="data.field.sortable">
|
|
29
|
-
<img
|
|
30
|
-
v-if="data.field.thAttr['aria-sort'] === 'none'"
|
|
31
|
-
:src="sortIconNeutral"
|
|
32
|
-
alt="image indicating no sort"
|
|
33
|
-
style="width: 0.55rem; height: 0.9rem"
|
|
34
|
-
/>
|
|
35
30
|
<img
|
|
36
31
|
v-if="data.field.thAttr['aria-sort'] === 'ascending'"
|
|
37
|
-
:src="
|
|
32
|
+
:src="CaretUp"
|
|
38
33
|
alt="image indicating ascending sort"
|
|
39
|
-
|
|
34
|
+
class="iconAsc"
|
|
40
35
|
/>
|
|
41
36
|
<img
|
|
42
37
|
v-else-if="data.field.thAttr['aria-sort'] === 'descending'"
|
|
43
|
-
:src="
|
|
38
|
+
:src="CaretDown"
|
|
44
39
|
alt="image indicating descending sort"
|
|
45
|
-
|
|
40
|
+
class="iconDesc"
|
|
46
41
|
/>
|
|
47
42
|
</span>
|
|
48
43
|
</span>
|
|
@@ -56,12 +51,14 @@
|
|
|
56
51
|
</template>
|
|
57
52
|
|
|
58
53
|
<script>
|
|
59
|
-
import SectionGroup from
|
|
60
|
-
import RichText from
|
|
61
|
-
import { BTable } from
|
|
54
|
+
import SectionGroup from "./../../Containers/SectionGroup/index.vue";
|
|
55
|
+
import RichText from "../../Paragraphs/RichText/index.vue";
|
|
56
|
+
import { BTable } from "bootstrap-vue-next";
|
|
57
|
+
import CaretUp from "./../../../assets/icons/caret-up.svg?url";
|
|
58
|
+
import CaretDown from "./../../../assets/icons/caret-down.svg?url";
|
|
62
59
|
|
|
63
60
|
export default {
|
|
64
|
-
name:
|
|
61
|
+
name: "TabulatedData",
|
|
65
62
|
components: { SectionGroup, RichText, BTable },
|
|
66
63
|
props: {
|
|
67
64
|
items: {
|
|
@@ -82,7 +79,7 @@ export default {
|
|
|
82
79
|
},
|
|
83
80
|
caption: {
|
|
84
81
|
type: String,
|
|
85
|
-
default:
|
|
82
|
+
default: "",
|
|
86
83
|
required: false,
|
|
87
84
|
},
|
|
88
85
|
sortBy: {
|
|
@@ -93,42 +90,33 @@ export default {
|
|
|
93
90
|
},
|
|
94
91
|
data() {
|
|
95
92
|
return {
|
|
96
|
-
newSortBy: this.sortBy ? [{ key: this.sortBy, order:
|
|
93
|
+
newSortBy: this.sortBy ? [{ key: this.sortBy, order: "asc" }] : [],
|
|
97
94
|
//sortDesc: false,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' view-box='0 0 101 101' preserveAspectRatio='none'%3e%3cpath fill='black' d='M51 1l25 23 24 22H1l25-22z'/%3e%3cpath fill='black' opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3e%3c/svg%3e",
|
|
102
|
-
sortIconAsc:
|
|
103
|
-
"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' view-box='0 0 101 101' preserveAspectRatio='none'%3e%3cpath fill='black' opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3e%3cpath fill='black' d='M51 101l25-23 24-22H1l25 22z'/%3e%3c/svg%3e",
|
|
104
|
-
}
|
|
95
|
+
CaretUp,
|
|
96
|
+
CaretDown,
|
|
97
|
+
};
|
|
105
98
|
},
|
|
106
99
|
computed: {
|
|
107
100
|
isFluid() {
|
|
108
|
-
return this.isFixedWidth
|
|
101
|
+
return this.isFixedWidth;
|
|
109
102
|
},
|
|
110
103
|
},
|
|
111
104
|
methods: {
|
|
112
105
|
accessSort(fieldVar) {
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
fieldVar.thAttr['aria-sort'] === 'descending'
|
|
117
|
-
) {
|
|
118
|
-
this.newSortBy = [{ key: fieldVar.key, order: 'asc' }]
|
|
119
|
-
//this.sortDesc = false
|
|
106
|
+
const currentSort = fieldVar.thAttr["aria-sort"];
|
|
107
|
+
if (currentSort === "ascending") {
|
|
108
|
+
this.newSortBy = [{ key: fieldVar.key, order: "desc" }];
|
|
120
109
|
} else {
|
|
121
|
-
this.newSortBy = [{ key: fieldVar.key, order:
|
|
122
|
-
//this.sortDesc = true
|
|
110
|
+
this.newSortBy = [{ key: fieldVar.key, order: "asc" }];
|
|
123
111
|
}
|
|
124
112
|
},
|
|
125
113
|
},
|
|
126
|
-
}
|
|
114
|
+
};
|
|
127
115
|
</script>
|
|
128
116
|
|
|
129
117
|
<style lang="scss">
|
|
130
118
|
.paragraph--tabulated-data {
|
|
131
|
-
@import
|
|
119
|
+
@import "../../../includes/scss/all";
|
|
132
120
|
|
|
133
121
|
.section-group__block {
|
|
134
122
|
margin-top: -32px;
|
|
@@ -146,6 +134,7 @@ export default {
|
|
|
146
134
|
.table td {
|
|
147
135
|
margin: 1rem;
|
|
148
136
|
vertical-align: middle;
|
|
137
|
+
padding: 12px;
|
|
149
138
|
@media screen and (max-width: 540px) {
|
|
150
139
|
margin: 0.5rem;
|
|
151
140
|
}
|
|
@@ -155,6 +144,8 @@ export default {
|
|
|
155
144
|
display: flex;
|
|
156
145
|
flex-direction: row;
|
|
157
146
|
flex-wrap: nowrap;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
158
149
|
}
|
|
159
150
|
|
|
160
151
|
.rtl {
|
|
@@ -163,7 +154,7 @@ export default {
|
|
|
163
154
|
|
|
164
155
|
.sortImg {
|
|
165
156
|
vertical-align: middle;
|
|
166
|
-
margin-left:
|
|
157
|
+
margin-left: auto;
|
|
167
158
|
}
|
|
168
159
|
|
|
169
160
|
.b-table-sortable-column svg {
|