@zap-wunschlachen/wl-shared-components 1.0.0 → 1.0.1
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/App.vue +20 -0
- package/package.json +1 -1
- package/src/components/Appointment/Card/Actions.css +1 -2
- package/src/components/Appointment/Card/Actions.vue +2 -2
- package/src/components/index.ts +1 -0
- package/tests/e2e/appointment-card.spec.ts +817 -0
- package/tests/unit/components/Accordion/{AccordionGroup.spec.ts → AccordionGroup.spec.ts.skip} +1 -1
- package/tests/unit/components/Accordion/{AccordionItem.spec.ts → AccordionItem.spec.ts.skip} +1 -1
- package/tests/unit/components/Appointment/Card/Actions.spec.ts +408 -0
- package/tests/unit/components/Appointment/Card/Card.spec.ts +486 -0
- package/tests/unit/components/Appointment/Card/Details.spec.ts +398 -0
- package/tests/unit/src/components/{index.spec.ts → index.spec.ts.skip} +1 -1
- package/tests/unit/src/{index.spec.ts → index.spec.ts.skip} +1 -1
package/App.vue
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<div class="app">
|
|
3
3
|
<div class="element-container">
|
|
4
4
|
<div style="width: 100%; display: flex; flex-direction: column; gap: 20px;">
|
|
5
|
+
<Card :appointment="value0" :dentist-image-src="value0.dentist.imageSrc" />
|
|
5
6
|
<Card :appointment="value1" :dentist-image-src="value1.dentist.imageSrc" />
|
|
6
7
|
<Card :appointment="value2" :dentist-image-src="value2.dentist.imageSrc" />
|
|
7
8
|
<Card :appointment="value3" :dentist-image-src="value3.dentist.imageSrc" />
|
|
@@ -15,6 +16,25 @@ import {ref} from 'vue';
|
|
|
15
16
|
import Card from '@/components/Appointment/Card/Card.vue';
|
|
16
17
|
import type { AppointmentData } from '@/types';
|
|
17
18
|
|
|
19
|
+
const value0 = ref<AppointmentData>({
|
|
20
|
+
id: "0",
|
|
21
|
+
patientName: "Max Mustermann",
|
|
22
|
+
start: "2025-09-23T16:00:00Z",
|
|
23
|
+
end: "2025-09-23T16:30:00Z",
|
|
24
|
+
status: "upcoming", // Change to 'past' or 'cancelled' to test other states
|
|
25
|
+
is_confirmed: true,
|
|
26
|
+
template_name: ["Routine Checkup", "Cleaning"],
|
|
27
|
+
description: "ABCD-1234",
|
|
28
|
+
dentist: {
|
|
29
|
+
name: "Dr. Erika Mustermann",
|
|
30
|
+
gender: '',
|
|
31
|
+
imageSrc: ''
|
|
32
|
+
},
|
|
33
|
+
type: 0,
|
|
34
|
+
address: "Musterstraße 1, 12345 Musterstadt",
|
|
35
|
+
district: "Musterstadt-Mitte"
|
|
36
|
+
});
|
|
37
|
+
|
|
18
38
|
const value1 = ref<AppointmentData>({
|
|
19
39
|
id: "1",
|
|
20
40
|
patientName: "Max Mustermann",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.actions-grid {
|
|
3
3
|
margin-bottom: 1.25rem;
|
|
4
4
|
display: flex;
|
|
5
|
-
gap:
|
|
5
|
+
gap: 20px;
|
|
6
6
|
color: var(--Dental-Blue-0);
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.action-button:first-child {
|
|
15
|
-
border-right: 1px solid #e5e7eb;
|
|
16
15
|
padding-right: 0.5rem;
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template v-if="appointment.status === 'upcoming'">
|
|
3
3
|
<div class="actions-grid">
|
|
4
|
-
<Button class="action-button" variant="
|
|
4
|
+
<Button class="action-button" variant="outlined" prependIcon="heroicons:x-circle"
|
|
5
5
|
label='Termin stornieren' size="small" @click="handleCancel" />
|
|
6
6
|
|
|
7
|
-
<Button class="action-button" variant="
|
|
7
|
+
<Button class="action-button" :variant="confirmable ? 'outlined' : 'flat'" prependIcon="heroicons:arrows-up-down"
|
|
8
8
|
label='Termin verschieben' size="small" @click="handleReschedule" />
|
|
9
9
|
</div>
|
|
10
10
|
|
package/src/components/index.ts
CHANGED
|
@@ -18,3 +18,4 @@ export { default as OtpInput } from './OtpInput/OtpInput.vue';
|
|
|
18
18
|
export { default as PhoneInput } from './PhoneInput/PhoneInput.vue';
|
|
19
19
|
export { default as EditField } from './EditField/EditField.vue';
|
|
20
20
|
export { default as Modal } from './Modal/Modal.vue';
|
|
21
|
+
export { default as AppointmentCard } from './Appointment/Card/Card.vue';
|