@homefile/components-v2 2.24.18 → 2.24.20
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/dist/assets/images/logos/default-receipt.png +0 -0
- package/dist/interfaces/notifications/NotificationsPanel.interface.d.ts +3 -1
- package/dist/mocks/notifications/notifications.mock.js +8 -0
- package/package.json +1 -1
- package/src/assets/images/logos/default-receipt.png +0 -0
- package/src/interfaces/notifications/NotificationsPanel.interface.ts +3 -1
- package/src/mocks/notifications/notifications.mock.ts +8 -0
|
Binary file
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
type NotificationType = 'simple';
|
|
1
|
+
type NotificationType = 'simple' | 'service';
|
|
2
2
|
type NotificationStatus = 'added' | 'removed' | 'updated' | 'shared';
|
|
3
3
|
export interface NotificationCardI {
|
|
4
4
|
active: boolean;
|
|
5
5
|
createdAt: Date;
|
|
6
|
+
docId: string;
|
|
6
7
|
_id: string;
|
|
7
8
|
label: string;
|
|
8
9
|
message: string;
|
|
9
10
|
status: NotificationStatus;
|
|
10
11
|
type?: NotificationType;
|
|
12
|
+
user: string;
|
|
11
13
|
}
|
|
12
14
|
export interface NotificationsPanelI {
|
|
13
15
|
notifications: NotificationCardI[];
|
|
@@ -2,11 +2,13 @@ import { faker } from '@faker-js/faker';
|
|
|
2
2
|
export const notificationsMock = [
|
|
3
3
|
{
|
|
4
4
|
active: true,
|
|
5
|
+
docId: "",
|
|
5
6
|
_id: '1',
|
|
6
7
|
createdAt: new Date(),
|
|
7
8
|
message: faker.lorem.sentence(),
|
|
8
9
|
status: 'added',
|
|
9
10
|
label: 'contact added',
|
|
11
|
+
user: "123"
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
active: true,
|
|
@@ -15,6 +17,8 @@ export const notificationsMock = [
|
|
|
15
17
|
message: faker.lorem.sentence(),
|
|
16
18
|
status: 'removed',
|
|
17
19
|
label: 'file removed',
|
|
20
|
+
docId: "",
|
|
21
|
+
user: "123"
|
|
18
22
|
},
|
|
19
23
|
{
|
|
20
24
|
active: true,
|
|
@@ -23,6 +27,8 @@ export const notificationsMock = [
|
|
|
23
27
|
message: faker.lorem.sentence(),
|
|
24
28
|
status: 'shared',
|
|
25
29
|
label: 'folder shared',
|
|
30
|
+
docId: "",
|
|
31
|
+
user: "123"
|
|
26
32
|
},
|
|
27
33
|
{
|
|
28
34
|
active: true,
|
|
@@ -31,5 +37,7 @@ export const notificationsMock = [
|
|
|
31
37
|
message: faker.lorem.sentence(),
|
|
32
38
|
status: 'updated',
|
|
33
39
|
label: 'updated payment',
|
|
40
|
+
docId: "",
|
|
41
|
+
user: "123"
|
|
34
42
|
},
|
|
35
43
|
];
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
type NotificationType = 'simple'
|
|
1
|
+
type NotificationType = 'simple' | 'service'
|
|
2
2
|
type NotificationStatus = 'added' | 'removed' | 'updated' | 'shared'
|
|
3
3
|
|
|
4
4
|
export interface NotificationCardI {
|
|
5
5
|
active: boolean
|
|
6
6
|
createdAt: Date
|
|
7
|
+
docId: string
|
|
7
8
|
_id: string
|
|
8
9
|
label: string
|
|
9
10
|
message: string
|
|
10
11
|
status: NotificationStatus
|
|
11
12
|
type?: NotificationType
|
|
13
|
+
user: string
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export interface NotificationsPanelI {
|
|
@@ -4,11 +4,13 @@ import { faker } from '@faker-js/faker'
|
|
|
4
4
|
export const notificationsMock: NotificationCardI[] = [
|
|
5
5
|
{
|
|
6
6
|
active: true,
|
|
7
|
+
docId: "",
|
|
7
8
|
_id: '1',
|
|
8
9
|
createdAt: new Date(),
|
|
9
10
|
message: faker.lorem.sentence(),
|
|
10
11
|
status: 'added',
|
|
11
12
|
label: 'contact added',
|
|
13
|
+
user: "123"
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
active: true,
|
|
@@ -17,6 +19,8 @@ export const notificationsMock: NotificationCardI[] = [
|
|
|
17
19
|
message: faker.lorem.sentence(),
|
|
18
20
|
status: 'removed',
|
|
19
21
|
label: 'file removed',
|
|
22
|
+
docId: "",
|
|
23
|
+
user: "123"
|
|
20
24
|
},
|
|
21
25
|
{
|
|
22
26
|
active: true,
|
|
@@ -25,6 +29,8 @@ export const notificationsMock: NotificationCardI[] = [
|
|
|
25
29
|
message: faker.lorem.sentence(),
|
|
26
30
|
status: 'shared',
|
|
27
31
|
label: 'folder shared',
|
|
32
|
+
docId: "",
|
|
33
|
+
user: "123"
|
|
28
34
|
},
|
|
29
35
|
{
|
|
30
36
|
active: true,
|
|
@@ -33,5 +39,7 @@ export const notificationsMock: NotificationCardI[] = [
|
|
|
33
39
|
message: faker.lorem.sentence(),
|
|
34
40
|
status: 'updated',
|
|
35
41
|
label: 'updated payment',
|
|
42
|
+
docId: "",
|
|
43
|
+
user: "123"
|
|
36
44
|
},
|
|
37
45
|
]
|