ngx-techlify-core 14.10.0 → 14.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.
@@ -9,6 +9,7 @@ import { ViewerConfig } from '../document-viewer/viewer-config.model';
9
9
  import { FileDropperConfig } from '../file-dropper';
10
10
  import { ErrorHandlerService } from '../core/error-handler.service';
11
11
  import { TechlifyTaggerTagFormConfigModel } from "../techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model";
12
+ import { CurrentUserService, User } from "../user";
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class EntityFilesViewAllComponent implements OnInit {
14
15
  private entityFileService;
@@ -17,6 +18,7 @@ export declare class EntityFilesViewAllComponent implements OnInit {
17
18
  private dialog;
18
19
  private fb;
19
20
  private errorHandler;
21
+ currentUserService: CurrentUserService;
20
22
  entityId: number;
21
23
  entityType: string;
22
24
  viewOnly: boolean;
@@ -48,7 +50,18 @@ export declare class EntityFilesViewAllComponent implements OnInit {
48
50
  dataSource: MatTableDataSource<unknown>;
49
51
  updateRowForm: UntypedFormGroup;
50
52
  isReload: boolean;
51
- constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService);
53
+ user: User;
54
+ isShowCreateAction: boolean;
55
+ isShowUpdateAction: boolean;
56
+ isShowDeleteAction: boolean;
57
+ isShowReadAction: boolean;
58
+ permission: {
59
+ create: string;
60
+ update: string;
61
+ delete: string;
62
+ read: string;
63
+ };
64
+ constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService, currentUserService: CurrentUserService);
52
65
  ngOnInit(): void;
53
66
  listenRoutes(): void;
54
67
  fetchEntityFilesDetails(): void;
@@ -67,5 +80,5 @@ export declare class EntityFilesViewAllComponent implements OnInit {
67
80
  resetFieldValueOfRow(field: string, event: any): void;
68
81
  bulkUpdate(fieldName: any): Promise<void>;
69
82
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityFilesViewAllComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<EntityFilesViewAllComponent, "app-entity-files-view-all", never, { "entityId": "entityId"; "entityType": "entityType"; "viewOnly": "viewOnly"; "removeSearch": "removeSearch"; "hideTitleAndDetails": "hideTitleAndDetails"; "displayMode": "displayMode"; "allowMultipleFiles": "allowMultipleFiles"; "allowBulkUpdate": "allowBulkUpdate"; "useTechlifyTags": "useTechlifyTags"; "techlifyTagCategories": "techlifyTagCategories"; "techlifyTagConfig": "techlifyTagConfig"; "title": "title"; }, {}, never, never, false>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityFilesViewAllComponent, "app-entity-files-view-all", never, { "entityId": "entityId"; "entityType": "entityType"; "viewOnly": "viewOnly"; "removeSearch": "removeSearch"; "hideTitleAndDetails": "hideTitleAndDetails"; "displayMode": "displayMode"; "allowMultipleFiles": "allowMultipleFiles"; "allowBulkUpdate": "allowBulkUpdate"; "useTechlifyTags": "useTechlifyTags"; "techlifyTagCategories": "techlifyTagCategories"; "techlifyTagConfig": "techlifyTagConfig"; "title": "title"; "permission": "permission"; }, {}, never, never, false>;
71
84
  }
@@ -0,0 +1,29 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import { EntityFileService } from '../../entity-files';
4
+ import { FileDropperConfig } from '../../file-dropper';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FileDragdropUploaderComponent implements OnInit, ControlValueAccessor {
7
+ private entityFileService;
8
+ fileList: any[];
9
+ constructor(entityFileService: EntityFileService);
10
+ label: string;
11
+ fileDropperConfig: FileDropperConfig;
12
+ disabled: boolean;
13
+ selectedFiles: FormControl<any>;
14
+ onChange: (value: any) => void;
15
+ onTouched: () => void;
16
+ ngOnInit(): void;
17
+ writeValue(obj: any[]): void;
18
+ registerOnChange(fn: any): void;
19
+ registerOnTouched(fn: any): void;
20
+ setDisabledState?(isDisabled: boolean): void;
21
+ /**
22
+ * Reset the form control value
23
+ */
24
+ resetField(): void;
25
+ onFileChanged(files: File[]): void;
26
+ isImage(file: any): boolean;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDragdropUploaderComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileDragdropUploaderComponent, "app-file-dragdrop-uploader", never, { "label": "label"; "fileDropperConfig": "fileDropperConfig"; }, {}, never, never, false>;
29
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./file-dragdrop-uploader/file-dragdrop-uploader.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../file-dropper/file-dropper.module";
5
+ import * as i4 from "@angular/flex-layout";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/button";
8
+ export declare class FileDragdropUploaderModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDragdropUploaderModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileDragdropUploaderModule, [typeof i1.FileDragdropUploaderComponent], [typeof i2.CommonModule, typeof i3.FileDropperModule, typeof i4.FlexLayoutModule, typeof i5.MatIconModule, typeof i6.MatButtonModule], [typeof i1.FileDragdropUploaderComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileDragdropUploaderModule>;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "14.10.0",
3
+ "version": "14.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=14",
6
6
  "@angular/core": ">=14",
package/public-api.d.ts CHANGED
@@ -120,3 +120,5 @@ export * from './lib/access-control-config/access-control-config.module';
120
120
  export * from './lib/ngx-techlify-users/ngx-techlify-users.module';
121
121
  export * from './lib/restrictors';
122
122
  export * from './lib/techlify-company-switcher';
123
+ export * from './lib/file-dragdrop-uploader/file-dragdrop-uploader/file-dragdrop-uploader.component';
124
+ export * from './lib/file-dragdrop-uploader/file-dragdrop-uploader.module';