@worksafevictoria/wcl7.5 1.17.0-beta.11 → 1.17.0-beta.12

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.17.0-beta.11",
3
+ "version": "1.17.0-beta.12",
4
4
  "description": "WorkSafe Victoria Component Library - GitHub Actions Migration Test",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -181,7 +181,6 @@ export default {
181
181
  }
182
182
  if (this.backgroundVariant) {
183
183
  let bgColour
184
- console.log('this.backgroundVariant:-', this.backgroundVariant)
185
184
  switch (this.backgroundVariant) {
186
185
  case 'grey':
187
186
  case 'light':
@@ -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,