@zap-wunschlachen/wl-shared-components 1.0.20 → 1.0.22

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": "@zap-wunschlachen/wl-shared-components",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -64,4 +64,4 @@
64
64
  "peerDependencies": {
65
65
  "vuetify": "^3.7.15"
66
66
  }
67
- }
67
+ }
@@ -7,6 +7,9 @@
7
7
  prependIcon="heroicons:arrows-up-down" :disabled="disabled" :label="t('wl.appointment_card.reschedule')"
8
8
  size="small" @click="handleReschedule" />
9
9
  </div>
10
+ <Button v-if="confirmable" class="full-width-button" :label="t('wl.appointment_card.confirm')"
11
+ :disabled="disabled" @click="confirmAppointment" />
12
+
10
13
  </template>
11
14
  <template v-if="appointment.status === 'cancelled'">
12
15
  <div class="actions-grid">
@@ -28,42 +31,16 @@
28
31
  <v-icon size="46" icon="heroicons:calendar-days" />
29
32
  </div>
30
33
  <div>
31
- <h4>Vereinbaren Sie einen neuen Termin</h4>
32
- <p>Telefon: <a rel="stylesheet" class="text-dental-blue-3" href="tel:030/495 20 10">030/495 20 10</a>
34
+ <h4>{{ t('appointment.missed.title') }}</h4>
35
+ <p>{{ t('phone') }}: <a rel="stylesheet" class="text-dental-blue-3" href="tel:030/495 20 10">030/495 20
36
+ 10</a>
33
37
  <br />
34
- E-Mail: <a rel="stylesheet" class="text-dental-blue-3"
38
+ {{ t('email') }}: <a rel="stylesheet" class="text-dental-blue-3"
35
39
  href="mailto:info@wunschlachen.de">info@wunschlachen.de</a>
36
40
  </p>
37
41
  </div>
38
42
  </div>
39
43
  </template>
40
-
41
-
42
- <!-- <template v-if="appointment.status === 'upcoming'"> -->
43
-
44
- <!-- <div class="actions-grid">
45
- <Button class="action-button" variant="outlined" prependIcon="heroicons:x-circle" :disabled="disabled"
46
- :label="t('wl.appointment_card.cancel')" size="small" @click="handleCancel" />
47
- <Button class="action-button" v-if="appointment.is_reschedulable" :variant="confirmable ? 'outlined' : 'flat'"
48
- prependIcon="heroicons:arrows-up-down" :disabled="disabled" :label="t('wl.appointment_card.reschedule')"
49
- size="small" @click="handleReschedule" />
50
- </div> -->
51
- <Button v-if="confirmable" class="full-width-button" :label="t('wl.appointment_card.confirm')" :disabled="disabled"
52
- @click="confirmAppointment" />
53
-
54
- <!-- </template> -->
55
-
56
-
57
- <!-- <template v-else-if="appointment.is_bookable">
58
- <div class="actions-column">
59
- <Button v-if="appointment.status === 'cancelled'" class="full-width-button-opacity"
60
- color="var(--error-red-0)" variant="text" prependIcon="heroicons:x-circle" readonly
61
- :label="t('wl.appointment_card.cancelled')" :disabled="disabled" />
62
- <Button v-if="appointment.is_bookable === 'bookable'" class="full-width-button-opacity" variant="outlined"
63
- prependIcon="heroicons:arrow-path" :disabled="disabled"
64
- :label="t('wl.appointment_card.reschedule_after_cancellation')" @click="handleReschedule" />
65
- </div>
66
- </template> -->
67
44
  </template>
68
45
 
69
46
 
@@ -80,9 +57,6 @@ const { appointment, disabled } = defineProps<{
80
57
  disabled?: boolean,
81
58
  }>();
82
59
 
83
- console.log('Actions component - appointment:', appointment);
84
- console.log('Actions component - disabled:', disabled);
85
-
86
60
  // Emit events upward when actions occur
87
61
  const emit = defineEmits<{
88
62
  (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 === 'past' || appointment?.status === 'cancelled' }">
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">