@worksafevictoria/wcl7.5 1.8.0-beta.14 → 1.8.0-beta.16

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/lib/utility.js CHANGED
@@ -35,8 +35,6 @@ function isGovSite(url) {
35
35
  }
36
36
 
37
37
  function navigateToPath(path, newTab, nuxtRouter) {
38
- debugger
39
-
40
38
  const url = String(path).startsWith('www.') ? `http://${path}` : path
41
39
  const isAbsolute = isAbsoluteUrl(url)
42
40
  const router = nuxtRouter ? nuxtRouter : this.$router
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.8.0-beta.14",
3
+ "version": "1.8.0-beta.16",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -227,7 +227,6 @@ export default {
227
227
  },
228
228
  methods: {
229
229
  cardTitleSelected(selectedCard, ev) {
230
- debugger;
231
230
  this.clearCards();
232
231
  selectedCard.selected = !!!selectedCard.selected;
233
232
  const selectedCardModelIndex = this.getChildIndex(selectedCard);
@@ -239,8 +238,6 @@ export default {
239
238
  });
240
239
  },
241
240
  cardSelected(selectedCard, ev) {
242
- debugger;
243
- console.log("cardSelected selectedCard :- ", selectedCard);
244
241
  this.clearCards();
245
242
  selectedCard.selected = !!!selectedCard.selected;
246
243
  const selectedCardModelIndex = this.getChildIndex(selectedCard);
@@ -401,8 +401,6 @@ export default {
401
401
  },
402
402
  methods: {
403
403
  cardClicked(ev) {
404
- debugger;
405
-
406
404
  if (this.isSelectable) {
407
405
  this.parentGrid.cardSelected(this, ev);
408
406
  }
@@ -412,7 +410,6 @@ export default {
412
410
  }
413
411
  },
414
412
  cardTitleClicked(ev) {
415
- debugger;
416
413
  if (this.isCardTitleSelectable) {
417
414
  this.parentGrid.cardTitleSelected(this, ev);
418
415
  }
@@ -3,7 +3,7 @@ import arRecord from './index.vue'
3
3
  const arData =
4
4
  {
5
5
  title: 'Ventia Utility Services Pty Limited',
6
- fullAddress: 'Ventia - Cardinia Building, 25 Lucknow Street MITCHAM VIC 3132',
6
+ fullAddress: 'MITCHAM VIC 3132',
7
7
  workPhone: '0438531164',
8
8
  mobilePhone: '0438531164',
9
9
  email: 'daniel.dehaan@ventia.com',
@@ -9,7 +9,7 @@
9
9
  </a>
10
10
  </column>
11
11
  <column md="2" sm="12" class="address" >
12
- <div class="label">Office address</div>
12
+ <div class="label">Location</div>
13
13
  <a v-if="item.fullAddress" target="_blank" :href="gMapLink"><span class="sr-only visually-hidden">Address</span>
14
14
  {{ item.fullAddress }}
15
15
  </a>
@@ -13,7 +13,7 @@
13
13
  <label class="visually-hidden" for="search-directory">
14
14
  Search by suburb (typed suburb automatically filters below results)
15
15
  </label>
16
- <input type="text" v-model="searchSub" placeholder="Address" class="search">
16
+ <input type="text" v-model="searchSub" placeholder="Location" class="search">
17
17
  </column>
18
18
  <!-- Other Filters -->
19
19
  <column xxl="2" xl="3" md="4" sm="6">
@@ -136,7 +136,7 @@ export default {
136
136
  flatRecords.push({
137
137
  type: 'ar',
138
138
  title: record.ResourceName,
139
- fullAddress: record.CompanyAddress + ' ' + record.AddressLine2,
139
+ fullAddress: record.AddressLine2,
140
140
  workPhone: record.Phone,
141
141
  mobilePhone: record.CompanyMobile,
142
142
  email: record.CompanyEmailDisp,
@@ -172,11 +172,14 @@ export default {
172
172
 
173
173
  formatWebsite(url) {
174
174
  let startUrl = url.slice(0, 3)
175
+ let returnUrl = url
175
176
  if (startUrl.toLowerCase() === 'www') {
176
- return 'https://' + url
177
- } else {
178
- return url
179
- }
177
+ returnUrl = 'https://' + url
178
+ }
179
+ if (startUrl.toLowerCase() !== 'htt' && startUrl.toLowerCase() !== 'www' && url !== '') {
180
+ returnUrl = 'https://www.' + url
181
+ }
182
+ return returnUrl
180
183
  },
181
184
 
182
185
  returnContact(firstN, lastN) {
@@ -213,11 +213,14 @@ export default {
213
213
 
214
214
  formatWebsite(url) {
215
215
  let startUrl = url.slice(0, 3)
216
+ let returnUrl = url
216
217
  if (startUrl.toLowerCase() === 'www') {
217
- return 'https://' + url
218
- } else {
219
- return url
220
- }
218
+ returnUrl = 'https://' + url
219
+ }
220
+ if (startUrl.toLowerCase() !== 'htt' && startUrl.toLowerCase() !== 'www' && url !== '') {
221
+ returnUrl = 'https://www.' + url
222
+ }
223
+ return returnUrl
221
224
  },
222
225
 
223
226
  chunkify(arr, n) {
@@ -151,8 +151,6 @@ export default {
151
151
  return value;
152
152
  },
153
153
  handleSelect(card) {
154
- debugger;
155
-
156
154
  const isSolar = this.googleSearchFlag === "solar";
157
155
  const link = card?.selectedCard?.link;
158
156
  const openInNewTab = card?.ev?.ctrlKey || card?.ev?.metaKey;
@@ -274,8 +274,6 @@ export default {
274
274
  }
275
275
  },
276
276
  onChange(e) {
277
- //debugger
278
-
279
277
  if (this.searchQuery && this.searchQuery.length > 2) {
280
278
  this.onSearch(e);
281
279
  }
@@ -6,7 +6,7 @@ export const arData = [
6
6
  Phone: '0404073745',
7
7
  CompanyMobile: '0404 073 745',
8
8
  CompanyEmailDisp: 'ads.asbestos@gmail.com',
9
- CompanyWebURLDisp: 'www.adsasbestosremoval.com.au',
9
+ CompanyWebURLDisp: 'adsasbestosremoval.com.au',
10
10
  ContactFirstName: 'Ivan',
11
11
  ContactLastName: 'Silva',
12
12
  ContactPhoneDisp: '0404073745',
@@ -7,7 +7,7 @@ export const hscpData = [
7
7
  Work_phone: '03 9555 9333',
8
8
  Toll_free_phone: '1800 555 333',
9
9
  Email1: 'ohs@test.com.au',
10
- Website: 'https://www.anmfvic.asn.au/education-and-training/hsr-training/events',
10
+ Website: 'anmfvic.asn.au/education-and-training/hsr-training/events',
11
11
  Contact_1: 'Christina Groebl',
12
12
  Contact_1_Phone: '03 9555 0222',
13
13
  Contact_1_Email: 'cgroebl@test.com.au',
@@ -26,7 +26,7 @@ export const hscpData = [
26
26
  Work_phone: '03 5990 7117',
27
27
  Toll_free_phone: '1300 244 746',
28
28
  Email1: 'csadmin@chisholm.edu.au',
29
- Website: 'https://www.chisholm.edu.au/career-fields/workplace-safety',
29
+ Website: 'http://www.chisholm.edu.au/career-fields/workplace-safety',
30
30
  Contact_1: 'Francesca Laforgia',
31
31
  Contact_1_Email: 'csadmin@chisholm.edu.au',
32
32
  Contact_1_Phone: '03 5990 7117',