@worksafevictoria/wcl7.5 1.8.0 → 1.9.0-beta.10
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/lib/utility.js +0 -2
- package/package.json +1 -1
- package/src/components/Common/CardGrid/index.vue +0 -3
- 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 -5
- 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 +0 -5
- 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.stories.js +1 -1
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +105 -108
- package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +152 -117
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +157 -124
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +23 -25
- package/src/components/Paragraphs/ScrollSpy/index.vue +33 -40
- 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/ResourceGroup/index.vue +2 -1
- package/src/components/SubComponents/Search/SearchListing/index.vue +0 -2
- package/src/components/SubComponents/Search/index.vue +4 -2
- package/src/components/SubComponents/VideoThumbnail/index.vue +29 -28
- package/src/index.js +1 -1
- package/src/mock/asbestos-removalists.js +1 -1
- package/src/mock/carousel-items.js +46 -81
- package/src/mock/course-provider.js +2 -2
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
>
|
|
13
13
|
<b-form-input
|
|
14
14
|
id="site-search"
|
|
15
|
+
autofocus
|
|
16
|
+
ref="siteSearch"
|
|
15
17
|
v-model="searchQuery"
|
|
16
18
|
name="search"
|
|
17
19
|
aria-label="searchbar"
|
|
@@ -59,6 +61,7 @@ import { BButton, BInputGroup, BFormInput } from "bootstrap-vue-next";
|
|
|
59
61
|
|
|
60
62
|
export default {
|
|
61
63
|
components: { SearchListing, BButton, BInputGroup, BFormInput },
|
|
64
|
+
|
|
62
65
|
props: {
|
|
63
66
|
pageLimit: {
|
|
64
67
|
type: Number,
|
|
@@ -106,6 +109,7 @@ export default {
|
|
|
106
109
|
},
|
|
107
110
|
},
|
|
108
111
|
mounted() {
|
|
112
|
+
|
|
109
113
|
if (this.searchType === "google") {
|
|
110
114
|
this.setupGoogleStyle();
|
|
111
115
|
} else {
|
|
@@ -274,8 +278,6 @@ export default {
|
|
|
274
278
|
}
|
|
275
279
|
},
|
|
276
280
|
onChange(e) {
|
|
277
|
-
//debugger
|
|
278
|
-
|
|
279
281
|
if (this.searchQuery && this.searchQuery.length > 2) {
|
|
280
282
|
this.onSearch(e);
|
|
281
283
|
}
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
<div class="video-thumbnail">
|
|
5
5
|
<img
|
|
6
6
|
:src="videoThumbnail"
|
|
7
|
-
alt="video
|
|
7
|
+
:alt="`Thumbnail for video: ${video.mediaTitle}`"
|
|
8
8
|
width="100%"
|
|
9
9
|
class="video-thumbnail__image"
|
|
10
10
|
/>
|
|
11
11
|
<img
|
|
12
12
|
:src="VideoPlay"
|
|
13
|
-
alt="
|
|
13
|
+
alt="Video play button"
|
|
14
|
+
aria-hidden="true"
|
|
14
15
|
class="video-thumbnail__button"
|
|
15
16
|
/>
|
|
16
17
|
</div>
|
|
17
18
|
</a>
|
|
18
19
|
<!-- Modal -->
|
|
19
20
|
<b-modal
|
|
20
|
-
:id="`wcl-video-modal`"
|
|
21
|
+
:id="`wcl-video-modal-${video.id}`"
|
|
21
22
|
v-model="showModal"
|
|
22
23
|
scrollable
|
|
23
24
|
class="wcl-video-modal__modal"
|
|
@@ -42,18 +43,18 @@
|
|
|
42
43
|
</template>
|
|
43
44
|
|
|
44
45
|
<script>
|
|
45
|
-
import VideoMedia from
|
|
46
|
-
import VideoPlay from
|
|
47
|
-
import IconClose from
|
|
48
|
-
import { BModal } from
|
|
49
|
-
import axios from
|
|
46
|
+
import VideoMedia from "./../../Paragraphs/VideoPlayer/index.vue";
|
|
47
|
+
import VideoPlay from "./../../../assets/icons/video-play.svg?url";
|
|
48
|
+
import IconClose from "./../../../assets/icons/icon-close.svg?url";
|
|
49
|
+
import { BModal } from "bootstrap-vue-next";
|
|
50
|
+
import axios from "axios";
|
|
50
51
|
|
|
51
52
|
export default {
|
|
52
|
-
name:
|
|
53
|
+
name: "VideoThumbnail",
|
|
53
54
|
components: {
|
|
54
55
|
VideoMedia,
|
|
55
56
|
IconClose,
|
|
56
|
-
|
|
57
|
+
"b-modal": BModal,
|
|
57
58
|
},
|
|
58
59
|
props: {
|
|
59
60
|
video: {
|
|
@@ -66,42 +67,42 @@ export default {
|
|
|
66
67
|
VideoPlay,
|
|
67
68
|
IconClose,
|
|
68
69
|
showModal: false,
|
|
69
|
-
videoThumbnail:
|
|
70
|
-
}
|
|
70
|
+
videoThumbnail: "",
|
|
71
|
+
};
|
|
71
72
|
},
|
|
72
73
|
mounted() {
|
|
73
|
-
this.getVideoThumbnail()
|
|
74
|
+
this.getVideoThumbnail();
|
|
74
75
|
},
|
|
75
76
|
methods: {
|
|
76
77
|
async getVideoThumbnail(url) {
|
|
77
78
|
try {
|
|
78
|
-
if (this.video.provider ===
|
|
79
|
-
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/maxresdefault.jpg
|
|
80
|
-
const response = await axios.head(this.videoThumbnail)
|
|
79
|
+
if (this.video.provider === "youtube") {
|
|
80
|
+
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/maxresdefault.jpg`;
|
|
81
|
+
const response = await axios.head(this.videoThumbnail);
|
|
81
82
|
if (response.status === 200) {
|
|
82
83
|
} else {
|
|
83
|
-
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/hqdefault.jpg
|
|
84
|
+
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/hqdefault.jpg`;
|
|
84
85
|
}
|
|
85
|
-
} else if (this.video.provider ===
|
|
86
|
+
} else if (this.video.provider === "vimeo") {
|
|
86
87
|
let thumbnail = await axios.get(
|
|
87
|
-
`https://vimeo.com/api/v2/video/${this.video.id}.json
|
|
88
|
-
)
|
|
88
|
+
`https://vimeo.com/api/v2/video/${this.video.id}.json`
|
|
89
|
+
);
|
|
89
90
|
if (thumbnail.data) {
|
|
90
|
-
this.videoThumbnail = thumbnail.data[0].thumbnail_large
|
|
91
|
+
this.videoThumbnail = thumbnail.data[0].thumbnail_large;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
} catch (error) {
|
|
94
95
|
if (error.response && error.response.status === 404) {
|
|
95
|
-
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/hqdefault.jpg
|
|
96
|
+
this.videoThumbnail = `https://i.ytimg.com/vi/${this.video.id}/hqdefault.jpg`;
|
|
96
97
|
} else {
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
},
|
|
100
101
|
},
|
|
101
|
-
}
|
|
102
|
+
};
|
|
102
103
|
</script>
|
|
103
104
|
<style lang="scss" scoped>
|
|
104
|
-
@import
|
|
105
|
+
@import "../../../includes/scss/all";
|
|
105
106
|
// Outside wrapper style
|
|
106
107
|
.wcl-video-thumbnail-wrapper {
|
|
107
108
|
margin-bottom: 32px;
|
|
@@ -127,17 +128,17 @@ export default {
|
|
|
127
128
|
left: 50%;
|
|
128
129
|
//height: 68px;
|
|
129
130
|
//width: 68px;
|
|
130
|
-
@include fp(
|
|
131
|
-
@include fp(
|
|
131
|
+
@include fp("height", 65, 68);
|
|
132
|
+
@include fp("width", 65, 68);
|
|
132
133
|
-ms-transform: translate(-50%, -50%);
|
|
133
134
|
transform: translate(-50%, -50%);
|
|
134
135
|
|
|
135
|
-
@include mq(
|
|
136
|
+
@include mq("sm") {
|
|
136
137
|
height: 80px;
|
|
137
138
|
width: 80px;
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
@include mq(
|
|
141
|
+
@include mq("xs") {
|
|
141
142
|
height: 64px;
|
|
142
143
|
width: 64px;
|
|
143
144
|
}
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import Subheader from './components/Containers/Subheader/index.vue'
|
|
|
7
7
|
import SectionGroup from './components/Containers/SectionGroup/index.vue'
|
|
8
8
|
import CarouselComponent from './components/Containers/Carousel/index.vue'
|
|
9
9
|
|
|
10
|
-
import AppHeader from './components/Global/
|
|
10
|
+
import AppHeader from './components/Global/AppHeaderNew/index.vue'
|
|
11
11
|
import AppFooter from './components/Global/AppFooter/index.vue'
|
|
12
12
|
import HeroHeader from './components/Global/HeroHeader/index.vue'
|
|
13
13
|
import SocialShare from './components/Global/SocialShare/index.vue'
|
|
@@ -6,7 +6,7 @@ export const arData = [
|
|
|
6
6
|
Phone: '0404073745',
|
|
7
7
|
CompanyMobile: '0404 073 745',
|
|
8
8
|
CompanyEmailDisp: 'ads.asbestos@gmail.com',
|
|
9
|
-
CompanyWebURLDisp: '
|
|
9
|
+
CompanyWebURLDisp: 'adsasbestosremoval.com.au',
|
|
10
10
|
ContactFirstName: 'Ivan',
|
|
11
11
|
ContactLastName: 'Silva',
|
|
12
12
|
ContactPhoneDisp: '0404073745',
|
|
@@ -1,82 +1,47 @@
|
|
|
1
1
|
export const mockCarouselItems = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
favorite: false
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
field_title: 'This is the fourth slider',
|
|
52
|
-
field_image: {
|
|
53
|
-
field_media_image: {
|
|
54
|
-
uri: {
|
|
55
|
-
url: '/sites/default/files/styles/large/public/2018-06/Topics-explosives_0.jpg'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
field_link: {
|
|
60
|
-
url: '/explosives',
|
|
61
|
-
},
|
|
62
|
-
field_date_start: '2025-01-30',
|
|
63
|
-
field_date_end: '2025-12-12',
|
|
64
|
-
field_favorite: false
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
field_title: '',
|
|
68
|
-
field_image: {
|
|
69
|
-
field_media_image: {
|
|
70
|
-
uri: {
|
|
71
|
-
url: '/sites/default/files/styles/large/public/2022-07/card-bricklaying-3x2.jpg'
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
field_link: {
|
|
76
|
-
url: '/construction',
|
|
77
|
-
},
|
|
78
|
-
field_date_start: '2024-10-30',
|
|
79
|
-
field_date_end: '2025-12-12',
|
|
80
|
-
field_favorite: false
|
|
81
|
-
},
|
|
82
|
-
]
|
|
2
|
+
{
|
|
3
|
+
title: 'This is the first slider',
|
|
4
|
+
imageURL: '/sites/default/files/2025-01/image-ag-safety-network-veg-001.jpg',
|
|
5
|
+
imageAlt: 'Picture of Agricultural Safety Inspectors',
|
|
6
|
+
linkURL: 'https://www.google.com',
|
|
7
|
+
dateStart: '2025-02-05',
|
|
8
|
+
dateEnd: '2025-03-07',
|
|
9
|
+
favourite: true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: 'This is the second slider',
|
|
13
|
+
imageURL: '/sites/default/files/2025-01/large-2023%20WorkSafe%20Awards.jpg',
|
|
14
|
+
imageAlt: 'Picture of WorkSafe Awards Banquet',
|
|
15
|
+
linkURL: '/news/2019-11/winners-named-distinguished-worksafe-awards',
|
|
16
|
+
dateStart: '2025-02-05',
|
|
17
|
+
dateEnd: '2025-07-05',
|
|
18
|
+
favourite: false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: 'This is the third slider',
|
|
22
|
+
imageURL: '/sites/default/files/2024-12/header-image-workwell-oelg-project.jpg',
|
|
23
|
+
imageAlt: 'Workwell image',
|
|
24
|
+
linkURL: '/resources/workwell-ageing-workforce-ready-age-difference',
|
|
25
|
+
dateStart: '2024-01-12',
|
|
26
|
+
dateEnd: '2024-12-12',
|
|
27
|
+
favourite: false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: 'This is the fourth slider',
|
|
31
|
+
imageURL: '/sites/default/files/styles/large/public/2018-06/Topics-explosives_0.jpg',
|
|
32
|
+
imageAlt: 'Picture of demolition in quarry',
|
|
33
|
+
linkURL: '/explosives',
|
|
34
|
+
dateStart: '2025-01-30',
|
|
35
|
+
dateEnd: '2025-12-12',
|
|
36
|
+
favourite: false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: '',
|
|
40
|
+
imageURL: '/sites/default/files/styles/large/public/2022-07/card-bricklaying-3x2.jpg',
|
|
41
|
+
imageAlt: 'Picture of construction worker',
|
|
42
|
+
linkURL: '/construction',
|
|
43
|
+
dateStart: '2024-10-30',
|
|
44
|
+
dateEnd: '2025-12-12',
|
|
45
|
+
favourite: false
|
|
46
|
+
},
|
|
47
|
+
]
|
|
@@ -7,7 +7,7 @@ export const hscpData = [
|
|
|
7
7
|
Work_phone: '03 9555 9333',
|
|
8
8
|
Toll_free_phone: '1800 555 333',
|
|
9
9
|
Email1: 'ohs@test.com.au',
|
|
10
|
-
Website: '
|
|
10
|
+
Website: 'anmfvic.asn.au/education-and-training/hsr-training/events',
|
|
11
11
|
Contact_1: 'Christina Groebl',
|
|
12
12
|
Contact_1_Phone: '03 9555 0222',
|
|
13
13
|
Contact_1_Email: 'cgroebl@test.com.au',
|
|
@@ -26,7 +26,7 @@ export const hscpData = [
|
|
|
26
26
|
Work_phone: '03 5990 7117',
|
|
27
27
|
Toll_free_phone: '1300 244 746',
|
|
28
28
|
Email1: 'csadmin@chisholm.edu.au',
|
|
29
|
-
Website: '
|
|
29
|
+
Website: 'http://www.chisholm.edu.au/career-fields/workplace-safety',
|
|
30
30
|
Contact_1: 'Francesca Laforgia',
|
|
31
31
|
Contact_1_Email: 'csadmin@chisholm.edu.au',
|
|
32
32
|
Contact_1_Phone: '03 5990 7117',
|