@worksafevictoria/wcl7.5 1.1.0-beta.106 → 1.1.0-beta.107

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.1.0-beta.106",
3
+ "version": "1.1.0-beta.107",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,6 +27,8 @@
27
27
  @cleared="$emit('locationCleared')"
28
28
  />
29
29
  </column>
30
+ <span class="d-none">{{ filters }}</span>
31
+ <span class="d-none">{{ filters.taxonomies.map(taxonomy => taxonomy.name).join(', ') }}</span>
30
32
  <column
31
33
  :md="!bundle ? 12 : bundle === 'isp' ? 4 : 8"
32
34
  :sm="!bundle ? 12 : bundle === 'isp' ? 6 : 12"
@@ -116,14 +118,6 @@ export default {
116
118
  // wait for hydration,
117
119
  // then show all boxes together
118
120
  this.loading = false
119
-
120
- // Log the filters data
121
- console.log("Filters Data:", this.filters);
122
-
123
- // Log taxonomies specifically
124
- if (this.filters.taxonomies) {
125
- console.log("Taxonomies:", this.filters.taxonomies.map(taxonomy => taxonomy.name));
126
- }
127
121
  },
128
122
  methods: {
129
123
  emitFilterOpts(ev) {
@@ -1,30 +1,29 @@
1
1
  <template>
2
- <section-group class="paragraph--directory">
3
- <div v-if="items.length" class="paragraph--directory__records">
2
+ <section-group class="paragraph--directory hscp-filters">
4
3
  <!-- Filters -->
5
- <row class="paragraph--directory.hscp-filters">
6
- <!-- Keyword Filters -->
7
- <column class="colSearch" md="2" sm="6">
4
+ <row style="column-gap: 16px;">
5
+ <!-- Keyword Filters -->
6
+ <column xxl="2" xl="3" md="4" sm="6">
8
7
  <label class="visually-hidden" for="search-directory">
9
8
  Search by keyword (typed keyword automatically filters below results)
10
9
  </label>
11
10
  <input type="text" v-model="searchOrg" placeholder="Search organisation" class="search">
12
11
  </column>
13
- <column class="colSearch" md="2" sm="6">
12
+ <column xxl="2" xl="3" md="4" sm="6">
14
13
  <label class="visually-hidden" for="search-directory">
15
14
  Search by suburb (typed suburb automatically filters below results)
16
15
  </label>
17
16
  <input type="text" v-model="searchSub" placeholder="Search suburb" class="search">
18
17
  </column>
19
18
  <!-- Other Filters -->
20
- <column class="colSearch" md="2" sm="6">
19
+ <column xxl="2" xl="3" md="4" sm="6">
21
20
  <select id="filterType" v-model="searchCourse" name="filter" class="selectClass">
22
21
  <option class="placeholder" value="" disabled hidden selected>Search course type</option>
23
22
  <option value="HSR Initial">HSR Initial</option>
24
23
  <option value="HSR Refresher">HSR Refresher</option>
25
24
  </select>
26
25
  </column>
27
- <column class="colSearch" md="4" sm="6" style="padding-left: 0px">
26
+ <column xxl="2" xl="3" md="4" sm="6">
28
27
  <select id="filterTheme" v-model="searchThemes" name="filter1" class="selectClass">
29
28
  <option class="placeholder" value="" disabled hidden selected>Search theme</option>
30
29
  <option v-for="(opt, i) in themeOptions" :key="i" :value="opt">
@@ -32,7 +31,7 @@
32
31
  </option>
33
32
  </select>
34
33
  </column>
35
- <column>
34
+ <column md="2">
36
35
  <filter-button
37
36
  v-if="!hideReset"
38
37
  filter-button="!hideReset"
@@ -58,7 +57,7 @@
58
57
  />
59
58
  </div>
60
59
  <h2 v-if="filteredRecords.length === 0">No records found</h2>
61
- </div>
60
+
62
61
  </section-group>
63
62
 
64
63
  </template>
@@ -278,22 +277,48 @@ export default {
278
277
  @import '../../styles.scss';
279
278
  .paragraph--directory.hscp-filters {
280
279
 
281
- align-items: center !important;
280
+ .selectClass {
281
+ display:inline-block;
282
+ height: 42px;
283
+ border-radius: 8px;
284
+ padding: 10px 12px;
285
+ width: 200px;
286
+ border: 1px solid $gray;
287
+ margin-right: 16px;
288
+ margin-bottom: 16px;
289
+
290
+ }
291
+
292
+ .search {
293
+ display: inline-block;
294
+ color: $black;
295
+ border: 1px solid $gray;
296
+ border-radius: 8px;
297
+ padding: 10px 12px;
298
+ height: 42px;
299
+ background-image: url('./../../../../../assets/icons/search.svg');
300
+ background-repeat: no-repeat !important;
301
+ background-position: 96% 12px;
302
+ margin-bottom: 16px;
303
+ margin-right: 16px;
304
+ transition: none;
305
+ }
282
306
 
283
307
  .grid-column {
284
308
  display: inline-block;
285
309
  width: 25%;
286
310
 
287
311
  @media (max-width: 767px) {
288
- width: 50%;
289
- }
312
+ width: 50%;
313
+ }
290
314
 
291
- @media (max-width: 539px) {
292
- display: block;
293
- width: 100%;
294
- float: none;
295
- margin-bottom: 16px;
296
- }
315
+ @media (max-width: 539px) {
316
+ display: block;
317
+ width: 100%;
318
+ float: none;
319
+ margin-bottom: 16px;
320
+ }
321
+
297
322
  }
298
323
  .right {
299
324
  float: right;
@@ -311,38 +336,10 @@ export default {
311
336
  float: right;
312
337
  }
313
338
 
314
- .colSearch {
315
- padding-right: 16px !important;
316
- }
317
-
318
339
  .hscpRecords {
319
340
  padding-top: 16px;
320
341
  }
321
342
 
322
- .input,
323
- .button,
324
- .select,
325
- .optgroup,
326
- .selectClass {
327
- display: inline-block;
328
- height: 42px;
329
- border-radius: 8px;
330
- padding-right: 16px !important;
331
- border: 1px solid $gray;
332
- }
333
343
 
334
- .search {
335
- display: inline-block;
336
- color: $black;
337
- border: 1px solid $gray;
338
- border-radius: 8px;
339
- padding: 10px 12px;
340
- height: 42px;
341
- background-image: url('./../../../../../assets/icons/search.svg');
342
- background-repeat: no-repeat !important;
343
- background-position: 96% 12px;
344
- margin-bottom: 16px;
345
- transition: none;
346
- }
347
344
 
348
345
  </style>