@worksafevictoria/wcl7.5 1.10.0 → 1.12.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/package.json +1 -1
- package/src/assets/styles/generated-icons.scss +46 -46
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +40 -46
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
- package/src/components/Common/CardGridItem/index.vue +153 -115
- 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 +29 -19
- 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/includes.scss +4 -2
- package/src/components/Global/AppHeaderNew/index.stories.js +2 -2
- package/src/components/Global/AppHeaderNew/index.vue +126 -386
- package/src/components/Global/AppHeaderNew/mobile.scss +41 -6
- package/src/components/Global/AppHeaderNew/styles.scss +57 -45
- package/src/components/Global/BackToTop/index.vue +16 -16
- package/src/components/Global/ContrastMode/index.stories.js +1 -1
- package/src/components/Global/DirectoryFilters/index.vue +24 -18
- 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 +43 -39
- 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 +129 -64
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +112 -66
- package/src/components/Paragraphs/Statistics/index.vue +9 -9
- package/src/components/Paragraphs/Tabs/index.vue +4 -4
- package/src/components/Paragraphs/TabulatedData/index.vue +27 -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 +18 -16
- package/src/components/SubComponents/VideoThumbnail/index.vue +8 -6
- package/src/mock/carousel-items.js +46 -81
|
@@ -1,73 +1,71 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="caretSrc && loaded"
|
|
4
|
-
:class="
|
|
5
|
-
`card-grid-item-caret__container card-grid-item-caret__container--${computedCaret}`
|
|
6
|
-
"
|
|
4
|
+
:class="`card-grid-item-caret__container card-grid-item-caret__container--${computedCaret}`"
|
|
7
5
|
>
|
|
8
6
|
<span v-if="caret === 'external'" class="visually-hidden">External link</span>
|
|
9
7
|
<div
|
|
10
8
|
class="tabCaretContainer"
|
|
11
9
|
:class="{
|
|
12
|
-
tabCaretContainerBottom: isTabbedCard
|
|
10
|
+
tabCaretContainerBottom: isTabbedCard,
|
|
13
11
|
}"
|
|
14
12
|
>
|
|
15
|
-
<div class="tabCaretText"
|
|
13
|
+
<div class="tabCaretText" tabindex="0">
|
|
16
14
|
{{ supportText }}
|
|
17
15
|
</div>
|
|
18
|
-
<icon :glyph="caretSrc" icon-alt="
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
<icon :glyph="caretSrc" icon-alt="Show more" width="18" float: right :height="caret
|
|
17
|
+
=== 'external' ? 18 : 16" :class=" `item-icon-${ isChev ? 'chev' : 'caret'}
|
|
18
|
+
card-grid-item-caret--${computedCaret}`" />
|
|
21
19
|
</div>
|
|
22
20
|
</div>
|
|
23
21
|
</template>
|
|
24
22
|
|
|
25
23
|
<script>
|
|
26
|
-
import { getCurrentInstance } from
|
|
27
|
-
import Icon from
|
|
28
|
-
import ChevUp from
|
|
29
|
-
import CaretUp from
|
|
30
|
-
import ExternalLink from
|
|
24
|
+
import { getCurrentInstance } from "vue";
|
|
25
|
+
import Icon from "./../../SubComponents/Icon/index.vue";
|
|
26
|
+
import ChevUp from "./../../../assets/icons/chev-up.svg?raw";
|
|
27
|
+
import CaretUp from "./../../../assets/icons/caret-up.svg?url";
|
|
28
|
+
import ExternalLink from "./../../../assets/icons/external-link.svg?raw";
|
|
31
29
|
|
|
32
30
|
export default {
|
|
33
|
-
name:
|
|
31
|
+
name: "CardGridItemCaret",
|
|
34
32
|
components: { Icon },
|
|
35
33
|
props: {
|
|
36
34
|
caret: {
|
|
37
35
|
type: String,
|
|
38
|
-
default: null
|
|
36
|
+
default: null,
|
|
39
37
|
},
|
|
40
38
|
rtl: {
|
|
41
39
|
type: Boolean,
|
|
42
|
-
default: false
|
|
43
|
-
}
|
|
40
|
+
default: false,
|
|
41
|
+
},
|
|
44
42
|
},
|
|
45
43
|
data() {
|
|
46
44
|
return {
|
|
47
45
|
loaded: false,
|
|
48
|
-
isChev: false
|
|
49
|
-
}
|
|
46
|
+
isChev: false,
|
|
47
|
+
};
|
|
50
48
|
},
|
|
51
49
|
computed: {
|
|
52
50
|
computedCaret() {
|
|
53
51
|
if (this.rtl) {
|
|
54
|
-
if (this.caret ===
|
|
55
|
-
return
|
|
56
|
-
} else if (this.caret ===
|
|
57
|
-
return
|
|
52
|
+
if (this.caret === "right") {
|
|
53
|
+
return "left";
|
|
54
|
+
} else if (this.caret === "left") {
|
|
55
|
+
return "right";
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
|
-
return this.caret
|
|
58
|
+
return this.caret;
|
|
61
59
|
},
|
|
62
60
|
caretSrc() {
|
|
63
|
-
if (this.caret ===
|
|
64
|
-
return ExternalLink
|
|
61
|
+
if (this.caret === "external") {
|
|
62
|
+
return ExternalLink;
|
|
65
63
|
} else if (!this.isChev && this.computedCaret) {
|
|
66
|
-
return CaretUp
|
|
64
|
+
return CaretUp;
|
|
67
65
|
} else if (this.isChev && this.computedCaret) {
|
|
68
|
-
return ChevUp
|
|
66
|
+
return ChevUp;
|
|
69
67
|
} else {
|
|
70
|
-
return undefined
|
|
68
|
+
return undefined;
|
|
71
69
|
}
|
|
72
70
|
},
|
|
73
71
|
//Identify if this is a tabbed card WSV2-374
|
|
@@ -75,7 +73,7 @@ export default {
|
|
|
75
73
|
const instance = getCurrentInstance();
|
|
76
74
|
const parentEl = instance?.parent?.proxy?.$el.parentNode;
|
|
77
75
|
|
|
78
|
-
if (parentEl && parentEl.classList.contains(
|
|
76
|
+
if (parentEl && parentEl.classList.contains("tabbed-card")) {
|
|
79
77
|
return true;
|
|
80
78
|
} else {
|
|
81
79
|
return false;
|
|
@@ -83,22 +81,18 @@ export default {
|
|
|
83
81
|
},
|
|
84
82
|
//If isTabbedCard, then supportive text must be displayed for up and down carets. WSV2-374
|
|
85
83
|
supportText() {
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
this.computedCaret &&
|
|
89
|
-
this.computedCaret === 'up'
|
|
90
|
-
) {
|
|
91
|
-
return 'Hide links'
|
|
84
|
+
if (this.isTabbedCard && this.computedCaret && this.computedCaret === "up") {
|
|
85
|
+
return "Hide links";
|
|
92
86
|
} else if (
|
|
93
87
|
this.isTabbedCard &&
|
|
94
88
|
this.computedCaret &&
|
|
95
|
-
this.computedCaret ===
|
|
89
|
+
this.computedCaret === "down"
|
|
96
90
|
) {
|
|
97
|
-
return
|
|
91
|
+
return "Show links";
|
|
98
92
|
} else {
|
|
99
|
-
return null
|
|
93
|
+
return null;
|
|
100
94
|
}
|
|
101
|
-
}
|
|
95
|
+
},
|
|
102
96
|
},
|
|
103
97
|
mounted() {
|
|
104
98
|
/* The code below has been removed as part of WSV2-735
|
|
@@ -109,13 +103,13 @@ export default {
|
|
|
109
103
|
.$el['_prevClass'].includes('task-finder-column')
|
|
110
104
|
? (this.isChev = false)
|
|
111
105
|
: true */
|
|
112
|
-
|
|
113
|
-
this.loaded = true
|
|
114
|
-
}
|
|
115
|
-
}
|
|
106
|
+
|
|
107
|
+
this.loaded = true;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
116
110
|
</script>
|
|
117
111
|
<style lang="scss" scoped>
|
|
118
|
-
@import
|
|
112
|
+
@import "../../../includes/scss/all";
|
|
119
113
|
.card-grid-item-caret {
|
|
120
114
|
&__container {
|
|
121
115
|
padding-left: 4px;
|
|
@@ -149,7 +143,7 @@ export default {
|
|
|
149
143
|
}
|
|
150
144
|
}
|
|
151
145
|
.tabCaretText {
|
|
152
|
-
font-style:
|
|
146
|
+
font-style: "normal";
|
|
153
147
|
font-weight: 400;
|
|
154
148
|
font-size: 12px;
|
|
155
149
|
padding-right: 10px;
|