@worksafevictoria/wcl7.5 1.10.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.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/src/assets/styles/generated-icons.scss +46 -46
  3. package/src/components/Common/CardGridItem/card-grid-item-caret.vue +39 -45
  4. package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
  5. package/src/components/Common/CardGridItem/index.vue +8 -2
  6. package/src/components/Containers/Carousel/index.stories.js +6 -4
  7. package/src/components/Containers/Carousel/index.vue +131 -120
  8. package/src/components/Containers/HomepageHeader/index.stories.js +1 -1
  9. package/src/components/Containers/HomepageHeaderNew/index.stories.js +3 -15
  10. package/src/components/Containers/HomepageHeaderNew/index.vue +3 -7
  11. package/src/components/Global/AppFooter/index.vue +130 -137
  12. package/src/components/Global/AppHeader/ModalSearch/index.vue +7 -1
  13. package/src/components/Global/AppHeader/index.stories.js +2 -2
  14. package/src/components/Global/AppHeaderNew/ModalSearch/index.vue +21 -17
  15. package/src/components/Global/AppHeaderNew/index.stories.js +2 -2
  16. package/src/components/Global/AppHeaderNew/index.vue +53 -24
  17. package/src/components/Global/BackToTop/index.vue +16 -16
  18. package/src/components/Global/ContrastMode/index.stories.js +1 -1
  19. package/src/components/Global/HeroHeader/index.vue +62 -73
  20. package/src/components/Global/SocialShare/index.vue +114 -129
  21. package/src/components/Global/Strip/index.vue +9 -5
  22. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +22 -24
  23. package/src/components/Paragraphs/Accordion/StepperItem/index.vue +15 -15
  24. package/src/components/Paragraphs/Calculator/CardContainer/index.vue +74 -75
  25. package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +31 -39
  26. package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +104 -107
  27. package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +152 -120
  28. package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
  29. package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +158 -128
  30. package/src/components/Paragraphs/Tabs/index.vue +4 -4
  31. package/src/components/Paragraphs/TabulatedData/index.vue +21 -20
  32. package/src/components/SubComponents/CtaButton/index.vue +47 -44
  33. package/src/components/SubComponents/Icon/README.md +2 -2
  34. package/src/components/SubComponents/Icon/example.js +1 -0
  35. package/src/components/SubComponents/Icon/index.stories.js +1 -1
  36. package/src/components/SubComponents/Icon/index.vue +47 -47
  37. package/src/components/SubComponents/ResourceGroup/cardbody.vue +49 -61
  38. package/src/components/SubComponents/VideoThumbnail/index.vue +8 -6
  39. package/src/mock/carousel-items.js +46 -81
@@ -4,27 +4,29 @@
4
4
  <div class="video-thumbnail">
5
5
  <img
6
6
  :src="videoThumbnail"
7
- alt="video thumbnail"
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="Play button"
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
- <b-modal
20
- :id="`wcl-video-modal`"
20
+ <BModal
21
+ v-if="showModal"
21
22
  v-model="showModal"
23
+ :id="`wcl-video-modal-${video.id}`"
22
24
  scrollable
23
25
  class="wcl-video-modal__modal"
24
26
  no-footer
25
27
  size="xl"
26
28
  >
27
- <div class="wcl-video-modal__video" v-if="showModal">
29
+ <div class="wcl-video-modal__video">
28
30
  <video-media
29
31
  :media-title="video.mediaTitle"
30
32
  :media-description="video.mediaDescription"
@@ -37,7 +39,7 @@
37
39
  />
38
40
  </div>
39
41
  <template #footer><div></div></template>
40
- </b-modal>
42
+ </BModal>
41
43
  </div>
42
44
  </template>
43
45
 
@@ -1,82 +1,47 @@
1
1
  export const mockCarouselItems = [
2
- {
3
- field_title: 'This is the first slider',
4
- field_image: {
5
- field_media_image: {
6
- uri: {
7
- url: '/sites/default/files/2025-01/image-ag-safety-network-veg-001.jpg'
8
- }
9
- }
10
- },
11
- field_link: {
12
- url: 'https://www.google.com',
13
- },
14
- field_date_start: '2025-02-05',
15
- field_date_end: '2025-03-07',
16
- field_favorite: true
17
- },
18
- {
19
- field_title: 'This is the second slider',
20
- field_image: {
21
- field_media_image: {
22
- uri: {
23
- url: '/sites/default/files/2025-01/large-2023%20WorkSafe%20Awards.jpg'
24
- }
25
- }
26
- },
27
- field_link: {
28
- url: '/news/2019-11/winners-named-distinguished-worksafe-awards',
29
- },
30
- field_date_start: '2025-02-05',
31
- field_date_end: '2025-07-05',
32
- field_favorite: false
33
- },
34
- {
35
- field_title: 'This is the third slider',
36
- field_image: {
37
- field_media_image: {
38
- uri: {
39
- url: '/sites/default/files/2024-12/header-image-workwell-oelg-project.jpg'
40
- }
41
- }
42
- },
43
- field_link: {
44
- url: '/resources/workwell-ageing-workforce-ready-age-difference',
45
- },
46
- field_date_start: '2024-01-12',
47
- field_date_end: '2024-12-12',
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
+ ]