@worksafevictoria/wcl7.5 1.10.0 → 1.12.0
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/assets/styles/generated-icons.scss +46 -46
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +40 -46
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
- package/src/components/Common/CardGridItem/index.vue +153 -115
- package/src/components/Containers/Carousel/index.stories.js +6 -4
- package/src/components/Containers/Carousel/index.vue +131 -120
- package/src/components/Containers/HomepageHeader/index.stories.js +1 -1
- package/src/components/Containers/HomepageHeaderNew/index.stories.js +3 -15
- package/src/components/Containers/HomepageHeaderNew/index.vue +3 -7
- package/src/components/Global/AppFooter/index.vue +29 -19
- package/src/components/Global/AppHeader/ModalSearch/index.vue +7 -1
- package/src/components/Global/AppHeader/index.stories.js +2 -2
- package/src/components/Global/AppHeaderNew/ModalSearch/index.vue +21 -17
- package/src/components/Global/AppHeaderNew/includes.scss +4 -2
- package/src/components/Global/AppHeaderNew/index.stories.js +2 -2
- package/src/components/Global/AppHeaderNew/index.vue +126 -386
- package/src/components/Global/AppHeaderNew/mobile.scss +41 -6
- package/src/components/Global/AppHeaderNew/styles.scss +57 -45
- package/src/components/Global/BackToTop/index.vue +16 -16
- package/src/components/Global/ContrastMode/index.stories.js +1 -1
- package/src/components/Global/DirectoryFilters/index.vue +24 -18
- package/src/components/Global/HeroHeader/index.vue +62 -73
- package/src/components/Global/SocialShare/index.vue +114 -129
- package/src/components/Global/Strip/index.vue +43 -39
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +22 -24
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +15 -15
- package/src/components/Paragraphs/Calculator/CardContainer/index.vue +74 -75
- package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +31 -39
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +104 -107
- package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +129 -64
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +112 -66
- package/src/components/Paragraphs/Statistics/index.vue +9 -9
- package/src/components/Paragraphs/Tabs/index.vue +4 -4
- package/src/components/Paragraphs/TabulatedData/index.vue +27 -20
- package/src/components/SubComponents/CtaButton/index.vue +47 -44
- package/src/components/SubComponents/Icon/README.md +2 -2
- package/src/components/SubComponents/Icon/example.js +1 -0
- package/src/components/SubComponents/Icon/index.stories.js +1 -1
- package/src/components/SubComponents/Icon/index.vue +47 -47
- package/src/components/SubComponents/ResourceGroup/cardbody.vue +18 -16
- package/src/components/SubComponents/VideoThumbnail/index.vue +8 -6
- package/src/mock/carousel-items.js +46 -81
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/>
|
|
13
13
|
|
|
14
14
|
<div class="ffh-result__risk--info">
|
|
15
|
-
<img :src="riskIcon" class="ffh-result__risk--info--img" />
|
|
15
|
+
<img :src="riskIcon" class="ffh-result__risk--info--img" alt="risk icon" />
|
|
16
16
|
<h3 class="ffh-result__risk--info--title">
|
|
17
17
|
{{ riskTitle }}
|
|
18
18
|
</h3>
|
|
@@ -42,83 +42,75 @@
|
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
44
|
<script>
|
|
45
|
-
import Container from
|
|
46
|
-
import Column from
|
|
47
|
-
import Row from
|
|
48
|
-
import CtaButton from
|
|
49
|
-
import RichText from
|
|
50
|
-
import CaretLeft from
|
|
45
|
+
import Container from "../../../Containers/Container/index.vue";
|
|
46
|
+
import Column from "../../../Containers/Column/index.vue";
|
|
47
|
+
import Row from "../../../Containers/Row/index.vue";
|
|
48
|
+
import CtaButton from "../../../SubComponents/CtaButton/index.vue";
|
|
49
|
+
import RichText from "../../../Paragraphs/RichText/index.vue";
|
|
50
|
+
import CaretLeft from "../../../../assets/icons/caret-left.svg?url";
|
|
51
51
|
|
|
52
52
|
export default {
|
|
53
|
-
name:
|
|
53
|
+
name: "RiskLevel",
|
|
54
54
|
components: { Column, Row, Container, CtaButton, RichText },
|
|
55
55
|
props: {
|
|
56
56
|
riskPoints: {
|
|
57
57
|
type: Array,
|
|
58
|
-
default: () => {}
|
|
59
|
-
}
|
|
58
|
+
default: () => {},
|
|
59
|
+
},
|
|
60
60
|
},
|
|
61
61
|
data() {
|
|
62
62
|
return {
|
|
63
63
|
CaretLeft,
|
|
64
|
-
headerTitle:
|
|
64
|
+
headerTitle: "Your results",
|
|
65
65
|
headerMessage:
|
|
66
|
-
|
|
67
|
-
}
|
|
66
|
+
"These are you results based on the weight of the object being dropped and how high in meters you are up.",
|
|
67
|
+
};
|
|
68
68
|
},
|
|
69
69
|
computed: {
|
|
70
70
|
riskIcon() {
|
|
71
71
|
if (this.riskPoints && this.riskPoints[0]?.risksResult?.icon) {
|
|
72
|
-
return `${this.riskPoints[0].risksResult.icon}
|
|
72
|
+
return `${this.riskPoints[0].risksResult.icon}`;
|
|
73
73
|
}
|
|
74
|
-
return
|
|
74
|
+
return "";
|
|
75
75
|
},
|
|
76
76
|
riskTitle() {
|
|
77
77
|
if (this.riskPoints && this.riskPoints[0]?.risksResult?.title) {
|
|
78
|
-
return this.riskPoints[0].risksResult.title
|
|
78
|
+
return this.riskPoints[0].risksResult.title;
|
|
79
79
|
}
|
|
80
|
-
return
|
|
80
|
+
return "";
|
|
81
81
|
},
|
|
82
82
|
riskMessge() {
|
|
83
83
|
if (this.riskPoints && this.riskPoints[0]?.risksResult?.message) {
|
|
84
|
-
return this.riskPoints[0].risksResult.message
|
|
84
|
+
return this.riskPoints[0].risksResult.message;
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return "";
|
|
87
87
|
},
|
|
88
88
|
speedLevel() {
|
|
89
89
|
let speedImpactMS =
|
|
90
|
-
this.riskPoints && this.riskPoints[0]
|
|
91
|
-
? this.riskPoints[0].speedImpactMS
|
|
92
|
-
: ''
|
|
90
|
+
this.riskPoints && this.riskPoints[0] ? this.riskPoints[0].speedImpactMS : "";
|
|
93
91
|
|
|
94
92
|
let speedImpactKmH =
|
|
95
|
-
this.riskPoints && this.riskPoints[0]
|
|
96
|
-
? this.riskPoints[0].speedImpactKmH
|
|
97
|
-
: ''
|
|
93
|
+
this.riskPoints && this.riskPoints[0] ? this.riskPoints[0].speedImpactKmH : "";
|
|
98
94
|
|
|
99
|
-
return `Speed at impact: ${speedImpactMS} metres per second and ${speedImpactKmH} kilometres per hour
|
|
95
|
+
return `Speed at impact: ${speedImpactMS} metres per second and ${speedImpactKmH} kilometres per hour`;
|
|
100
96
|
},
|
|
101
97
|
timeLevel() {
|
|
102
98
|
let timeImpact =
|
|
103
|
-
this.riskPoints && this.riskPoints[0]
|
|
104
|
-
? this.riskPoints[0].timeImpact
|
|
105
|
-
: ''
|
|
99
|
+
this.riskPoints && this.riskPoints[0] ? this.riskPoints[0].timeImpact : "";
|
|
106
100
|
|
|
107
|
-
return `Time until impact: ${timeImpact} seconds
|
|
101
|
+
return `Time until impact: ${timeImpact} seconds`;
|
|
108
102
|
},
|
|
109
103
|
energyLevel() {
|
|
110
104
|
let energyImpact =
|
|
111
|
-
this.riskPoints && this.riskPoints[0]
|
|
112
|
-
? this.riskPoints[0]?.energyImpact
|
|
113
|
-
: ''
|
|
105
|
+
this.riskPoints && this.riskPoints[0] ? this.riskPoints[0]?.energyImpact : "";
|
|
114
106
|
|
|
115
|
-
return `Energy at impact: ${energyImpact} joules
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
107
|
+
return `Energy at impact: ${energyImpact} joules`;
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
};
|
|
119
111
|
</script>
|
|
120
112
|
|
|
121
113
|
<style lang="scss" scoped>
|
|
122
|
-
@import
|
|
123
|
-
@import
|
|
114
|
+
@import "../../../../includes/scss/all";
|
|
115
|
+
@import "./styles";
|
|
124
116
|
</style>
|
|
@@ -3,137 +3,133 @@
|
|
|
3
3
|
<!-- Main details -->
|
|
4
4
|
<container>
|
|
5
5
|
<row class="records">
|
|
6
|
-
<column md="2" sm="12" class="title"
|
|
7
|
-
<a
|
|
6
|
+
<column md="2" sm="12" class="title">
|
|
7
|
+
<a
|
|
8
|
+
name="titleLink"
|
|
9
|
+
v-if="item.title"
|
|
10
|
+
href="javascript:void(0)"
|
|
11
|
+
:aria-expanded="visible ? 'true' : 'false'"
|
|
12
|
+
@click="this.visible = !this.visible"
|
|
13
|
+
>
|
|
8
14
|
{{ item.title }}
|
|
9
15
|
</a>
|
|
10
16
|
</column>
|
|
11
|
-
<column md="2" sm="12" class="address"
|
|
17
|
+
<column md="2" sm="12" class="address">
|
|
12
18
|
<div class="label">Location</div>
|
|
13
|
-
<a v-if="item.fullAddress" target="_blank" :href="gMapLink"
|
|
19
|
+
<a v-if="item.fullAddress" target="_blank" :href="gMapLink"
|
|
20
|
+
><span class="sr-only visually-hidden">Address</span>
|
|
14
21
|
{{ item.fullAddress }}
|
|
15
22
|
</a>
|
|
16
23
|
</column>
|
|
17
|
-
<column md="2" sm="12" class="coldata longstring"
|
|
24
|
+
<column md="2" sm="12" class="coldata longstring">
|
|
18
25
|
<div class="label">Email</div>
|
|
19
|
-
<a v-if="item.email" target="_blank" :href="`mailto:${item.email}`"
|
|
26
|
+
<a v-if="item.email" target="_blank" :href="`mailto:${item.email}`"
|
|
27
|
+
><span class="sr-only visually-hidden">Email address</span>
|
|
20
28
|
{{ item.email }}
|
|
21
29
|
</a>
|
|
22
30
|
</column>
|
|
23
|
-
<column md="3" sm="12" class="coldata longstring"
|
|
31
|
+
<column md="3" sm="12" class="coldata longstring">
|
|
24
32
|
<div class="label">Website</div>
|
|
25
|
-
<a v-if="item.website" target="_blank" :href="`${item.website}`"
|
|
33
|
+
<a v-if="item.website" target="_blank" :href="`${item.website}`"
|
|
34
|
+
><span class="sr-only visually-hidden">Website address</span>
|
|
26
35
|
{{ item.website }}
|
|
27
36
|
</a>
|
|
28
37
|
</column>
|
|
29
|
-
<column md="2" sm="12" class="coldata"
|
|
38
|
+
<column md="2" sm="12" class="coldata">
|
|
30
39
|
<div class="label">Phone</div>
|
|
31
|
-
<a
|
|
40
|
+
<a
|
|
41
|
+
v-if="item.workPhone || item.mobilePhone"
|
|
42
|
+
:href="`tel:${item.workPhone || item.mobilePhone}`"
|
|
43
|
+
><span class="sr-only visually-hidden">Phone number</span>
|
|
32
44
|
{{ item.workPhone || item.mobilePhone }}
|
|
33
45
|
</a>
|
|
34
46
|
</column>
|
|
35
47
|
</row>
|
|
36
|
-
<div class="dir-caret"
|
|
48
|
+
<div class="dir-caret">
|
|
37
49
|
<a v-if="visible" href="javascript:void(0)" @click="this.visible = false">
|
|
38
|
-
<img
|
|
39
|
-
:src="CaretUp"
|
|
40
|
-
height="12"
|
|
41
|
-
width="17"
|
|
42
|
-
alt="Expand Detail">
|
|
50
|
+
<img :src="CaretUp" height="12" width="17" alt="collapse icon" />
|
|
43
51
|
</a>
|
|
44
52
|
<a v-if="!visible" href="javascript:void(0)" @click="this.visible = true">
|
|
45
|
-
<img
|
|
46
|
-
:src="CaretDown"
|
|
47
|
-
height="12"
|
|
48
|
-
width="17"
|
|
49
|
-
alt="Expand Detail">
|
|
53
|
+
<img :src="CaretDown" height="12" width="17" alt="expand icon" />
|
|
50
54
|
</a>
|
|
51
55
|
</div>
|
|
52
56
|
</container>
|
|
53
|
-
|
|
57
|
+
|
|
54
58
|
<!-- Additional Content -->
|
|
55
59
|
<container>
|
|
56
60
|
<div v-if="this.visible">
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
61
|
+
<div style="padding-top: 20px">
|
|
62
|
+
<hr />
|
|
63
|
+
</div>
|
|
64
|
+
<!-- Contacts, if any -->
|
|
65
|
+
<div v-if="validContacts">
|
|
66
|
+
<row>
|
|
67
|
+
<column>
|
|
68
|
+
<h4>Contact Information</h4>
|
|
69
|
+
</column>
|
|
70
|
+
</row>
|
|
71
|
+
<row v-if="item.contact1 !== ''">
|
|
72
|
+
<column sm="2" class="label"> Contact </column>
|
|
73
|
+
<column sm="4" class="dir-additional-records">
|
|
74
|
+
{{ item.contact1 }}
|
|
75
|
+
</column>
|
|
76
|
+
</row>
|
|
77
|
+
<row v-if="item.phone1 !== ''">
|
|
78
|
+
<column sm="2" class="label"> Phone </column>
|
|
79
|
+
<column sm="4" class="dir-additional-records">
|
|
80
|
+
{{ item.phone1 }}
|
|
81
|
+
</column>
|
|
82
|
+
</row>
|
|
83
|
+
<row v-if="item.mobile1 !== ''">
|
|
84
|
+
<column sm="2" class="label"> Mobile </column>
|
|
85
|
+
<column sm="4" class="dir-additional-records">
|
|
86
|
+
{{ item.mobile1 }}
|
|
87
|
+
</column>
|
|
88
|
+
</row>
|
|
89
|
+
<row v-if="item.email1 !== ''">
|
|
90
|
+
<column sm="2" class="label"> Email </column>
|
|
91
|
+
<column sm="4" class="dir-additional-records">
|
|
92
|
+
{{ item.email1 }}
|
|
93
|
+
</column>
|
|
94
|
+
</row>
|
|
95
|
+
</div>
|
|
96
|
+
<div v-if="item.serviceCategory">
|
|
97
|
+
<row class="row-dir-additional">
|
|
98
|
+
<column>
|
|
99
|
+
<h4>{{ item.serviceCategory }}</h4>
|
|
100
|
+
</column>
|
|
101
|
+
</row>
|
|
102
|
+
<row class="dir-additional-records">
|
|
103
|
+
<column>
|
|
104
|
+
<ul>
|
|
105
|
+
<li v-for="serv in item.services.split(',')" :key="serv.id">
|
|
106
|
+
{{ serv }}
|
|
107
|
+
</li>
|
|
108
|
+
</ul>
|
|
109
|
+
</column>
|
|
110
|
+
</row>
|
|
111
|
+
</div>
|
|
99
112
|
</div>
|
|
100
|
-
<div v-if="item.serviceCategory">
|
|
101
|
-
<row class="row-dir-additional">
|
|
102
|
-
<column>
|
|
103
|
-
<h4> {{ item.serviceCategory }}</h4>
|
|
104
|
-
</column>
|
|
105
|
-
</row>
|
|
106
|
-
<row class="dir-additional-records">
|
|
107
|
-
<column >
|
|
108
|
-
<ul>
|
|
109
|
-
<li v-for="(serv) in item.services.split(',')" :key="serv.id">
|
|
110
|
-
{{serv}}
|
|
111
|
-
</li>
|
|
112
|
-
</ul>
|
|
113
|
-
</column>
|
|
114
|
-
</row>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
113
|
</container>
|
|
118
114
|
</div>
|
|
119
115
|
</template>
|
|
120
116
|
<script>
|
|
121
|
-
import Container from
|
|
122
|
-
import Row from
|
|
123
|
-
import Column from
|
|
124
|
-
import CaretUp from
|
|
125
|
-
import CaretDown from
|
|
117
|
+
import Container from "../../../../../Containers/Container/index.vue";
|
|
118
|
+
import Row from "../../../../../Containers/Row/index.vue";
|
|
119
|
+
import Column from "../../../../../Containers/Column/index.vue";
|
|
120
|
+
import CaretUp from "./../../../../../../assets/icons/caret-up.svg?url";
|
|
121
|
+
import CaretDown from "./../../../../../../assets/icons/caret-down.svg?url";
|
|
126
122
|
|
|
127
123
|
export default {
|
|
128
124
|
components: {
|
|
129
125
|
Container,
|
|
130
126
|
Row,
|
|
131
127
|
Column,
|
|
132
|
-
},
|
|
128
|
+
},
|
|
133
129
|
props: {
|
|
134
130
|
item: {
|
|
135
131
|
type: Object,
|
|
136
|
-
required: true
|
|
132
|
+
required: true,
|
|
137
133
|
},
|
|
138
134
|
},
|
|
139
135
|
data() {
|
|
@@ -141,42 +137,43 @@ export default {
|
|
|
141
137
|
visible: false,
|
|
142
138
|
CaretUp,
|
|
143
139
|
CaretDown,
|
|
144
|
-
}
|
|
140
|
+
};
|
|
145
141
|
},
|
|
146
142
|
computed: {
|
|
147
143
|
gMapLink() {
|
|
148
|
-
return `https://google.com/maps?q=${this.item.fullAddress}
|
|
144
|
+
return `https://google.com/maps?q=${this.item.fullAddress}`;
|
|
149
145
|
},
|
|
150
146
|
validContacts() {
|
|
151
|
-
if (
|
|
152
|
-
|
|
147
|
+
if (
|
|
148
|
+
this.item.contact1 === "" &&
|
|
149
|
+
this.item.phone1 === "" &&
|
|
150
|
+
this.item.email1 === "" &&
|
|
151
|
+
this.item.mobile1 === ""
|
|
152
|
+
) {
|
|
153
|
+
return false;
|
|
153
154
|
} else {
|
|
154
|
-
return true
|
|
155
|
+
return true;
|
|
155
156
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
157
|
+
},
|
|
158
158
|
},
|
|
159
159
|
methods: {
|
|
160
160
|
handleClick(title) {
|
|
161
|
-
this.visible = !this.visible
|
|
161
|
+
this.visible = !this.visible;
|
|
162
162
|
if (this.$gtm) {
|
|
163
163
|
if (this.visible) {
|
|
164
|
-
this.$gtm.push({ event:
|
|
164
|
+
this.$gtm.push({ event: "custom.search.prs.open", title });
|
|
165
165
|
} else {
|
|
166
166
|
this.$gtm.push({
|
|
167
|
-
event:
|
|
168
|
-
title
|
|
169
|
-
})
|
|
167
|
+
event: "custom.search.prs.close",
|
|
168
|
+
title,
|
|
169
|
+
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
175
|
</script>
|
|
176
176
|
|
|
177
177
|
<style lang="scss" scoped>
|
|
178
|
-
|
|
179
|
-
@import '../../../HSCP/Records/SingleRecord/styles.scss'
|
|
180
|
-
|
|
178
|
+
@import "../../../HSCP/Records/SingleRecord/styles.scss";
|
|
181
179
|
</style>
|
|
182
|
-
|