@worksafevictoria/wcl7.5 1.4.0 → 1.6.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.
- package/.storybook/preview.js +20 -13
- package/bin/deploy.sh +1 -1
- package/lib/utility.js +10 -8
- package/package.json +4 -5
- package/src/assets/icons/AppFooter/x-ws-footer.svg +10 -0
- package/src/assets/icons/AppFooter/x-ww-footer.svg +28 -0
- package/src/assets/icons/SocialShare/x-icon-white.svg +28 -0
- package/src/assets/styles/modal.scss +51 -0
- package/src/components/Common/CardGrid/index.vue +69 -49
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +7 -4
- package/src/components/Common/CardGridItem/index.vue +95 -71
- package/src/components/Containers/Carousel/index.vue +14 -7
- package/src/components/Containers/HomepageHeader/index.stories.js +60 -36
- package/src/components/Containers/HomepageHeader/index.vue +2 -26
- package/src/components/Containers/HomepageHeaderNew/index.stories.js +15 -15
- package/src/components/Containers/HomepageHeaderNew/index.vue +97 -68
- package/src/components/Containers/SectionGroup/index.vue +1 -1
- package/src/components/Containers/Subheader/index.vue +5 -1
- package/src/components/Global/AppFooter/FooterSocialShare/index.vue +1 -1
- package/src/components/Global/AppFooter/index.vue +14 -7
- package/src/components/Global/AppHeaderNew/index.vue +304 -233
- package/src/components/Global/AppHeaderNew/styles.scss +29 -8
- package/src/components/Global/BackToTop/index.vue +8 -8
- package/src/components/Global/ContrastMode/index.vue +1 -1
- package/src/components/Global/Cookies/index.stories.js +16 -10
- package/src/components/Global/Cookies/index.vue +281 -237
- package/src/components/Global/Cookies/styles.scss +54 -54
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +50 -133
- package/src/components/Global/GlobalNotice/index.vue +79 -100
- package/src/components/Global/SocialShare/index.vue +1 -1
- package/src/components/Global/Strip/index.vue +1 -1
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +8 -4
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +23 -23
- package/src/components/Paragraphs/Accordion/index.stories.js +21 -18
- package/src/components/Paragraphs/Accordion/index.vue +52 -48
- package/src/components/Paragraphs/BrowseContent/index.vue +1 -1
- package/src/components/Paragraphs/BrowseContent/setup.vue +284 -0
- package/src/components/Paragraphs/Chart/Constants.js +485 -485
- package/src/components/Paragraphs/Chart/index.vue +232 -241
- package/src/components/Paragraphs/Directory/Records/HSCP/index.stories.js +33 -0
- package/src/components/Paragraphs/Directory/Records/HSCP/index.vue +334 -0
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +2 -2
- package/src/components/Paragraphs/Directory/Records/index.vue +63 -27
- package/src/components/Paragraphs/Directory/Records/styles.scss +1 -0
- package/src/components/Paragraphs/Directory/constants.js +23 -5
- package/src/components/Paragraphs/Directory/index.vue +14 -14
- package/src/components/Paragraphs/ListGroup/index.vue +5 -1
- package/src/components/Paragraphs/ScrollSpy/index.vue +23 -14
- package/src/components/Paragraphs/SelectableCards/index.vue +15 -12
- package/src/components/Paragraphs/TabbedCards/index.vue +13 -14
- package/src/components/Paragraphs/Tabs/index.vue +19 -17
- package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +9 -9
- package/src/components/Paragraphs/TextMedia/index.vue +20 -16
- package/src/components/Paragraphs/VideoGrid/index.stories.js +43 -19
- package/src/components/Paragraphs/VideoGrid/index.vue +13 -13
- package/src/components/Paragraphs/Webform/index.stories.js +82 -69
- package/src/components/SubComponents/CardGroup/index.vue +5 -1
- package/src/components/SubComponents/FormAddressPostcode/index.vue +35 -37
- package/src/components/SubComponents/FormInstance/components/handler/index.vue +25 -29
- package/src/components/SubComponents/FormInstance/components/renderer/index.vue +63 -28
- package/src/components/SubComponents/FormInstance/models/overrides/file.js +33 -40
- package/src/components/SubComponents/FormInstance/services/form-submit-parser.js +22 -15
- package/src/components/SubComponents/FormInstance/services/registry-factory.js +1 -1
- package/src/components/SubComponents/FormInstance/stories/fileupload.stories.js +57 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/fileupload.json +25 -0
- package/src/components/SubComponents/FormInstance/style.scss +2 -2
- package/src/components/SubComponents/FormInstance/tests/address.test.js +4 -4
- package/src/components/SubComponents/FormInstance/tests/checkboxes.test.js +7 -7
- package/src/components/SubComponents/FormInstance/tests/customcomposite.test.js +15 -15
- package/src/components/SubComponents/FormInstance/tests/date.test.js +8 -8
- package/src/components/SubComponents/FormInstance/tests/form-test-utils.js +9 -9
- package/src/components/SubComponents/FormInstance/tests/multiple.test.js +13 -13
- package/src/components/SubComponents/FormInstance/tests/rule-visible.test.js +120 -120
- package/src/components/SubComponents/FormInstance/tests/scale.test.js +6 -6
- package/src/components/SubComponents/FormInstance/tests/url.test.js +13 -10
- package/src/components/SubComponents/Pagination/index.vue +19 -18
- package/src/components/SubComponents/ResourceGroup/index.vue +5 -1
- package/src/components/SubComponents/Search/SearchListing/index.vue +20 -20
- package/src/components/SubComponents/Search/index.vue +35 -33
- package/src/components/SubComponents/VideoThumbnail/index.vue +48 -133
- package/src/includes/scss/mixins/src/units.scss +25 -4
- package/src/includes/scss/vars/src/colors.module.scss +28 -1
- package/src/index.js +21 -3
- package/src/main.js +2 -10
- package/src/mock/app-header-new.js +27 -15
- package/src/mock/carousel-items.js +71 -46
|
@@ -203,65 +203,65 @@ h3.cookie-header {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
.modal-content {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
206
|
+
// .modal-content {
|
|
207
|
+
// border: none !important;
|
|
208
|
+
// fieldset {
|
|
209
|
+
// .option {
|
|
210
|
+
// margin-bottom: 24px;
|
|
211
|
+
// display: flex;
|
|
212
|
+
// margin-right: 0px;
|
|
213
|
+
// padding-left: 24px;
|
|
214
|
+
// float: right;
|
|
215
215
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
// @media screen and (max-width: 600px) {
|
|
217
|
+
// flex-basis: 100%;
|
|
218
|
+
// }
|
|
219
219
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
220
|
+
// input[type='checkbox'] {
|
|
221
|
+
// height: 24px;
|
|
222
|
+
// border: 1px solid $gray;
|
|
223
|
+
// width: 24px;
|
|
224
|
+
// margin-left: 16px;
|
|
225
|
+
// margin-right: 16px;
|
|
226
|
+
// border-radius: 4px;
|
|
227
|
+
// }
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
229
|
+
// label {
|
|
230
|
+
// font-size: 16px;
|
|
231
|
+
// font-weight: 400;
|
|
232
|
+
// vertical-align: middle;
|
|
233
|
+
// position: relative;
|
|
234
|
+
// margin-left: 24px;
|
|
235
|
+
// }
|
|
236
|
+
// }
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
238
|
+
// .modal-description {
|
|
239
|
+
// margin-right: 100px;
|
|
240
|
+
// }
|
|
241
|
+
// }
|
|
242
|
+
// }
|
|
243
243
|
|
|
244
|
-
.modal-content h5 {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
244
|
+
// .modal-content h5 {
|
|
245
|
+
// font-weight: 700;
|
|
246
|
+
// font-size: 20px;
|
|
247
|
+
// line-height: 24px;
|
|
248
|
+
// font-style: normal;
|
|
249
|
+
// color: $black;
|
|
250
|
+
// }
|
|
251
251
|
|
|
252
|
-
.modal {
|
|
253
|
-
|
|
254
|
-
}
|
|
252
|
+
// .modal {
|
|
253
|
+
// background: rgba(0,0,0,0.5)
|
|
254
|
+
// }
|
|
255
255
|
|
|
256
|
-
.modal-backdrop {
|
|
257
|
-
|
|
258
|
-
}
|
|
256
|
+
// .modal-backdrop {
|
|
257
|
+
// display: none;
|
|
258
|
+
// }
|
|
259
259
|
|
|
260
|
-
.modal-heading-text {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
260
|
+
// .modal-heading-text {
|
|
261
|
+
// font-size: 26px;
|
|
262
|
+
// font-weight: 700;
|
|
263
|
+
// line-height: 32px;
|
|
264
|
+
// letter-spacing: 0px;
|
|
265
|
+
// margin-bottom: 0px;
|
|
266
|
+
// margin-top: 0px;
|
|
267
|
+
// }
|
|
@@ -9,77 +9,78 @@
|
|
|
9
9
|
<span>{{ data.name }}</span>
|
|
10
10
|
<span v-if="numberOfItems > 0">({{ numberOfItems }})</span>
|
|
11
11
|
</filter-button>
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<strong v-else><span v-show="!loading">No results found</span></strong>
|
|
45
|
-
</div>
|
|
12
|
+
<b-modal v-model="showMyModal" size="xl" centered no-header scrollable>
|
|
13
|
+
<template #default>
|
|
14
|
+
<fieldset>
|
|
15
|
+
<legend>Filter by {{ data.name }}</legend>
|
|
16
|
+
<div v-for="term in data.terms" :key="term.tid" class="option">
|
|
17
|
+
<input
|
|
18
|
+
:id="`term_${term.tid}`"
|
|
19
|
+
v-model="selectedFilters[`${data.record_id}`]"
|
|
20
|
+
type="checkbox"
|
|
21
|
+
:name="term.name"
|
|
22
|
+
:value="term"
|
|
23
|
+
:disabled="term.preselected"
|
|
24
|
+
@keyup.enter="(e) => e.target.click()"
|
|
25
|
+
/>
|
|
26
|
+
<label :for="`term_${term.tid}`">{{ term.name }}</label>
|
|
27
|
+
</div>
|
|
28
|
+
</fieldset>
|
|
29
|
+
</template>
|
|
30
|
+
<template #footer="{ close }">
|
|
31
|
+
<div>
|
|
32
|
+
<cta-button
|
|
33
|
+
v-if="!loading && results !== 0"
|
|
34
|
+
:type="'dark'"
|
|
35
|
+
:rtl="false"
|
|
36
|
+
:focus-outline="'light'"
|
|
37
|
+
:workwell="false"
|
|
38
|
+
@clicked="close"
|
|
39
|
+
>Show <span>{{ results }}</span> {{ resultString }}
|
|
40
|
+
</cta-button>
|
|
41
|
+
<strong v-else
|
|
42
|
+
><span v-show="!loading">No results found</span></strong
|
|
43
|
+
>
|
|
46
44
|
</div>
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
</template>
|
|
46
|
+
</b-modal>
|
|
49
47
|
</div>
|
|
50
48
|
</template>
|
|
51
49
|
<script>
|
|
52
50
|
import CtaButton from '../../../SubComponents/CtaButton/index.vue'
|
|
53
51
|
import FilterButton from '../../../Common/FilterButton/index.vue'
|
|
52
|
+
import { BModal, BButton } from 'bootstrap-vue-next'
|
|
54
53
|
|
|
55
54
|
export default {
|
|
56
55
|
components: {
|
|
57
56
|
CtaButton,
|
|
58
|
-
FilterButton
|
|
57
|
+
FilterButton,
|
|
58
|
+
'b-modal': BModal,
|
|
59
|
+
'b-button': BButton,
|
|
59
60
|
},
|
|
60
61
|
props: {
|
|
61
62
|
data: {
|
|
62
63
|
type: Object,
|
|
63
|
-
required: true
|
|
64
|
+
required: true,
|
|
64
65
|
},
|
|
65
66
|
results: {
|
|
66
67
|
type: Number,
|
|
67
|
-
required: true
|
|
68
|
+
required: true,
|
|
68
69
|
},
|
|
69
70
|
loading: {
|
|
70
71
|
type: Boolean,
|
|
71
|
-
required: false
|
|
72
|
-
}
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
73
74
|
},
|
|
74
75
|
data() {
|
|
75
76
|
return {
|
|
76
77
|
selectedFilters: {
|
|
77
78
|
[this.data.record_id]: this.data.terms.filter(
|
|
78
|
-
(term) => term.preselected
|
|
79
|
-
)
|
|
79
|
+
(term) => term.preselected,
|
|
80
|
+
),
|
|
80
81
|
},
|
|
81
82
|
hasReset: false,
|
|
82
|
-
showMyModal: false
|
|
83
|
+
showMyModal: false,
|
|
83
84
|
}
|
|
84
85
|
},
|
|
85
86
|
computed: {
|
|
@@ -90,7 +91,7 @@ export default {
|
|
|
90
91
|
let s = 's'
|
|
91
92
|
this.results === 1 ? (s = '') : false
|
|
92
93
|
return 'Result' + s + ' '
|
|
93
|
-
}
|
|
94
|
+
},
|
|
94
95
|
},
|
|
95
96
|
watch: {
|
|
96
97
|
selectedFilters: {
|
|
@@ -98,8 +99,8 @@ export default {
|
|
|
98
99
|
deep: true,
|
|
99
100
|
handler() {
|
|
100
101
|
this.emitSelectedValues()
|
|
101
|
-
}
|
|
102
|
-
}
|
|
102
|
+
},
|
|
103
|
+
},
|
|
103
104
|
},
|
|
104
105
|
methods: {
|
|
105
106
|
emitSelectedValues() {
|
|
@@ -113,91 +114,7 @@ export default {
|
|
|
113
114
|
this.selectedFilters[this.data.record_id] = this.selectedFilters[
|
|
114
115
|
this.data.record_id
|
|
115
116
|
].filter((item) => item.preselected)
|
|
116
|
-
}
|
|
117
|
-
}
|
|
117
|
+
},
|
|
118
|
+
},
|
|
118
119
|
}
|
|
119
120
|
</script>
|
|
120
|
-
<style lang="scss">
|
|
121
|
-
//
|
|
122
|
-
// Global non scoped scss!
|
|
123
|
-
// Modal inner overrides only
|
|
124
|
-
//
|
|
125
|
-
// Component styles add in scoped
|
|
126
|
-
// block below
|
|
127
|
-
//
|
|
128
|
-
.wcl-directory-filters__single-tax {
|
|
129
|
-
// !!keep empty!! //
|
|
130
|
-
&__caret {
|
|
131
|
-
padding-left: 8px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.modal {
|
|
135
|
-
background: rgba(0,0,0,0.5);
|
|
136
|
-
}
|
|
137
|
-
.modal-backdrop {
|
|
138
|
-
display: none;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&__modal {
|
|
142
|
-
.modal-content {
|
|
143
|
-
border-radius: 8px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.modal-xl {
|
|
147
|
-
max-width: 920px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.modal-header {
|
|
151
|
-
position: absolute;
|
|
152
|
-
width: 100%;
|
|
153
|
-
left: 0;
|
|
154
|
-
right: 0;
|
|
155
|
-
padding: 32px;
|
|
156
|
-
border: none;
|
|
157
|
-
.close {
|
|
158
|
-
z-index: 1;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
.modal-body {
|
|
162
|
-
padding: 0px 32px 0px;
|
|
163
|
-
margin-top: 16px;
|
|
164
|
-
fieldset {
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: row;
|
|
167
|
-
flex-wrap: wrap;
|
|
168
|
-
legend {
|
|
169
|
-
font-size: 28px;
|
|
170
|
-
font-weight: 700;
|
|
171
|
-
line-height: 32px;
|
|
172
|
-
letter-spacing: 0px;
|
|
173
|
-
margin-bottom: 32px;
|
|
174
|
-
}
|
|
175
|
-
.option {
|
|
176
|
-
margin-bottom: 32px;
|
|
177
|
-
flex-basis: 50%;
|
|
178
|
-
display: flex;
|
|
179
|
-
@media screen and (max-width: 600px) {
|
|
180
|
-
flex-basis: 100%;
|
|
181
|
-
}
|
|
182
|
-
input[type='checkbox'] {
|
|
183
|
-
height: 24px;
|
|
184
|
-
border: 1px solid #bababa;
|
|
185
|
-
width: 24px;
|
|
186
|
-
cursor: pointer;
|
|
187
|
-
}
|
|
188
|
-
label {
|
|
189
|
-
margin: 0px;
|
|
190
|
-
width: 80%;
|
|
191
|
-
position: relative;
|
|
192
|
-
left: 16px;
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
.modal-footer {
|
|
199
|
-
border: none;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
</style>
|
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
v-
|
|
4
|
-
id="global-notice-modal"
|
|
5
|
-
ref="globalNoticeModal"
|
|
6
|
-
class="modal show"
|
|
2
|
+
<b-modal
|
|
3
|
+
v-model="displayGlobal"
|
|
7
4
|
aria-labelledby="global-notice-modal"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
no-close-on-backdrop
|
|
6
|
+
centered
|
|
7
|
+
no-footer
|
|
8
|
+
size="md"
|
|
9
|
+
@close="setCookie"
|
|
10
|
+
>
|
|
11
|
+
<template #default="{ close }">
|
|
12
|
+
<div>
|
|
13
|
+
<div class="modal-title">
|
|
14
|
+
Understand changes to the 2023-24 WorkCover premium
|
|
17
15
|
</div>
|
|
18
|
-
<div
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
<div>
|
|
17
|
+
Information for employers on changes to premium rates, how premium is
|
|
18
|
+
calculated and key dates.
|
|
19
|
+
</div>
|
|
20
|
+
<div class="notice-buttons">
|
|
22
21
|
<div>
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
<button
|
|
23
|
+
id="open_page"
|
|
24
|
+
type="button"
|
|
25
|
+
role="button"
|
|
26
|
+
class="notice-buttons isWiderYellow hasIcon justify-content-start"
|
|
27
|
+
style="order: 1"
|
|
28
|
+
aria-label="Open information about premium changes"
|
|
29
|
+
@click="
|
|
30
|
+
() => {
|
|
31
|
+
goToPage('/2023-24-workcover-premium-changes')
|
|
32
|
+
close()
|
|
33
|
+
}
|
|
34
|
+
"
|
|
35
|
+
>
|
|
36
|
+
2023-24 premium FAQs
|
|
37
|
+
</button>
|
|
25
38
|
</div>
|
|
26
|
-
<div
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</div>
|
|
40
|
-
<div>
|
|
41
|
-
<button
|
|
42
|
-
id="modal_close"
|
|
43
|
-
type="button"
|
|
44
|
-
role="button"
|
|
45
|
-
class="modal-buttons isWiderGray hasIcon justify-content-start "
|
|
46
|
-
style="order: 2"
|
|
47
|
-
data-bs-dismiss="global-notice-modal"
|
|
48
|
-
aria-label="Close modal and go to WorkSafe website"
|
|
49
|
-
@click="setCookie(), displayGlobal = !displayGlobal"
|
|
50
|
-
>
|
|
51
|
-
Continue to WorkSafe
|
|
52
|
-
</button>
|
|
53
|
-
</div>
|
|
39
|
+
<div>
|
|
40
|
+
<button
|
|
41
|
+
id="modal_close"
|
|
42
|
+
type="button"
|
|
43
|
+
role="button"
|
|
44
|
+
class="notice-buttons isWiderGray hasIcon justify-content-start"
|
|
45
|
+
style="order: 2"
|
|
46
|
+
data-bs-dismiss="global-notice-modal"
|
|
47
|
+
aria-label="Close modal and go to WorkSafe website"
|
|
48
|
+
@click="close"
|
|
49
|
+
>
|
|
50
|
+
Continue to WorkSafe
|
|
51
|
+
</button>
|
|
54
52
|
</div>
|
|
55
53
|
</div>
|
|
56
|
-
<div style="display: none;" class="modal-footer"></div>
|
|
57
54
|
</div>
|
|
58
|
-
</
|
|
59
|
-
</
|
|
55
|
+
</template>
|
|
56
|
+
</b-modal>
|
|
60
57
|
</template>
|
|
61
58
|
|
|
62
59
|
<script>
|
|
60
|
+
import { BModal } from 'bootstrap-vue-next'
|
|
63
61
|
|
|
64
62
|
export default {
|
|
65
63
|
name: 'GlobalNotice',
|
|
64
|
+
components: {
|
|
65
|
+
'b-modal': BModal,
|
|
66
|
+
},
|
|
66
67
|
data() {
|
|
67
68
|
return {
|
|
68
69
|
currentURL: '',
|
|
@@ -72,8 +73,12 @@ export default {
|
|
|
72
73
|
computed: {
|
|
73
74
|
showGlobalNotice() {
|
|
74
75
|
//Check first if SHOW_GLOBAL_NOTICE have been turned on in the environment variable
|
|
75
|
-
return
|
|
76
|
-
|
|
76
|
+
return (this.$config
|
|
77
|
+
? this.$config.public.globalNotice
|
|
78
|
+
: process.env.SHOW_GLOBAL_NOTICE) === false
|
|
79
|
+
? false
|
|
80
|
+
: true
|
|
81
|
+
},
|
|
77
82
|
},
|
|
78
83
|
mounted() {
|
|
79
84
|
window.addEventListener('load', this.checkPage())
|
|
@@ -83,8 +88,12 @@ export default {
|
|
|
83
88
|
localStorage.setItem('globalModalHidden', 'true')
|
|
84
89
|
},
|
|
85
90
|
goToPage(link) {
|
|
86
|
-
|
|
87
|
-
alert(
|
|
91
|
+
if (process.env.IS_STORYBOOK === 'TRUE') {
|
|
92
|
+
alert(
|
|
93
|
+
'Will go to: ' +
|
|
94
|
+
link +
|
|
95
|
+
' and close notice - clear local storage and refresh to redisplay',
|
|
96
|
+
)
|
|
88
97
|
} else {
|
|
89
98
|
window.open(link, '_self')
|
|
90
99
|
}
|
|
@@ -95,65 +104,35 @@ export default {
|
|
|
95
104
|
this.setCookie()
|
|
96
105
|
this.displayGlobal = false
|
|
97
106
|
} else if (typeof window !== 'undefined') {
|
|
98
|
-
console.log('**else this.showGlobalNotice:-', this.showGlobalNotice)
|
|
99
|
-
console.log('**else tocalStorage.getItem(globalModalHidden):-', localStorage.getItem('globalModalHidden'))
|
|
100
|
-
|
|
101
107
|
this.displayGlobal =
|
|
102
108
|
this.showGlobalNotice === true &&
|
|
103
109
|
!localStorage.getItem('globalModalHidden')
|
|
104
110
|
} else {
|
|
105
|
-
this.displayGlobal =
|
|
111
|
+
this.displayGlobal =
|
|
112
|
+
(this.$config
|
|
113
|
+
? this.$config.public.globalNotice
|
|
114
|
+
: process.env.SHOW_GLOBAL_NOTICE) === true
|
|
106
115
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
116
|
+
},
|
|
117
|
+
},
|
|
110
118
|
}
|
|
111
119
|
</script>
|
|
112
|
-
<style lang="scss">
|
|
113
|
-
|
|
114
|
-
@import '../../../includes/scss/all';
|
|
115
|
-
|
|
116
|
-
// modal and modal backdrop styles required in order to display the overlay behind the modal
|
|
117
|
-
#global-notice-modal {
|
|
118
|
-
.modal-dialog-centered {
|
|
119
|
-
border-radius: 6px !important;
|
|
120
|
-
// box-shadow: 0 0 16px 8px rgba(0, 0, 0, 0.24) !important;
|
|
121
|
-
left: 50%;
|
|
122
|
-
margin-left: -200px;
|
|
123
|
-
margin-top: -240px;
|
|
124
|
-
top: 50%;
|
|
125
|
-
width: 400px !important;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.modal {
|
|
130
|
-
background: rgba(0,0,0,0.5)
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.modal-backdrop {
|
|
134
|
-
display: none;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.modal-header {
|
|
138
|
-
border: none;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.modal-heading {
|
|
120
|
+
<style lang="scss" scoped>
|
|
121
|
+
:deep(.modal-title) {
|
|
142
122
|
font-size: 26px;
|
|
143
123
|
font-weight: 700;
|
|
144
124
|
line-height: 30px;
|
|
145
125
|
letter-spacing: 0px;
|
|
146
126
|
margin-bottom: 16px;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end !important;
|
|
147
129
|
}
|
|
130
|
+
</style>
|
|
131
|
+
<style lang="scss">
|
|
132
|
+
@import '../../../assets/styles/generated-icons.scss';
|
|
133
|
+
@import '../../../includes/scss/all';
|
|
148
134
|
|
|
149
|
-
.
|
|
150
|
-
font-weight: 400;
|
|
151
|
-
font-size: 16px;
|
|
152
|
-
line-height: 24px;
|
|
153
|
-
padding: 16px;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.modal-buttons {
|
|
135
|
+
.notice-buttons {
|
|
157
136
|
position: relative;
|
|
158
137
|
text-decoration: none;
|
|
159
138
|
font-style: normal;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<script>
|
|
99
99
|
import emailIcon from '../../../assets/icons/SocialShare/email-white.svg?url'
|
|
100
100
|
import facebookIcon from '../../../assets/icons/SocialShare/facebook-white.svg?url'
|
|
101
|
-
import twitterIcon from '../../../assets/icons/SocialShare/
|
|
101
|
+
import twitterIcon from '../../../assets/icons/SocialShare/x-icon-white.svg?url'
|
|
102
102
|
import officeFilePdfIcon from '../../../assets/icons/SocialShare/office-file-pdf.svg?url'
|
|
103
103
|
import { BButton, BButtonGroup } from 'bootstrap-vue-next'
|
|
104
104
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
12
|
<a
|
|
13
|
-
:id="'accordion' +
|
|
13
|
+
:id="'accordion' + itemid"
|
|
14
14
|
role="button"
|
|
15
15
|
:aria-expanded="showAccordion ? 'true' : 'false'"
|
|
16
16
|
class="accordion-item__title"
|
|
17
|
-
:aria-controls="'sect' +
|
|
17
|
+
:aria-controls="'sect' + itemid"
|
|
18
18
|
tabindex="0"
|
|
19
19
|
@click.prevent="toggleAccordion"
|
|
20
20
|
@keypress.enter="toggleAccordion"
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
<b-card-body v-if="content">
|
|
52
52
|
<div
|
|
53
53
|
v-show="showAccordion"
|
|
54
|
-
:id="'sect' +
|
|
54
|
+
:id="'sect' + itemid"
|
|
55
55
|
class="accordion-item__content"
|
|
56
56
|
role="region"
|
|
57
|
-
:aria-labelledby="'accordion' +
|
|
57
|
+
:aria-labelledby="'accordion' + itemid"
|
|
58
58
|
>
|
|
59
59
|
<rich-text :content="content" />
|
|
60
60
|
</div>
|
|
@@ -107,6 +107,10 @@ export default {
|
|
|
107
107
|
type: Array,
|
|
108
108
|
default: () => [],
|
|
109
109
|
},
|
|
110
|
+
itemid: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: 'Item',
|
|
113
|
+
},
|
|
110
114
|
},
|
|
111
115
|
data: () => ({
|
|
112
116
|
showAccordion: false,
|