@worksafevictoria/wcl7.5 1.17.0-beta.11 → 1.17.0-beta.13
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 +18 -4
- package/src/components/Containers/SectionGroup/index.vue +0 -1
- package/src/components/Paragraphs/RTWPlanner/Injuries/index.vue +7 -1
- package/src/components/Paragraphs/RTWPlanner/Planners/PlannerNameModal.vue +56 -0
- package/src/index.js +6 -0
package/package.json
CHANGED
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
controls
|
|
9
9
|
indicators
|
|
10
10
|
label-indicators="Select a slide to display"
|
|
11
|
+
indicators-button-label="Slide"
|
|
11
12
|
keyboard
|
|
12
13
|
:fade="true"
|
|
13
14
|
background="#ababab"
|
|
14
15
|
img-width="100%"
|
|
15
16
|
img-height="auto"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
v-for="item in filteredCarouselItems"
|
|
17
|
+
>
|
|
18
|
+
<BCarouselSlide
|
|
19
|
+
v-for="(item, index) in filteredCarouselItems"
|
|
20
|
+
:id="`slide-${index}`"
|
|
19
21
|
:key="item.id"
|
|
20
22
|
:img-src="getImageURL(item.imageURL)"
|
|
21
23
|
:img-alt="item.imageAlt"
|
|
@@ -24,7 +26,8 @@
|
|
|
24
26
|
<span
|
|
25
27
|
:class="carousel-caption"
|
|
26
28
|
:aria-label="item.title ? item.title : 'No caption available'"
|
|
27
|
-
:style="item.title === null || item.title === '' ? 'height: 32px;' : null">{{ item.title }}
|
|
29
|
+
:style="item.title === null || item.title === '' ? 'height: 32px;' : null">{{ item.title }}
|
|
30
|
+
</span>
|
|
28
31
|
</BCarouselSlide>
|
|
29
32
|
</BCarousel>
|
|
30
33
|
</div>
|
|
@@ -60,6 +63,17 @@ props: {
|
|
|
60
63
|
default: false,
|
|
61
64
|
},
|
|
62
65
|
},
|
|
66
|
+
mounted() {
|
|
67
|
+
// Remove aria-controls and aria-owns from carousel indicators for accessibility
|
|
68
|
+
const carouselElement = this.$el.querySelector('.carousel-indicators');
|
|
69
|
+
if (carouselElement) {
|
|
70
|
+
const ceChildren = carouselElement.children;
|
|
71
|
+
for (let i = 0; i < ceChildren.length; i++) {
|
|
72
|
+
ceChildren[i].removeAttribute('aria-controls');
|
|
73
|
+
}
|
|
74
|
+
carouselElement.removeAttribute('aria-owns');
|
|
75
|
+
}
|
|
76
|
+
},
|
|
63
77
|
computed: {
|
|
64
78
|
filteredCarouselItems() {
|
|
65
79
|
|
|
@@ -8,6 +8,7 @@ import CardGroup from './../../../SubComponents/CardGroup/index.vue'
|
|
|
8
8
|
import Breadcrumb from './../../../SubComponents/Breadcrumb/index.vue'
|
|
9
9
|
import RichText from './../../RichText/index.vue'
|
|
10
10
|
import SelectableCards from './../../SelectableCards/index.vue'
|
|
11
|
+
import PlannerNameModal from './../Planners/PlannerNameModal.vue'
|
|
11
12
|
|
|
12
13
|
const props = defineProps({
|
|
13
14
|
injuryPage: {
|
|
@@ -46,6 +47,7 @@ const props = defineProps({
|
|
|
46
47
|
|
|
47
48
|
const screen = ref(1)
|
|
48
49
|
const selectedCard = ref(null)
|
|
50
|
+
const showModal = ref(false)
|
|
49
51
|
|
|
50
52
|
// local copy of breadcrumb items allowed to mutate
|
|
51
53
|
const breadcrumbItemsLocal = ref([...props.breadcrumbItems])
|
|
@@ -87,7 +89,9 @@ function onCrumbClick({ index }) {
|
|
|
87
89
|
// you can add logic for index === 1 here, or just leave it as no-op.
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
function nextScreenAgent() {
|
|
92
|
+
function nextScreenAgent(card) {
|
|
93
|
+
showModal.value = true
|
|
94
|
+
}
|
|
91
95
|
</script>
|
|
92
96
|
|
|
93
97
|
<template>
|
|
@@ -172,6 +176,8 @@ function nextScreenAgent() {}
|
|
|
172
176
|
@nextScreen="nextScreenAgent"
|
|
173
177
|
/>
|
|
174
178
|
</div>
|
|
179
|
+
|
|
180
|
+
<PlannerNameModal class="injuries-app__new-planner" v-model="showModal" />
|
|
175
181
|
</div>
|
|
176
182
|
</template>
|
|
177
183
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref } from 'vue'
|
|
3
|
+
import { BModal, BFormInput } from 'bootstrap-vue-next'
|
|
4
|
+
import CtaButton from './../../../SubComponents/CtaButton/index.vue'
|
|
5
|
+
|
|
6
|
+
const inputValue = ref('')
|
|
7
|
+
|
|
8
|
+
function handleSubmit() {
|
|
9
|
+
console.log('handle Submit', inputValue.value)
|
|
10
|
+
if (!inputValue.value.trim()) return
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<b-modal
|
|
16
|
+
aria-labelledby="injuries-app__modal"
|
|
17
|
+
no-close-on-backdrop
|
|
18
|
+
centered
|
|
19
|
+
no-footer
|
|
20
|
+
size="lg"
|
|
21
|
+
>
|
|
22
|
+
<template #default="{ close }">
|
|
23
|
+
<div class="p-3">
|
|
24
|
+
<h3 class="fw-bold mb-3 modal-title__new-planner">Name your planner</h3>
|
|
25
|
+
<p class="mb-2 modal-description__new-planner">
|
|
26
|
+
Give your planner a name so you can easily find it and pick up where
|
|
27
|
+
you left off.
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
<label for="modal2CB" class="fw-bold mb-4">
|
|
31
|
+
Injured workers first name
|
|
32
|
+
</label>
|
|
33
|
+
|
|
34
|
+
<BFormInput
|
|
35
|
+
id="modal2CB"
|
|
36
|
+
name="modal2CB"
|
|
37
|
+
placeholder=""
|
|
38
|
+
v-model="inputValue"
|
|
39
|
+
class="mb-4 input__new-planner"
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<CtaButton ref="calNextBtn" @click="handleSubmit">Next</CtaButton>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
</b-modal>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<style lang="scss" scoped>
|
|
49
|
+
:deep(.modal-description__new-planner) {
|
|
50
|
+
width: 65%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:deep(.input__new-planner) {
|
|
54
|
+
width: 60%;
|
|
55
|
+
}
|
|
56
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -59,6 +59,12 @@ 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
|
+
// Export Return to Work components
|
|
63
|
+
import RtwHeader from './components/Paragraphs/RTWPlanner/Header/index.vue'
|
|
64
|
+
import RtwFooter from './components/Paragraphs/RTWPlanner/Footer/index.vue'
|
|
65
|
+
import RtwHomepageApp from './components/Paragraphs/RTWPlanner/HomePage/index.vue'
|
|
66
|
+
export { RtwHeader, RtwFooter, RtwHomepageApp }
|
|
67
|
+
|
|
62
68
|
// Export Global Components
|
|
63
69
|
export {
|
|
64
70
|
Container,
|