2.0.0 • Published 3 months ago

ngx-anomali-filemanager v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

FileManager

This library was generated with Angular CLI version 16.2.0.

Code scaffolding

Run ng generate component component-name --project file-manager to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project file-manager.

Note: Don't forget to add --project file-manager or else it will be added to the default project in your angular.json file.

Build

Run ng build file-manager to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build file-manager, go to the dist folder cd dist/file-manager and run npm publish.

Running unit tests

Run ng test file-manager to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

Directive

Input

maxWidth: number;
maxSizeMB: number;
isSelectMultiple: boolean;
isShowSelectFiles: boolean;
prefix: string;
suffix: string;
path: string;
id: string;

Output

selectFiles: EventEmitter<IFile[]>;

Model

interface FileManagerConfig {
  apiUrl: string;
  apiGetFile: string;
  apiPostFile: string;
  apiDeleteFile: string;
}

interface IFile {
  url: string;
  id: string;
  fileName: string;
  fileExtension: string;
  dateCreate: string;
  fileSize: string;
}

interface IPostFile {
  fileName: string;
  fileEncoded: string;
}

Constants

FILE_MANAGER_CONFIG: string;

Release Notes

ver 0.1.3

Add pagination

ver 0.1.2

Add missing css

ver 0.1.1

Handle slugify filename

ver 0.1.0

Rebuild project to ensure optimum support with latest packages

ver 0.0.3

Update style and allow uploads for any file type

ver 0.0.2

Setup id for file uploader

ver 0.0.1

Initial uploads

2.0.0

3 months ago

0.1.3

7 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago