pangea-lib 3.1.72 → 4.0.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.
@@ -61,6 +61,16 @@ declare const _default: {
61
61
  saveErrorMsg: string;
62
62
  };
63
63
  };
64
+ pgaFile: {
65
+ es: {
66
+ selectImages: string;
67
+ confirmDeleteImage: string;
68
+ maxImagesQuantityAlert: string;
69
+ selectVideos: string;
70
+ confirmDeleteVideo: string;
71
+ maxVideosQuantityAlert: string;
72
+ };
73
+ };
64
74
  pgaForm: {
65
75
  es: {
66
76
  submitBtn: string;
@@ -78,13 +88,6 @@ declare const _default: {
78
88
  selectBtn: string;
79
89
  };
80
90
  };
81
- pgaImage: {
82
- es: {
83
- selectFileLabel: string;
84
- confirmDeleteText: string;
85
- maxImagesQuantityAlert: string;
86
- };
87
- };
88
91
  pgaLayout: {
89
92
  es: {
90
93
  header: {
@@ -8,18 +8,18 @@ export declare class GetManyBaseParams extends BaseParams {
8
8
  search?: string;
9
9
  constructor(params?: Partial<GetManyBaseParams>);
10
10
  }
11
- export declare class RemoveImageParams extends BaseParams {
12
- constructor(params?: Partial<RemoveImageParams>);
11
+ export declare class UploadFileParams extends BaseParams {
12
+ file: File;
13
+ constructor(params?: Partial<UploadFileParams>);
13
14
  }
14
- export declare class RemoveImagesParams extends BaseParams {
15
- index: number;
16
- constructor(params?: Partial<RemoveImagesParams>);
15
+ export declare class UploadFilesParams extends BaseParams {
16
+ file: File[];
17
+ constructor(params?: Partial<UploadFilesParams>);
17
18
  }
18
- export declare class UploadImageParams extends BaseParams {
19
- image: File;
20
- constructor(params?: Partial<UploadImageParams>);
19
+ export declare class RemoveFileParams extends BaseParams {
20
+ constructor(params?: Partial<RemoveFileParams>);
21
21
  }
22
- export declare class UploadImagesParams extends BaseParams {
23
- images: File[];
24
- constructor(params?: Partial<UploadImagesParams>);
22
+ export declare class RemoveFilesParams extends BaseParams {
23
+ index: number;
24
+ constructor(params?: Partial<RemoveFilesParams>);
25
25
  }
@@ -14,7 +14,7 @@ export type AppConfig = {
14
14
  hyperLong: number;
15
15
  };
16
16
  delayTime: number;
17
- image: {
17
+ file: {
18
18
  staticUrl: string;
19
19
  dynamicUrl: string;
20
20
  };
@@ -5,7 +5,3 @@ export type InputError = {
5
5
  $message: string | Ref<string>;
6
6
  [key: string]: any;
7
7
  };
8
- export type ExcelConfig = {
9
- firstRow: number;
10
- columns: Record<string, number>;
11
- };
@@ -6,11 +6,9 @@ export * from './button.types';
6
6
  export * from './chart.types';
7
7
  export * from './color.types';
8
8
  export * from './dropdown.types';
9
- export * from './file.types';
10
9
  export * from './form.types';
11
10
  export * from './i18n.types';
12
11
  export * from './icon.types';
13
- export * from './image.types';
14
12
  export * from './router.types';
15
13
  export * from './size.types';
16
14
  export * from './table.types';
@@ -28,3 +26,4 @@ export type NumOrFn = OrFn<number>;
28
26
  export type BoolOrFn = OrFn<boolean>;
29
27
  export type Align = 'center' | 'left' | 'right';
30
28
  export type DatetimeFormat = 'numeric' | 'short' | 'long';
29
+ export type FileSource = 'static' | 'dynamic';
@@ -1,6 +1,7 @@
1
- export type UnitAbsolute = 'px' | 'cm' | 'mm' | 'in' | 'pt' | 'pc';
2
- export type UnitRelative = 'em' | 'rem' | 'vw' | 'vh' | '%' | 'ch' | 'ex' | 'vmin' | 'vmax';
3
- export type SizeAbsolute = `${number}${UnitAbsolute}`;
4
- export type SizeRelative = `${number}${UnitRelative}`;
5
- export type SizeKeyword = 'initial' | 'inherit' | 'unset' | 'revert' | 'auto' | 'none' | 'normal';
1
+ type UnitAbsolute = 'px' | 'cm' | 'mm';
2
+ type UnitRelative = 'em' | 'rem' | 'vw' | 'vh' | '%';
3
+ type SizeAbsolute = `${number}${UnitAbsolute}`;
4
+ type SizeRelative = `${number}${UnitRelative}`;
5
+ type SizeKeyword = 'initial' | 'inherit' | 'unset' | 'revert' | 'auto' | 'none' | 'normal';
6
6
  export type Size = SizeAbsolute | SizeRelative | SizeKeyword;
7
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
3
  "description": "",
4
- "version": "3.1.72",
4
+ "version": "4.0.1",
5
5
  "author": "Gianfranco Raselli",
6
6
  "license": "ISC",
7
7
  "homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- es: {
3
- selectFileLabel: string;
4
- confirmDeleteText: string;
5
- maxImagesQuantityAlert: string;
6
- };
7
- };
8
- export default _default;
@@ -1,7 +0,0 @@
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,2 +0,0 @@
1
- export type Image = string;
2
- export type ImageSource = 'static' | 'dynamic';