@zap-wunschlachen/wl-shared-components 1.0.17 → 1.0.18
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/Appointment/Card/AnamneseNotification.css +16 -0
- package/src/components/Appointment/Card/AnamneseNotification.vue +24 -0
- package/src/components/Appointment/Card/Card.vue +6 -0
- package/src/components/index.ts +1 -0
- package/src/i18n/locales/de.json +4 -1
- package/src/i18n/locales/en.json +4 -1
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.main-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
background-color: #FEEAF2;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
padding: 15px 10px;
|
|
9
|
+
margin-top: 10px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.text-container {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: 6px;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="main-container">
|
|
3
|
+
<div class="text-container">
|
|
4
|
+
<p>{{ t('wl.appointment_card.fill_form_title') }}</p>
|
|
5
|
+
<p class="p-small">{{ t('wl.appointment_card.fill_form_description') }}</p>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<Button variant="outlined" :label="t('wl.appointment_card.anamnese_form')" @click="emit('fillAnamnese')"/>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="ts">
|
|
13
|
+
import Button from '../../Button/Button.vue';
|
|
14
|
+
import { useI18n } from 'vue-i18n';
|
|
15
|
+
|
|
16
|
+
const emit = defineEmits<{
|
|
17
|
+
(e: 'fillAnamnese'): void
|
|
18
|
+
}>()
|
|
19
|
+
|
|
20
|
+
const { t } = useI18n();
|
|
21
|
+
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style src="./AnamneseNotification.css" scoped></style>
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
<div class="card-footer">
|
|
41
41
|
<Actions :disabled="disabled" :appointment="appointment" @confirmed="emit('confirm', appointment?.id)"
|
|
42
42
|
@cancelled="emit('cancel', appointment?.id)" @rescheduled="emit('reschedule', appointment?.id)" />
|
|
43
|
+
<template v-if="showAnamneseNotification">
|
|
44
|
+
<AnamneseNotification @fill-anamnese="emit('fill-anamnese')"/>
|
|
45
|
+
</template>
|
|
43
46
|
</div>
|
|
44
47
|
</div>
|
|
45
48
|
</template>
|
|
@@ -55,11 +58,13 @@ import Details from './Details.vue'
|
|
|
55
58
|
import Actions from './Actions.vue'
|
|
56
59
|
import { computed } from 'vue'
|
|
57
60
|
import { useI18n } from 'vue-i18n';
|
|
61
|
+
import AnamneseNotification from './AnamneseNotification.vue';
|
|
58
62
|
|
|
59
63
|
const emit = defineEmits<{
|
|
60
64
|
(e: 'confirm', id: string): void
|
|
61
65
|
(e: 'cancel', id: string): void
|
|
62
66
|
(e: 'reschedule', id: string): void
|
|
67
|
+
(e: 'fill-anamnese'): void
|
|
63
68
|
}>()
|
|
64
69
|
|
|
65
70
|
const { t } = useI18n();
|
|
@@ -70,6 +75,7 @@ const props = defineProps<{
|
|
|
70
75
|
dentistImageSrc?: string,
|
|
71
76
|
disabled?: boolean,
|
|
72
77
|
duplicateTreatmentDatetime?: boolean,
|
|
78
|
+
showAnamneseNotification?: boolean,
|
|
73
79
|
}>();
|
|
74
80
|
|
|
75
81
|
const treatmentDate = computed(() => {
|
package/src/components/index.ts
CHANGED
|
@@ -21,3 +21,4 @@ export { default as Modal } from './Modal/Modal.vue';
|
|
|
21
21
|
export { default as AppointmentCard } from './Appointment/Card/Card.vue';
|
|
22
22
|
export { default as AdvanceAppointmentIcons } from './Icons/AdvanceAppointments.vue';
|
|
23
23
|
export { default as Loader } from './Loader/Loader.vue';
|
|
24
|
+
export { default as AnamneseNotification } from './Appointment/Card/AnamneseNotification.vue';
|
package/src/i18n/locales/de.json
CHANGED
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"cancel": "Termin stornieren",
|
|
23
23
|
"reschedule": "Termin verschieben",
|
|
24
24
|
"reschedule_after_cancellation": "Diesen Termin nochmal buchen",
|
|
25
|
-
"cancelled": "Termin storniert"
|
|
25
|
+
"cancelled": "Termin storniert",
|
|
26
|
+
"fill_form_title": "Anamnesebogen benötigt!",
|
|
27
|
+
"fill_form_description": "Bitte füllen Sie diesen vor ihren Termin aus",
|
|
28
|
+
"anamnese_form": "Anamnesebogen"
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
}
|
package/src/i18n/locales/en.json
CHANGED
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"cancel": "Cancel appointment",
|
|
23
23
|
"reschedule": "Reschedule appointment",
|
|
24
24
|
"reschedule_after_cancellation": "Book this appointment again",
|
|
25
|
-
"cancelled": "Appointment cancelled"
|
|
25
|
+
"cancelled": "Appointment cancelled",
|
|
26
|
+
"fill_form_title": "Medical history form required!",
|
|
27
|
+
"fill_form_description": "Please fill this out before your appointment",
|
|
28
|
+
"anamnese_form": "Medical history form"
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
}
|