@worksafevictoria/wcl7.5 1.9.0 → 1.11.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/.storybook/preview.js +1 -1
- package/package.json +1 -1
- package/src/assets/styles/generated-icons.scss +46 -46
- 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 +8 -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 -137
- 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 +114 -129
- package/src/components/Global/Strip/index.vue +82 -70
- 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 +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/Tabs/index.vue +4 -4
- package/src/components/Paragraphs/TabulatedData/index.vue +21 -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 +49 -61
- package/src/components/SubComponents/Search/index.vue +4 -0
- package/src/components/SubComponents/VideoThumbnail/index.vue +8 -6
- package/src/mock/carousel-items.js +46 -81
|
@@ -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
|
-
|