@worksafevictoria/wcl7.5 1.13.0-beta.5 → 1.13.0-beta.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.13.0-beta.5",
3
+ "version": "1.13.0-beta.7",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -5,7 +5,7 @@
5
5
  :class="'app-header' + (screen === 'mobile' ? ' ' + 'isMobile' : '')"
6
6
  >
7
7
  <!-- Top menu -->
8
- <div class="logo">
8
+ <div :class="screen === 'mobile' ? 'logoMobile' : 'logo'">
9
9
  <!-- Mobile Menu -->
10
10
  <div v-if="screen === 'mobile'" class="app-header__mobile-menu-container">
11
11
  <a class="dark" role="button" @click.prevent="showMobileMenu">
@@ -15,7 +15,7 @@
15
15
  <!-- Logo -->
16
16
  <nuxt-link class="dark" to="/">
17
17
  <img
18
- :class="screen === 'mobile' ? 'LogoImgMobile' : 'LogoImg'"
18
+ :class="screen === 'mobile' ? 'logoImgMobile' : 'logoImg'"
19
19
  :alt="
20
20
  isWorkWell
21
21
  ? 'Work Well Victoria - Logo'
@@ -26,29 +26,30 @@
26
26
  </nuxt-link>
27
27
  <span :class="screen === 'mobile' ? 'logo__nav_mobile' : 'logo__nav'">
28
28
  <!-- Roles added for accessibility -->
29
- <table role="presentation" >
29
+ <table role="presentation" style="margin-right: 0;">
30
30
  <tbody role="presentation">
31
31
  <tr role="presentation">
32
- <td :class="screen === 'mobile' ? 'td_mobile' : ''">
32
+ <td :class="screen === 'mobile' ? 'td_mobile mobile-link' : ''">
33
33
  <!-- Language link -->
34
+
34
35
  <nuxt-link
35
- :class="screen === 'mobile' ? 'mobile-link' : ''"
36
36
  to="/languages"
37
37
  @click.native="fireAnalytics('Choose your language', '/languages')"
38
38
  title="Language"
39
39
  >
40
40
  <span v-if="screen !== 'mobile'">Choose your language </span>
41
- <img alt="Language Icon" width="15px" height="15px" :src=LanguageIcon />
41
+ <img :class="screen === 'mobile' ? 'imgMobile' : ''" alt="Language Icon" width="15px" height="15px" :src=LanguageIcon />
42
42
  </nuxt-link>
43
+
43
44
  </td>
44
- <td :class="screen === 'mobile' ? 'td_mobile' : ''">
45
+ <td :class="screen === 'mobile' ? 'td_mobile mobile-link' : ''">
45
46
  <!-- Contrast link -->
46
- <a href="javascript:void(0)" :class="screen === 'mobile' ? 'mobile-link' : ''" @click="show = !show" @keyup.esc="show = !show" title="Contrast" ref="selectContrast">
47
- <span v-if="screen !== 'mobile'">Adjust contrast</span> <img alt="Contrast Icon" width="15px" height="15px" :src=ContrastIcon />
47
+ <a href="javascript:void(0)" @click="show = !show" @keyup.esc="show = !show" title="Contrast" ref="selectContrast">
48
+ <span v-if="screen !== 'mobile'">Adjust contrast</span> <img :class="screen === 'mobile' ? 'imgMobile' : ''" alt="Contrast Icon" width="15px" height="15px" :src=ContrastIcon />
48
49
  </a>
49
50
  <div
50
51
  ref="contrastChoices"
51
- class="flex-container_contrast"
52
+ :class="screen === 'mobile' ? 'flex-container_contrast_mobile' : 'flex-container_contrast'"
52
53
  v-if="show"
53
54
  >
54
55
  <div class="flex-item_contrast contrast_slide--box-list">
@@ -75,7 +76,7 @@
75
76
  class="cta-button cta-button--text-only cta-button--slim"
76
77
  to="/search"
77
78
  title="Search"
78
- ><span v-if="screen !== 'mobile'">Search &nbsp;</span> <img alt="Search Icon" width="15px" height="15px" :src=NavSearchIcon />
79
+ ><span v-if="screen !== 'mobile'">Search &nbsp;</span><img alt="Search Icon" style="margin-top: 2px;" width="15px" height="15px" :src=NavSearchIcon />
79
80
  </nuxt-link>
80
81
  </td>
81
82
  <td :class="screen === 'mobile' ? 'td_mobile-last' : ''">
@@ -415,19 +416,22 @@ export default {
415
416
  id: 'contrast1',
416
417
  name: 'contrast',
417
418
  value: 'default',
418
- label: 'Light contrast (default)'
419
+ label: 'Light contrast (default)',
420
+ labelmobile: 'Light'
419
421
  },
420
422
  {
421
423
  id: 'contrast2',
422
424
  name: 'contrast',
423
425
  value: 'high_contrast',
424
- label: 'Increased contrast'
426
+ label: 'Increased contrast',
427
+ labelmobile: 'Increased'
425
428
  },
426
429
  {
427
430
  id: 'contrast3',
428
431
  name: 'contrast',
429
432
  value: 'grayscale',
430
- label: 'Greyscale'
433
+ label: 'Greyscale',
434
+ labelmobile: 'Greyscale'
431
435
  }
432
436
  ],
433
437
  selectedValue: null
@@ -20,6 +20,8 @@
20
20
 
21
21
  ul {
22
22
  float: none;
23
+ padding-left: 15px;
24
+ padding-right: 10px;
23
25
 
24
26
  li {
25
27
  height: 62px;
@@ -71,6 +73,8 @@
71
73
  display: table-cell;
72
74
  vertical-align: middle;
73
75
  text-align: left;
76
+ margin-left: 0px;
77
+ margin-right: 10px;
74
78
 
75
79
  svg {
76
80
  filter: invert(100%) sepia(5%) saturate(49%) hue-rotate(165deg)
@@ -177,6 +181,7 @@
177
181
  margin-bottom: 5px;
178
182
  padding: 0;
179
183
  top: 0;
184
+ margin-left: 10px;
180
185
 
181
186
  span {
182
187
  color: $app-header-active;
@@ -267,38 +272,65 @@
267
272
  top: 10px !important;
268
273
  }
269
274
 
270
- .LogoImgMobile {
275
+ .logoMobile {
276
+ height: 85px;
277
+ padding: 15px 0%;
278
+ display: flex;
279
+ align-items: center;
280
+ margin-right: 0px;
281
+ margin-left: 10px;
282
+ background-color: white;
283
+ width: 100%;
284
+ }
285
+
286
+ .logoImgMobile {
271
287
  height: 40px;
272
288
  width: auto;
273
289
  }
274
290
 
275
- .logo__nav-mobile {
276
- display:inline-block;
277
- margin-left: 10px;
278
- margin-right: 0px;
279
- width: 100%;
291
+ .logo__nav_mobile {
292
+ display:flex;
293
+ margin-left: 15px;
294
+ margin-right: 25px;
295
+ width: 60% !important;
280
296
  overflow-y:auto;
297
+ justify-content: flex-end;
298
+
299
+ table {
300
+ border-collapse: separate;
301
+ border-spacing: 5px;
302
+ }
303
+ }
304
+
305
+ .imgMobile {
306
+ display: block;
307
+ margin-left: auto;
308
+ margin-right: auto;
281
309
  }
282
310
 
283
311
  .td_mobile {
284
- padding: 0px 5px !important;
285
312
  height: 35px;
286
313
  width: 35px;
287
314
  }
288
315
 
289
316
  .td_mobile-last {
290
- padding: 0px 0px 0px 5px !important;
317
+ padding: 0px !important;
291
318
  }
292
319
 
293
320
  .mobile-link {
294
- height: 35px;
295
- width: 35px;
321
+ width: 40px !important;
322
+ height: 40px !important;
296
323
  background-color: #f2f2f2;
297
324
  border: 1px solid #f2f2f2;
298
- border-radius: 5px;
325
+ border-radius: 8px;
299
326
  }
300
327
 
301
328
  .app-header__wrap_mobile {
302
329
  background: none;
303
330
  height: 0px;
304
- }
331
+ }
332
+
333
+ .flex-container_contrast_mobile {
334
+ margin-left: -10px;
335
+ }
336
+
@@ -19,8 +19,8 @@
19
19
  display: table;
20
20
  width: 100%;
21
21
  border-bottom-style: solid;
22
- border-bottom-color: lightgrey;
23
- border-bottom-width: 1px;
22
+ border-bottom-color: white;
23
+ border-bottom-width: 2px;
24
24
 
25
25
  > nav {
26
26
  width: 100%;
@@ -381,16 +381,19 @@
381
381
 
382
382
  .logo {
383
383
  height: 85px;
384
- padding: 15px 15px 15px 0px;
384
+ padding: 15px 0%;
385
385
  width: 100%;
386
386
  display: flex;
387
387
  align-items: center;
388
- margin-right: 0%;
388
+ margin-right: 50px;
389
+ margin-left: -10px;
389
390
  background-color: white;
391
+ width: 100vw;
390
392
 
391
393
  &__nav {
392
394
  display:inline-block;
393
395
  margin-left: 15px;
396
+ margin-right: 10px;
394
397
  color: #000;
395
398
  width: 100%;
396
399
  text-align: right;
@@ -424,9 +427,10 @@
424
427
  }
425
428
  }
426
429
 
427
- .LogoImg {
430
+ .logoImg {
428
431
  height: 55px;
429
432
  width: auto;
433
+ margin-left: 10px;
430
434
  }
431
435
 
432
436
  .semi-circle {
@@ -588,14 +592,13 @@
588
592
  padding: 10px 0;
589
593
 
590
594
  input[type='radio'] {
591
- border: 2px solid #bebebe;
595
+ border: 3px solid #bebebe;
592
596
  border-radius: 50%;
593
- box-shadow: 0 0 0px 0px #bebebe inset;
594
- height: 24px;
597
+ height: 25px;
595
598
  outline: none;
596
599
  vertical-align: middle;
597
600
  margin-right: 5px;
598
- width: 24px;
601
+ width: 25px;
599
602
  appearance: none;
600
603
 
601
604
  &:before {
@@ -631,5 +634,6 @@
631
634
  input[type="radio"] {
632
635
  accent-color: black;
633
636
  margin-right: 5px;
637
+ vertical-align: middle;
634
638
  }
635
639
  }
@@ -7,7 +7,7 @@ const arData =
7
7
  // workPhone: '0438531164',
8
8
  mobilePhone: '0438531164',
9
9
  email: 'daniel.dehaan@ventia.com',
10
- // website: 'http://www.ventia.com.au',
10
+ website: 'http://www.ventia.com.au',
11
11
  contact1: 'Daniel DeHaan',
12
12
  // phone1: '0438531164',
13
13
  // email1: 'daniel.dehaan@ventia.com',
@@ -14,26 +14,23 @@
14
14
  {{ item.title }}
15
15
  </a>
16
16
  </column>
17
- <column md="2" sm="12" class="address">
17
+ <column md="3" sm="12" class="address">
18
18
  <div class="label">Location</div>
19
19
  <a v-if="item.fullAddress" target="_blank" :href="gMapLink"
20
20
  ><span class="sr-only visually-hidden">Address</span>
21
21
  {{ item.fullAddress }}
22
22
  </a>
23
23
  </column>
24
- <column md="2" sm="12" class="coldata longstring">
24
+ <column md="3" sm="12" class="coldata longstring">
25
25
  <div class="label">Email</div>
26
26
  <a v-if="item.email" target="_blank" :href="`mailto:${item.email}`"
27
27
  ><span class="sr-only visually-hidden">Email address</span>
28
28
  {{ item.email }}
29
29
  </a>
30
30
  </column>
31
- <column md="3" sm="12" class="coldata longstring">
32
- <div class="label">Website</div>
33
- <a v-if="item.website" target="_blank" :href="`${item.website}`"
34
- ><span class="sr-only visually-hidden">Website address</span>
35
- {{ item.website }}
36
- </a>
31
+ <column md="2" sm="12" class="coldata">
32
+ <div class="label">Contact</div>
33
+ {{ item.contact1 }}
37
34
  </column>
38
35
  <column md="2" sm="12" class="coldata">
39
36
  <div class="label">Phone</div>
@@ -61,18 +58,19 @@
61
58
  <div style="padding-top: 20px">
62
59
  <hr />
63
60
  </div>
64
- <!-- Contacts, if any -->
65
- <div v-if="validContacts">
61
+ <!-- Website, if any -->
62
+
63
+ <div v-if="item.website">
66
64
  <row>
67
65
  <column>
68
- <h4>Contact Information</h4>
66
+ <h4>Website</h4>
69
67
  </column>
70
68
  </row>
71
- <row v-if="item.contact1 !== ''">
72
- <column sm="2" class="label" v-if="item.contact1 !== ''"> Contact </column>
73
- <column sm="4" class="dir-additional-records">
74
- {{ item.contact1 }}
75
- </column>
69
+ <row v-if="item.website !== ''">
70
+ <a v-if="item.website" target="_blank" :href="`${item.website}`"
71
+ ><span class="sr-only visually-hidden">Website address</span>
72
+ {{ item.website }}
73
+ </a>
76
74
  </row>
77
75
  <!-- <row v-if="item.phone1 !== ''">
78
76
  <column sm="2" class="label"> Phone </column>
@@ -197,7 +197,7 @@ export default {
197
197
  // workPhone: record.Phone,
198
198
  mobilePhone: record.PrimaryContactMobile,
199
199
  email: record.PrimaryContactEmail,
200
- // website: this.formatWebsite(record.CompanyWebURLDisp),
200
+ website: record.Website ? this.formatWebsite(record.Website) : '',
201
201
  // contact1: this.returnContact(
202
202
  // record.ContactFirstName,
203
203
  // record.ContactLastName,
@@ -230,21 +230,21 @@ export default {
230
230
  },
231
231
 
232
232
  methods: {
233
- // formatWebsite(url) {
234
- // let startUrl = url.slice(0, 3)
235
- // let returnUrl = url
236
- // if (startUrl.toLowerCase() === 'www') {
237
- // returnUrl = 'https://' + url
238
- // }
239
- // if (
240
- // startUrl.toLowerCase() !== 'htt' &&
241
- // startUrl.toLowerCase() !== 'www' &&
242
- // url !== ''
243
- // ) {
244
- // returnUrl = 'https://www.' + url
245
- // }
246
- // return returnUrl
247
- // },
233
+ formatWebsite(url) {
234
+ let startUrl = url.slice(0, 3)
235
+ let returnUrl = url
236
+ if (startUrl.toLowerCase() === 'www') {
237
+ returnUrl = 'https://' + url
238
+ }
239
+ if (
240
+ startUrl.toLowerCase() !== 'htt' &&
241
+ startUrl.toLowerCase() !== 'www' &&
242
+ url !== ''
243
+ ) {
244
+ returnUrl = 'https://www.' + url
245
+ }
246
+ return returnUrl
247
+ },
248
248
 
249
249
  // returnContact(firstN, lastN) {
250
250
  // let retContact = [firstN, lastN].filter(Boolean).join(' ')
@@ -7,7 +7,7 @@ export const arData = [
7
7
  // Phone: '0404073745',
8
8
  // CompanyMobile: '0404 073 745',
9
9
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
10
- // CompanyWebURLDisp: 'adsasbestosremoval.com.au',
10
+ Website: 'adsasbestosremoval.com.au',
11
11
  // ContactFirstName: 'Ivan',
12
12
  // ContactLastName: 'Silva',
13
13
  PrimaryContactAccountName: 'Ivan Silva',
@@ -25,7 +25,7 @@ export const arData = [
25
25
  // Phone: '0418 854 443',
26
26
  // CompanyMobile: '0418 854 443',
27
27
  // CompanyEmailDisp: 'nieto4@bigpond.net.au',
28
- // CompanyWebURLDisp: '',
28
+ Website: '',
29
29
  // ContactFirstName: 'ERIC',
30
30
  // ContactLastName: 'NIETO',
31
31
  PrimaryContactAccountName: 'ERIC NIETO',
@@ -43,7 +43,7 @@ export const arData = [
43
43
  // Phone: '',
44
44
  // CompanyMobile: '0408474707',
45
45
  // CompanyEmailDisp: 'azz_317@homail.com',
46
- // CompanyWebURLDisp: '',
46
+ Website: '',
47
47
  // ContactFirstName: 'Aaron',
48
48
  // ContactLastName: 'Field',
49
49
  PrimaryContactAccountName: 'Aaron Field',
@@ -61,7 +61,7 @@ export const arData = [
61
61
  // Phone: '0421 280 732',
62
62
  // CompanyMobile: '0401 016 565',
63
63
  // CompanyEmailDisp: 'CITYWIDEDEMOLITION@HOTMAIL.COM',
64
- // CompanyWebURLDisp: 'www.citywidedemolition.com.au',
64
+ Website: 'www.citywidedemolition.com.au',
65
65
  // ContactFirstName: 'Eman',
66
66
  // ContactLastName: 'Al Baarini',
67
67
  PrimaryContactAccountName: 'Eman Al Baarini',
@@ -79,7 +79,7 @@ export const arData = [
79
79
  // Phone: '(03) 5444 3261',
80
80
  // CompanyMobile: '0409 012 780',
81
81
  // CompanyEmailDisp: 'admin@ashworthdemolition.com.au',
82
- // CompanyWebURLDisp: '',
82
+ Website: '',
83
83
  // ContactFirstName: 'Dean',
84
84
  // ContactLastName: 'Ashworth',
85
85
  PrimaryContactAccountName: 'Dean Ashworth',
@@ -97,7 +97,7 @@ export const arData = [
97
97
  // Phone: '0438531164',
98
98
  // CompanyMobile: '',
99
99
  // CompanyEmailDisp: 'daniel.dehaan@ventia.com',
100
- // CompanyWebURLDisp: 'www.ventia.com.au',
100
+ Website: 'www.ventia.com.au',
101
101
  // ContactFirstName: 'Daniel',
102
102
  // ContactLastName: 'DeHaan',
103
103
  PrimaryContactAccountName: 'Daniel DeHaan',
@@ -115,7 +115,7 @@ export const arData = [
115
115
  // Phone: '0404073745',
116
116
  // CompanyMobile: '0404 073 745',
117
117
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
118
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
118
+ Website: 'http://www.adsasbestosremoval.com.au',
119
119
  // ContactFirstName: '',
120
120
  // ContactLastName: '',
121
121
  PrimaryContactAccountName: '',
@@ -133,7 +133,7 @@ export const arData = [
133
133
  // Phone: '0404073745',
134
134
  // CompanyMobile: '0404 073 745',
135
135
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
136
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
136
+ Website: 'http://www.adsasbestosremoval.com.au',
137
137
  // ContactFirstName: 'Ivan',
138
138
  // ContactLastName: 'Silva',
139
139
  PrimaryContactAccountName: 'Ivan Silva',
@@ -151,7 +151,7 @@ export const arData = [
151
151
  // Phone: '0404073745',
152
152
  // CompanyMobile: '0404 073 745',
153
153
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
154
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
154
+ Website: 'http://www.adsasbestosremoval.com.au',
155
155
  // ContactFirstName: 'Ivan',
156
156
  // ContactLastName: 'Silva',
157
157
  PrimaryContactAccountName: 'Ivan Silva',
@@ -169,7 +169,7 @@ export const arData = [
169
169
  // Phone: '0404073745',
170
170
  // CompanyMobile: '0404 073 745',
171
171
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
172
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
172
+ Website: 'http://www.adsasbestosremoval.com.au',
173
173
  // ContactFirstName: 'Ivan',
174
174
  // ContactLastName: 'Silva',
175
175
  PrimaryContactAccountName: 'Ivan Silva',
@@ -187,7 +187,7 @@ export const arData = [
187
187
  // Phone: '0404073745',
188
188
  // CompanyMobile: '0404 073 745',
189
189
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
190
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
190
+ Website: 'http://www.adsasbestosremoval.com.au',
191
191
  // ContactFirstName: '',
192
192
  // ContactLastName: '',
193
193
  PrimaryContactAccountName: '',
@@ -205,7 +205,7 @@ export const arData = [
205
205
  // Phone: '0404073745',
206
206
  // CompanyMobile: '0404 073 745',
207
207
  // CompanyEmailDisp: 'ads.asbestos@gmail.com',
208
- // CompanyWebURLDisp: 'http://www.adsasbestosremoval.com.au',
208
+ Website: 'http://www.adsasbestosremoval.com.au',
209
209
  // ContactFirstName: 'Ivan',
210
210
  // ContactLastName: 'Silva',
211
211
  PrimaryContactAccountName: 'Ivan Silva',
@@ -223,7 +223,7 @@ export const arData = [
223
223
  // Phone: '0405 083 197',
224
224
  // CompanyMobile: '0405 083 197',
225
225
  // CompanyEmailDisp: 'steve@ssmasbestos.com.au',
226
- // CompanyWebURLDisp: 'www.ssm-asbestosremoval.com',
226
+ Website: 'www.ssm-asbestosremoval.com',
227
227
  // ContactFirstName: 'Steven',
228
228
  // ContactLastName: 'McCarthy',
229
229
  PrimaryContactAccountName: 'Steven McCarthy',
@@ -241,7 +241,7 @@ export const arData = [
241
241
  // Phone: '0450582103',
242
242
  // CompanyMobile: '0450582103',
243
243
  // CompanyEmailDisp: 'gpasbestos@outlook.com',
244
- // CompanyWebURLDisp: '',
244
+ Website: '',
245
245
  // ContactFirstName: 'Carlos',
246
246
  // ContactLastName: 'Rios',
247
247
  PrimaryContactAccountName: 'Carlos Rios',