@worksafevictoria/wcl7.5 1.9.0-beta.1 → 1.9.0-beta.11
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/.storybook/preview.js +1 -1
- package/package.json +1 -1
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +39 -45
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +29 -32
- package/src/components/Common/CardGridItem/index.vue +6 -2
- 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 +130 -133
- 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/index.stories.js +2 -2
- package/src/components/Global/AppHeaderNew/index.vue +53 -24
- package/src/components/Global/AppHeaderNew/styles.scss +1 -4
- package/src/components/Global/BackToTop/index.vue +16 -16
- package/src/components/Global/ContrastMode/index.stories.js +1 -1
- package/src/components/Global/HeroHeader/index.vue +62 -73
- package/src/components/Global/SocialShare/index.vue +62 -66
- package/src/components/Global/Strip/index.vue +82 -70
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +21 -23
- 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 +152 -120
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +158 -128
- package/src/components/Paragraphs/TabulatedData/index.vue +3 -2
- 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 +49 -61
- package/src/components/SubComponents/Search/index.vue +4 -0
- package/src/components/SubComponents/VideoThumbnail/index.vue +29 -28
- package/src/index.js +2 -2
- package/src/mock/carousel-items.js +46 -81
|
@@ -3,163 +3,154 @@
|
|
|
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">Office address</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.tollfreePhone || item.workPhone"
|
|
42
|
+
:href="`tel:${item.tollfreephone || item.workphone}`"
|
|
43
|
+
><span class="sr-only visually-hidden">Phone number</span>
|
|
32
44
|
{{ item.tollfreePhone || item.workPhone }}
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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 !== '' || item.contact2 !== ''">
|
|
72
|
+
<column sm="2" class="label" v-if="item.contact1 !== ''"> Contact </column>
|
|
73
|
+
<column sm="4" class="dir-additional-records" v-if="item.contact1 !== ''">
|
|
74
|
+
{{ item.contact1 }}
|
|
75
|
+
</column>
|
|
76
|
+
<column sm="2" class="label" v-if="item.contact2 !== ''"> Contact </column>
|
|
77
|
+
<column sm="4" class="dir-additional-records" v-if="item.contact2 !== ''">
|
|
78
|
+
{{ item.contact2 }}
|
|
79
|
+
</column>
|
|
80
|
+
</row>
|
|
81
|
+
<row v-if="item.phone1 !== '' || item.phone2 !== ''">
|
|
82
|
+
<column sm="2" class="label" v-if="item.phone1 !== ''"> Phone </column>
|
|
83
|
+
<column sm="4" class="dir-additional-records" v-if="item.phone1 !== ''">
|
|
84
|
+
{{ item.phone1 }}
|
|
85
|
+
</column>
|
|
86
|
+
<column sm="2" class="label" v-if="item.phone2 !== ''"> Phone </column>
|
|
87
|
+
<column sm="4" class="dir-additional-records" v-if="item.phone2 !== ''">
|
|
88
|
+
{{ item.phone2 }}
|
|
89
|
+
</column>
|
|
90
|
+
</row>
|
|
91
|
+
<row v-if="item.email1 !== '' || item.email2 !== ''">
|
|
92
|
+
<column sm="2" class="label" v-if="item.email1 !== ''"> Email </column>
|
|
93
|
+
<column sm="4" class="dir-additional-records" v-if="item.email1 !== ''">
|
|
94
|
+
{{ item.email1 }}
|
|
95
|
+
</column>
|
|
96
|
+
<column sm="2" class="label" v-if="item.email2 !== ''"> Email </column>
|
|
97
|
+
<column sm="4" class="dir-additional-records" v-if="item.email1 !== ''">
|
|
98
|
+
{{ item.email2 }}
|
|
99
|
+
</column>
|
|
100
|
+
</row>
|
|
101
|
+
</div>
|
|
102
|
+
<div v-if="item.trainingVenues.length">
|
|
103
|
+
<row class="row-dir-additional">
|
|
104
|
+
<column>
|
|
105
|
+
<h4>Training Venue Locations</h4>
|
|
106
|
+
</column>
|
|
107
|
+
</row>
|
|
108
|
+
<row class="dir-additional-records">
|
|
109
|
+
<column>
|
|
110
|
+
<ul>
|
|
111
|
+
<li v-for="venue in item.trainingVenues.split(',')" :key="venue.id">
|
|
112
|
+
{{ venue }}
|
|
113
|
+
</li>
|
|
114
|
+
</ul>
|
|
115
|
+
</column>
|
|
116
|
+
</row>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<row class="row-dir-additional">
|
|
120
|
+
<column>
|
|
121
|
+
<h4>Training Courses</h4>
|
|
122
|
+
</column>
|
|
123
|
+
</row>
|
|
124
|
+
<row class="dir-additional-records">
|
|
125
|
+
<column>
|
|
126
|
+
<ul>
|
|
127
|
+
<li v-for="course in item.courses.split(',')" :key="course.id">
|
|
128
|
+
{{ course }}
|
|
129
|
+
</li>
|
|
130
|
+
</ul>
|
|
131
|
+
</column>
|
|
132
|
+
</row>
|
|
109
133
|
</div>
|
|
110
|
-
<div v-if="item.trainingVenues.length">
|
|
111
|
-
<row class="row-dir-additional">
|
|
112
|
-
<column>
|
|
113
|
-
<h4>Training Venue Locations</h4>
|
|
114
|
-
</column>
|
|
115
|
-
</row>
|
|
116
|
-
<row class="dir-additional-records">
|
|
117
|
-
<column >
|
|
118
|
-
<ul>
|
|
119
|
-
<li v-for="(venue) in item.trainingVenues.split(',')" :key="venue.id">
|
|
120
|
-
{{venue}}
|
|
121
|
-
</li>
|
|
122
|
-
</ul>
|
|
123
|
-
</column>
|
|
124
|
-
</row>
|
|
125
|
-
</div>
|
|
126
|
-
|
|
127
|
-
<row class="row-dir-additional">
|
|
128
|
-
<column>
|
|
129
|
-
<h4>Training Courses</h4>
|
|
130
|
-
</column>
|
|
131
|
-
</row>
|
|
132
|
-
<row class="dir-additional-records">
|
|
133
|
-
<column>
|
|
134
|
-
<ul>
|
|
135
|
-
<li v-for="(course) in item.courses.split(',')" :key="course.id">
|
|
136
|
-
{{course}}
|
|
137
|
-
</li>
|
|
138
|
-
</ul>
|
|
139
|
-
</column>
|
|
140
|
-
</row>
|
|
141
|
-
</div>
|
|
142
134
|
</container>
|
|
143
|
-
|
|
144
135
|
</div>
|
|
145
136
|
</template>
|
|
146
137
|
<script>
|
|
147
|
-
import Container from
|
|
148
|
-
import Row from
|
|
149
|
-
import Column from
|
|
150
|
-
import CaretUp from
|
|
151
|
-
import CaretDown from
|
|
138
|
+
import Container from "../../../../../Containers/Container/index.vue";
|
|
139
|
+
import Row from "../../../../../Containers/Row/index.vue";
|
|
140
|
+
import Column from "../../../../../Containers/Column/index.vue";
|
|
141
|
+
import CaretUp from "./../../../../../../assets/icons/caret-up.svg?url";
|
|
142
|
+
import CaretDown from "./../../../../../../assets/icons/caret-down.svg?url";
|
|
152
143
|
|
|
153
144
|
export default {
|
|
154
145
|
components: {
|
|
155
146
|
Container,
|
|
156
147
|
Row,
|
|
157
148
|
Column,
|
|
158
|
-
},
|
|
149
|
+
},
|
|
159
150
|
props: {
|
|
160
151
|
item: {
|
|
161
152
|
type: Object,
|
|
162
|
-
required: true
|
|
153
|
+
required: true,
|
|
163
154
|
},
|
|
164
155
|
},
|
|
165
156
|
data() {
|
|
@@ -167,42 +158,45 @@ export default {
|
|
|
167
158
|
visible: false,
|
|
168
159
|
CaretUp,
|
|
169
160
|
CaretDown,
|
|
170
|
-
}
|
|
161
|
+
};
|
|
171
162
|
},
|
|
172
163
|
computed: {
|
|
173
164
|
gMapLink() {
|
|
174
|
-
return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}
|
|
165
|
+
return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}`;
|
|
175
166
|
},
|
|
176
167
|
validContacts() {
|
|
177
|
-
if (
|
|
178
|
-
|
|
168
|
+
if (
|
|
169
|
+
this.item.contact1 === "" &&
|
|
170
|
+
this.item.contact2 === "" &&
|
|
171
|
+
this.item.phone1 === "" &&
|
|
172
|
+
this.item.phone2 === "" &&
|
|
173
|
+
this.item.email1 === "" &&
|
|
174
|
+
this.item.email2 === ""
|
|
175
|
+
) {
|
|
176
|
+
return false;
|
|
179
177
|
} else {
|
|
180
|
-
return true
|
|
178
|
+
return true;
|
|
181
179
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
180
|
+
},
|
|
184
181
|
},
|
|
185
182
|
methods: {
|
|
186
183
|
handleClick(title) {
|
|
187
|
-
this.visible = !this.visible
|
|
184
|
+
this.visible = !this.visible;
|
|
188
185
|
if (this.$gtm) {
|
|
189
186
|
if (this.visible) {
|
|
190
|
-
this.$gtm.push({ event:
|
|
187
|
+
this.$gtm.push({ event: "custom.search.prs.open", title });
|
|
191
188
|
} else {
|
|
192
189
|
this.$gtm.push({
|
|
193
|
-
event:
|
|
194
|
-
title
|
|
195
|
-
})
|
|
190
|
+
event: "custom.search.prs.close",
|
|
191
|
+
title,
|
|
192
|
+
});
|
|
196
193
|
}
|
|
197
194
|
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
};
|
|
201
198
|
</script>
|
|
202
199
|
|
|
203
200
|
<style lang="scss" scoped>
|
|
204
|
-
|
|
205
|
-
@import './styles.scss'
|
|
206
|
-
|
|
201
|
+
@import "./styles.scss";
|
|
207
202
|
</style>
|
|
208
|
-
|