@zap-wunschlachen/wl-shared-components 1.0.21 → 1.0.23
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
|
@@ -37,12 +37,19 @@
|
|
|
37
37
|
.bg-Soft-concrete-1 {
|
|
38
38
|
background-color: #F8FAFD;
|
|
39
39
|
}
|
|
40
|
+
|
|
40
41
|
.border-rounded-md {
|
|
41
42
|
border-radius: 0.375rem;
|
|
42
43
|
}
|
|
44
|
+
|
|
43
45
|
.p-4 {
|
|
44
46
|
padding: 1rem;
|
|
45
47
|
}
|
|
48
|
+
|
|
46
49
|
.text-dental-blue-3 {
|
|
47
50
|
color: var(--Dental-Blue--0) !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.text-error-red-0 {
|
|
54
|
+
color: #B00020;
|
|
48
55
|
}
|
|
@@ -12,10 +12,16 @@
|
|
|
12
12
|
|
|
13
13
|
</template>
|
|
14
14
|
<template v-if="appointment.status === 'cancelled'">
|
|
15
|
-
<div
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
<div>
|
|
16
|
+
<p class="text-center font-weight-bold text-error-red-0 mb-5">
|
|
17
|
+
<v-icon size="26" icon="heroicons:x-circle" />
|
|
18
|
+
{{ t('appointments.status.cancelled') }}
|
|
19
|
+
</p>
|
|
20
|
+
<div class="actions-grid">
|
|
21
|
+
<Button class="full-width-button-opacity" variant="outlined" prependIcon="heroicons:arrow-path"
|
|
22
|
+
:disabled="disabled" :label="t('wl.appointment_card.reschedule_after_cancellation')"
|
|
23
|
+
@click="handleReschedule" />
|
|
24
|
+
</div>
|
|
19
25
|
</div>
|
|
20
26
|
</template>
|
|
21
27
|
<template v-if="appointment.status === 'done' && appointment.for_patient">
|
|
@@ -26,15 +32,20 @@
|
|
|
26
32
|
</div>
|
|
27
33
|
</template>
|
|
28
34
|
<template v-if="appointment.status === 'missed'">
|
|
35
|
+
<p class="text-center font-weight-bold text-error-red-0 mb-5">
|
|
36
|
+
<v-icon size="26" icon="heroicons:x-circle" />
|
|
37
|
+
{{ t('appointments.status.missed') }}
|
|
38
|
+
</p>
|
|
29
39
|
<div class="actions-grid justify-center align-center bg-Soft-concrete-1 border border-rounded-md p-4">
|
|
30
40
|
<div>
|
|
31
41
|
<v-icon size="46" icon="heroicons:calendar-days" />
|
|
32
42
|
</div>
|
|
33
43
|
<div>
|
|
34
|
-
<h4>
|
|
35
|
-
<p>
|
|
44
|
+
<h4>{{ t('appointment.missed.title') }}</h4>
|
|
45
|
+
<p>{{ t('phone') }}: <a rel="stylesheet" class="text-dental-blue-3" href="tel:030/495 20 10">030/495 20
|
|
46
|
+
10</a>
|
|
36
47
|
<br />
|
|
37
|
-
|
|
48
|
+
{{ t('email') }}: <a rel="stylesheet" class="text-dental-blue-3"
|
|
38
49
|
href="mailto:info@wunschlachen.de">info@wunschlachen.de</a>
|
|
39
50
|
</p>
|
|
40
51
|
</div>
|
|
@@ -56,9 +67,6 @@ const { appointment, disabled } = defineProps<{
|
|
|
56
67
|
disabled?: boolean,
|
|
57
68
|
}>();
|
|
58
69
|
|
|
59
|
-
console.log('Actions component - appointment:', appointment);
|
|
60
|
-
console.log('Actions component - disabled:', disabled);
|
|
61
|
-
|
|
62
70
|
// Emit events upward when actions occur
|
|
63
71
|
const emit = defineEmits<{
|
|
64
72
|
(e: 'confirmed', id: string): void
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div data-testid="root">
|
|
3
3
|
<a :href="appointmentLink ?? '#'" rel="noopener noreferrer" class="appointment-card">
|
|
4
|
-
<div :class="{ 'card-opacity': appointment?.status === '
|
|
4
|
+
<div :class="{ 'card-opacity': appointment?.status === 'done' || appointment?.status === 'cancelled' || appointment?.status === 'missed' }">
|
|
5
5
|
<div
|
|
6
6
|
:class="['card-header', appointment.status === 'cancelled' ? 'header-bg-cancelled' : 'header-bg-normal']">
|
|
7
7
|
<div class="header-item">
|