ngx-techlify-core 18.7.1 → 18.8.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/company-information/client.service.mjs +19 -0
- package/esm2022/lib/company-information/company-info-display/company-info-display.component.mjs +16 -0
- package/esm2022/lib/company-information/company-information/company-information.component.mjs +94 -0
- package/esm2022/lib/file-upload-button/file-upload-button.component.mjs +47 -0
- package/esm2022/lib/image-preview/image-preview.component.mjs +26 -0
- package/esm2022/lib/import-csv/field-mapping/field-mapping.component.mjs +3 -3
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/ngx-techlify-core.mjs +175 -8
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/company-information/client.service.d.ts +9 -0
- package/lib/company-information/company-info-display/company-info-display.component.d.ts +6 -0
- package/lib/company-information/company-information/company-information.component.d.ts +24 -0
- package/lib/file-dropper/file-dropper.component.d.ts +1 -1
- package/lib/file-upload-button/file-upload-button.component.d.ts +20 -0
- package/lib/image-preview/image-preview.component.d.ts +9 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/ngx-techlify-core-18.7.1.tgz +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TechlifyServiceBaseClass } from '../base-model';
|
|
2
|
+
import { HttpService } from '../core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ClientService extends TechlifyServiceBaseClass {
|
|
5
|
+
protected httpService: HttpService;
|
|
6
|
+
constructor(httpService: HttpService);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClientService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClientService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CompanyInfoDisplayComponent {
|
|
3
|
+
client: any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompanyInfoDisplayComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompanyInfoDisplayComponent, "app-company-info-display", never, { "client": { "alias": "client"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { Location } from '@angular/common';
|
|
4
|
+
import { ClientService } from '../client.service';
|
|
5
|
+
import { TechlifyFormComponentInterface } from '../../base-model';
|
|
6
|
+
import { CurrentUserService, User } from '../../user';
|
|
7
|
+
import { AlertService, FormValidatorService } from '../../core';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CompanyInformationComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
10
|
+
private formBuilder;
|
|
11
|
+
private currentUserService;
|
|
12
|
+
private clientService;
|
|
13
|
+
private alertService;
|
|
14
|
+
private location;
|
|
15
|
+
isWorking: boolean;
|
|
16
|
+
user: User;
|
|
17
|
+
constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, currentUserService: CurrentUserService, clientService: ClientService, alertService: AlertService, location: Location);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
save(): void;
|
|
20
|
+
onFileUploaded(uploadedFile: any[], field: string): void;
|
|
21
|
+
redirectBack(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompanyInformationComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompanyInformationComponent, "app-company-information", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -26,7 +26,7 @@ export declare class FileDropperComponent implements OnInit {
|
|
|
26
26
|
/**Method to add files in the array */
|
|
27
27
|
addFiles(fileArray: any): void;
|
|
28
28
|
/**Method to sort the files in asc */
|
|
29
|
-
sortFiles(a: any, b: any):
|
|
29
|
+
sortFiles(a: any, b: any): 0 | 1 | -1;
|
|
30
30
|
/**Method tp validate the file size */
|
|
31
31
|
fileSizeAllowed(file: any): boolean;
|
|
32
32
|
/**Method invokes when the drop box is clicked to upload the file */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EntityFileService } from '../entity-files';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FileUploadButtonComponent {
|
|
5
|
+
private entityFileService;
|
|
6
|
+
config: {
|
|
7
|
+
fileId?: string | undefined;
|
|
8
|
+
multiple?: boolean | undefined;
|
|
9
|
+
accept?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
uploaded: EventEmitter<any[]>;
|
|
12
|
+
readonly DEFAULT_FILE_ID = "file-upload-button";
|
|
13
|
+
isUploading: boolean;
|
|
14
|
+
constructor(entityFileService: EntityFileService);
|
|
15
|
+
onFileChange(event: any): Promise<void>;
|
|
16
|
+
selectFiles(event: any): void;
|
|
17
|
+
private uploadFiles;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadButtonComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadButtonComponent, "app-file-upload-button", never, { "config": { "alias": "config"; "required": false; }; }, { "uploaded": "uploaded"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ImagePreviewComponent {
|
|
4
|
+
path: string;
|
|
5
|
+
height: number;
|
|
6
|
+
removed: EventEmitter<any>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePreviewComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePreviewComponent, "app-image-preview", never, { "path": { "alias": "path"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "removed": "removed"; }, never, never, true, never>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -126,3 +126,6 @@ export * from './lib/number-input-button';
|
|
|
126
126
|
export * from './lib/column-selector';
|
|
127
127
|
export * from './lib/reset-password';
|
|
128
128
|
export * from './lib/reset-password/reset-password.module';
|
|
129
|
+
export * from './lib/company-information/company-information/company-information.component';
|
|
130
|
+
export * from './lib/company-information/company-info-display/company-info-display.component';
|
|
131
|
+
export * from './lib/company-information/client.service';
|
|
Binary file
|