@imaginario27/air-ui-ds 1.15.0 → 1.15.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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this package are documented in this file.
|
|
|
5
5
|
Historical releases were reconstructed from git history (GitHub repository) and npm publish dates.
|
|
6
6
|
Future releases will include detailed entries generated with Changesets.
|
|
7
7
|
|
|
8
|
+
## 1.15.0 - 2026-06-30
|
|
9
|
+
|
|
10
|
+
Release type: minor.
|
|
11
|
+
Commits found in range: 1.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
1. add NotificationsPopover; enhance MetricCard, ContainedIcon, SectionTitle, and Popover ([352e809](https://github.com/imaginario27/air-ui/commit/352e809a77a63b6ef70d3877ad5d8c4b20a4e65e))
|
|
16
|
+
|
|
17
|
+
- Package: @imaginario27/air-ui-ds.
|
|
18
|
+
|
|
8
19
|
## 1.14.2 - 2026-06-23
|
|
9
20
|
|
|
10
21
|
Release type: patch.
|
|
@@ -134,41 +134,11 @@
|
|
|
134
134
|
const props = defineProps({
|
|
135
135
|
list: {
|
|
136
136
|
type: Array as PropType<NotificationItem[]>,
|
|
137
|
-
default: () => [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
iconColor: ColorAccent.NEUTRAL,
|
|
143
|
-
title: 'New Notification',
|
|
144
|
-
description: 'This is a sample notification description.',
|
|
145
|
-
timeAgo: '5 minutes ago',
|
|
146
|
-
author: 'John Doe',
|
|
147
|
-
link: '',
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
id: '2',
|
|
151
|
-
read: true,
|
|
152
|
-
icon: 'mdi:bell-outline',
|
|
153
|
-
iconColor: ColorAccent.SECONDARY_BRAND,
|
|
154
|
-
title: 'Another Notification',
|
|
155
|
-
description: 'This is another sample notification description.',
|
|
156
|
-
timeAgo: '10 minutes ago',
|
|
157
|
-
author: 'Jane Doe',
|
|
158
|
-
link: '',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: '3',
|
|
162
|
-
read: false,
|
|
163
|
-
icon: 'mdi:bell-outline',
|
|
164
|
-
iconColor: ColorAccent.PRIMARY_BRAND,
|
|
165
|
-
title: 'Third Notification',
|
|
166
|
-
description: 'This is the third sample notification description.',
|
|
167
|
-
timeAgo: '15 minutes ago',
|
|
168
|
-
author: 'Jim Doe',
|
|
169
|
-
link: '',
|
|
170
|
-
}
|
|
171
|
-
],
|
|
137
|
+
default: () => [],
|
|
138
|
+
},
|
|
139
|
+
limit: {
|
|
140
|
+
type: Number as PropType<number>,
|
|
141
|
+
default: 10,
|
|
172
142
|
},
|
|
173
143
|
isListIconContained: {
|
|
174
144
|
type: Boolean as PropType<boolean>,
|
|
@@ -331,10 +301,11 @@ const hasError = computed(() => props.errorText.trim().length > 0)
|
|
|
331
301
|
const unreadCount = computed(() => internalList.value.filter(notification => !notification.read).length)
|
|
332
302
|
|
|
333
303
|
const filteredList = computed(() => {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
304
|
+
const source = selectedFilterValue.value === 'unread'
|
|
305
|
+
? internalList.value.filter(notification => !notification.read)
|
|
306
|
+
: internalList.value
|
|
307
|
+
|
|
308
|
+
return source.slice(0, props.limit)
|
|
338
309
|
})
|
|
339
310
|
|
|
340
311
|
// Handlers
|