@worksafevictoria/wcl7.5 1.9.0-beta.3 → 1.9.0-beta.5

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/components/Common/CardGridItem/card-grid-item-caret.vue +39 -45
  3. package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
  4. package/src/components/Common/CardGridItem/index.vue +6 -2
  5. package/src/components/Containers/Carousel/index.stories.js +2 -1
  6. package/src/components/Containers/Carousel/index.vue +68 -69
  7. package/src/components/Containers/HomepageHeader/index.stories.js +1 -1
  8. package/src/components/Containers/HomepageHeaderNew/index.stories.js +3 -15
  9. package/src/components/Containers/HomepageHeaderNew/index.vue +0 -5
  10. package/src/components/Global/AppFooter/index.vue +115 -129
  11. package/src/components/Global/AppHeader/ModalSearch/index.vue +7 -1
  12. package/src/components/Global/AppHeader/index.stories.js +2 -2
  13. package/src/components/Global/AppHeaderNew/ModalSearch/index.vue +21 -17
  14. package/src/components/Global/AppHeaderNew/index.stories.js +2 -2
  15. package/src/components/Global/AppHeaderNew/index.vue +22 -22
  16. package/src/components/Global/BackToTop/index.vue +16 -16
  17. package/src/components/Global/ContrastMode/index.stories.js +1 -1
  18. package/src/components/Global/HeroHeader/index.vue +62 -73
  19. package/src/components/Global/SocialShare/index.vue +62 -66
  20. package/src/components/Global/Strip/index.vue +9 -5
  21. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +21 -23
  22. package/src/components/Paragraphs/Accordion/StepperItem/index.vue +15 -15
  23. package/src/components/Paragraphs/Calculator/CardContainer/index.vue +74 -75
  24. package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +31 -39
  25. package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +104 -107
  26. package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +152 -120
  27. package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
  28. package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +158 -128
  29. package/src/components/Paragraphs/TabulatedData/index.vue +3 -2
  30. package/src/components/SubComponents/CtaButton/index.vue +47 -44
  31. package/src/components/SubComponents/Icon/README.md +2 -2
  32. package/src/components/SubComponents/Icon/example.js +1 -0
  33. package/src/components/SubComponents/Icon/index.stories.js +1 -1
  34. package/src/components/SubComponents/Icon/index.vue +47 -47
  35. package/src/components/SubComponents/ResourceGroup/cardbody.vue +49 -61
  36. package/src/components/SubComponents/Search/index.vue +4 -0
  37. package/src/components/SubComponents/VideoThumbnail/index.vue +30 -28
  38. package/src/mock/carousel-items.js +46 -81
@@ -36,13 +36,11 @@
36
36
  <label for="frNo" class="option">No</label>
37
37
  </div>
38
38
  <div v-if="submitted">
39
- <img class="feedback-tick" alt="" :src="Tick" />Thank you for your
40
- feedback
39
+ <img class="feedback-tick" alt="feedback tick" :src="Tick" />Thank you for
40
+ your feedback
41
41
  </div>
42
42
  </column>
43
- <column
44
- class="app-footer__page-info__reviewed-date fullscreen"
45
- :xs="6"
43
+ <column class="app-footer__page-info__reviewed-date fullscreen" :xs="6"
46
44
  >Reviewed on {{ updateDate }}</column
47
45
  >
48
46
  </row>
@@ -61,9 +59,8 @@
61
59
  <strong>Tell us more (optional)</strong>
62
60
  </div>
63
61
  <div>
64
- We are unable to respond to questions via this form. If you
65
- have a question and would like to receive a reply, please use
66
- one of the
62
+ We are unable to respond to questions via this form. If you have a
63
+ question and would like to receive a reply, please use one of the
67
64
  <a
68
65
  class="feedback-link"
69
66
  href="https://www.worksafe.vic.gov.au/contact-worksafe"
@@ -99,10 +96,7 @@
99
96
  </row>
100
97
  </container>
101
98
  </div>
102
- <div
103
- class="app-footer__main"
104
- :class="{ 'app-footer__main--workwell': isWorkwell }"
105
- >
99
+ <div class="app-footer__main" :class="{ 'app-footer__main--workwell': isWorkwell }">
106
100
  <container>
107
101
  <row valign="center" class="app-footer__main__social-share">
108
102
  <column :xs="12" :sm="2"
@@ -111,9 +105,7 @@
111
105
  :width="isWorkwell ? 99 : 101"
112
106
  :src="isWorkwell ? WorkWellLogo : WorkSafeLogo"
113
107
  :alt="
114
- !isWorkwell
115
- ? 'Work Safe Victoria - Logo'
116
- : 'Work Well Victoria - Logo'
108
+ !isWorkwell ? 'Work Safe Victoria - Logo' : 'Work Well Victoria - Logo'
117
109
  "
118
110
  /></column>
119
111
  <column :xs="12" :sm="10">
@@ -140,7 +132,7 @@
140
132
  height="12"
141
133
  width="17"
142
134
  class="app-footer-menu__title__caret"
143
- alt=""
135
+ alt="expand icon"
144
136
  />
145
137
  <img
146
138
  v-show="menuItem.isOpen"
@@ -148,7 +140,7 @@
148
140
  height="12"
149
141
  width="17"
150
142
  class="app-footer-menu__title__caret"
151
- alt=""
143
+ alt="collapse icon"
152
144
  />
153
145
 
154
146
  <a
@@ -158,9 +150,7 @@
158
150
  class="app-footer-menu__title--link dark"
159
151
  :class="!menuItem.absolute ? 'nolink' : false"
160
152
  target="_blank"
161
- :aria-expanded="
162
- isMobile ? (menuItem.isOpen ? 'true' : 'false') : false
163
- "
153
+ :aria-expanded="isMobile ? (menuItem.isOpen ? 'true' : 'false') : false"
164
154
  @click.prevent="handleAbsoluteClick(menuItem)"
165
155
  ><h2>{{ menuItem.title }}</h2>
166
156
  </a>
@@ -189,14 +179,14 @@
189
179
  :href="subItem.absolute"
190
180
  target="_blank"
191
181
  class="app-footer-menu__item--link dark"
192
- @click.prevent="handleAbsoluteClick(subItem)"
182
+ @click="handleAbsoluteClick(subItem)"
193
183
  >{{ subItem.title
194
184
  }}<img
195
185
  :src="ExternalLink"
196
186
  height="12"
197
187
  width="12"
198
188
  class="app-footer-menu__item--icon"
199
- alt="external link"
189
+ alt="External link"
200
190
  />
201
191
  </a>
202
192
  <nuxt-link
@@ -232,7 +222,7 @@
232
222
  height="12"
233
223
  width="17"
234
224
  class="app-footer-menu__title__caret"
235
- alt=""
225
+ alt="expand icon"
236
226
  />
237
227
  <img
238
228
  v-show="contactMenuIsOpen"
@@ -240,12 +230,9 @@
240
230
  height="12"
241
231
  width="17"
242
232
  class="app-footer-menu__title__caret"
243
- alt=""
233
+ alt="collapse icon"
244
234
  />
245
- <ul
246
- class="submenu"
247
- :class="contactMenuIsOpen ? 'isOpen' : false"
248
- >
235
+ <ul class="submenu" :class="contactMenuIsOpen ? 'isOpen' : false">
249
236
  <li
250
237
  class="app-footer-menu__item app-footer-menu__address app-footer-menu__item--link"
251
238
  :class="{
@@ -305,14 +292,13 @@
305
292
  alt="Pride Flag"
306
293
  />
307
294
  <p>
308
- WorkSafe Victoria acknowledges Aboriginal and Torres Strait
309
- Islander people as the Traditional Custodians of the land and
310
- acknowledges and pays respect to their Elders, past and present.
295
+ WorkSafe Victoria acknowledges Aboriginal and Torres Strait Islander people
296
+ as the Traditional Custodians of the land and acknowledges and pays respect
297
+ to their Elders, past and present.
311
298
  </p>
312
299
  <p>
313
- WorkSafe Victoria is committed to safe and inclusive work places,
314
- policies and services for people of LGBTIQ communities and their
315
- families.
300
+ WorkSafe Victoria is committed to safe and inclusive work places, policies
301
+ and services for people of LGBTIQ communities and their families.
316
302
  </p>
317
303
  </column>
318
304
  <column :md="1" class="app-footer__main__empty-col" />
@@ -348,6 +334,7 @@
348
334
  height="24"
349
335
  class="app-footer__main__subscribe--icon"
350
336
  :glyph="ExternalLinkRaw"
337
+ icon-alt="External link icon"
351
338
  />
352
339
  </button>
353
340
  </column>
@@ -358,27 +345,27 @@
358
345
  </template>
359
346
 
360
347
  <script>
361
- import Row from './../../Containers/Row/index.vue'
362
- import Container from './../../Containers/Container/index.vue'
363
- import Column from './../../Containers/Column/index.vue'
364
- import FooterSocialShare from './FooterSocialShare/index.vue'
365
- import CaretUp from './../../../assets/icons/caret-up.svg?url'
366
- import CaretDown from './../../../assets/icons/caret-down.svg?url'
367
- import WorkSafeLogo from './../../../assets/icons/AppFooter/worksafe-footer-logo.svg?url'
368
- import VicGovLogo from './../../../assets/icons/brand-VicStateGov-logo-reversed.svg?url'
369
- import ExternalLink from './../../../assets/icons/external-link-16px.svg?url'
370
- import ExternalLinkRaw from './../../../assets/icons/external-link.svg?url'
371
- import AboriginalFlag from './../../../assets/icons/AppFooter/australian-aboriginal-flag.svg?url'
372
- import PrideFlag from './../../../assets/icons/AppFooter/pride-flag.svg?url'
373
- import TorresStraitFlag from './../../../assets/icons/AppFooter/torres-strait-islanders-flag.svg?url'
374
- import WorkWellLogo from './../../../assets/icons/AppFooter/logo-workwell-reversed.svg?url'
375
- import { format } from 'date-fns'
376
- import Icon from './../../SubComponents/Icon/index.vue'
377
- import CtaButton from './../../SubComponents/CtaButton/index.vue'
378
- import Tick from './../../../assets/icons/tick.svg?url'
348
+ import Row from "./../../Containers/Row/index.vue";
349
+ import Container from "./../../Containers/Container/index.vue";
350
+ import Column from "./../../Containers/Column/index.vue";
351
+ import FooterSocialShare from "./FooterSocialShare/index.vue";
352
+ import CaretUp from "./../../../assets/icons/caret-up.svg?url";
353
+ import CaretDown from "./../../../assets/icons/caret-down.svg?url";
354
+ import WorkSafeLogo from "./../../../assets/icons/AppFooter/worksafe-footer-logo.svg?url";
355
+ import VicGovLogo from "./../../../assets/icons/brand-VicStateGov-logo-reversed.svg?url";
356
+ import ExternalLink from "./../../../assets/icons/external-link-16px.svg?url";
357
+ import ExternalLinkRaw from "./../../../assets/icons/external-link.svg?url";
358
+ import AboriginalFlag from "./../../../assets/icons/AppFooter/australian-aboriginal-flag.svg?url";
359
+ import PrideFlag from "./../../../assets/icons/AppFooter/pride-flag.svg?url";
360
+ import TorresStraitFlag from "./../../../assets/icons/AppFooter/torres-strait-islanders-flag.svg?url";
361
+ import WorkWellLogo from "./../../../assets/icons/AppFooter/logo-workwell-reversed.svg?url";
362
+ import { format } from "date-fns";
363
+ import Icon from "./../../SubComponents/Icon/index.vue";
364
+ import CtaButton from "./../../SubComponents/CtaButton/index.vue";
365
+ import Tick from "./../../../assets/icons/tick.svg?url";
379
366
 
380
367
  export default {
381
- name: 'AppFooter',
368
+ name: "AppFooter",
382
369
  components: {
383
370
  FooterSocialShare,
384
371
  Column,
@@ -425,28 +412,27 @@ export default {
425
412
  showForm: false,
426
413
  submitted: false,
427
414
  endpoint:
428
- (this.$config
429
- ? this.$config.public.apiURL
430
- : process.env.CONTENT_API_URL) + '/webform_rest/submit?_format=json',
415
+ (this.$config ? this.$config.public.apiURL : process.env.CONTENT_API_URL) +
416
+ "/webform_rest/submit?_format=json",
431
417
  response: {
432
- webform_id: 'page_feedback_form',
433
- page_url: '',
434
- was_the_information_on_this_page_helpful_: '',
435
- message: '',
418
+ webform_id: "page_feedback_form",
419
+ page_url: "",
420
+ was_the_information_on_this_page_helpful_: "",
421
+ message: "",
436
422
  },
437
- }
423
+ };
438
424
  },
439
425
  computed: {
440
426
  updateDate() {
441
427
  // Change to remove hydration date
442
428
  return new Date(this.changedDate)
443
- .toLocaleString('en-AU', {
444
- timeZone: 'Australia/Sydney',
429
+ .toLocaleString("en-AU", {
430
+ timeZone: "Australia/Sydney",
445
431
  })
446
- .split(',')[0]
432
+ .split(",")[0];
447
433
  },
448
434
  isMobile() {
449
- return this.windowWidth < 768
435
+ return this.windowWidth < 768;
450
436
  },
451
437
  // Why send junk id
452
438
  // processID() {
@@ -455,73 +441,73 @@ export default {
455
441
  },
456
442
  watch: {
457
443
  $route() {
458
- this.showForm = false
459
- this.submitted = false
444
+ this.showForm = false;
445
+ this.submitted = false;
460
446
  },
461
447
  showForm: {
462
448
  handler: function () {
463
- this.initialiseFeedback()
449
+ this.initialiseFeedback();
464
450
  },
465
451
  },
466
452
  },
467
453
  mounted() {
468
454
  this.$nextTick(() => {
469
- window.addEventListener('resize', this.onResize)
470
- })
471
- this.onResize()
455
+ window.addEventListener("resize", this.onResize);
456
+ });
457
+ this.onResize();
472
458
  },
473
459
  beforeDestroy() {
474
- window.removeEventListener('resize', this.onResize)
460
+ window.removeEventListener("resize", this.onResize);
475
461
  },
476
462
  methods: {
477
463
  initialiseFeedback() {
478
464
  if (!this.showForm) {
479
- var rbY = document.getElementById('frYes')
480
- rbY.checked = false
481
- var rbN = document.getElementById('frNo')
482
- rbN.checked = false
465
+ var rbY = document.getElementById("frYes");
466
+ rbY.checked = false;
467
+ var rbN = document.getElementById("frNo");
468
+ rbN.checked = false;
483
469
  }
484
470
  },
485
471
  setResponse(event) {
486
- var answer = event.target.value
487
- this.response.was_the_information_on_this_page_helpful_ = answer
488
- this.response.page_url = window.location.href
489
- this.showForm = true
490
- this.fireGtagHelpful()
472
+ var answer = event.target.value;
473
+ this.response.was_the_information_on_this_page_helpful_ = answer;
474
+ this.response.page_url = window.location.href;
475
+ this.showForm = true;
476
+ this.fireGtagHelpful();
491
477
  },
492
478
  cancelFeedback() {
493
- this.showForm = false
479
+ this.showForm = false;
494
480
  },
495
481
  async submitFeedback() {
496
482
  if (this.$gtm) {
497
483
  try {
498
- const res = await this.$axios.post(this.endpoint, this.response)
484
+ const res = await this.$axios.post(this.endpoint, this.response);
499
485
  if (res.data && res.data.sid) {
500
- this.submitted = true
501
- this.showForm = false
502
- this.fireGtagFeedback()
486
+ this.submitted = true;
487
+ this.showForm = false;
488
+ this.fireGtagFeedback();
503
489
  }
504
490
  } catch (e) {
505
491
  // eslint-disable-next-line no-console
506
- console.error('Error submitting webform')
492
+ console.error("Error submitting webform");
507
493
  }
508
494
  } else {
509
- this.submitted = true
510
- this.showForm = false
495
+ this.submitted = true;
496
+ this.showForm = false;
511
497
  }
512
498
  },
513
499
  isSet(ans) {
514
- return this.response.was_the_information_on_this_page_helpful_ === ans
500
+ return this.response.was_the_information_on_this_page_helpful_ === ans;
515
501
  },
516
502
  fireGtagHelpful() {
517
503
  const attrs = {
518
- event: 'custom.interaction.helpful',
504
+ event: "custom.interaction.helpful",
519
505
  label: this.response.was_the_information_on_this_page_helpful_,
520
506
  //title: this.$store?.state?.page?.content?.title,
521
507
  title: this.$pageStore?.content?.title,
522
- }
508
+ };
523
509
  if (this.$gtm) {
524
- this.$gtm.push({ event: 'custom.interaction.helpful', ...attrs })
510
+ this.$gtm.push({ event: "custom.interaction.helpful", ...attrs });
525
511
  }
526
512
  },
527
513
  fireGtagFeedback() {
@@ -530,49 +516,49 @@ export default {
530
516
  title: this.$pageStore?.content?.title,
531
517
  label: this.response.was_the_information_on_this_page_helpful_,
532
518
  // processID: this.processID, why send GTM junk id
533
- }
519
+ };
534
520
  if (this.$gtm) {
535
521
  this.$gtm.push({
536
- event: 'custom.interaction.helpful.feedback',
522
+ event: "custom.interaction.helpful.feedback",
537
523
  ...attrs,
538
- })
524
+ });
539
525
  }
540
526
  },
541
527
  backToTop() {
542
528
  if (this.$bus) {
543
- this.$bus.$emit('scrollToTop')
529
+ this.$bus.$emit("scrollToTop");
544
530
  }
545
531
  },
546
532
  isAbsoluteUrl(uri) {
547
- let r = new RegExp('^(?:[a-z]+:)?//', 'i')
548
- return r.test(uri)
533
+ let r = new RegExp("^(?:[a-z]+:)?//", "i");
534
+ return r.test(uri);
549
535
  },
550
536
  subscribe() {
551
537
  window.location =
552
- 'https://comms.worksafe.vic.gov.au/link/id/zzzz5c2d405926ec7534Pzzzz4ff385a2d38d8616/page.html?prompt=1'
538
+ "https://comms.worksafe.vic.gov.au/link/id/zzzz5c2d405926ec7534Pzzzz4ff385a2d38d8616/page.html?prompt=1";
553
539
  },
554
540
  handleMenuItemClick(menuFooter, index) {
555
541
  // splice is needed for vue to pick up that changes to the footerMenu array and re-render the screen
556
542
  if (this.isMobile) {
557
543
  for (let i = 0; i < menuFooter.length; i++) {
558
- let newMenuItem = menuFooter[i]
559
- this.contactMenuIsOpen = false
544
+ let newMenuItem = menuFooter[i];
545
+ this.contactMenuIsOpen = false;
560
546
  if (i === index) {
561
- newMenuItem.isOpen = !newMenuItem.isOpen
547
+ newMenuItem.isOpen = !newMenuItem.isOpen;
562
548
  } else {
563
- newMenuItem.isOpen = false
549
+ newMenuItem.isOpen = false;
564
550
  }
565
- menuFooter.splice(i, 1, newMenuItem)
551
+ menuFooter.splice(i, 1, newMenuItem);
566
552
  }
567
553
  }
568
554
  },
569
555
  handleContactItemClick(menuFooter) {
570
556
  if (this.isMobile) {
571
557
  for (let i = 0; i < menuFooter.length; i++) {
572
- let newMenuItem = menuFooter[i]
573
- this.contactMenuIsOpen = !this.contactMenuIsOpen
574
- newMenuItem.isOpen = false
575
- menuFooter.splice(i, 1, newMenuItem)
558
+ let newMenuItem = menuFooter[i];
559
+ this.contactMenuIsOpen = !this.contactMenuIsOpen;
560
+ newMenuItem.isOpen = false;
561
+ menuFooter.splice(i, 1, newMenuItem);
576
562
  }
577
563
  }
578
564
  },
@@ -581,14 +567,14 @@ export default {
581
567
  if (event.keyCode === 32 || event.keyCode === 13) {
582
568
  //splice is needed for vue to pick up that changes to the menuFooter array and re-render the screen
583
569
  for (let i = 0; i < menuFooter.length; i++) {
584
- let newMenuItem = menuFooter[i]
585
- this.contactMenuIsOpen = false
570
+ let newMenuItem = menuFooter[i];
571
+ this.contactMenuIsOpen = false;
586
572
  if (i === index) {
587
- newMenuItem.isOpen = !newMenuItem.isOpen
573
+ newMenuItem.isOpen = !newMenuItem.isOpen;
588
574
  } else {
589
- newMenuItem.isOpen = false
575
+ newMenuItem.isOpen = false;
590
576
  }
591
- menuFooter.splice(i, 1, newMenuItem)
577
+ menuFooter.splice(i, 1, newMenuItem);
592
578
  }
593
579
  }
594
580
  }
@@ -597,26 +583,26 @@ export default {
597
583
  if (this.isMobile) {
598
584
  if (event.keyCode === 32 || event.keyCode === 13) {
599
585
  for (let i = 0; i < menuFooter.length; i++) {
600
- let newMenuItem = menuFooter[i]
601
- this.contactMenuIsOpen = !this.contactMenuIsOpen
602
- newMenuItem.isOpen = false
603
- menuFooter.splice(i, 1, newMenuItem)
586
+ let newMenuItem = menuFooter[i];
587
+ this.contactMenuIsOpen = !this.contactMenuIsOpen;
588
+ newMenuItem.isOpen = false;
589
+ menuFooter.splice(i, 1, newMenuItem);
604
590
  }
605
591
  }
606
592
  }
607
593
  },
608
594
  onResize() {
609
- this.windowWidth = window.innerWidth
610
- let titles = document.getElementsByClassName('app-footer-menu__title')
595
+ this.windowWidth = window.innerWidth;
596
+ let titles = document.getElementsByClassName("app-footer-menu__title");
611
597
  if (Array.isArray(titles)) {
612
598
  if (this.isMobile) {
613
599
  titles.forEach((t) => {
614
- t.setAttribute('tabIndex', '0')
615
- })
600
+ t.setAttribute("tabIndex", "0");
601
+ });
616
602
  } else {
617
603
  titles.forEach((t) => {
618
- t.removeAttribute('tabIndex')
619
- })
604
+ t.removeAttribute("tabIndex");
605
+ });
620
606
  }
621
607
  }
622
608
  },
@@ -624,18 +610,18 @@ export default {
624
610
  if (item.absolute) {
625
611
  if (this.$gtm) {
626
612
  this.$gtm.push({
627
- event: 'custom.interaction.outboundlink',
613
+ event: "custom.interaction.outboundlink",
628
614
  category: item.title,
629
615
  label: item.absolute,
630
- })
616
+ });
631
617
  }
632
- window.open(item.absolute)
618
+ window.open(item.absolute);
633
619
  }
634
620
  },
635
621
  },
636
- }
622
+ };
637
623
  </script>
638
624
 
639
625
  <style lang="scss" scoped>
640
- @import './styles';
626
+ @import "./styles";
641
627
  </style>
@@ -7,7 +7,13 @@
7
7
  @click="$emit('closed')"
8
8
  >
9
9
  Close menu
10
- <img class="app-search__close-icon" width="22" height="18" :src="Close" />
10
+ <img
11
+ class="app-search__close-icon"
12
+ alt="search close icon"
13
+ width="22"
14
+ height="18"
15
+ :src="Close"
16
+ />
11
17
  </button>
12
18
  <form @submit.prevent>
13
19
  <label class="app-search__label font-weight-bold" for="app-search--search-input-box"
@@ -18,7 +18,7 @@ const contentParser = () => {
18
18
  export default {
19
19
  title: 'Global/AppHeader',
20
20
  component: AppHeader,
21
- tags: ['autodocs'],
21
+
22
22
  data() {
23
23
  return {
24
24
  appHeaderData
@@ -71,4 +71,4 @@ const DefaultContent = (args) => ({
71
71
  `
72
72
  })
73
73
 
74
- export const Default = DefaultContent.bind({})
74
+ export const Former = DefaultContent.bind({})
@@ -7,12 +7,16 @@
7
7
  @click="$emit('closed')"
8
8
  >
9
9
  Close menu
10
- <img class="app-search__close-icon" width="22" height="18" :src="Close" />
10
+ <img
11
+ class="app-search__close-icon"
12
+ width="22"
13
+ height="18"
14
+ :src="Close"
15
+ alt="search close icon"
16
+ />
11
17
  </button>
12
18
  <form @submit.prevent>
13
- <label
14
- class="app-search__label font-weight-bold"
15
- for="app-search--search-input-box"
19
+ <label class="app-search__label font-weight-bold" for="app-search--search-input-box"
16
20
  >Search WorkSafe</label
17
21
  >
18
22
  <search
@@ -32,40 +36,40 @@
32
36
  </template>
33
37
 
34
38
  <script>
35
- import Close from '../../../../assets/icons/close.svg?url'
36
- import Search from '../../../SubComponents/Search/index.vue'
39
+ import Close from "../../../../assets/icons/close.svg?url";
40
+ import Search from "../../../SubComponents/Search/index.vue";
37
41
 
38
42
  export default {
39
- name: 'ModalSearch',
43
+ name: "ModalSearch",
40
44
  components: { Search },
41
45
  props: {
42
46
  searchQuery: {
43
47
  type: String,
44
- default: ''
48
+ default: "",
45
49
  },
46
50
  contentParser: {
47
51
  type: Function,
48
- required: true
52
+ required: true,
49
53
  },
50
54
  googleSearchFlag: {
51
55
  type: String,
52
- default: 'googlerest'
53
- }
56
+ default: "googlerest",
57
+ },
54
58
  },
55
59
  data() {
56
60
  return {
57
61
  pageLimit: 20,
58
62
  pageNumber: 1,
59
63
  searchResults: null,
60
- Close
61
- }
64
+ Close,
65
+ };
62
66
  },
63
67
  mounted() {
64
- this.$refs.searchInputBox.$el.querySelector('input').focus()
65
- }
66
- }
68
+ this.$refs.searchInputBox.$el.querySelector("input").focus();
69
+ },
70
+ };
67
71
  </script>
68
72
 
69
73
  <style lang="scss" scoped>
70
- @import './styles';
74
+ @import "./styles";
71
75
  </style>
@@ -16,7 +16,7 @@ const contentParser = () => {
16
16
 
17
17
 
18
18
  export default {
19
- title: 'Website_Redesign/AppHeader',
19
+ title: 'Global/AppHeader',
20
20
  component: AppHeader,
21
21
  tags: ['autodocs'],
22
22
  data() {
@@ -71,4 +71,4 @@ const DefaultContent = (args) => ({
71
71
  `
72
72
  })
73
73
 
74
- export const Default = DefaultContent.bind({})
74
+ export const New = DefaultContent.bind({})