@worksafevictoria/wcl7.5 1.3.0 → 1.5.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 (29) hide show
  1. package/lib/utility.js +1 -1
  2. package/package.json +1 -2
  3. package/src/components/Common/CardGrid/index.vue +17 -2
  4. package/src/components/Common/CardGridItem/index.vue +20 -10
  5. package/src/components/Containers/Carousel/index.stories.js +30 -0
  6. package/src/components/Containers/Carousel/index.vue +165 -0
  7. package/src/components/Containers/HomepageHeaderNew/index.stories.js +75 -0
  8. package/src/components/Containers/HomepageHeaderNew/index.vue +198 -0
  9. package/src/components/Containers/Subheader/index.vue +8 -2
  10. package/src/components/Global/AppFooter/index.vue +30 -28
  11. package/src/components/Global/AppHeader/index.vue +9 -10
  12. package/src/components/Global/AppHeaderNew/index.vue +313 -242
  13. package/src/components/Global/AppHeaderNew/styles.scss +26 -0
  14. package/src/components/Global/ContrastMode/index.vue +1 -1
  15. package/src/components/Global/Cookies/index.vue +7 -0
  16. package/src/components/Global/HeroHeader/index.vue +12 -13
  17. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +21 -17
  18. package/src/components/Paragraphs/BrowseContent/index.vue +1 -5
  19. package/src/components/Paragraphs/Directory/Records/ISP/index.vue +2 -2
  20. package/src/components/Paragraphs/ListGroup/index.vue +55 -46
  21. package/src/components/Paragraphs/Statistics/index.vue +1 -0
  22. package/src/components/Paragraphs/TabbedCards/index.vue +42 -38
  23. package/src/components/SubComponents/CardGroup/index.vue +33 -27
  24. package/src/components/SubComponents/CtaButton/index.vue +27 -25
  25. package/src/components/SubComponents/ResourceGroup/index.vue +13 -4
  26. package/src/includes/scss/mixins/src/grid.scss +4 -2
  27. package/src/includes/scss/mixins/src/units.scss +25 -4
  28. package/src/mock/app-header-new.js +27 -15
  29. package/src/mock/carousel-items.js +57 -0
@@ -11,7 +11,7 @@
11
11
  <column>
12
12
  <div class="mobilescreen">Reviewed on {{ updateDate }}</div>
13
13
  <div v-if="!submitted">
14
- <div style="margin-right:10px; display:inline">
14
+ <div style="margin-right: 10px; display: inline">
15
15
  <strong>Was this page helpful?</strong>
16
16
  </div>
17
17
  <input
@@ -86,7 +86,7 @@
86
86
  Cancel
87
87
  </button>
88
88
  <cta-button
89
- style="float:right;"
89
+ style="float: right"
90
90
  :url="''"
91
91
  :rtl="rtl"
92
92
  @clicked="submitFeedback()"
@@ -181,7 +181,7 @@
181
181
  :key="subIndex"
182
182
  class="app-footer-menu__item"
183
183
  :class="{
184
- 'app-footer-menu__item--hide': !menuItem.isOpen
184
+ 'app-footer-menu__item--hide': !menuItem.isOpen,
185
185
  }"
186
186
  >
187
187
  <a
@@ -249,7 +249,7 @@
249
249
  <li
250
250
  class="app-footer-menu__item app-footer-menu__address app-footer-menu__item--link"
251
251
  :class="{
252
- 'app-footer-menu__item--hide': !contactMenuIsOpen
252
+ 'app-footer-menu__item--hide': !contactMenuIsOpen,
253
253
  }"
254
254
  >
255
255
  <p>
@@ -261,7 +261,7 @@
261
261
  <li
262
262
  class="app-footer-menu__item app-footer-menu__item--link"
263
263
  :class="{
264
- 'app-footer-menu__item--hide': !contactMenuIsOpen
264
+ 'app-footer-menu__item--hide': !contactMenuIsOpen,
265
265
  }"
266
266
  >
267
267
  <a class="dark" href="tel:+611800136089">1800 136 089</a>
@@ -269,7 +269,7 @@
269
269
  <li
270
270
  class="app-footer-menu__item app-footer-menu__item--link"
271
271
  :class="{
272
- 'app-footer-menu__item--hide': !contactMenuIsOpen
272
+ 'app-footer-menu__item--hide': !contactMenuIsOpen,
273
273
  }"
274
274
  >
275
275
  <nuxt-link class="dark" to="/contact-worksafe"
@@ -337,7 +337,7 @@
337
337
  <button
338
338
  class="app-footer__main__subscribe-col__btn"
339
339
  :class="{
340
- 'app-footer__main__subscribe-btn--workwell': isWorkwell
340
+ 'app-footer__main__subscribe-btn--workwell': isWorkwell,
341
341
  }"
342
342
  @click="subscribe"
343
343
  >
@@ -385,25 +385,25 @@ export default {
385
385
  Container,
386
386
  Row,
387
387
  Icon,
388
- CtaButton
388
+ CtaButton,
389
389
  },
390
390
  props: {
391
391
  footerMenu: {
392
392
  type: Array,
393
- required: true
393
+ required: true,
394
394
  },
395
395
  changedDate: {
396
396
  type: String,
397
- required: true
397
+ required: true,
398
398
  },
399
399
  isWorkwell: {
400
400
  type: Boolean,
401
- default: false
401
+ default: false,
402
402
  },
403
403
  storybook: {
404
404
  type: Boolean,
405
- default: false
406
- }
405
+ default: false,
406
+ },
407
407
  },
408
408
  data() {
409
409
  return {
@@ -430,8 +430,8 @@ export default {
430
430
  webform_id: 'page_feedback_form',
431
431
  page_url: '',
432
432
  was_the_information_on_this_page_helpful_: '',
433
- message: ''
434
- }
433
+ message: '',
434
+ },
435
435
  }
436
436
  },
437
437
  computed: {
@@ -444,7 +444,7 @@ export default {
444
444
  },
445
445
  processID() {
446
446
  return `${Date.now()}-${Math.floor(Math.random() * 10000)}`
447
- }
447
+ },
448
448
  },
449
449
  watch: {
450
450
  $route() {
@@ -452,10 +452,10 @@ export default {
452
452
  this.submitted = false
453
453
  },
454
454
  showForm: {
455
- handler: function() {
455
+ handler: function () {
456
456
  this.initialiseFeedback()
457
- }
458
- }
457
+ },
458
+ },
459
459
  },
460
460
  mounted() {
461
461
  this.$nextTick(() => {
@@ -510,7 +510,8 @@ export default {
510
510
  const attrs = {
511
511
  event: 'custom.interaction.helpful',
512
512
  label: this.response.was_the_information_on_this_page_helpful_,
513
- title: this.$store?.state?.page?.content?.title
513
+ //title: this.$store?.state?.page?.content?.title,
514
+ title: this.$pageStore?.content?.title,
514
515
  }
515
516
  if (this.$gtm) {
516
517
  this.$gtm.push({ event: 'custom.interaction.helpful', ...attrs })
@@ -518,20 +519,21 @@ export default {
518
519
  },
519
520
  fireGtagFeedback() {
520
521
  const attrs = {
521
- title: this.$store?.state?.page?.content?.title,
522
+ //title: this.$store?.state?.page?.content?.title,
523
+ title: this.$pageStore?.content?.title,
522
524
  label: this.response.was_the_information_on_this_page_helpful_,
523
- processID: this.processID
525
+ processID: this.processID,
524
526
  }
525
527
  if (this.$gtm) {
526
528
  this.$gtm.push({
527
529
  event: 'custom.interaction.helpful.feedback',
528
- ...attrs
530
+ ...attrs,
529
531
  })
530
532
  }
531
533
  },
532
534
  backToTop() {
533
- if (!this.storybook) {
534
- this.$nuxt.$emit('scrollToTop')
535
+ if (this.$bus) {
536
+ this.$bus.$emit('scrollToTop')
535
537
  }
536
538
  },
537
539
  isAbsoluteUrl(uri) {
@@ -617,13 +619,13 @@ export default {
617
619
  this.$gtm.push({
618
620
  event: 'custom.interaction.outboundlink',
619
621
  category: item.title,
620
- label: item.absolute
622
+ label: item.absolute,
621
623
  })
622
624
  }
623
625
  window.open(item.absolute)
624
626
  }
625
- }
626
- }
627
+ },
628
+ },
627
629
  }
628
630
  </script>
629
631
 
@@ -510,14 +510,13 @@ export default {
510
510
  window.addEventListener('resize', this.screenWidth)
511
511
  this.screenWidth()
512
512
  }
513
- if (this.$nuxt) {
514
- //console.log('🚀 ~ this.$nuxt.$on ~ this.$nuxt:', this.$nuxt)
515
- // this.$nuxt.$on('site-search', (query) => {
516
- // this.searchQuery = query
517
- // if (query) {
518
- // this.showSearch()
519
- // }
520
- // })
513
+ if (this.$bus) {
514
+ this.$bus.$on('site-search', (query) => {
515
+ this.searchQuery = query
516
+ if (query) {
517
+ this.showSearch()
518
+ }
519
+ })
521
520
  }
522
521
  },
523
522
  methods: {
@@ -863,8 +862,8 @@ export default {
863
862
  // this.$store.dispatch('tracking/event', payload)
864
863
  },
865
864
  skipToContent() {
866
- if (this.$nuxt) {
867
- this.$nuxt.$emit('scrollToTop')
865
+ if (this.$bus) {
866
+ this.$bus.$emit('scrollToTop')
868
867
  }
869
868
  },
870
869
  },