@worksafevictoria/wcl7.5 1.13.0 → 1.14.0-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <section-group class="paragraph--directory dir-filters">
3
3
  <!-- Filters -->
4
- <row style="column-gap: 16px">
4
+ <row style="column-gap: 10px">
5
5
  <!-- Keyword Filters -->
6
6
  <column xxl="2" xl="3" md="4" sm="6">
7
7
  <label class="col-form-label visually-hidden" for="keyword-search">
@@ -44,21 +44,21 @@
44
44
  <option class="placeholder" value="" disabled hidden selected>
45
45
  Service class
46
46
  </option>
47
- <option value="Class A Asbestos Removalists">
48
- Class A Asbestos Removalists
47
+ <option value="Class A - Friable and non-friable">
48
+ Class A - Friable and non-friable
49
49
  </option>
50
- <option value="Class B Asbestos Removalists">
51
- Class B Asbestos Removalists
50
+ <option value="Class B - Non-friable">
51
+ Class B - Non-friable
52
52
  </option>
53
- <option value="Class A - Restricted - Asbestos Removalists">
53
+ <!-- <option value="Class A - Restricted - Asbestos Removalists">
54
54
  Class A - Restricted - Asbestos Removalists
55
55
  </option>
56
56
  <option value="Class B - Restricted - Asbestos Removalists">
57
57
  Class B - Restricted - Asbestos Removalists
58
- </option>
58
+ </option> -->
59
59
  </select>
60
60
  </column>
61
- <column xxl="2" xl="3" md="4" sm="6">
61
+ <!-- <column xxl="2" xl="3" md="4" sm="6">
62
62
  <label class="col-form-label visually-hidden" for="search-services">
63
63
  Search by suburb (typed suburb automatically filters below results)
64
64
  </label>
@@ -70,7 +70,7 @@
70
70
  aria-label="Search by suburb (typed suburb automatically filters below results)"
71
71
  class="search"
72
72
  />
73
- </column>
73
+ </column> -->
74
74
  <column md="2">
75
75
  <filter-button
76
76
  v-if="!hideReset"
@@ -120,7 +120,7 @@ export default {
120
120
  searchRem: '',
121
121
  searchSub: '',
122
122
  searchClass: '',
123
- searchServices: '',
123
+ // searchServices: '',
124
124
  filteredItems: null,
125
125
  perPage: 10,
126
126
  page: 0,
@@ -159,21 +159,21 @@ export default {
159
159
  .includes(this.searchClass.toLowerCase()),
160
160
  )
161
161
  }
162
- if (this.searchServices.length) {
163
- this.hideReset = false
164
- results = results.filter((item) =>
165
- item.services
166
- .toLowerCase()
167
- .includes(this.searchServices.toLowerCase()),
168
- )
169
- }
162
+ // if (this.searchServices.length) {
163
+ // this.hideReset = false
164
+ // results = results.filter((item) =>
165
+ // item.services
166
+ // .toLowerCase()
167
+ // .includes(this.searchServices.toLowerCase()),
168
+ // )
169
+ // }
170
170
  this.filteredItems = results
171
171
 
172
172
  if (
173
173
  this.searchRem.length ||
174
174
  this.searchSub.length ||
175
- this.searchClass.length ||
176
- this.searchServices.length
175
+ this.searchClass.length
176
+ // || this.searchServices.length
177
177
  ) {
178
178
  this.pageChanged(1)
179
179
  }
@@ -184,7 +184,7 @@ export default {
184
184
  flatRecords() {
185
185
  let flatRecords = []
186
186
  const sortedItems = this.items.sort((a, b) =>
187
- a.ResourceName.localeCompare(b.ResourceName, 'en', {
187
+ a.Account.localeCompare(b.Account, 'en', {
188
188
  sensitivity: 'base',
189
189
  }),
190
190
  )
@@ -192,21 +192,22 @@ export default {
192
192
  sortedItems.forEach((record) => {
193
193
  flatRecords.push({
194
194
  type: 'ar',
195
- title: record.ResourceName,
196
- fullAddress: record.AddressLine2,
197
- workPhone: record.Phone,
198
- mobilePhone: record.CompanyMobile,
199
- email: record.CompanyEmailDisp,
200
- website: this.formatWebsite(record.CompanyWebURLDisp),
201
- contact1: this.returnContact(
202
- record.ContactFirstName,
203
- record.ContactLastName,
204
- ),
205
- email1: record.ContactEmail,
206
- phone1: record.ContactPhoneDisp,
207
- mobile1: record.ContactMobileDisp,
208
- services: record.ServicesAll.replace(/,$/, ''),
209
- serviceCategory: record.ServiceAll,
195
+ title: record.Account,
196
+ fullAddress: record.Regbusinessaddresssuburb + ' ' + record.Regbusinessaddresspostcode,
197
+ // workPhone: record.Phone,
198
+ mobilePhone: record.PrimaryContactMobile,
199
+ email: record.PrimaryContactEmail,
200
+ website: record.Website ? this.formatWebsite(record.Website) : '',
201
+ // contact1: this.returnContact(
202
+ // record.ContactFirstName,
203
+ // record.ContactLastName,
204
+ // ),
205
+ contact1: record.PrimaryContactAccountName,
206
+ // email1: record.PrimaryContactEmail,
207
+ // phone1: record.ContactPhoneDisp,
208
+ // mobile1: record.PrimaryContactMobile,
209
+ // services: record.ServicesAll.replace(/,$/, ''),
210
+ serviceCategory: record.AsbestosClass,
210
211
  })
211
212
  })
212
213
  return flatRecords
@@ -245,10 +246,10 @@ export default {
245
246
  return returnUrl
246
247
  },
247
248
 
248
- returnContact(firstN, lastN) {
249
- let retContact = [firstN, lastN].filter(Boolean).join(' ')
250
- return retContact
251
- },
249
+ // returnContact(firstN, lastN) {
250
+ // let retContact = [firstN, lastN].filter(Boolean).join(' ')
251
+ // return retContact
252
+ // },
252
253
 
253
254
  chunkify(arr, n) {
254
255
  if (arr) {
@@ -27,6 +27,18 @@
27
27
  size="xl"
28
28
  >
29
29
  <div class="wcl-video-modal__video">
30
+ <p class="visually-hidden">
31
+ video.triggerWarning = {{ video.alertStrip }} <br />
32
+ video.triggerWarningContent = {{ video.alertStripDesc }} <br />
33
+ video.triggerWarningTitle :- {{ video.alertStripTitle }} <br />
34
+ video.triggerWarningUrl :- {{ video.alertStripUrl }} <br />
35
+ </p>
36
+ <AlertStrip
37
+ v-if="video.alertStrip"
38
+ :is-warning="true"
39
+ :desc="video.alertStripDesc"
40
+ :url="video.alertStripUrl"
41
+ />
30
42
  <video-media
31
43
  :media-title="video.mediaTitle"
32
44
  :media-description="video.mediaDescription"
@@ -44,6 +56,7 @@
44
56
  </template>
45
57
 
46
58
  <script>
59
+ import AlertStrip from './../../Global/AlertStrip/index.vue'
47
60
  import VideoMedia from './../../Paragraphs/VideoPlayer/index.vue'
48
61
  import VideoPlay from './../../../assets/icons/video-play.svg?url'
49
62
  import IconClose from './../../../assets/icons/icon-close.svg?url'
@@ -53,6 +66,7 @@ import axios from 'axios'
53
66
  export default {
54
67
  name: 'VideoThumbnail',
55
68
  components: {
69
+ AlertStrip,
56
70
  VideoMedia,
57
71
  IconClose,
58
72
  'b-modal': BModal,
@@ -17,6 +17,7 @@
17
17
  $multiplier: calc(($max - $min) / ($end - $start) * 100);
18
18
  $adder: calc(($min * $end - $max * $start) / ($end - $start));
19
19
  $formula: calc(#{$multiplier + 0vw} + #{$adder + 0px});
20
+ #{$property}: $formula;
20
21
  @if $clip and $clipAtStart {
21
22
  @media (max-width: #{$start + 0px}) {
22
23
  #{$property}: $min + 0px;
@@ -27,5 +28,4 @@
27
28
  #{$property}: $max + 0px;
28
29
  }
29
30
  }
30
- #{$property}: $formula;
31
31
  }
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Global Components
1
+ // Global Componentsn - replace HomePageheader with HomepageHeaderNew to introduce new header
2
2
  import Container from './components/Containers/Container/index.vue'
3
3
  import Row from './components/Containers/Row/index.vue'
4
4
  import Column from './components/Containers/Column/index.vue'
@@ -59,9 +59,6 @@ import Search from './components/SubComponents/Search/index.vue'
59
59
  import VideoThumbnail from './components/SubComponents/VideoThumbnail/index.vue'
60
60
  import ResourceGroup from './components/SubComponents/ResourceGroup/index.vue'
61
61
 
62
- // Temp Components for testing
63
- import BrowseContent2 from './components/Paragraphs/BrowseContent/setup.vue'
64
-
65
62
  // Export Global Components
66
63
  export {
67
64
  Container,
@@ -128,15 +125,8 @@ export {
128
125
  ResourceGroup,
129
126
  }
130
127
 
131
- // Export for BrowseContent
128
+ // DEPRECATED - to be removed in future
132
129
  import DirectoryFilters from './components/Global/DirectoryFilters/index.vue'
133
130
  import Switcher from './components/Paragraphs/BrowseContent/switcher.vue'
134
131
 
135
- export {
136
- // CardGroup, already imported
137
- DirectoryFilters,
138
- Switcher,
139
- }
140
-
141
- // Temp Components for testing
142
- export { BrowseContent2 }
132
+ export { DirectoryFilters, Switcher }