@worksafevictoria/wcl7.5 1.1.0-beta.72 → 1.1.0-beta.74
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 +18 -11
- package/package.json +4 -3
- package/src/components/Common/CardGrid/index.vue +1 -1
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +7 -4
- package/src/components/Containers/SectionGroup/index.vue +5 -5
- package/src/components/Global/Cookies/index.stories.js +16 -10
- package/src/components/Global/Cookies/index.vue +278 -240
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +93 -122
- package/src/components/Global/GlobalNotice/index.vue +70 -96
- package/src/components/Paragraphs/Chart/Constants.js +485 -485
- package/src/components/Paragraphs/TabbedCards/index.vue +16 -16
- package/src/components/SubComponents/VideoThumbnail/index.vue +31 -114
- package/src/includes/scss/vars/src/colors.module.scss +28 -1
package/.storybook/preview.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
|
|
3
3
|
import { setup } from '@storybook/vue3'
|
|
4
4
|
|
|
5
|
+
import { createBootstrap } from 'bootstrap-vue-next'
|
|
6
|
+
|
|
7
|
+
// Add the necessary CSS
|
|
8
|
+
import 'bootstrap/dist/css/bootstrap.css'
|
|
9
|
+
import 'bootstrap-vue-next/dist/bootstrap-vue-next.css'
|
|
10
|
+
|
|
5
11
|
//Custom fonts
|
|
6
12
|
import './../src/assets/styles/webfonts.css'
|
|
7
13
|
|
|
@@ -13,37 +19,38 @@ import './../src/assets/styles/storybook.scss'
|
|
|
13
19
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
14
20
|
import './../src/assets/styles/stylesheet.scss'
|
|
15
21
|
|
|
16
|
-
|
|
17
22
|
setup((app) => {
|
|
18
23
|
app.component('NuxtLink', {
|
|
19
24
|
props: {
|
|
20
25
|
to: {
|
|
21
26
|
type: String,
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
24
29
|
},
|
|
25
|
-
template:
|
|
30
|
+
template:
|
|
31
|
+
'<a target="_blank" :href="`https://ws-ui.wsvdigital.com.au${this.to}`"><slot></slot></a>',
|
|
26
32
|
})
|
|
33
|
+
app.use(createBootstrap())
|
|
27
34
|
})
|
|
28
35
|
|
|
29
36
|
const preview = {
|
|
30
37
|
parameters: {
|
|
31
38
|
options: {
|
|
32
39
|
storySort: {
|
|
33
|
-
method: 'alphabetical'
|
|
34
|
-
}
|
|
40
|
+
method: 'alphabetical',
|
|
41
|
+
},
|
|
35
42
|
},
|
|
36
43
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
37
44
|
controls: {
|
|
38
45
|
matchers: {
|
|
39
46
|
color: /(background|color)$/i,
|
|
40
|
-
date: /Date$/i
|
|
41
|
-
}
|
|
47
|
+
date: /Date$/i,
|
|
48
|
+
},
|
|
42
49
|
},
|
|
43
50
|
viewport: {
|
|
44
|
-
viewports: INITIAL_VIEWPORTS
|
|
45
|
-
}
|
|
46
|
-
}
|
|
51
|
+
viewports: INITIAL_VIEWPORTS,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export default preview
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worksafevictoria/wcl7.5",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.74",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@storybook/cli": "^7.6.20",
|
|
44
44
|
"axios": "^1.6.0",
|
|
45
45
|
"bootstrap": "^5.3.2",
|
|
46
|
-
"bootstrap-vue-next": "^0.
|
|
46
|
+
"bootstrap-vue-next": "^0.26.18",
|
|
47
47
|
"date-fns": "^2.30.0",
|
|
48
48
|
"formiojs": "4.13.13",
|
|
49
49
|
"storybook-addon-deep-controls": "^0.6.2",
|
|
@@ -97,5 +97,6 @@
|
|
|
97
97
|
"vite-svg-loader": "^5.1.0",
|
|
98
98
|
"vitest": "^0.34.6",
|
|
99
99
|
"vue-jest": "^3.0.7"
|
|
100
|
-
}
|
|
100
|
+
},
|
|
101
|
+
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
|
|
101
102
|
}
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
|
+
import { getCurrentInstance } from 'vue'
|
|
26
27
|
import Icon from './../../SubComponents/Icon/index.vue'
|
|
27
28
|
import ChevUp from './../../../assets/icons/chev-up.svg?raw'
|
|
28
29
|
import CaretUp from './../../../assets/icons/caret-up.svg?url'
|
|
@@ -71,11 +72,13 @@ export default {
|
|
|
71
72
|
},
|
|
72
73
|
//Identify if this is a tabbed card WSV2-374
|
|
73
74
|
isTabbedCard() {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
const instance = getCurrentInstance();
|
|
76
|
+
const parentEl = instance?.parent?.proxy?.$el.parentNode;
|
|
77
|
+
|
|
78
|
+
if (parentEl && parentEl.classList.contains('tabbed-card')) {
|
|
79
|
+
return true;
|
|
77
80
|
} else {
|
|
78
|
-
return false
|
|
81
|
+
return false;
|
|
79
82
|
}
|
|
80
83
|
},
|
|
81
84
|
//If isTabbedCard, then supportive text must be displayed for up and down carets. WSV2-374
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<slot name="preContent"></slot>
|
|
51
51
|
</column>
|
|
52
52
|
</row>
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
<div
|
|
55
55
|
class="section-group__content section-group__row"
|
|
56
56
|
:class="{
|
|
@@ -261,9 +261,9 @@ export default {
|
|
|
261
261
|
padding-bottom: 0px;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
&__row {
|
|
265
|
+
padding-top: $basePadding;
|
|
266
|
+
}
|
|
267
267
|
|
|
268
268
|
&.rtl {
|
|
269
269
|
@include makeRTL;
|
|
@@ -274,7 +274,7 @@ export default {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
&__content {
|
|
277
|
-
|
|
277
|
+
padding-bottom: $basePadding;
|
|
278
278
|
> :deep(.row) {
|
|
279
279
|
row-gap: calc(#{$basePadding} / 2);
|
|
280
280
|
}
|
|
@@ -4,31 +4,37 @@ const defaultValue = {
|
|
|
4
4
|
header: 'field_cookie_heading',
|
|
5
5
|
content: {
|
|
6
6
|
default: 'field_cookie_content',
|
|
7
|
-
small: 'field_cookie_content_small'
|
|
7
|
+
small: 'field_cookie_content_small',
|
|
8
8
|
},
|
|
9
9
|
modal: {
|
|
10
10
|
heading: 'field_modal_heading',
|
|
11
11
|
functional: {
|
|
12
12
|
heading: 'field_functional_heading',
|
|
13
|
-
description: 'field_functional_description'
|
|
13
|
+
description: 'field_functional_description',
|
|
14
14
|
},
|
|
15
15
|
analytics: {
|
|
16
16
|
heading: 'field_analytics_heading',
|
|
17
|
-
description: 'field_analytics_description'
|
|
17
|
+
description: 'field_analytics_description',
|
|
18
18
|
},
|
|
19
19
|
marketing: {
|
|
20
20
|
heading: 'field_marketing_heading',
|
|
21
|
-
description: 'field_marketing_description'
|
|
22
|
-
}
|
|
23
|
-
}
|
|
21
|
+
description: 'field_marketing_description',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
24
|
}
|
|
25
25
|
export default {
|
|
26
26
|
title: 'Global/Cookies',
|
|
27
27
|
component: Cookies,
|
|
28
28
|
args: {
|
|
29
29
|
cookieHeader: 'Accept and Reject Cookies',
|
|
30
|
-
cookieContent: defaultValue
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
cookieContent: defaultValue,
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
33
|
|
|
34
|
-
export const Default = {
|
|
34
|
+
export const Default = {
|
|
35
|
+
loaders: [
|
|
36
|
+
() => {
|
|
37
|
+
window.localStorage.removeItem('cookieBannerDisplayed')
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
}
|