@worksafevictoria/wcl7.5 1.4.0 → 1.6.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 +20 -13
- package/bin/deploy.sh +1 -1
- package/lib/utility.js +10 -8
- package/package.json +4 -5
- package/src/assets/icons/AppFooter/x-ws-footer.svg +10 -0
- package/src/assets/icons/AppFooter/x-ww-footer.svg +28 -0
- package/src/assets/icons/SocialShare/x-icon-white.svg +28 -0
- package/src/assets/styles/modal.scss +51 -0
- package/src/components/Common/CardGrid/index.vue +69 -49
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +7 -4
- package/src/components/Common/CardGridItem/index.vue +95 -71
- package/src/components/Containers/Carousel/index.vue +14 -7
- package/src/components/Containers/HomepageHeader/index.stories.js +60 -36
- package/src/components/Containers/HomepageHeader/index.vue +2 -26
- package/src/components/Containers/HomepageHeaderNew/index.stories.js +15 -15
- package/src/components/Containers/HomepageHeaderNew/index.vue +97 -68
- package/src/components/Containers/SectionGroup/index.vue +1 -1
- package/src/components/Containers/Subheader/index.vue +5 -1
- package/src/components/Global/AppFooter/FooterSocialShare/index.vue +1 -1
- package/src/components/Global/AppFooter/index.vue +14 -7
- package/src/components/Global/AppHeaderNew/index.vue +304 -233
- package/src/components/Global/AppHeaderNew/styles.scss +29 -8
- package/src/components/Global/BackToTop/index.vue +8 -8
- package/src/components/Global/ContrastMode/index.vue +1 -1
- package/src/components/Global/Cookies/index.stories.js +16 -10
- package/src/components/Global/Cookies/index.vue +281 -237
- package/src/components/Global/Cookies/styles.scss +54 -54
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +50 -133
- package/src/components/Global/GlobalNotice/index.vue +79 -100
- package/src/components/Global/SocialShare/index.vue +1 -1
- package/src/components/Global/Strip/index.vue +1 -1
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +8 -4
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +23 -23
- package/src/components/Paragraphs/Accordion/index.stories.js +21 -18
- package/src/components/Paragraphs/Accordion/index.vue +52 -48
- package/src/components/Paragraphs/BrowseContent/index.vue +1 -1
- package/src/components/Paragraphs/BrowseContent/setup.vue +284 -0
- package/src/components/Paragraphs/Chart/Constants.js +485 -485
- package/src/components/Paragraphs/Chart/index.vue +232 -241
- package/src/components/Paragraphs/Directory/Records/HSCP/index.stories.js +33 -0
- package/src/components/Paragraphs/Directory/Records/HSCP/index.vue +334 -0
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +2 -2
- package/src/components/Paragraphs/Directory/Records/index.vue +63 -27
- package/src/components/Paragraphs/Directory/Records/styles.scss +1 -0
- package/src/components/Paragraphs/Directory/constants.js +23 -5
- package/src/components/Paragraphs/Directory/index.vue +14 -14
- package/src/components/Paragraphs/ListGroup/index.vue +5 -1
- package/src/components/Paragraphs/ScrollSpy/index.vue +23 -14
- package/src/components/Paragraphs/SelectableCards/index.vue +15 -12
- package/src/components/Paragraphs/TabbedCards/index.vue +13 -14
- package/src/components/Paragraphs/Tabs/index.vue +19 -17
- package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +9 -9
- package/src/components/Paragraphs/TextMedia/index.vue +20 -16
- package/src/components/Paragraphs/VideoGrid/index.stories.js +43 -19
- package/src/components/Paragraphs/VideoGrid/index.vue +13 -13
- package/src/components/Paragraphs/Webform/index.stories.js +82 -69
- package/src/components/SubComponents/CardGroup/index.vue +5 -1
- package/src/components/SubComponents/FormAddressPostcode/index.vue +35 -37
- package/src/components/SubComponents/FormInstance/components/handler/index.vue +25 -29
- package/src/components/SubComponents/FormInstance/components/renderer/index.vue +63 -28
- package/src/components/SubComponents/FormInstance/models/overrides/file.js +33 -40
- package/src/components/SubComponents/FormInstance/services/form-submit-parser.js +22 -15
- package/src/components/SubComponents/FormInstance/services/registry-factory.js +1 -1
- package/src/components/SubComponents/FormInstance/stories/fileupload.stories.js +57 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/fileupload.json +25 -0
- package/src/components/SubComponents/FormInstance/style.scss +2 -2
- package/src/components/SubComponents/FormInstance/tests/address.test.js +4 -4
- package/src/components/SubComponents/FormInstance/tests/checkboxes.test.js +7 -7
- package/src/components/SubComponents/FormInstance/tests/customcomposite.test.js +15 -15
- package/src/components/SubComponents/FormInstance/tests/date.test.js +8 -8
- package/src/components/SubComponents/FormInstance/tests/form-test-utils.js +9 -9
- package/src/components/SubComponents/FormInstance/tests/multiple.test.js +13 -13
- package/src/components/SubComponents/FormInstance/tests/rule-visible.test.js +120 -120
- package/src/components/SubComponents/FormInstance/tests/scale.test.js +6 -6
- package/src/components/SubComponents/FormInstance/tests/url.test.js +13 -10
- package/src/components/SubComponents/Pagination/index.vue +19 -18
- package/src/components/SubComponents/ResourceGroup/index.vue +5 -1
- package/src/components/SubComponents/Search/SearchListing/index.vue +20 -20
- package/src/components/SubComponents/Search/index.vue +35 -33
- package/src/components/SubComponents/VideoThumbnail/index.vue +48 -133
- package/src/includes/scss/mixins/src/units.scss +25 -4
- package/src/includes/scss/vars/src/colors.module.scss +28 -1
- package/src/index.js +21 -3
- package/src/main.js +2 -10
- package/src/mock/app-header-new.js +27 -15
- package/src/mock/carousel-items.js +71 -46
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section-group class="sticky-top">
|
|
3
3
|
<b-navbar class="paragraph--scrollspy" :class="{ rtl: rtl }">
|
|
4
|
-
<b-list-group
|
|
5
|
-
v-b-scrollspy="scrollSpy"
|
|
6
|
-
class="flex-column"
|
|
7
|
-
>
|
|
4
|
+
<b-list-group v-b-scrollspy="scrollSpy" class="flex-column">
|
|
8
5
|
<div class="scrollspy__title">{{ title }}</div>
|
|
9
6
|
<b-list-group-item
|
|
10
7
|
v-for="(item, index) in itemList"
|
|
@@ -22,29 +19,41 @@
|
|
|
22
19
|
|
|
23
20
|
<script>
|
|
24
21
|
import SectionGroup from '../../Containers/SectionGroup/index.vue'
|
|
25
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
BNavbar,
|
|
24
|
+
BListGroup,
|
|
25
|
+
BListGroupItem,
|
|
26
|
+
vBScrollspy,
|
|
27
|
+
} from 'bootstrap-vue-next'
|
|
26
28
|
|
|
27
29
|
export default {
|
|
28
30
|
name: 'ScrollSpy',
|
|
29
31
|
components: { SectionGroup, BNavbar, BListGroup, BListGroupItem },
|
|
30
|
-
directives: { 'b-scrollspy':vBScrollspy },
|
|
32
|
+
directives: { 'b-scrollspy': vBScrollspy },
|
|
31
33
|
props: {
|
|
32
34
|
title: {
|
|
33
35
|
type: String,
|
|
34
|
-
default: 'On this page'
|
|
36
|
+
default: 'On this page',
|
|
35
37
|
},
|
|
36
38
|
itemList: {
|
|
37
39
|
type: Array,
|
|
38
|
-
required: true
|
|
40
|
+
required: true,
|
|
39
41
|
},
|
|
40
42
|
rtl: {
|
|
41
43
|
type: Boolean,
|
|
42
|
-
default: false
|
|
44
|
+
default: false,
|
|
43
45
|
},
|
|
44
46
|
scrollSpy: {
|
|
45
47
|
type: Object,
|
|
46
|
-
default: () => {
|
|
47
|
-
|
|
48
|
+
default: () => {
|
|
49
|
+
return {
|
|
50
|
+
element: 'body',
|
|
51
|
+
offset: 100,
|
|
52
|
+
method: 'auto',
|
|
53
|
+
contentQuery: '[id]',
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
},
|
|
48
57
|
},
|
|
49
58
|
methods: {
|
|
50
59
|
scrollToAnchor(anchor) {
|
|
@@ -52,11 +61,11 @@ export default {
|
|
|
52
61
|
if (anchorElement) {
|
|
53
62
|
anchorElement.focus()
|
|
54
63
|
anchorElement.scrollIntoView({
|
|
55
|
-
behavior: 'smooth'
|
|
64
|
+
behavior: 'smooth',
|
|
56
65
|
})
|
|
57
66
|
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
67
|
+
},
|
|
68
|
+
},
|
|
60
69
|
}
|
|
61
70
|
</script>
|
|
62
71
|
|
|
@@ -67,42 +67,45 @@ export default {
|
|
|
67
67
|
CardGrid,
|
|
68
68
|
CardGridItem,
|
|
69
69
|
CardBody,
|
|
70
|
-
CardTop
|
|
70
|
+
CardTop,
|
|
71
|
+
},
|
|
72
|
+
emits: {
|
|
73
|
+
selected: false,
|
|
71
74
|
},
|
|
72
75
|
props: {
|
|
73
76
|
cards: {
|
|
74
77
|
type: Array,
|
|
75
78
|
required: true,
|
|
76
|
-
default: () => []
|
|
79
|
+
default: () => [],
|
|
77
80
|
},
|
|
78
81
|
title: {
|
|
79
82
|
type: String,
|
|
80
|
-
default: null
|
|
83
|
+
default: null,
|
|
81
84
|
},
|
|
82
85
|
headingTag: {
|
|
83
86
|
type: String,
|
|
84
|
-
default: 'h2'
|
|
87
|
+
default: 'h2',
|
|
85
88
|
},
|
|
86
89
|
subHeading: {
|
|
87
90
|
type: String,
|
|
88
|
-
default: null
|
|
91
|
+
default: null,
|
|
89
92
|
},
|
|
90
93
|
iconIsBordered: {
|
|
91
94
|
type: Boolean,
|
|
92
|
-
default: true
|
|
95
|
+
default: true,
|
|
93
96
|
},
|
|
94
97
|
columns: {
|
|
95
98
|
type: Number,
|
|
96
|
-
default: 4
|
|
99
|
+
default: 4,
|
|
97
100
|
},
|
|
98
101
|
cardType: {
|
|
99
102
|
type: String,
|
|
100
|
-
default: null
|
|
103
|
+
default: null,
|
|
101
104
|
},
|
|
102
105
|
cardTextAlign: {
|
|
103
106
|
type: String,
|
|
104
|
-
default: null
|
|
105
|
-
}
|
|
107
|
+
default: null,
|
|
108
|
+
},
|
|
106
109
|
},
|
|
107
110
|
methods: {
|
|
108
111
|
selectedCardChangeFocus(card) {
|
|
@@ -110,7 +113,7 @@ export default {
|
|
|
110
113
|
},
|
|
111
114
|
clearCard() {
|
|
112
115
|
this.$refs.cardgrid.clearCards()
|
|
113
|
-
}
|
|
114
|
-
}
|
|
116
|
+
},
|
|
117
|
+
},
|
|
115
118
|
}
|
|
116
119
|
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="tabbedCards.length > 0 && loaded"
|
|
4
|
-
:ref="`tabbedCards-${
|
|
4
|
+
:ref="`tabbedCards-${tabbedCards[0].cardid}`"
|
|
5
5
|
class="tabbed-cards"
|
|
6
6
|
>
|
|
7
7
|
<div v-for="(r, rIndex) in rows" :key="rIndex">
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
:show-divider="false"
|
|
29
29
|
:header-size="'large'"
|
|
30
30
|
class="tabbed-card"
|
|
31
|
-
:class="card
|
|
31
|
+
:class="checkSelectedCard(card) ? 'isSelected' : ''"
|
|
32
32
|
:card-padding="'small'"
|
|
33
33
|
:card-header-title="card.title"
|
|
34
|
-
:caret="card
|
|
34
|
+
:caret="checkSelectedCard(card) ? 'up' : 'down'"
|
|
35
35
|
:caret-position="'bottom'"
|
|
36
36
|
:rtl="rtl || card.rtl"
|
|
37
37
|
:description="card.text"
|
|
38
38
|
:button-role="'link'"
|
|
39
|
-
:is-selected="card
|
|
39
|
+
:is-selected="checkSelectedCard(card)"
|
|
40
40
|
:is-expandable="true"
|
|
41
41
|
/>
|
|
42
42
|
</template>
|
|
@@ -108,12 +108,8 @@ export default {
|
|
|
108
108
|
},
|
|
109
109
|
computed: {
|
|
110
110
|
rows() {
|
|
111
|
-
let r = Math.
|
|
112
|
-
|
|
113
|
-
return r
|
|
114
|
-
} else {
|
|
115
|
-
return r + 1
|
|
116
|
-
}
|
|
111
|
+
let r = Math.ceil(this.tabbedCards.length / this.cols)
|
|
112
|
+
return r
|
|
117
113
|
},
|
|
118
114
|
cols() {
|
|
119
115
|
if (this.screenWidth < 575.98) {
|
|
@@ -142,7 +138,7 @@ export default {
|
|
|
142
138
|
},
|
|
143
139
|
methods: {
|
|
144
140
|
getCardIdPrefix(rIndex, cardIndex) {
|
|
145
|
-
const cardPrefix = `tabbedcards-${this.
|
|
141
|
+
const cardPrefix = `tabbedcards-${this.tabbedCards[0].cardid}-r-${rIndex}`
|
|
146
142
|
if (cardIndex !== null && cardIndex !== undefined) {
|
|
147
143
|
return `${cardPrefix}-${cardIndex}`
|
|
148
144
|
}
|
|
@@ -153,9 +149,13 @@ export default {
|
|
|
153
149
|
let end = start + this.cols
|
|
154
150
|
return rows.slice(start, end)
|
|
155
151
|
},
|
|
156
|
-
|
|
152
|
+
checkSelectedCard(card) {
|
|
153
|
+
return JSON.stringify(card) === JSON.stringify(this.selectedCard)
|
|
154
|
+
},
|
|
155
|
+
setCurrentRow(rowIndex, card) {
|
|
157
156
|
const sameCardSelected =
|
|
158
|
-
card.selectedCard
|
|
157
|
+
this.checkSelectedCard(card.selectedCard) || !card.selectedCard
|
|
158
|
+
|
|
159
159
|
this.selectedCard = null
|
|
160
160
|
this.selectedRow = null
|
|
161
161
|
const cardGrids = this.$refs.cardgrid || []
|
|
@@ -164,7 +164,6 @@ export default {
|
|
|
164
164
|
cardGrid.clearCards()
|
|
165
165
|
}
|
|
166
166
|
})
|
|
167
|
-
await nextTick()
|
|
168
167
|
this.tabList = this.getFocusElements()
|
|
169
168
|
setTimeout(() => {
|
|
170
169
|
if (window && !sameCardSelected) {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<b-tabs v-model="tabIndex">
|
|
17
17
|
<b-tab
|
|
18
18
|
v-for="(item, index) in items"
|
|
19
|
-
:key="`${index}-${
|
|
19
|
+
:key="`${index}-${$.uid}`"
|
|
20
20
|
:title="item.title"
|
|
21
|
-
:title-link-class="`tab-item-${index}-${
|
|
21
|
+
:title-link-class="`tab-item-${index}-${$.uid}`"
|
|
22
22
|
>
|
|
23
23
|
<rich-text
|
|
24
24
|
:content="item.content.value"
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
><rich-text
|
|
35
35
|
:tag="titleTag"
|
|
36
36
|
:content="title"
|
|
37
|
-
:without-container="true"/></column
|
|
37
|
+
:without-container="true" /></column
|
|
38
38
|
></row>
|
|
39
|
-
<row v-for="(item, index) in items" :key="`${index}-${
|
|
39
|
+
<row v-for="(item, index) in items" :key="`${index}-${$.uid}`">
|
|
40
40
|
<column>
|
|
41
41
|
<rich-text :content="getPdfContent(item)" :without-container="true" />
|
|
42
42
|
</column>
|
|
@@ -61,29 +61,29 @@ export default {
|
|
|
61
61
|
Row,
|
|
62
62
|
Column,
|
|
63
63
|
BTab,
|
|
64
|
-
BTabs
|
|
64
|
+
BTabs,
|
|
65
65
|
},
|
|
66
66
|
props: {
|
|
67
67
|
title: {
|
|
68
68
|
type: String,
|
|
69
|
-
default: null
|
|
69
|
+
default: null,
|
|
70
70
|
},
|
|
71
71
|
titleTag: {
|
|
72
72
|
type: String,
|
|
73
|
-
default: 'h2'
|
|
73
|
+
default: 'h2',
|
|
74
74
|
},
|
|
75
75
|
items: {
|
|
76
76
|
type: Array,
|
|
77
|
-
required: true
|
|
77
|
+
required: true,
|
|
78
78
|
},
|
|
79
79
|
rtl: {
|
|
80
80
|
type: Boolean,
|
|
81
|
-
default: false
|
|
81
|
+
default: false,
|
|
82
82
|
},
|
|
83
83
|
workwell: {
|
|
84
84
|
type: Boolean,
|
|
85
|
-
default: false
|
|
86
|
-
}
|
|
85
|
+
default: false,
|
|
86
|
+
},
|
|
87
87
|
},
|
|
88
88
|
data() {
|
|
89
89
|
return {
|
|
@@ -91,18 +91,20 @@ export default {
|
|
|
91
91
|
scrollIntoViewOptions: {
|
|
92
92
|
behavior: 'smooth',
|
|
93
93
|
block: 'center',
|
|
94
|
-
inline: 'nearest'
|
|
95
|
-
}
|
|
94
|
+
inline: 'nearest',
|
|
95
|
+
},
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
computed: {
|
|
99
99
|
activeTabEl() {
|
|
100
|
-
let el = document.querySelector(
|
|
100
|
+
let el = document.querySelector(
|
|
101
|
+
`.tab-item-${this.tabIndex}-${this.$.uid}`,
|
|
102
|
+
)
|
|
101
103
|
return el
|
|
102
104
|
},
|
|
103
105
|
isPDF() {
|
|
104
106
|
return typeof this.$isPDF === 'function' ? this.$isPDF() : false
|
|
105
|
-
}
|
|
107
|
+
},
|
|
106
108
|
},
|
|
107
109
|
methods: {
|
|
108
110
|
handleTabNav(direction) {
|
|
@@ -118,8 +120,8 @@ export default {
|
|
|
118
120
|
},
|
|
119
121
|
getPdfContent(item) {
|
|
120
122
|
return `<${this.titleTag}>${item.title}</${this.titleTag}>${item.content.value}`
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
+
},
|
|
124
|
+
},
|
|
123
125
|
}
|
|
124
126
|
</script>
|
|
125
127
|
<style lang="scss" scoped>
|
|
@@ -10,20 +10,20 @@ import VideoThumbnail from './../../../../SubComponents/VideoThumbnail/index.vue
|
|
|
10
10
|
export default {
|
|
11
11
|
name: 'VideoThumbnailFrame',
|
|
12
12
|
components: {
|
|
13
|
-
VideoThumbnail
|
|
13
|
+
VideoThumbnail,
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
video: {
|
|
17
17
|
type: Object,
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
}
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
<style lang="scss" scoped>
|
|
24
|
-
.thumbnail-wrapper {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
24
|
+
// .thumbnail-wrapper {
|
|
25
|
+
// :deep(.wcl-video-thumbnail-wrapper a img.video-thumbnail__image) {
|
|
26
|
+
// max-height: 250px;
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
29
|
</style>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
>
|
|
9
9
|
<template v-slot:content>
|
|
10
10
|
<row align-v="center">
|
|
11
|
-
<column sm="5" :order="flip ? 2 : 1">
|
|
11
|
+
<column class="wcl-media-text__image" sm="5" :order="flip ? 2 : 1">
|
|
12
12
|
<media-image
|
|
13
13
|
v-if="mediaType === 'image' && image"
|
|
14
14
|
:image-alt="image && image.alt ? image.alt : ''"
|
|
@@ -52,61 +52,61 @@ export default {
|
|
|
52
52
|
MediaImage,
|
|
53
53
|
MediaVideo,
|
|
54
54
|
RichText,
|
|
55
|
-
SectionGroup
|
|
55
|
+
SectionGroup,
|
|
56
56
|
},
|
|
57
57
|
props: {
|
|
58
58
|
mediaType: {
|
|
59
59
|
type: String,
|
|
60
|
-
required: true
|
|
60
|
+
required: true,
|
|
61
61
|
},
|
|
62
62
|
content: {
|
|
63
63
|
type: String,
|
|
64
64
|
required: false,
|
|
65
|
-
default: ''
|
|
65
|
+
default: '',
|
|
66
66
|
},
|
|
67
67
|
titleText: {
|
|
68
68
|
type: String,
|
|
69
69
|
required: false,
|
|
70
|
-
default: ''
|
|
70
|
+
default: '',
|
|
71
71
|
},
|
|
72
72
|
titleTag: {
|
|
73
73
|
type: String,
|
|
74
74
|
required: false,
|
|
75
|
-
default: 'h3'
|
|
75
|
+
default: 'h3',
|
|
76
76
|
},
|
|
77
77
|
image: {
|
|
78
78
|
type: Object,
|
|
79
|
-
default: () => {}
|
|
79
|
+
default: () => {},
|
|
80
80
|
},
|
|
81
81
|
video: {
|
|
82
82
|
type: Object,
|
|
83
|
-
default: () => {}
|
|
83
|
+
default: () => {},
|
|
84
84
|
},
|
|
85
85
|
hasBgColor: {
|
|
86
86
|
type: Boolean,
|
|
87
|
-
default: false
|
|
87
|
+
default: false,
|
|
88
88
|
},
|
|
89
89
|
flip: {
|
|
90
90
|
type: Boolean,
|
|
91
|
-
default: false
|
|
91
|
+
default: false,
|
|
92
92
|
},
|
|
93
93
|
hideImageMob: {
|
|
94
94
|
type: Boolean,
|
|
95
|
-
default: false
|
|
95
|
+
default: false,
|
|
96
96
|
},
|
|
97
97
|
rtl: {
|
|
98
98
|
type: Boolean,
|
|
99
|
-
default: false
|
|
99
|
+
default: false,
|
|
100
100
|
},
|
|
101
101
|
workwell: {
|
|
102
102
|
type: Boolean,
|
|
103
|
-
default: false
|
|
103
|
+
default: false,
|
|
104
104
|
},
|
|
105
105
|
storybook: {
|
|
106
106
|
type: Boolean,
|
|
107
|
-
default: false
|
|
108
|
-
}
|
|
109
|
-
}
|
|
107
|
+
default: false,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
110
|
}
|
|
111
111
|
</script>
|
|
112
112
|
|
|
@@ -135,6 +135,10 @@ export default {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
// &__image {
|
|
139
|
+
// flex: 0 0 36%;
|
|
140
|
+
// }
|
|
141
|
+
|
|
138
142
|
&.hideImageMob {
|
|
139
143
|
@include mq('xs') {
|
|
140
144
|
img {
|
|
@@ -13,7 +13,7 @@ const mockData = {
|
|
|
13
13
|
cta: {
|
|
14
14
|
text: 'Click here',
|
|
15
15
|
url: 'https://www.example.com',
|
|
16
|
-
workwell: false
|
|
16
|
+
workwell: false,
|
|
17
17
|
},
|
|
18
18
|
videos: [
|
|
19
19
|
{
|
|
@@ -26,7 +26,7 @@ const mockData = {
|
|
|
26
26
|
transcript:
|
|
27
27
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
28
28
|
rtl: false,
|
|
29
|
-
fixWidth: false
|
|
29
|
+
fixWidth: false,
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
mediaTitle: 'Youtube Video',
|
|
@@ -38,7 +38,7 @@ const mockData = {
|
|
|
38
38
|
transcript:
|
|
39
39
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
40
40
|
rtl: false,
|
|
41
|
-
fixWidth: false
|
|
41
|
+
fixWidth: false,
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
mediaTitle: 'Youtube Video',
|
|
@@ -50,7 +50,7 @@ const mockData = {
|
|
|
50
50
|
transcript:
|
|
51
51
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
52
52
|
rtl: false,
|
|
53
|
-
fixWidth: false
|
|
53
|
+
fixWidth: false,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
mediaTitle: 'Youtube Video',
|
|
@@ -62,7 +62,7 @@ const mockData = {
|
|
|
62
62
|
transcript:
|
|
63
63
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
64
64
|
rtl: false,
|
|
65
|
-
fixWidth: false
|
|
65
|
+
fixWidth: false,
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
mediaTitle: 'Youtube Video',
|
|
@@ -74,7 +74,7 @@ const mockData = {
|
|
|
74
74
|
transcript:
|
|
75
75
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
76
76
|
rtl: false,
|
|
77
|
-
fixWidth: false
|
|
77
|
+
fixWidth: false,
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
mediaTitle: 'Youtube Video',
|
|
@@ -86,7 +86,7 @@ const mockData = {
|
|
|
86
86
|
transcript:
|
|
87
87
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
88
88
|
rtl: false,
|
|
89
|
-
fixWidth: false
|
|
89
|
+
fixWidth: false,
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
mediaTitle: 'Youtube Video',
|
|
@@ -98,9 +98,34 @@ const mockData = {
|
|
|
98
98
|
transcript:
|
|
99
99
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
100
100
|
rtl: false,
|
|
101
|
-
fixWidth: false
|
|
102
|
-
}
|
|
103
|
-
|
|
101
|
+
fixWidth: false,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
// <img src="https://i.vimeocdn.com/video/1480292651-b8fe54c9f954427644325f094a8138dbe17d3437e55bb2c6e9cbb52053a690f7-d_640x360?&r=pad" srcset="https://i.vimeocdn.com/video/1480292651-b8fe54c9f954427644325f094a8138dbe17d3437e55bb2c6e9cbb52053a690f7-d_960x540?&r=pad 2x, https://i.vimeocdn.com/video/1480292651-b8fe54c9f954427644325f094a8138dbe17d3437e55bb2c6e9cbb52053a690f7-d_1280x720?&r=pad 3x, https://i.vimeocdn.com/video/1480292651-b8fe54c9f954427644325f094a8138dbe17d3437e55bb2c6e9cbb52053a690f7-d_1920x1080?&r=pad 4x" alt="WorkSafe Recovery Service Model - Tech Enabler" class="sc-1nghd6u-1 bJrnPX">
|
|
105
|
+
mediaTitle: 'Vimeo Video',
|
|
106
|
+
mediaDescription:
|
|
107
|
+
'Vestibulum rutrum quam vitae fringilla tincidunt. Suspendisse nec tortor urna. Ut laoreet sodales nisi, quis iaculis nulla iaculis vitae. Donec sagittis faucibus lacus eget blandit.',
|
|
108
|
+
id: '720522862',
|
|
109
|
+
provider: 'vimeo',
|
|
110
|
+
transcriptTitle: 'Transcript',
|
|
111
|
+
transcript:
|
|
112
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
113
|
+
rtl: false,
|
|
114
|
+
fixWidth: false,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
mediaTitle: 'Vimeo Video',
|
|
118
|
+
mediaDescription:
|
|
119
|
+
'Vestibulum rutrum quam vitae fringilla tincidunt. Suspendisse nec tortor urna. Ut laoreet sodales nisi, quis iaculis nulla iaculis vitae. Donec sagittis faucibus lacus eget blandit.',
|
|
120
|
+
id: '735637035',
|
|
121
|
+
provider: 'vimeo',
|
|
122
|
+
transcriptTitle: 'Transcript',
|
|
123
|
+
transcript:
|
|
124
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
|
|
125
|
+
rtl: false,
|
|
126
|
+
fixWidth: false,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
104
129
|
}
|
|
105
130
|
|
|
106
131
|
export default {
|
|
@@ -110,8 +135,8 @@ export default {
|
|
|
110
135
|
argTypes: {
|
|
111
136
|
titleTag: {
|
|
112
137
|
control: 'select',
|
|
113
|
-
options: ['h2', 'h3']
|
|
114
|
-
}
|
|
138
|
+
options: ['h2', 'h3'],
|
|
139
|
+
},
|
|
115
140
|
},
|
|
116
141
|
args: {
|
|
117
142
|
gridTitle: mockData.title,
|
|
@@ -120,19 +145,19 @@ export default {
|
|
|
120
145
|
videoList: mockData.videos,
|
|
121
146
|
rtl: mockData.rtl,
|
|
122
147
|
threeColumns: mockData.threeColumns,
|
|
123
|
-
greyBackground:
|
|
124
|
-
cta:
|
|
125
|
-
}
|
|
148
|
+
greyBackground: mockData.greyBackground,
|
|
149
|
+
cta: mockData.cta,
|
|
150
|
+
},
|
|
126
151
|
}
|
|
127
152
|
|
|
128
153
|
const YoutubeContent = (args, { argTypes }) => ({
|
|
129
154
|
components: { VideoGrid, Container, Row, Column },
|
|
130
155
|
setup() {
|
|
131
|
-
return { args }
|
|
156
|
+
return { args }
|
|
132
157
|
},
|
|
133
158
|
data() {
|
|
134
159
|
return {
|
|
135
|
-
videos: mockData.videos
|
|
160
|
+
videos: mockData.videos,
|
|
136
161
|
}
|
|
137
162
|
},
|
|
138
163
|
template: `
|
|
@@ -145,8 +170,7 @@ const YoutubeContent = (args, { argTypes }) => ({
|
|
|
145
170
|
</column>
|
|
146
171
|
</row>
|
|
147
172
|
</container>
|
|
148
|
-
|
|
173
|
+
`,
|
|
149
174
|
})
|
|
150
175
|
|
|
151
176
|
export const Youtube = YoutubeContent.bind({})
|
|
152
|
-
|
|
@@ -48,42 +48,42 @@ export default {
|
|
|
48
48
|
VideoThumbnail,
|
|
49
49
|
Column,
|
|
50
50
|
CardGrid,
|
|
51
|
-
CardGridItem
|
|
51
|
+
CardGridItem,
|
|
52
52
|
},
|
|
53
53
|
props: {
|
|
54
54
|
gridTitle: {
|
|
55
55
|
type: String,
|
|
56
|
-
default: null
|
|
56
|
+
default: null,
|
|
57
57
|
},
|
|
58
58
|
titleTag: {
|
|
59
59
|
type: String,
|
|
60
|
-
default: 'h2'
|
|
60
|
+
default: 'h2',
|
|
61
61
|
},
|
|
62
62
|
gridDescription: {
|
|
63
63
|
type: String,
|
|
64
|
-
default: null
|
|
64
|
+
default: null,
|
|
65
65
|
},
|
|
66
66
|
videoList: {
|
|
67
67
|
type: Array,
|
|
68
|
-
required: true
|
|
68
|
+
required: true,
|
|
69
69
|
},
|
|
70
70
|
rtl: {
|
|
71
71
|
type: Boolean,
|
|
72
|
-
default: false
|
|
72
|
+
default: false,
|
|
73
73
|
},
|
|
74
74
|
threeColumns: {
|
|
75
75
|
type: Boolean,
|
|
76
|
-
default: false
|
|
76
|
+
default: false,
|
|
77
77
|
},
|
|
78
78
|
greyBackground: {
|
|
79
79
|
type: Boolean,
|
|
80
|
-
default: false
|
|
80
|
+
default: false,
|
|
81
81
|
},
|
|
82
82
|
cta: {
|
|
83
83
|
type: Object,
|
|
84
|
-
default: null
|
|
85
|
-
}
|
|
86
|
-
}
|
|
84
|
+
default: null,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
87
|
}
|
|
88
88
|
</script>
|
|
89
89
|
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
|
|
104
104
|
&.items-2 {
|
|
105
105
|
:deep(.wcl-video-thumbnail-wrapper a .video-thumbnail__image) {
|
|
106
|
-
max-height: 304px;
|
|
106
|
+
// max-height: 304px;
|
|
107
107
|
@include mq('mm') {
|
|
108
108
|
max-height: auto;
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
}
|
|
112
112
|
&.items-3 {
|
|
113
113
|
:deep(.wcl-video-thumbnail-wrapper a .video-thumbnail__image) {
|
|
114
|
-
max-height:
|
|
114
|
+
// max-height: 225px;
|
|
115
115
|
@include mq('mm') {
|
|
116
116
|
max-height: auto;
|
|
117
117
|
}
|