@worksafevictoria/wcl7.5 1.7.0 → 1.7.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/Common/CardGridItem/index.vue +108 -139
- package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +45 -44
- package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +28 -30
- package/src/components/Paragraphs/Map/index.vue +77 -59
- package/src/components/Paragraphs/Map/lga-map.json +33462 -0
- package/src/components/Paragraphs/TabulatedData/index.vue +27 -36
- package/src/components/SubComponents/ResourceGroup/index.vue +158 -184
- package/src/components/SubComponents/ResourceGroup/styles.scss +2 -0
- package/src/components/SubComponents/Search/index.vue +1 -1
package/package.json
CHANGED
|
@@ -4,18 +4,12 @@
|
|
|
4
4
|
<b-card
|
|
5
5
|
:id="cardId"
|
|
6
6
|
no-body
|
|
7
|
-
:tag="
|
|
8
|
-
buttonRole === 'radio' ? 'div' : isSelectable ? 'button' : 'article'
|
|
9
|
-
"
|
|
7
|
+
:tag="buttonRole === 'radio' ? 'div' : isSelectable ? 'button' : 'article'"
|
|
10
8
|
class="card-grid-item__card"
|
|
11
9
|
:class="cardClass"
|
|
12
10
|
:role="buttonRole"
|
|
13
11
|
:aria-checked="
|
|
14
|
-
buttonRole === 'radio'
|
|
15
|
-
? isSelectable && selected
|
|
16
|
-
? 'true'
|
|
17
|
-
: 'false'
|
|
18
|
-
: false
|
|
12
|
+
buttonRole === 'radio' ? (isSelectable && selected ? 'true' : 'false') : false
|
|
19
13
|
"
|
|
20
14
|
:aria-expanded="
|
|
21
15
|
isExpandable ? (isSelectable && selected ? 'true' : 'false') : false
|
|
@@ -30,10 +24,8 @@
|
|
|
30
24
|
:class="[
|
|
31
25
|
{
|
|
32
26
|
rtl: rtl,
|
|
33
|
-
[`card-grid-item__control-radio`]:
|
|
34
|
-
|
|
35
|
-
[`card-grid-item__selected-radio`]:
|
|
36
|
-
selected && buttonRole === 'radio',
|
|
27
|
+
[`card-grid-item__control-radio`]: isSelectable && buttonRole === 'radio',
|
|
28
|
+
[`card-grid-item__selected-radio`]: selected && buttonRole === 'radio',
|
|
37
29
|
},
|
|
38
30
|
]"
|
|
39
31
|
>
|
|
@@ -101,11 +93,7 @@
|
|
|
101
93
|
>
|
|
102
94
|
</card-grid-item-icon>
|
|
103
95
|
</b-card-title>
|
|
104
|
-
<card-grid-item-caret
|
|
105
|
-
v-if="caretPosition === 'top'"
|
|
106
|
-
:caret="caret"
|
|
107
|
-
:rtl="rtl"
|
|
108
|
-
>
|
|
96
|
+
<card-grid-item-caret v-if="caretPosition === 'top'" :caret="caret" :rtl="rtl">
|
|
109
97
|
</card-grid-item-caret>
|
|
110
98
|
|
|
111
99
|
<card-grid-item-icon
|
|
@@ -131,13 +119,14 @@
|
|
|
131
119
|
</div>
|
|
132
120
|
<b-card-text
|
|
133
121
|
v-if="$slots.cardDescription || description"
|
|
134
|
-
|
|
122
|
+
tag="div"
|
|
135
123
|
class="card-grid-item__body"
|
|
136
124
|
:class="{
|
|
137
125
|
rtl: rtl,
|
|
138
126
|
}"
|
|
139
127
|
>
|
|
140
128
|
<div
|
|
129
|
+
v-if="$slots.cardDescription || description"
|
|
141
130
|
class="card-grid-item__description"
|
|
142
131
|
:class="{
|
|
143
132
|
[descriptionClass]: !!descriptionClass,
|
|
@@ -170,11 +159,7 @@
|
|
|
170
159
|
</div>
|
|
171
160
|
</b-card-text>
|
|
172
161
|
</b-card-body>
|
|
173
|
-
<div
|
|
174
|
-
v-if="$slots.cardFooter"
|
|
175
|
-
class="card-grid-item__footer"
|
|
176
|
-
:class="{ rtl: rtl }"
|
|
177
|
-
>
|
|
162
|
+
<div v-if="$slots.cardFooter" class="card-grid-item__footer" :class="{ rtl: rtl }">
|
|
178
163
|
<slot name="cardFooter"></slot>
|
|
179
164
|
</div>
|
|
180
165
|
<div
|
|
@@ -193,15 +178,15 @@
|
|
|
193
178
|
</template>
|
|
194
179
|
|
|
195
180
|
<script>
|
|
196
|
-
import CardGridItemIcon from
|
|
197
|
-
import CardGridItemCaret from
|
|
198
|
-
import RichText from
|
|
199
|
-
import { parseISO } from
|
|
200
|
-
import { isAbsoluteUrl, isGovSite } from
|
|
201
|
-
import { BCard, BCardBody, BCardTitle, BCardText } from
|
|
181
|
+
import CardGridItemIcon from "./card-grid-item-icon.vue";
|
|
182
|
+
import CardGridItemCaret from "./card-grid-item-caret.vue";
|
|
183
|
+
import RichText from "../../Paragraphs/RichText/index.vue";
|
|
184
|
+
import { parseISO } from "date-fns";
|
|
185
|
+
import { isAbsoluteUrl, isGovSite } from "../../../../lib/utility";
|
|
186
|
+
import { BCard, BCardBody, BCardTitle, BCardText } from "bootstrap-vue-next";
|
|
202
187
|
|
|
203
188
|
export default {
|
|
204
|
-
name:
|
|
189
|
+
name: "CardGridItem",
|
|
205
190
|
components: {
|
|
206
191
|
CardGridItemIcon,
|
|
207
192
|
CardGridItemCaret,
|
|
@@ -214,9 +199,8 @@ export default {
|
|
|
214
199
|
props: {
|
|
215
200
|
backgroundVariant: {
|
|
216
201
|
type: String,
|
|
217
|
-
default:
|
|
218
|
-
validator: (value) =>
|
|
219
|
-
['white', 'transparent', 'light'].indexOf(value) >= 0,
|
|
202
|
+
default: "white",
|
|
203
|
+
validator: (value) => ["white", "transparent", "light"].indexOf(value) >= 0,
|
|
220
204
|
},
|
|
221
205
|
imageSrc: {
|
|
222
206
|
type: String,
|
|
@@ -235,7 +219,7 @@ export default {
|
|
|
235
219
|
},
|
|
236
220
|
descriptionClass: {
|
|
237
221
|
type: String,
|
|
238
|
-
default:
|
|
222
|
+
default: "",
|
|
239
223
|
},
|
|
240
224
|
glyphSrc: {
|
|
241
225
|
type: [Object, String],
|
|
@@ -247,21 +231,16 @@ export default {
|
|
|
247
231
|
},
|
|
248
232
|
iconSize: {
|
|
249
233
|
type: String,
|
|
250
|
-
default:
|
|
251
|
-
validator: (value) =>
|
|
252
|
-
['xsmall', 'small', 'medium', 'large'].indexOf(value) >= 0,
|
|
234
|
+
default: "small",
|
|
235
|
+
validator: (value) => ["xsmall", "small", "medium", "large"].indexOf(value) >= 0,
|
|
253
236
|
},
|
|
254
237
|
iconPosition: {
|
|
255
238
|
type: String,
|
|
256
|
-
default:
|
|
239
|
+
default: "top",
|
|
257
240
|
validator: (value) =>
|
|
258
|
-
[
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
'top-right',
|
|
262
|
-
'after-title',
|
|
263
|
-
'before-description',
|
|
264
|
-
].indexOf(value) >= 0,
|
|
241
|
+
["top", "top-left", "top-right", "after-title", "before-description"].indexOf(
|
|
242
|
+
value
|
|
243
|
+
) >= 0,
|
|
265
244
|
},
|
|
266
245
|
iconIsBordered: {
|
|
267
246
|
type: Boolean,
|
|
@@ -276,14 +255,13 @@ export default {
|
|
|
276
255
|
},
|
|
277
256
|
invertOnSelectBackground: {
|
|
278
257
|
type: String,
|
|
279
|
-
default:
|
|
280
|
-
validator: (value) => [
|
|
258
|
+
default: "none",
|
|
259
|
+
validator: (value) => ["none", "yellow", "black"].indexOf(value) >= 0,
|
|
281
260
|
},
|
|
282
261
|
borderOnSelectBackground: {
|
|
283
262
|
type: String,
|
|
284
|
-
default:
|
|
285
|
-
validator: (value) =>
|
|
286
|
-
['none', 'yellow', 'black', 'blue'].indexOf(value) >= 0,
|
|
263
|
+
default: "none",
|
|
264
|
+
validator: (value) => ["none", "yellow", "black", "blue"].indexOf(value) >= 0,
|
|
287
265
|
},
|
|
288
266
|
rtl: {
|
|
289
267
|
type: Boolean,
|
|
@@ -291,49 +269,47 @@ export default {
|
|
|
291
269
|
},
|
|
292
270
|
headerSize: {
|
|
293
271
|
type: String,
|
|
294
|
-
default:
|
|
272
|
+
default: "custom",
|
|
295
273
|
validator: (value) =>
|
|
296
|
-
[
|
|
297
|
-
|
|
298
|
-
) >= 0,
|
|
274
|
+
["medium", "large", "extra-large", "extra-2x-large", "custom"].indexOf(value) >=
|
|
275
|
+
0,
|
|
299
276
|
},
|
|
300
277
|
headerTextAlign: {
|
|
301
278
|
type: String,
|
|
302
|
-
default:
|
|
303
|
-
validator: (value) => [
|
|
279
|
+
default: "left",
|
|
280
|
+
validator: (value) => ["left", "center", "right"].indexOf(value) >= 0,
|
|
304
281
|
},
|
|
305
282
|
headerTag: {
|
|
306
283
|
type: String,
|
|
307
284
|
required: false,
|
|
308
|
-
default:
|
|
285
|
+
default: "h3",
|
|
309
286
|
},
|
|
310
287
|
caret: {
|
|
311
288
|
type: String,
|
|
312
289
|
default: undefined,
|
|
313
290
|
validator: (value) =>
|
|
314
|
-
[
|
|
291
|
+
["down", "up", "right", "left", "external"].indexOf(value) >= 0,
|
|
315
292
|
},
|
|
316
293
|
caretPosition: {
|
|
317
294
|
type: String,
|
|
318
|
-
default:
|
|
319
|
-
validator: (value) =>
|
|
320
|
-
['top', 'bottom', 'after-title'].indexOf(value) >= 0,
|
|
295
|
+
default: "top",
|
|
296
|
+
validator: (value) => ["top", "bottom", "after-title"].indexOf(value) >= 0,
|
|
321
297
|
},
|
|
322
298
|
cardPadding: {
|
|
323
299
|
type: String,
|
|
324
|
-
default:
|
|
300
|
+
default: "none",
|
|
325
301
|
validator: (value) =>
|
|
326
|
-
[
|
|
302
|
+
["none", "xsmall", "small", "medium", "large"].indexOf(value) >= 0,
|
|
327
303
|
},
|
|
328
304
|
borderType: {
|
|
329
305
|
type: String,
|
|
330
|
-
default:
|
|
306
|
+
default: "none",
|
|
331
307
|
validator: (value) =>
|
|
332
|
-
[
|
|
308
|
+
["none", "thin", "shadow", "thick", "dark"].indexOf(value) >= 0,
|
|
333
309
|
},
|
|
334
310
|
cardTextAlign: {
|
|
335
311
|
type: String,
|
|
336
|
-
default:
|
|
312
|
+
default: "left",
|
|
337
313
|
},
|
|
338
314
|
disableSelect: {
|
|
339
315
|
type: Boolean,
|
|
@@ -341,11 +317,11 @@ export default {
|
|
|
341
317
|
},
|
|
342
318
|
pillText: {
|
|
343
319
|
type: String,
|
|
344
|
-
default:
|
|
320
|
+
default: "",
|
|
345
321
|
},
|
|
346
322
|
buttonRole: {
|
|
347
323
|
type: String,
|
|
348
|
-
default:
|
|
324
|
+
default: "link",
|
|
349
325
|
},
|
|
350
326
|
isSelected: {
|
|
351
327
|
type: Boolean,
|
|
@@ -383,20 +359,18 @@ export default {
|
|
|
383
359
|
return {
|
|
384
360
|
[`card-grid-item__card--hasIcon`]:
|
|
385
361
|
(this.imageSrc || this.glyphSrc) &&
|
|
386
|
-
(this.iconPosition ===
|
|
362
|
+
(this.iconPosition === "top" || this.iconPosition === "top-left"),
|
|
387
363
|
[`card-grid-item__card--selectable`]: this.isSelectable,
|
|
388
|
-
[`card-grid-item__card--selected-inverted--` +
|
|
389
|
-
this.invertOnSelectBackground]:
|
|
364
|
+
[`card-grid-item__card--selected-inverted--` + this.invertOnSelectBackground]:
|
|
390
365
|
this.selected &&
|
|
391
366
|
this.invertOnSelectBackground &&
|
|
392
|
-
this.invertOnSelectBackground !==
|
|
393
|
-
[`card-grid-item__card--selected-border--` +
|
|
394
|
-
this.borderOnSelectBackground]:
|
|
367
|
+
this.invertOnSelectBackground !== "none",
|
|
368
|
+
[`card-grid-item__card--selected-border--` + this.borderOnSelectBackground]:
|
|
395
369
|
this.selected &&
|
|
396
370
|
this.borderOnSelectBackground &&
|
|
397
|
-
this.borderOnSelectBackground !==
|
|
371
|
+
this.borderOnSelectBackground !== "none",
|
|
398
372
|
[`card-grid-item__card--selected-focus`]:
|
|
399
|
-
this.selected && this.buttonRole ===
|
|
373
|
+
this.selected && this.buttonRole === "radio",
|
|
400
374
|
[`card-grid-item__card--selected-link`]:
|
|
401
375
|
this.selected && !this.invertOnSelectBackground,
|
|
402
376
|
[`card-grid-item__card--padding-${this.cardPadding}`]: true,
|
|
@@ -404,89 +378,87 @@ export default {
|
|
|
404
378
|
[`card-grid-item__card--bg-${this.backgroundVariant}`]: true,
|
|
405
379
|
[`card-grid-item__card--select-${this.buttonRole}`]: true,
|
|
406
380
|
[`card-grid-item__card--align-${this.cardTextAlign}`]: true,
|
|
407
|
-
}
|
|
381
|
+
};
|
|
408
382
|
},
|
|
409
383
|
urlHostname() {
|
|
410
|
-
return window.location.protocol +
|
|
384
|
+
return window.location.protocol + "//" + window.location.host;
|
|
411
385
|
},
|
|
412
386
|
},
|
|
413
387
|
mounted() {
|
|
414
|
-
this.selected = this.isSelected
|
|
388
|
+
this.selected = this.isSelected;
|
|
415
389
|
},
|
|
416
390
|
created() {
|
|
417
|
-
this.parentGrid = this.getParentGridItem()
|
|
391
|
+
this.parentGrid = this.getParentGridItem();
|
|
418
392
|
if (this.parentGrid) {
|
|
419
|
-
this.parentGrid.registerChild(this)
|
|
420
|
-
this.setCardId()
|
|
421
|
-
this.isSelectable = !this.disableSelect && this.parentGrid.isSelectable
|
|
393
|
+
this.parentGrid.registerChild(this);
|
|
394
|
+
this.setCardId();
|
|
395
|
+
this.isSelectable = !this.disableSelect && this.parentGrid.isSelectable;
|
|
422
396
|
}
|
|
423
397
|
},
|
|
424
398
|
beforeDestroy() {
|
|
425
399
|
if (this.parentGrid) {
|
|
426
|
-
this.parentGrid.deregisterChild(this)
|
|
400
|
+
this.parentGrid.deregisterChild(this);
|
|
427
401
|
}
|
|
428
402
|
},
|
|
429
403
|
methods: {
|
|
430
404
|
cardClicked(ev) {
|
|
431
405
|
if (this.isSelectable) {
|
|
432
|
-
this.parentGrid.cardSelected(this, ev)
|
|
406
|
+
this.parentGrid.cardSelected(this, ev);
|
|
433
407
|
}
|
|
434
408
|
|
|
435
409
|
if (this.$gtm) {
|
|
436
|
-
this.fireGTM()
|
|
410
|
+
this.fireGTM();
|
|
437
411
|
}
|
|
438
412
|
},
|
|
439
413
|
cardTitleClicked(ev) {
|
|
440
414
|
if (this.isCardTitleSelectable) {
|
|
441
|
-
this.parentGrid.cardTitleSelected(this, ev)
|
|
415
|
+
this.parentGrid.cardTitleSelected(this, ev);
|
|
442
416
|
}
|
|
443
417
|
},
|
|
444
418
|
getParentGridItem() {
|
|
445
|
-
let counter = 0
|
|
446
|
-
const maxParentDepth = 10
|
|
447
|
-
let currentParent = this.$parent
|
|
448
|
-
let gridParent
|
|
419
|
+
let counter = 0;
|
|
420
|
+
const maxParentDepth = 10;
|
|
421
|
+
let currentParent = this.$parent;
|
|
422
|
+
let gridParent;
|
|
449
423
|
while (maxParentDepth > counter) {
|
|
450
|
-
counter += 1
|
|
424
|
+
counter += 1;
|
|
451
425
|
if (currentParent && Array.isArray(currentParent.cards)) {
|
|
452
|
-
gridParent = currentParent
|
|
453
|
-
break
|
|
426
|
+
gridParent = currentParent;
|
|
427
|
+
break;
|
|
454
428
|
} else if (currentParent) {
|
|
455
|
-
currentParent = currentParent.$parent
|
|
429
|
+
currentParent = currentParent.$parent;
|
|
456
430
|
}
|
|
457
431
|
}
|
|
458
|
-
return gridParent
|
|
432
|
+
return gridParent;
|
|
459
433
|
},
|
|
460
434
|
setCardId() {
|
|
461
435
|
this.cardId = this.parentGrid.cardIdPrefix
|
|
462
|
-
? this.parentGrid.cardIdPrefix +
|
|
463
|
-
|
|
464
|
-
this.parentGrid.getChildIndex(this)
|
|
465
|
-
: undefined
|
|
436
|
+
? this.parentGrid.cardIdPrefix + "-" + this.parentGrid.getChildIndex(this)
|
|
437
|
+
: undefined;
|
|
466
438
|
},
|
|
467
439
|
setGridMetaData(gridColumnSize, isMobileView, isTabletView) {
|
|
468
|
-
this.gridColumnSize = gridColumnSize
|
|
469
|
-
this.isMobileView = isMobileView
|
|
470
|
-
this.isTabletView = isTabletView
|
|
440
|
+
this.gridColumnSize = gridColumnSize;
|
|
441
|
+
this.isMobileView = isMobileView;
|
|
442
|
+
this.isTabletView = isTabletView;
|
|
471
443
|
},
|
|
472
444
|
handleFocus(ev) {
|
|
473
|
-
this.parentGrid.handleFocus(ev)
|
|
445
|
+
this.parentGrid.handleFocus(ev);
|
|
474
446
|
},
|
|
475
447
|
fireGTM() {
|
|
476
|
-
let theEl = this.$slots?.cardDescription
|
|
448
|
+
let theEl = this.$slots?.cardDescription;
|
|
477
449
|
if (theEl && theEl.length > 0) {
|
|
478
450
|
var content = {
|
|
479
451
|
content: this.$diffInDays(
|
|
480
|
-
parseISO(theEl[0]?.componentOptions?.propsData?.card?.created)
|
|
452
|
+
parseISO(theEl[0]?.componentOptions?.propsData?.card?.created)
|
|
481
453
|
),
|
|
482
|
-
}
|
|
454
|
+
};
|
|
483
455
|
}
|
|
484
456
|
if (this.$gtm) {
|
|
485
457
|
// format link
|
|
486
|
-
const linkStr = this.link
|
|
487
|
-
let linkURL = linkStr
|
|
458
|
+
const linkStr = this.link;
|
|
459
|
+
let linkURL = linkStr;
|
|
488
460
|
if (linkStr !== false && !linkStr.includes(this.urlHostname)) {
|
|
489
|
-
linkURL = this.urlHostname + linkStr
|
|
461
|
+
linkURL = this.urlHostname + linkStr;
|
|
490
462
|
}
|
|
491
463
|
// gather attrs
|
|
492
464
|
let attrs = {
|
|
@@ -494,46 +466,45 @@ export default {
|
|
|
494
466
|
data: linkURL,
|
|
495
467
|
...content,
|
|
496
468
|
...this.taxonomies,
|
|
497
|
-
}
|
|
469
|
+
};
|
|
498
470
|
// fire the default event
|
|
499
471
|
this.$gtm.push({
|
|
500
|
-
event:
|
|
472
|
+
event: "custom.interaction.tile.click",
|
|
501
473
|
group: this?.parentGrid?.title,
|
|
502
474
|
...attrs,
|
|
503
|
-
})
|
|
504
|
-
if (this.pillText ===
|
|
475
|
+
});
|
|
476
|
+
if (this.pillText === "News") {
|
|
505
477
|
this.$gtm.push({
|
|
506
|
-
event:
|
|
507
|
-
group:
|
|
478
|
+
event: "custom.interaction.news.click",
|
|
479
|
+
group: "News",
|
|
508
480
|
...attrs,
|
|
509
|
-
})
|
|
481
|
+
});
|
|
510
482
|
}
|
|
511
|
-
if (this.pillText ===
|
|
483
|
+
if (this.pillText === "Event") {
|
|
512
484
|
this.$gtm.push({
|
|
513
|
-
event:
|
|
514
|
-
group:
|
|
485
|
+
event: "custom.interaction.event.click",
|
|
486
|
+
group: "Event",
|
|
515
487
|
...attrs,
|
|
516
|
-
})
|
|
488
|
+
});
|
|
517
489
|
}
|
|
518
|
-
if (this.pillText ===
|
|
490
|
+
if (this.pillText === "Safety alert") {
|
|
519
491
|
this.$gtm.push({
|
|
520
|
-
event:
|
|
521
|
-
group:
|
|
492
|
+
event: "custom.interaction.safety.click",
|
|
493
|
+
group: "Safety alert",
|
|
522
494
|
...attrs,
|
|
523
|
-
})
|
|
495
|
+
});
|
|
524
496
|
}
|
|
525
497
|
if (
|
|
526
498
|
(this.link,
|
|
527
499
|
this.isAbsoluteUrl(this.link) &&
|
|
528
|
-
(this.$config
|
|
529
|
-
|
|
530
|
-
: process.env.CARETAKER) === 'false')
|
|
500
|
+
(this.$config ? this.$config.public.caretaker : process.env.CARETAKER) ===
|
|
501
|
+
"false")
|
|
531
502
|
) {
|
|
532
503
|
this.$gtm.push({
|
|
533
|
-
event:
|
|
504
|
+
event: "custom.interaction.outboundlink",
|
|
534
505
|
category: this.cardHeaderTitle,
|
|
535
506
|
label: this.link,
|
|
536
|
-
})
|
|
507
|
+
});
|
|
537
508
|
}
|
|
538
509
|
}
|
|
539
510
|
// for non gov sites and when caretaker mode is on, analytics is fired from listenersCaretaker.js
|
|
@@ -541,23 +512,21 @@ export default {
|
|
|
541
512
|
this.link &&
|
|
542
513
|
this.isAbsoluteUrl(this.link) &&
|
|
543
514
|
isGovSite(this.link) &&
|
|
544
|
-
(this.$config
|
|
545
|
-
? this.$config.public.caretaker
|
|
546
|
-
: process.env.CARETAKER) === 'true'
|
|
515
|
+
(this.$config ? this.$config.public.caretaker : process.env.CARETAKER) === "true"
|
|
547
516
|
) {
|
|
548
517
|
this.$gtm.push({
|
|
549
|
-
event:
|
|
518
|
+
event: "custom.interaction.outboundlink",
|
|
550
519
|
category: this.cardHeaderTitle,
|
|
551
520
|
label: this.link,
|
|
552
|
-
})
|
|
521
|
+
});
|
|
553
522
|
}
|
|
554
523
|
},
|
|
555
524
|
},
|
|
556
|
-
}
|
|
525
|
+
};
|
|
557
526
|
</script>
|
|
558
527
|
|
|
559
528
|
<style lang="scss" scoped>
|
|
560
|
-
@import
|
|
529
|
+
@import "../../../includes/scss/all";
|
|
561
530
|
|
|
562
531
|
.card-grid-item {
|
|
563
532
|
height: 100%;
|
|
@@ -809,7 +778,7 @@ export default {
|
|
|
809
778
|
align-items: center;
|
|
810
779
|
}
|
|
811
780
|
:deep(.card_item__control-radio span) {
|
|
812
|
-
background-image: url(
|
|
781
|
+
background-image: url("../../../assets/icons/tick.svg");
|
|
813
782
|
background-position: center;
|
|
814
783
|
background-repeat: no-repeat;
|
|
815
784
|
filter: invert(1);
|
|
@@ -858,7 +827,7 @@ export default {
|
|
|
858
827
|
line-height: 80px;
|
|
859
828
|
|
|
860
829
|
@media screen and (max-width: 1199px) and (min-width: 768px) {
|
|
861
|
-
@include fp(
|
|
830
|
+
@include fp("font-size", 60, 72);
|
|
862
831
|
}
|
|
863
832
|
}
|
|
864
833
|
|
|
@@ -3,51 +3,51 @@
|
|
|
3
3
|
<!-- Main details -->
|
|
4
4
|
<container>
|
|
5
5
|
<row class="records">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
<column md="2" sm="12" class="title" >
|
|
7
|
+
<a name="titleLink" v-if="item.title" href="javascript:void(0)" :aria-expanded="visible ? 'true' : 'false'" @click="this.visible = !this.visible">
|
|
8
|
+
{{ item.title }}
|
|
9
|
+
</a>
|
|
10
|
+
</column>
|
|
11
|
+
<column md="2" sm="12" class="address" >
|
|
12
|
+
<a v-if="item.fullAddress" target="_blank" :href="gMapLink"><span class="sr-only visually-hidden">Address</span>
|
|
13
|
+
{{ item.fullAddress }}
|
|
14
|
+
</a>
|
|
15
|
+
</column>
|
|
16
|
+
<column md="2" sm="12" class="coldata longstring" >
|
|
17
|
+
<div class="label">Email</div>
|
|
18
|
+
<a v-if="item.email" target="_blank" :href="`mailto:${item.email}`"><span class="sr-only visually-hidden">Email address</span>
|
|
19
|
+
{{ item.email }}
|
|
20
|
+
</a>
|
|
21
|
+
</column>
|
|
22
|
+
<column md="3" sm="12" class="coldata longstring" >
|
|
23
|
+
<div class="label">Website</div>
|
|
24
|
+
<a v-if="item.website" target="_blank" :href="`${item.website}`"><span class="sr-only visually-hidden">Website address</span>
|
|
25
|
+
{{ item.website }}
|
|
26
|
+
</a>
|
|
27
|
+
</column>
|
|
28
|
+
<column md="2" sm="12" class="coldata" >
|
|
29
|
+
<div class="label">Phone</div>
|
|
30
|
+
<a v-if="item.tollfreePhone || item.workPhone" :href="`tel:${item.tollfreephone || item.workphone}`"><span class="sr-only visually-hidden">Phone number</span>
|
|
31
|
+
{{ item.tollfreePhone || item.workPhone }}
|
|
32
|
+
</a>
|
|
33
|
+
</column>
|
|
34
|
+
</row>
|
|
35
|
+
<div class="hscp-caret" >
|
|
36
|
+
<a v-if="visible" href="javascript:void(0)" @click="this.visible = false">
|
|
37
|
+
<img
|
|
38
|
+
:src="CaretUp"
|
|
39
|
+
height="12"
|
|
40
|
+
width="17"
|
|
41
|
+
alt="Expand Detail">
|
|
26
42
|
</a>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
43
|
+
<a v-if="!visible" href="javascript:void(0)" @click="this.visible = true">
|
|
44
|
+
<img
|
|
45
|
+
:src="CaretDown"
|
|
46
|
+
height="12"
|
|
47
|
+
width="17"
|
|
48
|
+
alt="Expand Detail">
|
|
32
49
|
</a>
|
|
33
|
-
</
|
|
34
|
-
</row>
|
|
35
|
-
<div class="hscp-caret" >
|
|
36
|
-
<a v-if="visible" href="javascript:void(0)" @click="this.visible = false">
|
|
37
|
-
<img
|
|
38
|
-
:src="CaretUp"
|
|
39
|
-
height="12"
|
|
40
|
-
width="17"
|
|
41
|
-
alt="Expand Detail">
|
|
42
|
-
</a>
|
|
43
|
-
<a v-if="!visible" href="javascript:void(0)" @click="this.visible = true">
|
|
44
|
-
<img
|
|
45
|
-
:src="CaretDown"
|
|
46
|
-
height="12"
|
|
47
|
-
width="17"
|
|
48
|
-
alt="Expand Detail">
|
|
49
|
-
</a>
|
|
50
|
-
</div>
|
|
50
|
+
</div>
|
|
51
51
|
</container>
|
|
52
52
|
|
|
53
53
|
<!-- Additional Content -->
|
|
@@ -156,7 +156,7 @@ export default {
|
|
|
156
156
|
item: {
|
|
157
157
|
type: Object,
|
|
158
158
|
required: true
|
|
159
|
-
}
|
|
159
|
+
},
|
|
160
160
|
},
|
|
161
161
|
data() {
|
|
162
162
|
return {
|
|
@@ -169,6 +169,7 @@ export default {
|
|
|
169
169
|
gMapLink() {
|
|
170
170
|
return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}`
|
|
171
171
|
},
|
|
172
|
+
|
|
172
173
|
},
|
|
173
174
|
methods: {
|
|
174
175
|
handleClick(title) {
|