@worksafevictoria/wcl7.5 1.13.0 → 1.14.0-beta.1
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 +1 -1
- package/src/components/Containers/Carousel/index.vue +45 -28
- package/src/components/Containers/HomepageHeader/index.vue +2 -11
- package/src/components/Containers/HomepageHeaderNew/index.stories.js +5 -0
- package/src/components/Containers/HomepageHeaderNew/index.vue +40 -11
- package/src/components/Global/AppHeaderNew/index.vue +31 -24
- package/src/components/Global/AppHeaderNew/mobile.scss +50 -12
- package/src/components/Global/AppHeaderNew/styles.scss +26 -33
- package/src/components/Paragraphs/BrowseContent/index.vue +226 -231
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.stories.js +7 -7
- package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +21 -23
- package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +41 -40
- package/src/includes/scss/mixins/src/fp.scss +1 -1
- package/src/index.js +3 -13
- package/src/mock/asbestos-removalists.js +224 -196
- package/src/components/Paragraphs/BrowseContent/setup.vue +0 -284
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section-group class="paragraph--directory dir-filters">
|
|
3
3
|
<!-- Filters -->
|
|
4
|
-
<row style="column-gap:
|
|
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
|
|
48
|
-
Class A
|
|
47
|
+
<option value="Class A - Friable and non-friable">
|
|
48
|
+
Class A - Friable and non-friable
|
|
49
49
|
</option>
|
|
50
|
-
<option value="Class B
|
|
51
|
-
Class B
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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.
|
|
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.
|
|
196
|
-
fullAddress: record.
|
|
197
|
-
workPhone: record.Phone,
|
|
198
|
-
mobilePhone: record.
|
|
199
|
-
email: record.
|
|
200
|
-
website: this.formatWebsite(record.
|
|
201
|
-
contact1: this.returnContact(
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
),
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
250
|
-
|
|
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) {
|
|
@@ -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
|
|
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
|
-
//
|
|
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 }
|