@zap-wunschlachen/wl-shared-components 1.0.85 → 1.0.86

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.85",
3
+ "version": "1.0.86",
4
4
  "type": "module",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,3 +1,14 @@
1
1
  .ticket-card .v-btn--size-default {
2
2
  padding: 0 4px;
3
3
  }
4
+
5
+ .ticket-card .merge-badge {
6
+ font-size: 0.75rem;
7
+ font-weight: 500;
8
+ padding: 2px 6px;
9
+ border-radius: 4px;
10
+ margin-left: 4px;
11
+ color: #92400e;
12
+ background-color: #fef3c7;
13
+ white-space: nowrap;
14
+ }
@@ -47,7 +47,10 @@
47
47
  <!-- Dynamic name -->
48
48
  <h4>
49
49
  {{ name }}
50
- <slot name="after-name" />
50
+ <span
51
+ v-if="mergeLabel"
52
+ class="merge-badge"
53
+ >{{ mergeLabel }}</span>
51
54
  </h4>
52
55
  <!-- Dynamic description -->
53
56
  <p>{{ description }}</p>
@@ -142,5 +145,14 @@ defineProps({
142
145
  type: String,
143
146
  default: null,
144
147
  },
148
+
149
+ /**
150
+ * Optional merge label displayed as an amber badge next to the name.
151
+ * Used to indicate merged patients (e.g., "Zusammengeführt → Parent (#123)").
152
+ */
153
+ mergeLabel: {
154
+ type: String,
155
+ default: null,
156
+ },
145
157
  });
146
158
  </script>