@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
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
&__wrap {
|
|
12
12
|
position: relative;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
overflow-y: scroll;
|
|
13
15
|
background: $app-header-background-colour;
|
|
14
16
|
border-radius: 3px;
|
|
15
17
|
height: 70px;
|
|
@@ -29,9 +31,10 @@
|
|
|
29
31
|
border: $app-header-active;
|
|
30
32
|
|
|
31
33
|
> a > span {
|
|
34
|
+
// border-bottom: 3px solid $app-header-active;
|
|
32
35
|
background-color: $app-header-active;
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
}
|
|
35
38
|
.isActiveChild {
|
|
36
39
|
> a {
|
|
37
40
|
background: $app-header-active;
|
|
@@ -46,7 +49,6 @@
|
|
|
46
49
|
|
|
47
50
|
// First Level Overrides
|
|
48
51
|
&__close {
|
|
49
|
-
|
|
50
52
|
&-button {
|
|
51
53
|
display: flex;
|
|
52
54
|
vertical-align: middle;
|
|
@@ -189,15 +191,15 @@
|
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
&__nav-menu {
|
|
192
|
-
|
|
194
|
+
|
|
193
195
|
.nav-item {
|
|
194
196
|
.sub-nav-container {
|
|
195
197
|
display: none;
|
|
196
198
|
position: fixed;
|
|
197
199
|
background: $app-menu-black;
|
|
198
|
-
top:
|
|
199
|
-
left:
|
|
200
|
-
right:
|
|
200
|
+
top: 165px;
|
|
201
|
+
left: 10px;
|
|
202
|
+
right: 10px;
|
|
201
203
|
bottom: 10px;
|
|
202
204
|
border-radius: 3px;
|
|
203
205
|
|
|
@@ -206,6 +208,18 @@
|
|
|
206
208
|
position: relative;
|
|
207
209
|
}
|
|
208
210
|
|
|
211
|
+
&__innermore {
|
|
212
|
+
overflow-x: auto;
|
|
213
|
+
height: max-content;
|
|
214
|
+
left: 10px;
|
|
215
|
+
right: 10px;
|
|
216
|
+
top: 165px;
|
|
217
|
+
position: fixed;
|
|
218
|
+
padding-top: 15px !important;
|
|
219
|
+
background-color: $app-menu-black !important;
|
|
220
|
+
border-radius: 3px;
|
|
221
|
+
}
|
|
222
|
+
|
|
209
223
|
&__wrap {
|
|
210
224
|
position: relative;
|
|
211
225
|
margin: 0 auto;
|
|
@@ -289,14 +303,13 @@
|
|
|
289
303
|
}
|
|
290
304
|
> .sub-nav-group {
|
|
291
305
|
li.isActiveChild {
|
|
306
|
+
|
|
292
307
|
.sub-nav {
|
|
293
308
|
display: block;
|
|
294
|
-
|
|
295
309
|
|
|
296
310
|
.selected-title {
|
|
297
311
|
text-align: left;
|
|
298
312
|
top: 12px;
|
|
299
|
-
|
|
300
313
|
|
|
301
314
|
a {
|
|
302
315
|
padding: 5px 5px 15px 5px;
|
|
@@ -342,6 +355,7 @@
|
|
|
342
355
|
|
|
343
356
|
.styled-scrollbar {
|
|
344
357
|
overflow-y: scroll;
|
|
358
|
+
white-space: normal !important;
|
|
345
359
|
//firefox
|
|
346
360
|
scrollbar-color: $app-header-active $app-menu-black;
|
|
347
361
|
scrollbar-width: thin;
|
|
@@ -365,6 +379,13 @@
|
|
|
365
379
|
left: -9999px !important;
|
|
366
380
|
}
|
|
367
381
|
}
|
|
382
|
+
|
|
383
|
+
.more-menu {
|
|
384
|
+
height: 56px;
|
|
385
|
+
vertical-align: middle;
|
|
386
|
+
padding: 0px 10px !important;
|
|
387
|
+
}
|
|
388
|
+
|
|
368
389
|
.skip-link {
|
|
369
390
|
@include visually-hidden;
|
|
370
391
|
color: $app-menu-black;
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
<script>
|
|
13
13
|
import Icon from '../../SubComponents/Icon/index.vue'
|
|
14
14
|
import ChevUp from '../../../assets/icons/chev-up.svg?raw'
|
|
15
|
-
import debounce from 'lodash
|
|
15
|
+
import { debounce } from 'lodash-es'
|
|
16
16
|
|
|
17
17
|
export default {
|
|
18
18
|
name: 'BackToTop',
|
|
19
19
|
components: {
|
|
20
|
-
Icon
|
|
20
|
+
Icon,
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
23
23
|
storybook: {
|
|
24
24
|
type: Boolean,
|
|
25
|
-
default: false
|
|
26
|
-
}
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
27
|
},
|
|
28
28
|
data() {
|
|
29
29
|
return {
|
|
30
30
|
ChevUp,
|
|
31
|
-
showBackToTop: false
|
|
31
|
+
showBackToTop: false,
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
computed: {
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
} else {
|
|
39
39
|
return this.showBackToTop
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
42
|
},
|
|
43
43
|
mounted() {
|
|
44
44
|
this.handleDebouncedScroll = debounce(this.showHideBtbBtn, 100)
|
|
@@ -57,8 +57,8 @@ export default {
|
|
|
57
57
|
},
|
|
58
58
|
showHideBtbBtn() {
|
|
59
59
|
this.showBackToTop = window.scrollY > window.innerHeight / 2
|
|
60
|
-
}
|
|
61
|
-
}
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
62
|
}
|
|
63
63
|
</script>
|
|
64
64
|
|
|
@@ -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
|
+
}
|