pangea-lib 2.11.227 → 2.11.229

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.
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ es: {
3
+ selectFileLabel: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { FileExtension, InputError } from '../../../types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ label?: string;
5
+ withOptionalLabel?: boolean;
6
+ withLabelSpace?: boolean;
7
+ acceptedFormats?: FileExtension[] | '*';
8
+ errors?: InputError[];
9
+ disabled?: boolean;
10
+ grow?: number;
11
+ }>, {
12
+ acceptedFormats: string;
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ newFile: (newFile: File) => void;
15
+ newFileError: (newFile: File) => void;
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ label?: string;
18
+ withOptionalLabel?: boolean;
19
+ withLabelSpace?: boolean;
20
+ acceptedFormats?: FileExtension[] | '*';
21
+ errors?: InputError[];
22
+ disabled?: boolean;
23
+ grow?: number;
24
+ }>, {
25
+ acceptedFormats: string;
26
+ }>>> & {
27
+ onNewFile?: (newFile: File) => any;
28
+ onNewFileError?: (newFile: File) => any;
29
+ }, {
30
+ acceptedFormats: FileExtension[] | '*';
31
+ }, {}>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -22,6 +22,7 @@ export { default as PgaInputGroup } from './form/PgaInputGroup.vue';
22
22
  export { default as PgaLoginForm } from './form/PgaLoginForm.vue';
23
23
  export { default as PgaDatePicker } from './form/input/PgaDatePicker.vue';
24
24
  export { default as PgaInput } from './form/input/PgaInput.vue';
25
+ export { default as PgaInputFile } from './form/input/PgaInputFile.vue';
25
26
  export { default as PgaSelect } from './form/input/PgaSelect.vue';
26
27
  export { default as PgaSwitch } from './form/input/PgaSwitch.vue';
27
28
  export { default as PgaSwitchOptions } from './form/input/PgaSwitchOptions.vue';
@@ -22,6 +22,11 @@ declare const _default: {
22
22
  selectBtn: string;
23
23
  };
24
24
  };
25
+ pgaInputFile: {
26
+ es: {
27
+ selectFileLabel: string;
28
+ };
29
+ };
25
30
  pgaInputGroup: {
26
31
  es: {
27
32
  optionalLabel: string;
@@ -1,4 +1,4 @@
1
- export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputGroup" | "pgaLoginForm" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
1
+ export declare const getLanguage: () => "es", setLanguage: (language: "es") => void, useI18n: <FN extends "notifications" | "alert" | "pgaLogoutButton" | "pgaDisplayNoItems" | "pgaDatePicker" | "pgaInputFile" | "pgaInputGroup" | "pgaLoginForm" | "pgaModal", MP extends void | import('pangea-helpers').ExtractPrefixes<{
2
2
  alert: {
3
3
  es: {
4
4
  alertTitle: string;
@@ -22,6 +22,11 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
22
22
  selectBtn: string;
23
23
  };
24
24
  };
25
+ pgaInputFile: {
26
+ es: {
27
+ selectFileLabel: string;
28
+ };
29
+ };
25
30
  pgaInputGroup: {
26
31
  es: {
27
32
  optionalLabel: string;
@@ -71,6 +76,11 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
71
76
  selectBtn: string;
72
77
  };
73
78
  };
79
+ pgaInputFile: {
80
+ es: {
81
+ selectFileLabel: string;
82
+ };
83
+ };
74
84
  pgaInputGroup: {
75
85
  es: {
76
86
  optionalLabel: string;
@@ -120,6 +130,11 @@ export declare const getLanguage: () => "es", setLanguage: (language: "es") => v
120
130
  selectBtn: string;
121
131
  };
122
132
  };
133
+ pgaInputFile: {
134
+ es: {
135
+ selectFileLabel: string;
136
+ };
137
+ };
123
138
  pgaInputGroup: {
124
139
  es: {
125
140
  optionalLabel: string;
@@ -0,0 +1,7 @@
1
+ export type ImageExtension = '.jpg' | '.jpeg' | '.png' | '.gif' | '.bmp' | '.svg' | '.tiff' | '.webp' | '.ico';
2
+ export type VideoExtension = '.mp4' | '.avi' | '.mov' | '.wmv' | '.mkv' | '.webm' | '.flv';
3
+ export type AudioExtension = '.mp3' | '.wav' | '.aac' | '.ogg' | '.flac' | '.wma' | '.m4a';
4
+ export type DocumentExtension = '.pdf' | '.doc' | '.docx' | '.xls' | '.xlsx' | '.ppt' | '.pptx' | '.txt' | '.rtf' | '.odt' | '.ods' | '.odp';
5
+ export type CompressedExtension = '.zip' | '.rar' | '.7z' | '.tar' | '.gz';
6
+ export type CodeExtension = '.js' | '.ts' | '.css' | '.html' | '.json' | '.xml' | '.csv';
7
+ export type FileExtension = ImageExtension | VideoExtension | AudioExtension | DocumentExtension | CompressedExtension | CodeExtension;
@@ -1,4 +1,5 @@
1
- export type ImageExtension = 'png' | 'jpg' | 'jpeg';
1
+ import { ImageExtension } from './file';
2
+
2
3
  export type Image = `${string}.${ImageExtension}`;
3
4
  export type ImagesFolder = 'coins' | 'wallets';
4
5
  export type ImageSize = 'xs' | 's' | 'm' | 'l' | 'xl';
@@ -1,6 +1,7 @@
1
1
  export * from './button';
2
2
  export * from './chart';
3
3
  export * from './color';
4
+ export * from './file';
4
5
  export * from './form';
5
6
  export * from './icon';
6
7
  export * from './image';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "2.11.227",
4
+ "version": "2.11.229",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea#readme",