@libs-ui/components-inputs-upload 0.2.161 → 0.2.163
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/defines/helper.define.d.ts +0 -2
- package/esm2022/defines/helper.define.mjs +1 -13
- package/esm2022/index.mjs +1 -2
- package/esm2022/interfaces/upload.interface.mjs +1 -1
- package/esm2022/pipes/check-file-extension.pipe.mjs +6 -7
- package/esm2022/upload.component.mjs +25 -21
- package/fesm2022/libs-ui-components-inputs-upload.mjs +62 -74
- package/fesm2022/libs-ui-components-inputs-upload.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/interfaces/upload.interface.d.ts +1 -5
- package/package.json +17 -2
- package/upload.component.d.ts +2 -2
- package/defines/upload.define.d.ts +0 -4
- package/esm2022/defines/upload.define.mjs +0 -5
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { TYPE_OBJECT, IHttpProcessUpload, IFile } from '@libs-ui/interfaces-types';
|
|
2
2
|
export type TYPE_MODE_FILE_DISPLAY = 'full' | 'short';
|
|
3
3
|
export type TYPE_FILE_UPLOAD = 'document' | 'image' | 'video' | 'audio' | 'image_document' | 'image_video' | 'image_audio' | 'document_audio' | 'video_audio' | 'image_document_audio' | 'image_video_audio' | 'document_video_audio' | 'image_video_document' | 'image_audio_video_document';
|
|
4
|
-
export interface IAspectRatio {
|
|
5
|
-
key: string;
|
|
6
|
-
value: number;
|
|
7
|
-
}
|
|
8
4
|
export interface IUploadDescriptionFormatAndSizeFile {
|
|
9
5
|
message: string;
|
|
10
6
|
interpolateParams?: TYPE_OBJECT;
|
|
@@ -22,7 +18,7 @@ export interface IUploadConfigDownloadSampleFile {
|
|
|
22
18
|
callBack?: () => void;
|
|
23
19
|
}
|
|
24
20
|
export interface IUploadFunctionControlEvent {
|
|
25
|
-
|
|
21
|
+
checkIsValid: () => Promise<boolean>;
|
|
26
22
|
removeAll: () => Promise<void>;
|
|
27
23
|
uploading: (process: IHttpProcessUpload, id: string) => Promise<void>;
|
|
28
24
|
setMessageError: (message: string, id?: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/components-inputs-upload",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.163",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.0",
|
|
6
|
-
"@angular/core": "^18.2.0"
|
|
6
|
+
"@angular/core": "^18.2.0",
|
|
7
|
+
"@libs-ui/components-spinner": "0.2.162",
|
|
8
|
+
"@libs-ui/icons": "0.2.162",
|
|
9
|
+
"@libs-ui/interfaces-types": "0.2.162",
|
|
10
|
+
"@libs-ui/pipes-security-trust": "0.2.162",
|
|
11
|
+
"@libs-ui/utils": "0.2.162",
|
|
12
|
+
"@ngx-translate/core": "^15.0.0",
|
|
13
|
+
"@libs-ui/components-buttons-button": "0.2.162",
|
|
14
|
+
"@libs-ui/components-gallery": "0.2.162",
|
|
15
|
+
"@libs-ui/components-image-editor": "0.2.162",
|
|
16
|
+
"@libs-ui/components-label": "0.2.162",
|
|
17
|
+
"@libs-ui/components-preview-file": "0.2.162",
|
|
18
|
+
"@libs-ui/components-scroll-overlay": "0.2.162",
|
|
19
|
+
"@libs-ui/services-dynamic-component": "0.2.162",
|
|
20
|
+
"@libs-ui/services-notification": "0.2.162",
|
|
21
|
+
"rxjs": "~7.8.0"
|
|
7
22
|
},
|
|
8
23
|
"sideEffects": false,
|
|
9
24
|
"module": "fesm2022/libs-ui-components-inputs-upload.mjs",
|
package/upload.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnDestroy, OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { ILabel } from '@libs-ui/components-label';
|
|
3
|
-
import { IEvent, IFile, IIsValidRequired, IMessageTranslate } from '@libs-ui/interfaces-types';
|
|
3
|
+
import { IAspectRatio, IEvent, IFile, IIsValidRequired, IMessageTranslate } from '@libs-ui/interfaces-types';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { IUploadConfigDownloadSampleFile, IUploadDescriptionFormatAndSizeFile, IUploadFunctionControlEvent, TYPE_FILE_UPLOAD, TYPE_MODE_FILE_DISPLAY } from './interfaces/upload.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class LibsUiComponentsInputsUploadComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
8
8
|
private imageEditorComponentRef?;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export const DocumentExtList = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'json', 'xml'];
|
|
2
|
-
export const ImageExtList = ['gif', 'jpg', 'jpeg', 'png'];
|
|
3
|
-
export const VideoExtList = ['mp4', 'mov', 'mpg', 'avi', 'wmv'];
|
|
4
|
-
export const AudioExtList = ['mp3', 'wav', 'ogg', 'aac', 'm4a', 'flac', 'wma'];
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBsb2FkLmRlZmluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMtdWkvY29tcG9uZW50cy9pbnB1dHMvdXBsb2FkL3NyYy9kZWZpbmVzL3VwbG9hZC5kZWZpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxLQUFLLENBQUMsQ0FBQztBQUNuRyxNQUFNLENBQUMsTUFBTSxZQUFZLEdBQUcsQ0FBQyxLQUFLLEVBQUUsS0FBSy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