ngx-techlify-core 18.75.0 → 18.77.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.
- package/esm2022/lib/base-model/techlify-list/techlify-list.component.mjs +4 -4
- package/esm2022/lib/entity-files/entity-file-form/entity-file-form.component.mjs +76 -76
- package/esm2022/lib/entity-files/entity-file-list/entity-file-list.component.mjs +235 -0
- package/esm2022/lib/entity-files/entity-file-list.module.mjs +49 -0
- package/esm2022/lib/entity-files/index.mjs +2 -2
- package/esm2022/lib/pipes/file-size.pipe.mjs +21 -0
- package/esm2022/lib/request-helper/request-helper.service.mjs +9 -9
- package/esm2022/lib/role/permission/permissions-management.component.mjs +3 -3
- package/esm2022/lib/searchable-selector/searchable-selector.component.mjs +4 -2
- package/esm2022/lib/shared.module.mjs +61 -0
- package/esm2022/lib/timeline-filter/calculate-timeline.mjs +1 -1
- package/esm2022/lib/timeline-filter/timeline-filter.component.mjs +4 -2
- package/esm2022/lib/user/user-form.component.mjs +8 -1
- package/esm2022/public-api.mjs +4 -5
- package/fesm2022/ngx-techlify-core.mjs +6311 -6329
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/entity-files/entity-file-form/entity-file-form.component.d.ts +17 -20
- package/lib/entity-files/entity-file-list/entity-file-list.component.d.ts +67 -0
- package/lib/entity-files/entity-file-list.module.d.ts +15 -0
- package/lib/entity-files/index.d.ts +1 -1
- package/lib/pipes/file-size.pipe.d.ts +7 -0
- package/lib/request-helper/request-helper.service.d.ts +4 -3
- package/lib/shared.module.d.ts +16 -0
- package/lib/user/user-form.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -3
- package/esm2022/lib/entity-files/entity-files-view-all.component.mjs +0 -277
- package/esm2022/lib/entity-files/entity-files-view-all.module.mjs +0 -76
- package/esm2022/lib/user-tenant-accept-invitation/user-tenant-accept-invitation.component.mjs +0 -27
- package/esm2022/lib/user-tenant-accept-invitation/user-tenant-accept-invitation.service.mjs +0 -18
- package/lib/entity-files/entity-files-view-all.component.d.ts +0 -67
- package/lib/entity-files/entity-files-view-all.module.d.ts +0 -22
- package/lib/user-tenant-accept-invitation/user-tenant-accept-invitation.component.d.ts +0 -14
- package/lib/user-tenant-accept-invitation/user-tenant-accept-invitation.service.d.ts +0 -8
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
|
+
import { DatePipe } from "@angular/common";
|
|
2
3
|
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
-
import {
|
|
4
|
+
import { UntypedFormBuilder } from "@angular/forms";
|
|
4
5
|
import { EntityFileService } from '../entity-file.service';
|
|
5
6
|
import { FileDropperConfig } from '../../file-dropper/file-dropper.model';
|
|
6
7
|
import { ViewerConfig } from '../../document-viewer/viewer-config.model';
|
|
7
8
|
import { FormValidatorService } from '../../core/form-validator.service';
|
|
8
|
-
import {
|
|
9
|
+
import { TechlifyFormComponent } from '../../base-model';
|
|
10
|
+
import { FormConfigurationFormService } from '../../form-configuration/form-configuration-form.service';
|
|
11
|
+
import { FormConfigurationUtilityService } from '../../form-configuration/form-configuration-utility.service';
|
|
9
12
|
import { TechlifyTaggerTagFormConfigModel } from "../../tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model";
|
|
10
13
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class EntityFileFormComponent implements OnInit {
|
|
14
|
+
export declare class EntityFileFormComponent extends TechlifyFormComponent implements OnInit {
|
|
12
15
|
dialogRef: MatDialogRef<EntityFileFormComponent>;
|
|
13
16
|
data: any;
|
|
14
|
-
|
|
17
|
+
protected formValidatorService: FormValidatorService;
|
|
18
|
+
protected service: EntityFileService;
|
|
15
19
|
private fb;
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
|
|
19
|
-
assignmentFileFirstAttempt: boolean;
|
|
20
|
-
updateMode: boolean;
|
|
20
|
+
private formConfigService;
|
|
21
|
+
private datePipe;
|
|
22
|
+
errorMessages: any;
|
|
21
23
|
fileConfig: FileDropperConfig;
|
|
22
24
|
fileList: any[];
|
|
23
25
|
viewerConfig: ViewerConfig;
|
|
24
26
|
hideTitleAndDetails: boolean;
|
|
25
|
-
isSaving: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Should we allow tagging entity-files?
|
|
28
|
-
*/
|
|
29
27
|
useTechlifyTags: boolean;
|
|
30
28
|
techlifyTagCategories: string[];
|
|
31
29
|
techlifyTagConfig: TechlifyTaggerTagFormConfigModel;
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
formConfigurationUtilityService: FormConfigurationUtilityService;
|
|
31
|
+
isFormConfigurationLoaded: boolean;
|
|
32
|
+
constructor(dialogRef: MatDialogRef<EntityFileFormComponent>, data: any, formValidatorService: FormValidatorService, service: EntityFileService, fb: UntypedFormBuilder, formConfigService: FormConfigurationFormService, datePipe: DatePipe);
|
|
34
33
|
private createForm;
|
|
35
34
|
ngOnInit(): void;
|
|
36
|
-
|
|
35
|
+
private initializeFormConfiguration;
|
|
36
|
+
submit(model?: any): void;
|
|
37
|
+
finalisedResponse(response: any): void;
|
|
37
38
|
fileChanged(event: any): Promise<void>;
|
|
38
39
|
removeFile(): Promise<void>;
|
|
39
|
-
/**Method to evaluate form fields*/
|
|
40
|
-
isFieldValid(field: string): any;
|
|
41
|
-
/**Method to find error in form fields*/
|
|
42
|
-
getErrorMessage(field: string): any;
|
|
43
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityFileFormComponent, never>;
|
|
44
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<EntityFileFormComponent, "entity-file-form", never, {}, {}, never, never, false, never>;
|
|
45
42
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { EntityFileFormComponent } from '../entity-file-form/entity-file-form.component';
|
|
3
|
+
import { EntityFileService } from '../entity-file.service';
|
|
4
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
5
|
+
import { AlertService } from '../../core/alert.service';
|
|
6
|
+
import { ViewerConfig } from '../../document-viewer/viewer-config.model';
|
|
7
|
+
import { FileDropperConfig } from '../../file-dropper';
|
|
8
|
+
import { ErrorHandlerService } from '../../core/error-handler.service';
|
|
9
|
+
import { TechlifyTaggerTagFormConfigModel } from "../../tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model";
|
|
10
|
+
import { TechlifyListComponent } from '../../base-model';
|
|
11
|
+
import { NgxPermissionsService } from 'ngx-permissions';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* We are using both app-entity-file-list and app-entity-files-view-all
|
|
15
|
+
* to ensure backward compatibility with older projects `ngx-techlify-documents, ngx-techlify-checksheets`
|
|
16
|
+
* etc. `app-entity-files-view-all` will be removed by `v18.80.0`
|
|
17
|
+
*/
|
|
18
|
+
export declare class EntityFileListComponent extends TechlifyListComponent implements OnInit {
|
|
19
|
+
service: EntityFileService;
|
|
20
|
+
private alertService;
|
|
21
|
+
private fb;
|
|
22
|
+
private errorHandler;
|
|
23
|
+
private permissionsService;
|
|
24
|
+
entityId: number;
|
|
25
|
+
entityType: string;
|
|
26
|
+
viewOnly: boolean;
|
|
27
|
+
removeSearch: boolean;
|
|
28
|
+
hideTitleAndDetails: boolean;
|
|
29
|
+
displayMode: boolean;
|
|
30
|
+
allowMultipleFiles: boolean;
|
|
31
|
+
allowBulkUpdate: boolean;
|
|
32
|
+
viewMode: 'list' | 'timeline';
|
|
33
|
+
fileDropperHeight: string;
|
|
34
|
+
isShowDragDropSection: boolean;
|
|
35
|
+
set isFilterPatchFromRoute(value: boolean);
|
|
36
|
+
get isFilterPatchFromRoute(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Should we allow tagging entity-files?
|
|
39
|
+
*/
|
|
40
|
+
useTechlifyTags: boolean;
|
|
41
|
+
techlifyTagCategories: string[];
|
|
42
|
+
techlifyTagConfig: TechlifyTaggerTagFormConfigModel;
|
|
43
|
+
entityFileForm: import("@angular/core").WritableSignal<typeof EntityFileFormComponent>;
|
|
44
|
+
formData: Record<string, any>;
|
|
45
|
+
viewerConfig: ViewerConfig;
|
|
46
|
+
title: string;
|
|
47
|
+
displayedColumns: string[];
|
|
48
|
+
fileConfig: FileDropperConfig;
|
|
49
|
+
updateRowForm: UntypedFormGroup;
|
|
50
|
+
isShowCreateAction: boolean;
|
|
51
|
+
isShowUpdateAction: boolean;
|
|
52
|
+
isShowDeleteAction: boolean;
|
|
53
|
+
isShowReadAction: boolean;
|
|
54
|
+
permission: {
|
|
55
|
+
create: string;
|
|
56
|
+
update: string;
|
|
57
|
+
delete: string;
|
|
58
|
+
read: string;
|
|
59
|
+
};
|
|
60
|
+
constructor(service: EntityFileService, alertService: AlertService, fb: UntypedFormBuilder, errorHandler: ErrorHandlerService, permissionsService: NgxPermissionsService);
|
|
61
|
+
ngOnInit(): Promise<void>;
|
|
62
|
+
loadData(): void;
|
|
63
|
+
fileChanged(event: any): Promise<void>;
|
|
64
|
+
bulkUpdate(fieldName: any): Promise<void>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityFileListComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityFileListComponent, "app-entity-file-list, 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; }; "isFilterPatchFromRoute": { "alias": "isFilterPatchFromRoute"; "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>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./entity-file-form/entity-file-form.component";
|
|
3
|
+
import * as i2 from "./entity-file-list/entity-file-list.component";
|
|
4
|
+
import * as i3 from "../shared.module";
|
|
5
|
+
import * as i4 from "../file-dropper/file-dropper.module";
|
|
6
|
+
import * as i5 from "../document-viewer/document-viewer.module";
|
|
7
|
+
import * as i6 from "../tag/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module";
|
|
8
|
+
import * as i7 from "../read-more/read-more.module";
|
|
9
|
+
import * as i8 from "../pipes/wrap.pipe";
|
|
10
|
+
import * as i9 from "../pipes/file-size.pipe";
|
|
11
|
+
export declare class EntityFileListModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityFileListModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EntityFileListModule, [typeof i1.EntityFileFormComponent, typeof i2.EntityFileListComponent], [typeof i3.SharedModule, typeof i4.FileDropperModule, typeof i5.DocumentViewerModule, typeof i6.TechlifyTaggerTagFormFieldModule, typeof i7.ReadMoreModule, typeof i8.WrapPipe, typeof i9.FileSizePipe], [typeof i2.EntityFileListComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EntityFileListModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FileSizePipe implements PipeTransform {
|
|
4
|
+
transform(bytes: any): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileSizePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FileSizePipe, "fileSize", true>;
|
|
7
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { DatePipe } from '@angular/common';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class RequestHelperService {
|
|
5
6
|
private router;
|
|
6
7
|
private activatedRoute;
|
|
7
|
-
|
|
8
|
+
private datePipe;
|
|
9
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, datePipe: DatePipe);
|
|
8
10
|
/**
|
|
9
11
|
* Update the form values from the URL query params.
|
|
10
12
|
* @param formGroup FormGroup
|
|
@@ -14,10 +16,9 @@ export declare class RequestHelperService {
|
|
|
14
16
|
/**
|
|
15
17
|
* Convert the object to form data for the request.
|
|
16
18
|
* @param data Data Object
|
|
17
|
-
* @param config Optional
|
|
18
19
|
* @return Object
|
|
19
20
|
*/
|
|
20
|
-
convertToFormData(data: any
|
|
21
|
+
convertToFormData(data: any): any;
|
|
21
22
|
/**
|
|
22
23
|
* Update URL with the filters.
|
|
23
24
|
* @param queryParams Query Params
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "ngx-infinite-scroll";
|
|
3
|
+
import * as i2 from "./delete-button/techlify-delete-button.component";
|
|
4
|
+
import * as i3 from "./form-button/techlify-form-button.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "./form-configuration/form-configuration-for-form/form-configuration-for-form.module";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "./material.module";
|
|
9
|
+
import * as i8 from "./searchable-selector/searchable-selector.module";
|
|
10
|
+
import * as i9 from "./timeline-filter/timeline-filter.module";
|
|
11
|
+
import * as i10 from "./techlify-icon/techlify-icon.module";
|
|
12
|
+
export declare class SharedModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.InfiniteScrollDirective, typeof i2.TechlifyDeleteButtonComponent, typeof i3.TechlifyFormButtonComponent], [typeof i4.CommonModule, typeof i5.FormConfigurationForFormModule, typeof i6.FormsModule, typeof i1.InfiniteScrollDirective, typeof i7.MaterialModule, typeof i6.ReactiveFormsModule, typeof i8.SearchableSelectorModule, typeof i2.TechlifyDeleteButtonComponent, typeof i9.TimelineFilterModule, typeof i3.TechlifyFormButtonComponent, typeof i10.TechlifyIconModule]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
16
|
+
}
|
|
@@ -33,6 +33,7 @@ export declare class UserFormComponent implements OnInit {
|
|
|
33
33
|
fileList: any[];
|
|
34
34
|
constructor(dialogRef: MatDialogRef<UserFormComponent>, user: any, http: HttpService, alertService: AlertService, errorHandler: ErrorHandlerService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userService: UserService, userConfigService: UserConfigService);
|
|
35
35
|
get roleForms(): UntypedFormArray;
|
|
36
|
+
get canUpdateUserCredential(): boolean;
|
|
36
37
|
ngOnInit(): void;
|
|
37
38
|
loadRoles(): void;
|
|
38
39
|
save(): Promise<void>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export * from './lib/core/core.module';
|
|
|
15
15
|
export * from './lib/action-popup/action-popup.module';
|
|
16
16
|
export * from './lib/data-table/data-table.module';
|
|
17
17
|
export * from './lib/document-viewer/document-viewer.module';
|
|
18
|
-
export * from './lib/entity-files/entity-
|
|
18
|
+
export * from './lib/entity-files/entity-file-list.module';
|
|
19
|
+
/** @deprecated use EntityFileListModule — kept because ngx-techlify-checksheet still imports the old name */
|
|
20
|
+
export { EntityFileListModule as EntityFilesViewAllModule } from './lib/entity-files/entity-file-list.module';
|
|
19
21
|
export * from './lib/file-dropper/file-dropper.module';
|
|
20
22
|
export * from './lib/note/note.module';
|
|
21
23
|
export * from './lib/searchable-selector/searchable-selector.module';
|
|
@@ -202,5 +204,3 @@ export * from './lib/tag/techlify-tagger-tag-form/techlify-tagger-tag-form.compo
|
|
|
202
204
|
export * from './lib/tag/tag.service';
|
|
203
205
|
export * from './lib/techlify-auto-complete-select/techlify-auto-complete-select.component';
|
|
204
206
|
export * from './lib/techlify-currency-pipe/techlify-currency-pipe.directive';
|
|
205
|
-
export * from './lib/user-tenant-accept-invitation/user-tenant-accept-invitation.component';
|
|
206
|
-
export * from './lib/user-tenant-accept-invitation/user-tenant-accept-invitation.service';
|