pangea-lib 2.11.20 → 2.11.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/dist/main.cjs.js +17 -17
- package/dist/main.css +1 -1
- package/dist/main.es.js +6144 -6140
- package/dist/types/notifications/notifications.helpers.d.ts +1 -1
- package/dist/types/notifications/notifications.store.d.ts +25 -3
- package/dist/types/notifications/notifications.types.d.ts +2 -2
- package/dist/types/options/options.store.d.ts +6 -6
- package/dist/types/options/options.types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextProp } from '../types';
|
|
2
2
|
import { NotificationId, NotificationType } from './notifications.types';
|
|
3
3
|
|
|
4
|
-
export declare function addNotification(type: NotificationType, message: TextProp):
|
|
4
|
+
export declare function addNotification(type: NotificationType, message: TextProp): number;
|
|
5
5
|
export declare function removeNotification(id: NotificationId): void;
|
|
6
6
|
export declare function clearNotifications(): void;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga-notifications", import('pinia')._UnwrapAll<Pick<{
|
|
2
3
|
currentId: import('vue').Ref<number>;
|
|
3
4
|
notifications: import('vue').Ref<{
|
|
4
5
|
id: number;
|
|
5
6
|
type: import('./notifications.types').NotificationType;
|
|
6
7
|
message: import('../types').TextProp;
|
|
7
|
-
|
|
8
|
+
timeout?: {
|
|
9
|
+
ref: () => NodeJS.Timeout;
|
|
10
|
+
unref: () => NodeJS.Timeout;
|
|
11
|
+
hasRef: () => boolean;
|
|
12
|
+
refresh: () => NodeJS.Timeout;
|
|
13
|
+
[Symbol.toPrimitive]: () => number;
|
|
14
|
+
[Symbol.dispose]: () => void;
|
|
15
|
+
};
|
|
8
16
|
}[]>;
|
|
9
17
|
}, "notifications" | "currentId">>, Pick<{
|
|
10
18
|
currentId: import('vue').Ref<number>;
|
|
@@ -12,7 +20,14 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
|
|
|
12
20
|
id: number;
|
|
13
21
|
type: import('./notifications.types').NotificationType;
|
|
14
22
|
message: import('../types').TextProp;
|
|
15
|
-
|
|
23
|
+
timeout?: {
|
|
24
|
+
ref: () => NodeJS.Timeout;
|
|
25
|
+
unref: () => NodeJS.Timeout;
|
|
26
|
+
hasRef: () => boolean;
|
|
27
|
+
refresh: () => NodeJS.Timeout;
|
|
28
|
+
[Symbol.toPrimitive]: () => number;
|
|
29
|
+
[Symbol.dispose]: () => void;
|
|
30
|
+
};
|
|
16
31
|
}[]>;
|
|
17
32
|
}, never>, Pick<{
|
|
18
33
|
currentId: import('vue').Ref<number>;
|
|
@@ -20,6 +35,13 @@ export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga
|
|
|
20
35
|
id: number;
|
|
21
36
|
type: import('./notifications.types').NotificationType;
|
|
22
37
|
message: import('../types').TextProp;
|
|
23
|
-
|
|
38
|
+
timeout?: {
|
|
39
|
+
ref: () => NodeJS.Timeout;
|
|
40
|
+
unref: () => NodeJS.Timeout;
|
|
41
|
+
hasRef: () => boolean;
|
|
42
|
+
refresh: () => NodeJS.Timeout;
|
|
43
|
+
[Symbol.toPrimitive]: () => number;
|
|
44
|
+
[Symbol.dispose]: () => void;
|
|
45
|
+
};
|
|
24
46
|
}[]>;
|
|
25
47
|
}, never>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-options", import('pinia')._UnwrapAll<Pick<{
|
|
2
2
|
options: import('vue').Ref<{
|
|
3
3
|
notifications: {
|
|
4
|
-
|
|
4
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
5
5
|
preventRemove: boolean;
|
|
6
6
|
};
|
|
7
7
|
button: {
|
|
@@ -21,7 +21,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
|
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
23
23
|
notificationsOptions: import('vue').ComputedRef<{
|
|
24
|
-
|
|
24
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
25
25
|
preventRemove: boolean;
|
|
26
26
|
}>;
|
|
27
27
|
buttonOptions: import('vue').ComputedRef<{
|
|
@@ -42,7 +42,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
|
|
|
42
42
|
}, "options">>, Pick<{
|
|
43
43
|
options: import('vue').Ref<{
|
|
44
44
|
notifications: {
|
|
45
|
-
|
|
45
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
46
46
|
preventRemove: boolean;
|
|
47
47
|
};
|
|
48
48
|
button: {
|
|
@@ -62,7 +62,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
|
|
|
62
62
|
};
|
|
63
63
|
}>;
|
|
64
64
|
notificationsOptions: import('vue').ComputedRef<{
|
|
65
|
-
|
|
65
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
66
66
|
preventRemove: boolean;
|
|
67
67
|
}>;
|
|
68
68
|
buttonOptions: import('vue').ComputedRef<{
|
|
@@ -83,7 +83,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
|
|
|
83
83
|
}, "notificationsOptions" | "buttonOptions" | "formOptions">, Pick<{
|
|
84
84
|
options: import('vue').Ref<{
|
|
85
85
|
notifications: {
|
|
86
|
-
|
|
86
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
87
87
|
preventRemove: boolean;
|
|
88
88
|
};
|
|
89
89
|
button: {
|
|
@@ -103,7 +103,7 @@ export declare const useOptionsStore: import('pinia').StoreDefinition<"pga-optio
|
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
105
|
notificationsOptions: import('vue').ComputedRef<{
|
|
106
|
-
|
|
106
|
+
timeoutTime: import('../notifications/notifications.types').NotificationTimeoutTime;
|
|
107
107
|
preventRemove: boolean;
|
|
108
108
|
}>;
|
|
109
109
|
buttonOptions: import('vue').ComputedRef<{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DeepPartial } from 'pangea-helpers';
|
|
2
2
|
import { ButtonType, Size } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import { NotificationTimeoutTime } from '../notifications/notifications.types';
|
|
4
4
|
import { AppColors } from '../colors/colors.types';
|
|
5
5
|
|
|
6
6
|
export type OptionsStore = {
|
|
7
7
|
notifications: {
|
|
8
|
-
|
|
8
|
+
timeoutTime: NotificationTimeoutTime;
|
|
9
9
|
preventRemove: boolean;
|
|
10
10
|
};
|
|
11
11
|
button: {
|