bpm-core 0.0.146 → 0.0.148
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/README.md +13 -1
- package/fesm2022/bpm-core.mjs +209 -38
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +0 -1
- package/lib/components/shared-components/form-field/info-item/info-item.component.d.ts +0 -1
- package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +0 -1
- package/lib/components/shared-components/form-field/shared-imports.d.ts +1 -1
- package/lib/constants/constants.d.ts +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/placeholder.d.ts +2 -0
- package/lib/constants/regex.d.ts +1 -0
- package/lib/enums/cache-props.enum.d.ts +3 -0
- package/lib/pipes/extract-email-from-profile-image.pipe.d.ts +7 -0
- package/lib/services/cache.service.d.ts +12 -0
- package/lib/shared/image-optimization/directives/profile-image-by-email.directive.d.ts +30 -0
- package/lib/shared/image-optimization/index.d.ts +1 -0
- package/lib/shared/image-optimization/services/email-util.d.ts +4 -0
- package/lib/shared/image-optimization/services/profile-img.service.d.ts +15 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -7,7 +7,6 @@ export declare class SubmitDialogComponent {
|
|
|
7
7
|
successData: any;
|
|
8
8
|
inboxUri: any;
|
|
9
9
|
constructor(data: any, i18n: CoreI18nService, coreService: CoreService);
|
|
10
|
-
getImage(email: string): string;
|
|
11
10
|
viewForm(formId: string, formName?: string): void;
|
|
12
11
|
getStatus(statusKey: string): "success" | "danger" | "warning";
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitDialogComponent, never>;
|
|
@@ -17,7 +17,6 @@ export declare class InfoItemComponent implements OnInit {
|
|
|
17
17
|
constructor(i18n: CoreI18nService);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
viewForm(url: string): void;
|
|
20
|
-
getImage(email: string): string;
|
|
21
20
|
getDate(date: any): string;
|
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoItemComponent, never>;
|
|
23
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoItemComponent, "app-info-item", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "name": { "alias": "name"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dateType": { "alias": "dateType"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "arrayList": { "alias": "arrayList"; "required": false; }; "actionType": { "alias": "actionType"; "required": false; }; "download": { "alias": "download"; "required": false; }; }, {}, never, never, true, never>;
|
package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export declare class SearchEmployeeComponent<Type> extends ControlValueAccessorD
|
|
|
28
28
|
deleteRow(ind: number, rowData: any): void;
|
|
29
29
|
onLoadOptions(event: any): void;
|
|
30
30
|
includeData(option: any, filterValue: string): any;
|
|
31
|
-
getImage(id: string): string;
|
|
32
31
|
selectOption(object: any, ev: any): void;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchEmployeeComponent<any>, never>;
|
|
34
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchEmployeeComponent<any>, "app-search-employee", never, { "valueName": { "alias": "valueName"; "required": false; }; "className": { "alias": "className"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "data": { "alias": "data"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "error": { "alias": "error"; "required": false; }; "ApiAlias": { "alias": "ApiAlias"; "required": false; }; "parameters": { "alias": "parameters"; "required": false; }; "hasCustomAPI": { "alias": "hasCustomAPI"; "required": false; }; "showEdit": { "alias": "showEdit"; "required": false; }; "arrayList": { "alias": "arrayList"; "required": false; }; "isUniqueUsers": { "alias": "isUniqueUsers"; "required": false; }; "hasCustomApi": { "alias": "hasCustomApi"; "required": false; }; }, { "selectedEmployee": "selectedEmployee"; "emitedDeletedValue": "emitedDeletedValue"; "customApiEmit": "customApiEmit"; }, never, never, true, never>;
|
|
@@ -9,4 +9,4 @@ import { NgClass } from "@angular/common";
|
|
|
9
9
|
import { TranslatePipe } from "../../../pipes/translate.pipe";
|
|
10
10
|
export declare const MatDatePickerImports: (typeof MatDatepickerToggle | typeof MatDatepickerInput | typeof MatDatepickerModule)[];
|
|
11
11
|
export declare const MatFormImports: (typeof MatFormFieldModule | typeof MatFormField | typeof MatInput)[];
|
|
12
|
-
export declare const Shareds: (typeof
|
|
12
|
+
export declare const Shareds: (typeof FormLabelComponent | typeof ValidationErrorsComponent | typeof InfoItemComponent | typeof ReactiveFormsModule | typeof NgClass | typeof TranslatePipe)[];
|
|
@@ -9,6 +9,7 @@ export declare const TRUE_STRING = "TRUE";
|
|
|
9
9
|
export declare const FALSE_STRING = "FALSE";
|
|
10
10
|
export declare const TRUE_BOOL = true;
|
|
11
11
|
export declare const FALSE_BOOL = false;
|
|
12
|
+
export declare const STRING = "string";
|
|
12
13
|
export declare const STATE_MACHINE_STATUS_IDLE = "idle";
|
|
13
14
|
export declare const STATE_MACHINE_STATUS_FETCHING = "fetching";
|
|
14
15
|
export declare const STATE_MACHINE_STATUS_SENDING = "sending";
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EMAIL: RegExp;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ExtractEmailFromProfileImagePipe implements PipeTransform {
|
|
4
|
+
transform(src: string | null | undefined): string | null;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtractEmailFromProfileImagePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ExtractEmailFromProfileImagePipe, "extractEmailFromProfileImage", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CacheProps } from '../enums/cache-props.enum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CacheService {
|
|
5
|
+
private readonly profileImg;
|
|
6
|
+
set(prop: CacheProps, key: string, value: Observable<string>): void;
|
|
7
|
+
get(prop: CacheProps, key: string): Observable<string>;
|
|
8
|
+
has(prop: CacheProps, key: string): boolean;
|
|
9
|
+
delete(prop: CacheProps, key: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CacheService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CacheService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Directive to load and cache a profile image based on an email address.
|
|
4
|
+
*
|
|
5
|
+
* It automatically updates the `src` of an `img` element or the `image` property of a `ds-avatar` element with the loaded Base64 image.
|
|
6
|
+
*
|
|
7
|
+
* Inputs:
|
|
8
|
+
* - `profileImageByEmail`: The email address to load the profile image for.
|
|
9
|
+
*
|
|
10
|
+
* Example usage:
|
|
11
|
+
* ```html
|
|
12
|
+
* <img profileImageByEmail="user@example.com" />
|
|
13
|
+
* <ds-avatar profileImageByEmail="user@example.com"></ds-avatar>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @selector `img[profileImageByEmail], ds-avatar[profileImageByEmail]`
|
|
17
|
+
*/
|
|
18
|
+
export declare class ProfileImageByEmailDirective {
|
|
19
|
+
/**
|
|
20
|
+
* The email address used to fetch the profile image.
|
|
21
|
+
*/
|
|
22
|
+
profileImageByEmail: import("@angular/core").InputSignal<string>;
|
|
23
|
+
private hostRef;
|
|
24
|
+
private renderer;
|
|
25
|
+
private profileImgService;
|
|
26
|
+
constructor();
|
|
27
|
+
private setImage;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileImageByEmailDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ProfileImageByEmailDirective, "img[profileImageByEmail], ds-avatar[profileImageByEmail]", never, { "profileImageByEmail": { "alias": "profileImageByEmail"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './directives/profile-image-by-email.directive';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CacheService } from '../../../services/cache.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProfileImageService {
|
|
6
|
+
private http;
|
|
7
|
+
private cacheService;
|
|
8
|
+
constructor(http: HttpClient, cacheService: CacheService);
|
|
9
|
+
load(email: string): Observable<string>;
|
|
10
|
+
private getPlaceholder;
|
|
11
|
+
private getImageAsBase64;
|
|
12
|
+
private blobToBase64$;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileImageService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileImageService>;
|
|
15
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ export * from './lib/validators';
|
|
|
13
13
|
export * from './lib/services';
|
|
14
14
|
export * from './lib/regex';
|
|
15
15
|
export * from './lib/directives/input-map-filter';
|
|
16
|
+
export * from './lib/shared/image-optimization';
|
|
16
17
|
export declare const MY_LIB_CONFIG_TOKEN: InjectionToken<MyLibConfig>;
|