@worksafevictoria/wcl7.5 1.1.0-beta.94 → 1.1.0-beta.95
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
CHANGED
|
@@ -3,9 +3,9 @@ import hscpRecord from './index.vue'
|
|
|
3
3
|
const cpData =
|
|
4
4
|
{
|
|
5
5
|
title: 'Australian Nurses and Midwifery Federation - Victorian Branch',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
fullAddress: 'Level 8/535 Elizabeth St Melbourne VIC 3000',
|
|
7
|
+
workPhone: '03 9555 9333',
|
|
8
|
+
tollfreePhone: '1800 555 333',
|
|
9
9
|
email: 'ohs@test.com.au',
|
|
10
10
|
website: 'https://www.anmfvic.asn.au/education-and-training/hsr-training/events',
|
|
11
11
|
contact1: 'Christina Groebl',
|
|
@@ -15,21 +15,15 @@ const cpData =
|
|
|
15
15
|
phone2: '03 9555 0666',
|
|
16
16
|
email2: 'jbradford@test.com.au',
|
|
17
17
|
courses: ['HSR Initial', 'HSR Refresher'],
|
|
18
|
-
|
|
18
|
+
trainingVenues: ['Melbourne CBD', 'All Regional Victoria - HQ in Melbourne'],
|
|
19
19
|
id: '1'
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
export default {
|
|
24
|
-
title: 'Paragraphs/Directory/
|
|
24
|
+
title: 'Paragraphs/Directory/SingleRecord',
|
|
25
25
|
component: hscpRecord,
|
|
26
|
-
tags: ['autodocs']
|
|
27
|
-
argTypes: {
|
|
28
|
-
location: {
|
|
29
|
-
control: ['object', 'boolean'],
|
|
30
|
-
table: { disable: true }
|
|
31
|
-
},
|
|
32
|
-
}
|
|
26
|
+
tags: ['autodocs']
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
export const CourseProvider = {}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</column>
|
|
11
11
|
<column class="address">
|
|
12
12
|
<a target="_blank" :href="gMapLink">
|
|
13
|
-
{{ item.
|
|
13
|
+
{{ item.fullAddress }}
|
|
14
14
|
</a>
|
|
15
15
|
</column>
|
|
16
16
|
<column class="contact">
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<column class="contact">
|
|
29
29
|
<div class="label">Phone</div>
|
|
30
30
|
<a :href="`tel:${item.tollfreephone || item.workphone}`"><span class="sr-only visually-hidden">Phone number</span>
|
|
31
|
-
{{ item.
|
|
31
|
+
{{ item.tollfreePhone || item.workPhone }}
|
|
32
32
|
</a>
|
|
33
33
|
</column>
|
|
34
34
|
<column class="hscp-caret" sm="1">
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<row>
|
|
108
108
|
<column>
|
|
109
109
|
<ul>
|
|
110
|
-
<li v-for="(venue) in item.
|
|
110
|
+
<li v-for="(venue) in item.trainingVenues" :key="venue.id">
|
|
111
111
|
{{venue}}
|
|
112
112
|
</li>
|
|
113
113
|
</ul>
|
|
@@ -148,10 +148,6 @@ export default {
|
|
|
148
148
|
item: {
|
|
149
149
|
type: Object,
|
|
150
150
|
required: true
|
|
151
|
-
},
|
|
152
|
-
location: {
|
|
153
|
-
type: [Object, Boolean],
|
|
154
|
-
default: false
|
|
155
151
|
}
|
|
156
152
|
},
|
|
157
153
|
data() {
|
|
@@ -161,6 +157,11 @@ export default {
|
|
|
161
157
|
CaretDown,
|
|
162
158
|
}
|
|
163
159
|
},
|
|
160
|
+
computed: {
|
|
161
|
+
gMapLink() {
|
|
162
|
+
return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}`
|
|
163
|
+
},
|
|
164
|
+
},
|
|
164
165
|
methods: {
|
|
165
166
|
handleClick(title) {
|
|
166
167
|
this.visible = !this.visible
|