ngx-techlify-core 18.65.1 → 18.67.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.
Files changed (24) hide show
  1. package/esm2022/lib/app-admin/admin-role/admin-role-permission-form/admin-role-permission-form.component.mjs +1 -1
  2. package/esm2022/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.mjs +1 -1
  3. package/esm2022/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.mjs +1 -1
  4. package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.mjs +1 -1
  5. package/esm2022/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.mjs +1 -1
  6. package/esm2022/lib/entity-files/entity-file.service.mjs +1 -4
  7. package/esm2022/lib/entity-files/entity-files-view-all.component.mjs +25 -97
  8. package/esm2022/lib/entity-files/entity-files-view-all.module.mjs +12 -4
  9. package/esm2022/lib/restrictors/restrictors-form/restrictors-form.component.mjs +1 -1
  10. package/esm2022/lib/searchable-selector/searchable-selector.component.mjs +9 -2
  11. package/esm2022/lib/subscription/subscription-form/subscription-form.component.mjs +1 -1
  12. package/esm2022/lib/subscription/subscription-listing/subscription-listing.component.mjs +1 -1
  13. package/esm2022/lib/tag/techlify-tagger-tag-form/techlify-tagger-tag-form.component.mjs +1 -1
  14. package/esm2022/lib/tag/techlify-tagger-tag-list/techlify-tagger-tag-list.component.mjs +2 -2
  15. package/esm2022/lib/tag/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.mjs +1 -1
  16. package/esm2022/lib/techlify-icon/techlify-icon.component.mjs +3 -2
  17. package/esm2022/lib/user/users-view-all.component.mjs +1 -1
  18. package/fesm2022/ngx-techlify-core.mjs +47 -111
  19. package/fesm2022/ngx-techlify-core.mjs.map +1 -1
  20. package/lib/entity-files/entity-file.service.d.ts +1 -2
  21. package/lib/entity-files/entity-files-view-all.component.d.ts +4 -22
  22. package/lib/entity-files/entity-files-view-all.module.d.ts +3 -1
  23. package/lib/searchable-selector/searchable-selector.component.d.ts +2 -1
  24. package/package.json +1 -1
@@ -2,9 +2,8 @@ import { HttpService } from '../core/http.service';
2
2
  import { TechlifyService } from "../base-model";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class EntityFileService extends TechlifyService {
5
- http: HttpService;
5
+ protected http: HttpService;
6
6
  constructor(http: HttpService);
7
- deleteEntityFile(model: any): Promise<Object>;
8
7
  uploadEntityFile(file: File, params?: any): Promise<Object>;
9
8
  bulkUpdate(model: any): Promise<Object>;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityFileService, never>;
@@ -9,9 +9,10 @@ import { FileDropperConfig } from '../file-dropper';
9
9
  import { ErrorHandlerService } from '../core/error-handler.service';
10
10
  import { TechlifyTaggerTagFormConfigModel } from "../tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model";
11
11
  import { CurrentUserService, User } from "../user";
12
+ import { TechlifyListComponent } from '../base-model';
12
13
  import * as i0 from "@angular/core";
13
- export declare class EntityFilesViewAllComponent implements OnInit {
14
- private entityFileService;
14
+ export declare class EntityFilesViewAllComponent extends TechlifyListComponent implements OnInit {
15
+ entityFileService: EntityFileService;
15
16
  location: Location;
16
17
  private alertService;
17
18
  private dialog;
@@ -29,9 +30,6 @@ export declare class EntityFilesViewAllComponent implements OnInit {
29
30
  viewMode: 'list' | 'timeline';
30
31
  fileDropperHeight: string;
31
32
  isShowDragDropSection: boolean;
32
- documentIds: any[];
33
- isAllSelected: boolean;
34
- total: number;
35
33
  /**
36
34
  * Should we allow tagging entity-files?
37
35
  */
@@ -41,15 +39,8 @@ export declare class EntityFilesViewAllComponent implements OnInit {
41
39
  viewerConfig: ViewerConfig;
42
40
  title: string;
43
41
  filters: any;
44
- entityFiles: any[];
45
42
  displayedColumns: string[];
46
- isWorking: boolean;
47
- page: number;
48
- perPage: number;
49
- lastPage: number;
50
43
  fileConfig: FileDropperConfig;
51
- fileList: any[];
52
- filterFormGroup: UntypedFormGroup;
53
44
  updateRowForm: UntypedFormGroup;
54
45
  user: User;
55
46
  isShowCreateAction: boolean;
@@ -65,20 +56,11 @@ export declare class EntityFilesViewAllComponent implements OnInit {
65
56
  constructor(entityFileService: EntityFileService, location: Location, alertService: AlertService, dialog: MatDialog, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService, currentUserService: CurrentUserService);
66
57
  ngOnInit(): void;
67
58
  listenRoutes(): void;
68
- fetchEntityFilesDetails(): void;
59
+ loadData(): void;
69
60
  addEntityFile(): void;
70
61
  editEntityFile(file: any): void;
71
- deleteEntityFile(file: any): void;
72
- onScroll(): void;
73
- reload(): void;
74
- ngOnDestroy(): void;
75
- resetFieldValue(event: any, field: any): void;
76
62
  sizeOf(bytes: any): string;
77
63
  fileChanged(event: any): Promise<void>;
78
- selectAll(): void;
79
- employeeListModified(event: any, employee: any): void;
80
- unCheckAll(): void;
81
- resetFieldValueOfRow(field: string, event: any): void;
82
64
  bulkUpdate(fieldName: any): Promise<void>;
83
65
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityFilesViewAllComponent, never>;
84
66
  static ɵcmp: i0.ɵɵComponentDeclaration<EntityFilesViewAllComponent, "app-entity-files-view-all", never, { "entityId": { "alias": "entityId"; "required": false; }; "entityType": { "alias": "entityType"; "required": false; }; "viewOnly": { "alias": "viewOnly"; "required": false; }; "removeSearch": { "alias": "removeSearch"; "required": false; }; "hideTitleAndDetails": { "alias": "hideTitleAndDetails"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "allowMultipleFiles": { "alias": "allowMultipleFiles"; "required": false; }; "allowBulkUpdate": { "alias": "allowBulkUpdate"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "fileDropperHeight": { "alias": "fileDropperHeight"; "required": false; }; "isShowDragDropSection": { "alias": "isShowDragDropSection"; "required": false; }; "useTechlifyTags": { "alias": "useTechlifyTags"; "required": false; }; "techlifyTagCategories": { "alias": "techlifyTagCategories"; "required": false; }; "techlifyTagConfig": { "alias": "techlifyTagConfig"; "required": false; }; "title": { "alias": "title"; "required": false; }; "permission": { "alias": "permission"; "required": false; }; }, {}, never, never, false, never>;
@@ -13,8 +13,10 @@ import * as i11 from "../searchable-selector/searchable-selector.module";
13
13
  import * as i12 from "../read-more/read-more.module";
14
14
  import * as i13 from "@angular/material/progress-bar";
15
15
  import * as i14 from "../pipes/wrap.pipe";
16
+ import * as i15 from "../techlify-icon/techlify-icon.module";
17
+ import * as i16 from "../delete-button/techlify-delete-button.component";
16
18
  export declare class EntityFilesViewAllModule {
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityFilesViewAllModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<EntityFilesViewAllModule, [typeof i1.EntityFileFormComponent, typeof i2.EntityFilesViewAllComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.FileDropperModule, typeof i6.DocumentViewerModule, typeof i7.InfiniteScrollDirective, typeof i8.ActionPopupModule, typeof i9.MaterialModule, typeof i10.TechlifyTaggerTagFormFieldModule, typeof i11.SearchableSelectorModule, typeof i12.ReadMoreModule, typeof i13.MatProgressBarModule, typeof i14.WrapPipe], [typeof i2.EntityFilesViewAllComponent]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EntityFilesViewAllModule, [typeof i1.EntityFileFormComponent, typeof i2.EntityFilesViewAllComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.FileDropperModule, typeof i6.DocumentViewerModule, typeof i7.InfiniteScrollDirective, typeof i8.ActionPopupModule, typeof i9.MaterialModule, typeof i10.TechlifyTaggerTagFormFieldModule, typeof i11.SearchableSelectorModule, typeof i12.ReadMoreModule, typeof i13.MatProgressBarModule, typeof i14.WrapPipe, typeof i15.TechlifyIconModule, typeof i16.TechlifyDeleteButtonComponent], [typeof i2.EntityFilesViewAllComponent]>;
19
21
  static ɵinj: i0.ɵɵInjectorDeclaration<EntityFilesViewAllModule>;
20
22
  }
@@ -38,6 +38,7 @@ export declare class SearchableSelectorComponent implements ControlValueAccessor
38
38
  selectionChange: EventEmitter<any>;
39
39
  itemsChange: EventEmitter<any>;
40
40
  focusSearchOnOpen: boolean;
41
+ isItemsEmpty: EventEmitter<boolean>;
41
42
  /**
42
43
  * If this is set to true, if there is a pre-selected entity,
43
44
  * the entity that is populated will be emitted when it is set
@@ -90,5 +91,5 @@ export declare class SearchableSelectorComponent implements ControlValueAccessor
90
91
  editItem(event: any): void;
91
92
  ngOnDestroy(): void;
92
93
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchableSelectorComponent, [null, null, null, null, null, { optional: true; self: true; }]>;
93
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchableSelectorComponent, "app-searchable-selector", never, { "valueField": { "alias": "valueField"; "required": false; }; "titleField": { "alias": "titleField"; "required": false; }; "subtitleField": { "alias": "subtitleField"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "add": { "alias": "add"; "required": false; }; "addConfig": { "alias": "addConfig"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "editConfig": { "alias": "editConfig"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "itemComponent": { "alias": "itemComponent"; "required": false; }; "items": { "alias": "items"; "required": false; }; "apiDataProperty": { "alias": "apiDataProperty"; "required": false; }; "cache": { "alias": "cache"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "inDataSearch": { "alias": "inDataSearch"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "focusSearchOnOpen": { "alias": "focusSearchOnOpen"; "required": false; }; "isEmitInitialEvent": { "alias": "isEmitInitialEvent"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; "selectionChange": "selectionChange"; "itemsChange": "itemsChange"; }, never, never, false, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchableSelectorComponent, "app-searchable-selector", never, { "valueField": { "alias": "valueField"; "required": false; }; "titleField": { "alias": "titleField"; "required": false; }; "subtitleField": { "alias": "subtitleField"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "add": { "alias": "add"; "required": false; }; "addConfig": { "alias": "addConfig"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "editConfig": { "alias": "editConfig"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "itemComponent": { "alias": "itemComponent"; "required": false; }; "items": { "alias": "items"; "required": false; }; "apiDataProperty": { "alias": "apiDataProperty"; "required": false; }; "cache": { "alias": "cache"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "inDataSearch": { "alias": "inDataSearch"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "focusSearchOnOpen": { "alias": "focusSearchOnOpen"; "required": false; }; "isEmitInitialEvent": { "alias": "isEmitInitialEvent"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; "selectionChange": "selectionChange"; "itemsChange": "itemsChange"; "isItemsEmpty": "isItemsEmpty"; }, never, never, false, never>;
94
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.65.1",
3
+ "version": "18.67.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",