@worksafevictoria/wcl7.5 1.6.0 → 1.7.0

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.
Files changed (29) hide show
  1. package/package.json +3 -2
  2. package/src/components/Common/CardGridItem/card-grid-item-icon.vue +15 -19
  3. package/src/components/Global/AppFooter/styles.scss +3 -0
  4. package/src/components/Global/DirectoryFilters/index.vue +3 -0
  5. package/src/components/Paragraphs/Chart/Constants.js +479 -479
  6. package/src/components/Paragraphs/Directory/{Records/HSCP → HSCP/Records/SingleRecord}/index.stories.js +4 -3
  7. package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +321 -0
  8. package/src/components/Paragraphs/Directory/HSCP/Records/index.stories.js +19 -0
  9. package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +345 -0
  10. package/src/components/Paragraphs/Directory/HSCP/Records/pagination.vue +179 -0
  11. package/src/components/Paragraphs/Directory/Records/CJ/index.vue +1 -1
  12. package/src/components/Paragraphs/Directory/Records/ISP/index.vue +1 -1
  13. package/src/components/Paragraphs/Directory/Records/PRS/index.stories.js +34 -0
  14. package/src/components/Paragraphs/Directory/Records/PRS/index.vue +5 -1
  15. package/src/components/Paragraphs/Directory/Records/index.storieshide.js +47 -0
  16. package/src/components/Paragraphs/Directory/Records/index.vue +18 -35
  17. package/src/components/Paragraphs/Directory/{Records/styles.scss → styles.scss} +4 -3
  18. package/src/components/Paragraphs/Map/Constants.js +4790 -0
  19. package/src/components/Paragraphs/Map/index.mdx +29 -0
  20. package/src/components/Paragraphs/Map/index.stories.js +15 -0
  21. package/src/components/Paragraphs/Map/index.vue +295 -0
  22. package/src/components/Paragraphs/Map/postcode_location.json +3543 -0
  23. package/src/components/SubComponents/Breadcrumb/index.vue +4 -0
  24. package/src/components/SubComponents/FormInstance/components/renderer/index.vue +23 -7
  25. package/src/components/SubComponents/FormInstance/models/overrides/file.js +7 -2
  26. package/src/components/SubComponents/Search/index.vue +7 -2
  27. package/src/index.js +4 -0
  28. package/src/mock/course-provider.js +273 -0
  29. package/src/components/Paragraphs/Directory/Records/HSCP/index.vue +0 -334
@@ -1,334 +0,0 @@
1
- <template>
2
- <div class="paragraph--directory__records--hscp">
3
- <container>
4
- <!-- Main details -->
5
- <row>
6
- <column class="title">
7
- <a href="javascript:void(0)" @click="this.visible = !this.visible">
8
- {{ item.title }}
9
- </a>
10
- </column>
11
- <column class="address">
12
- <a target="_blank" :href="gMapLink">
13
- {{ item.fullAddress }}
14
- </a>
15
- </column>
16
- <column class="contact">
17
- <div class="label">Email</div>
18
- <a target="_blank" :href="`mailto:${item.email}`"><span class="sr-only visually-hidden">Email address</span>
19
- {{ item.email }}
20
- </a>
21
- </column>
22
- <column class="contact">
23
- <div class="label">Website</div>
24
- <a target="_blank" :href="`${item.website}`"><span class="sr-only visually-hidden">Website address</span>
25
- {{ item.website }}
26
- </a>
27
- </column>
28
- <column class="contact">
29
- <div class="label">Phone</div>
30
- <a :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
- <column class="hscp-caret" sm="1">
35
- <a v-if="visible" href="javascript:void(0)" @click="this.visible = false">
36
- <img
37
- style="float: right;"
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
- style="float: right;"
46
- :src="CaretDown"
47
- height="12"
48
- width="17"
49
- alt="Expand Detail">
50
- </a>
51
- </column>
52
- </row>
53
- <!-- Additional Content -->
54
- <template v-if="this.visible">
55
- <row class="row-hscp-additional">
56
- <column>
57
- <h4>Contact Information</h4>
58
- </column>
59
- </row>
60
- <row>
61
- <column sm="3" class="label">
62
- Contact
63
- </column>
64
- <column sm="3">
65
- {{item.contact1}}
66
- </column>
67
- <column sm="3" class="label">
68
- Contact
69
- </column>
70
- <column sm="3">
71
- {{item.contact2}}
72
- </column>
73
- </row>
74
- <row>
75
- <column sm="3" class="label">
76
- Phone
77
- </column>
78
- <column sm="3">
79
- {{item.phone1}}
80
- </column>
81
- <column sm="3" class="label">
82
- Phone
83
- </column>
84
- <column sm="3">
85
- {{item.phone2}}
86
- </column>
87
- </row>
88
- <row>
89
- <column sm="3" class="label">
90
- Email
91
- </column>
92
- <column sm="3">
93
- {{item.email1}}
94
- </column>
95
- <column sm="3" class="label">
96
- Email
97
- </column>
98
- <column sm="3">
99
- {{item.email2}}
100
- </column>
101
- </row>
102
- <row class="row-hscp-additional">
103
- <column>
104
- <h4>Training Venue Locations</h4>
105
- </column>
106
- </row>
107
- <row>
108
- <column>
109
- <ul>
110
- <li v-for="(venue) in item.trainingVenues" :key="venue.id">
111
- {{venue}}
112
- </li>
113
- </ul>
114
- </column>
115
- </row>
116
- <row class="row-hscp-additional">
117
- <column>
118
- <h4>Training Courses</h4>
119
- </column>
120
- </row>
121
- <row>
122
- <column>
123
- <ul>
124
- <li v-for="(course) in item.courses" :key="course.id">
125
- {{course}}
126
- </li>
127
- </ul>
128
- </column>
129
- </row>
130
- </template>
131
- </container>
132
- </div>
133
- </template>
134
- <script>
135
- import Container from '../../../../Containers/Container/index.vue'
136
- import Row from '../../../../Containers/Row/index.vue'
137
- import Column from '../../../../Containers/Column/index.vue'
138
- import CaretUp from './../../../../../assets/icons/caret-up.svg?url'
139
- import CaretDown from './../../../../../assets/icons/caret-down.svg?url'
140
-
141
- export default {
142
- components: {
143
- Container,
144
- Row,
145
- Column
146
- },
147
- props: {
148
- item: {
149
- type: Object,
150
- required: true
151
- }
152
- },
153
- data() {
154
- return {
155
- visible: false,
156
- CaretUp,
157
- CaretDown,
158
- }
159
- },
160
- computed: {
161
- gMapLink() {
162
- return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}`
163
- },
164
- },
165
- methods: {
166
- handleClick(title) {
167
- this.visible = !this.visible
168
- if (this.$gtm) {
169
- if (this.visible) {
170
- this.$gtm.push({ event: 'custom.search.prs.open', title })
171
- } else {
172
- this.$gtm.push({
173
- event: 'custom.search.prs.close',
174
- title
175
- })
176
- }
177
- }
178
- }
179
- }
180
- }
181
- </script>
182
-
183
- <style lang="scss" scoped>
184
- @import '../styles.scss';
185
-
186
- .row-hscp-additional {
187
- margin-top: 20px;
188
- }
189
-
190
- .hscp-caret {
191
- justify-content: end;
192
- align-content: end;
193
- border-radius: 0px;
194
- }
195
- .paragraph--directory__records--hscp {
196
-
197
- a {
198
- color: $black;
199
- text-decoration: none;
200
- }
201
- a:hover {
202
- text-decoration: underline;
203
- }
204
- a:focus {
205
- text-decoration: underline;
206
- }
207
-
208
- .name {
209
- font-size: 1rem;
210
- color: $black;
211
- font-weight: 700;
212
- }
213
- .address {
214
- font-size: 15px;
215
- a {
216
- color: inherit;
217
- text-decoration: none;
218
- }
219
- a:hover {
220
- text-decoration: underline;
221
- }
222
- a:focus {
223
- text-decoration: underline;
224
- }
225
- }
226
- .phone {
227
- a {
228
- color: inherit;
229
- }
230
- }
231
- .label {
232
- font-size: 15px;
233
- font-weight: bold;
234
- }
235
- }
236
- .paragraph--directory.hscp-filters {
237
- .search {
238
- color: $black;
239
- border: 1px solid $gray;
240
- border-radius: 8px;
241
- padding: 10px 12px;
242
- height: 42px;
243
- background-repeat: no-repeat;
244
- background-position: 96% 12px;
245
- margin-bottom: 16px;
246
- transition: none;
247
- }
248
- select {
249
- -moz-appearance: none; /* Firefox */
250
- -webkit-appearance: none; /* Safari and Chrome */
251
- appearance: none;
252
- height: 42px;
253
- border-radius: 8px;
254
- padding: 10px 12px;
255
- width: 100%;
256
- border: 1px solid $gray;
257
- background-image: url('@worksafevictoria/wcl7.5/src/assets/icons/caret-down.svg');
258
- background-position: 95% 50%;
259
- background-repeat: no-repeat;
260
- text-transform: capitalise;
261
- }
262
- .grid-column {
263
- display: inline-block;
264
- width: 25%;
265
-
266
- @media (max-width: 767px) {
267
- width: 50%;
268
- }
269
-
270
- @media (max-width: 539px) {
271
- display: block;
272
- width: 100%;
273
- float: none;
274
- margin-bottom: 16px;
275
- }
276
- }
277
- .right {
278
- float: right;
279
- position: relative;
280
- }
281
-
282
- ul.records {
283
- padding: 0;
284
- margin: 0;
285
-
286
- li {
287
- text-align: left;
288
- display: block;
289
- width: 100%;
290
- background: $white;
291
- color: $black;
292
- margin-bottom: 32px;
293
- border: 1px solid $gray;
294
- border-radius: 12px;
295
- font-size: 14px;
296
- padding: 16px;
297
-
298
- .name {
299
- font-size: 1rem;
300
- color: $black;
301
- font-weight: 700;
302
- }
303
- .address {
304
- font-size: 15px;
305
- a {
306
- color: inherit;
307
- }
308
- }
309
- .phone {
310
- a {
311
- color: inherit;
312
- }
313
- .labl {
314
- font-size: 15px;
315
- font-weight: bold;
316
- }
317
- }
318
-
319
- @media (max-width: 767px) {
320
- .name,
321
- .address,
322
- .phone {
323
- margin-bottom: 5px;
324
- width: 100%;
325
- }
326
- }
327
- .pagination-container {
328
- text-align: center;
329
- }
330
- }
331
- }
332
- }
333
- </style>
334
-