pangea-lib 2.10.116 → 2.11.0
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 +19 -19
- package/dist/main.css +2 -2
- package/dist/main.es.js +10643 -10577
- package/dist/types/alert/index.d.ts +1 -1
- package/dist/types/components/button/PgaButtonLink.vue.d.ts +17 -0
- package/dist/types/components/button/PgaLink.vue.d.ts +21 -3
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/i18n/i18n.d.ts +6 -1
- package/dist/types/i18n/i18n.messages.d.ts +5 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/notifications/Notifications.i18n.d.ts +6 -0
- package/dist/types/notifications/Notifications.vue.d.ts +2 -0
- package/dist/types/notifications/index.d.ts +1 -0
- package/dist/types/notifications/install-notifications.d.ts +1 -0
- package/dist/types/notifications/notifications.store.d.ts +28 -0
- package/dist/types/notifications/notifications.types.d.ts +9 -0
- package/package.json +1 -1
- package/dist/types/components/button/PgaHyperlink.vue.d.ts +0 -35
- /package/dist/types/alert/{Alert.service.d.ts → alert.service.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export { displayAlert } from './
|
|
1
|
+
export { displayAlert } from './alert.service';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TextProp } from '../../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
text?: TextProp;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
text?: TextProp;
|
|
7
|
+
}>>>, {}, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { TextProp } from '../../types';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
text?: TextProp;
|
|
5
|
-
|
|
5
|
+
href: string;
|
|
6
|
+
target?: string;
|
|
7
|
+
}>, {
|
|
8
|
+
target: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
10
|
text?: TextProp;
|
|
7
|
-
|
|
11
|
+
href: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
}>, {
|
|
14
|
+
target: string;
|
|
15
|
+
}>>>, {
|
|
16
|
+
target: string;
|
|
17
|
+
}, {}>;
|
|
8
18
|
export default _default;
|
|
9
19
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
20
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -15,3 +25,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
15
25
|
required: true;
|
|
16
26
|
};
|
|
17
27
|
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -7,7 +7,7 @@ export { default as PgaModal } from './PgaModal.vue';
|
|
|
7
7
|
export { default as PgaSelector } from './PgaSelector.vue';
|
|
8
8
|
export { default as PgaSpinner } from './PgaSpinner.vue';
|
|
9
9
|
export { default as PgaButton } from './button/PgaButton.vue';
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as PgaButtonLink } from './button/PgaButtonLink.vue';
|
|
11
11
|
export { default as PgaLink } from './button/PgaLink.vue';
|
|
12
12
|
export { default as PgaChartBar } from './chart/PgaChartBar.vue';
|
|
13
13
|
export { default as PgaDisplayNoData } from './display/PgaDisplayNoData.vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "Alert" | "PgaDatePicker" | "PgaModal">(fileName: FN) => <MK extends keyof {
|
|
1
|
+
export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "Alert" | "PgaDatePicker" | "PgaModal" | "Notifications">(fileName: FN) => <MK extends keyof {
|
|
2
2
|
Alert: {
|
|
3
3
|
es: {
|
|
4
4
|
alertTitle: string;
|
|
@@ -18,6 +18,11 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
|
|
|
18
18
|
acceptBtn: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
Notifications: {
|
|
22
|
+
es: {
|
|
23
|
+
removeAllBtn: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
21
26
|
}[FN]["es"]>(messageKey: MK, props?: {
|
|
22
27
|
[prop: string]: string | number;
|
|
23
28
|
count?: number;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { addNotification, removeNotification, clearNotifications } from './notifications.store';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function installNotifications(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TextProp } from '../types';
|
|
2
|
+
import { NotificationId, NotificationType } from './notifications.types';
|
|
3
|
+
|
|
4
|
+
export declare const useNotificationsStore: import('pinia').StoreDefinition<"pga-notifications", import('pinia')._UnwrapAll<Pick<{
|
|
5
|
+
currentId: import('vue').Ref<number>;
|
|
6
|
+
notifications: import('vue').Ref<{
|
|
7
|
+
id: number;
|
|
8
|
+
type: NotificationType;
|
|
9
|
+
message: TextProp;
|
|
10
|
+
}[]>;
|
|
11
|
+
}, "currentId" | "notifications">>, Pick<{
|
|
12
|
+
currentId: import('vue').Ref<number>;
|
|
13
|
+
notifications: import('vue').Ref<{
|
|
14
|
+
id: number;
|
|
15
|
+
type: NotificationType;
|
|
16
|
+
message: TextProp;
|
|
17
|
+
}[]>;
|
|
18
|
+
}, never>, Pick<{
|
|
19
|
+
currentId: import('vue').Ref<number>;
|
|
20
|
+
notifications: import('vue').Ref<{
|
|
21
|
+
id: number;
|
|
22
|
+
type: NotificationType;
|
|
23
|
+
message: TextProp;
|
|
24
|
+
}[]>;
|
|
25
|
+
}, never>>;
|
|
26
|
+
export declare function addNotification(type: NotificationType, message: TextProp): void;
|
|
27
|
+
export declare function removeNotification(id: NotificationId): void;
|
|
28
|
+
export declare function clearNotifications(): void;
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TextProp } from '../../types';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
text?: TextProp;
|
|
5
|
-
href: string;
|
|
6
|
-
target?: string;
|
|
7
|
-
}>, {
|
|
8
|
-
target: string;
|
|
9
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
-
text?: TextProp;
|
|
11
|
-
href: string;
|
|
12
|
-
target?: string;
|
|
13
|
-
}>, {
|
|
14
|
-
target: string;
|
|
15
|
-
}>>>, {
|
|
16
|
-
target: string;
|
|
17
|
-
}, {}>;
|
|
18
|
-
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
type __VLS_WithDefaults<P, D> = {
|
|
29
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
-
default: D[K];
|
|
31
|
-
}> : P[K];
|
|
32
|
-
};
|
|
33
|
-
type __VLS_Prettify<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
File without changes
|