ets-fe-ng-sdk 17.0.309 → 17.0.310
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/Shared/components/btn/btn.model.mjs +1 -1
- package/esm2022/lib/Shared/components/btn/btn.service.mjs +168 -164
- package/esm2022/lib/Shared/components/file-upload/file-upload.component.mjs +17 -5
- package/esm2022/lib/Shared/components/webcam-media/webcam-media.component.mjs +266 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ets-fe-ng-sdk.mjs +522 -253
- package/fesm2022/ets-fe-ng-sdk.mjs.map +1 -1
- package/lib/Services/utility.service.d.ts +1 -1
- package/lib/Shared/components/btn/btn.component.d.ts +1 -1
- package/lib/Shared/components/btn/btn.model.d.ts +1 -1
- package/lib/Shared/components/btn/btn.service.d.ts +7 -0
- package/lib/Shared/components/file-upload/file-upload.component.d.ts +9 -3
- package/lib/Shared/components/info-dialog/info-dialog.component.d.ts +1 -1
- package/lib/Shared/components/webcam-media/webcam-media.component.d.ts +88 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -57,7 +57,7 @@ export declare class UtilityService<TEnvironment extends SDKEnvironment = SDKEnv
|
|
|
57
57
|
debouncerService: DebouncerService;
|
|
58
58
|
numberPipe: DecimalPipe;
|
|
59
59
|
constructor();
|
|
60
|
-
formControl: <T>(value?: T, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (
|
|
60
|
+
formControl: <T>(value?: T, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (AsyncValidatorFn | AsyncValidatorFn[] | ValidatorFn | ValidatorFn[] | T | FormControlOptions)[];
|
|
61
61
|
back: () => void;
|
|
62
62
|
onlyOneInput(inputs: FormControl[]): Subscription;
|
|
63
63
|
copyPayload(payload: any): Promise<void>;
|
|
@@ -25,7 +25,7 @@ export declare class BtnComponent implements OnInit {
|
|
|
25
25
|
set _type(v: BtnType);
|
|
26
26
|
set _group(v: BtnGroup);
|
|
27
27
|
_mclass: import("@angular/core").WritableSignal<string>;
|
|
28
|
-
actionType: import("@angular/core").InputSignal<"
|
|
28
|
+
actionType: import("@angular/core").InputSignal<"submit" | "button" | "reset">;
|
|
29
29
|
animate: import("@angular/core").InputSignal<boolean>;
|
|
30
30
|
excludeLogging: boolean;
|
|
31
31
|
loggingValue: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IKVP } from '../../models/index.model';
|
|
2
2
|
export type BtnType = 'clear' | 'close' | 'danger-outline' | 'danger' | 'dark-outline' | 'dark' | 'outline-nm' | 'outline' | 'primary' | 'secondary' | 'success';
|
|
3
3
|
export type BtnGroup = 'add' | 'clone' | 'close' | 'create' | 'save' | 'delete' | 'download' | 'edit' | 'link' | 'search' | 'show' | 'submit' | 'upload';
|
|
4
|
-
export type IconType = 'access' | 'add' | 'adjust' | 'arrowh' | 'bank' | 'calendar' | 'cancel' | 'cash' | 'checked' | 'checklist' | 'clone' | 'close' | 'cogs' | 'delete' | 'download' | 'dropdown' | 'edit' | 'error' | 'export' | 'file' | 'filter' | 'generate' | 'guard' | 'history' | 'home' | 'import' | 'info' | 'link' | 'lock' | 'next' | 'pen' | 'percent' | 'play' | 'post' | 'previous' | 'receipt' | 'recycle' | 'refresh' | 'renew' | 'save' | 'search' | 'shake' | 'show' | 'snooze' | 'spoon' | 'table' | 'tag' | 'truck' | 'unlock' | 'upload' | 'users' | 'view';
|
|
4
|
+
export type IconType = 'access' | 'add' | 'adjust' | 'arrowh' | 'bank' | 'calendar' | 'cancel' | 'cash' | 'checked' | 'pause' | 'checklist' | 'clone' | 'close' | 'stop' | 'cogs' | 'delete' | 'download' | 'dropdown' | 'edit' | 'error' | 'export' | 'file' | 'filter' | 'generate' | 'guard' | 'history' | 'home' | 'import' | 'info' | 'link' | 'lock' | 'next' | 'pen' | 'percent' | 'play' | 'post' | 'previous' | 'receipt' | 'recycle' | 'refresh' | 'renew' | 'save' | 'search' | 'shake' | 'show' | 'snooze' | 'spoon' | 'table' | 'tag' | 'truck' | 'unlock' | 'upload' | 'users' | 'view';
|
|
5
5
|
export interface IBtn extends IKVP {
|
|
6
6
|
action?: (arg?: any) => void;
|
|
7
7
|
group?: BtnGroup;
|
|
@@ -7,6 +7,13 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class BtnService {
|
|
8
8
|
uaS: UserActivityService;
|
|
9
9
|
btnClassConfig: BtnClass;
|
|
10
|
+
buttonIconIndex: {
|
|
11
|
+
[k in IconType]?: {
|
|
12
|
+
icon?: IconDefinition;
|
|
13
|
+
iconString?: string;
|
|
14
|
+
iconPosition?: 'right' | 'left';
|
|
15
|
+
};
|
|
16
|
+
};
|
|
10
17
|
constructor(uaS: UserActivityService);
|
|
11
18
|
getIcon: (iconType: IconType) => {
|
|
12
19
|
icon?: IconDefinition;
|
|
@@ -4,7 +4,13 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class FileUploadComponent implements OnInit {
|
|
5
5
|
help: string;
|
|
6
6
|
label: string;
|
|
7
|
+
mediaWidth: import("@angular/core").ModelSignal<number>;
|
|
7
8
|
class: import("@angular/core").InputSignal<string>;
|
|
9
|
+
useWebcam: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Only useful if using the webcam option
|
|
12
|
+
*/
|
|
13
|
+
fileName: import("@angular/core").InputSignal<string>;
|
|
8
14
|
disabled: boolean;
|
|
9
15
|
multiple: boolean;
|
|
10
16
|
mini: import("@angular/core").InputSignal<boolean>;
|
|
@@ -20,11 +26,11 @@ export declare class FileUploadComponent implements OnInit {
|
|
|
20
26
|
constructor();
|
|
21
27
|
ngOnInit(): void;
|
|
22
28
|
get isSingle(): boolean;
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
protected acceptFiles(...files: File[]): void;
|
|
30
|
+
protected emitFiles(): void;
|
|
25
31
|
onUpload(event: any): void;
|
|
26
32
|
removeFile(index: number): void;
|
|
27
33
|
openDialog(): void;
|
|
28
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "help": { "alias": "help"; "required": false; }; "label": { "alias": "label"; "required": false; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "mini": { "alias": "mini"; "required": false; "isSignal": true; }; "useDocumentModal": { "alias": "useDocumentModal"; "required": false; }; "listFiles": { "alias": "listFiles"; "required": false; "isSignal": true; }; "_accept": { "alias": "accept"; "required": false; }; "file": { "alias": "file"; "required": false; }; "files": { "alias": "files"; "required": false; }; }, { "fileChange": "fileChange"; "filesChange": "filesChange"; }, never, never, true, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "help": { "alias": "help"; "required": false; }; "label": { "alias": "label"; "required": false; }; "mediaWidth": { "alias": "mediaWidth"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "useWebcam": { "alias": "useWebcam"; "required": false; "isSignal": true; }; "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "mini": { "alias": "mini"; "required": false; "isSignal": true; }; "useDocumentModal": { "alias": "useDocumentModal"; "required": false; }; "listFiles": { "alias": "listFiles"; "required": false; "isSignal": true; }; "_accept": { "alias": "accept"; "required": false; }; "file": { "alias": "file"; "required": false; }; "files": { "alias": "files"; "required": false; }; }, { "mediaWidth": "mediaWidthChange"; "fileChange": "fileChange"; "filesChange": "filesChange"; }, never, never, true, never>;
|
|
30
36
|
}
|
|
@@ -20,7 +20,7 @@ export declare class InfoDialogComponent implements OnInit {
|
|
|
20
20
|
yes(): void;
|
|
21
21
|
no(): void;
|
|
22
22
|
handleAction: (event: PointerEvent, item: IInfoDialogBtn) => void;
|
|
23
|
-
cls: (status?: 0 | 1 | 2) => "" | "
|
|
23
|
+
cls: (status?: 0 | 1 | 2) => "danger" | "success" | "info" | "";
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
|
|
25
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WebcamMediaComponent {
|
|
5
|
+
closed: EventEmitter<File>;
|
|
6
|
+
recorderStopped: EventEmitter<Event>;
|
|
7
|
+
recorderErrored: EventEmitter<Event>;
|
|
8
|
+
recorderStarted: EventEmitter<Event>;
|
|
9
|
+
recordingState: EventEmitter<RecordingState>;
|
|
10
|
+
recordingChanged: EventEmitter<File>;
|
|
11
|
+
isVideo: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
useAudio: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
fileName: import("@angular/core").InputSignal<string>;
|
|
14
|
+
fileNameFactory: import("@angular/core").InputSignal<(comp: WebcamMediaComponent) => string>;
|
|
15
|
+
fileType: import("@angular/core").InputSignal<string>;
|
|
16
|
+
extraClass: import("@angular/core").InputSignal<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Seconds
|
|
19
|
+
*/
|
|
20
|
+
recordingNotificationInterval: import("@angular/core").InputSignal<number>;
|
|
21
|
+
isBackground: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
computedRecordingNotificationInterval: import("@angular/core").Signal<number>;
|
|
23
|
+
isPicture: import("@angular/core").Signal<boolean>;
|
|
24
|
+
subject: import("@angular/core").Signal<"Image" | "Video">;
|
|
25
|
+
isPaused: import("@angular/core").Signal<boolean>;
|
|
26
|
+
computedFileType: import("@angular/core").Signal<string>;
|
|
27
|
+
computedFileExtension: import("@angular/core").Signal<string>;
|
|
28
|
+
computedFileName: import("@angular/core").Signal<string>;
|
|
29
|
+
streamingVideoTemplate: import("@angular/core").Signal<TemplateRef<any>>;
|
|
30
|
+
recordingVideoRef: import("@angular/core").Signal<ElementRef<HTMLVideoElement>>;
|
|
31
|
+
recordingVideoRefEl: import("@angular/core").Signal<HTMLVideoElement>;
|
|
32
|
+
streaming: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
preview: import("@angular/core").WritableSignal<boolean>;
|
|
34
|
+
computedPreview: import("@angular/core").Signal<boolean>;
|
|
35
|
+
width: import("@angular/core").ModelSignal<number>;
|
|
36
|
+
height: import("@angular/core").Signal<number>;
|
|
37
|
+
protected canvas: import("@angular/core").WritableSignal<HTMLCanvasElement>;
|
|
38
|
+
mediaFile: import("@angular/core").WritableSignal<File>;
|
|
39
|
+
photoSrc: import("@angular/core").WritableSignal<string>;
|
|
40
|
+
videoSrc: import("@angular/core").WritableSignal<string>;
|
|
41
|
+
stream: import("@angular/core").WritableSignal<MediaStream>;
|
|
42
|
+
sub: Subscription;
|
|
43
|
+
recorder: MediaRecorder;
|
|
44
|
+
isRecording: import("@angular/core").Signal<boolean>;
|
|
45
|
+
recordedBlobs: Blob[];
|
|
46
|
+
recordedTime: import("@angular/core").WritableSignal<number>;
|
|
47
|
+
ngAfterViewInit(): void;
|
|
48
|
+
ngOnDestroy(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Start the webcam stream
|
|
51
|
+
*/
|
|
52
|
+
startUpWebcam(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Indicate that the user is done with the webcam component.
|
|
55
|
+
*
|
|
56
|
+
* Any media obtained will be emitted
|
|
57
|
+
*/
|
|
58
|
+
save(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Indicate that the user is done with the webcam component.
|
|
61
|
+
*
|
|
62
|
+
* Any media obtained will be deleted
|
|
63
|
+
*/
|
|
64
|
+
cancel(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Clear the media taken and close preview
|
|
67
|
+
*/
|
|
68
|
+
clear(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Shutdown the webcam stream
|
|
71
|
+
*/
|
|
72
|
+
closeWebcam(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Capture a photo by fetching the current contents of the video
|
|
75
|
+
* and drawing it into a canvas, then converting that to a PNG
|
|
76
|
+
* format data URL.
|
|
77
|
+
*
|
|
78
|
+
* By drawing it on an offscreen canvas and then
|
|
79
|
+
* drawing that to the screen, we can change its size and/or apply
|
|
80
|
+
* other changes before drawing it.
|
|
81
|
+
*/
|
|
82
|
+
takePicture(): void;
|
|
83
|
+
startRecording: (stream?: MediaStream) => void;
|
|
84
|
+
stopRecording(): void;
|
|
85
|
+
pauseRecording(): void;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebcamMediaComponent, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WebcamMediaComponent, "lib-webcam-media", never, { "isVideo": { "alias": "isVideo"; "required": false; "isSignal": true; }; "useAudio": { "alias": "useAudio"; "required": false; "isSignal": true; }; "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; "fileNameFactory": { "alias": "fileNameFactory"; "required": false; "isSignal": true; }; "fileType": { "alias": "fileType"; "required": false; "isSignal": true; }; "extraClass": { "alias": "extraClass"; "required": false; "isSignal": true; }; "recordingNotificationInterval": { "alias": "recordingNotificationInterval"; "required": false; "isSignal": true; }; "isBackground": { "alias": "isBackground"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "recorderStopped": "recorderStopped"; "recorderErrored": "recorderErrored"; "recorderStarted": "recorderStarted"; "recordingState": "recordingState"; "recordingChanged": "recordingChanged"; "width": "widthChange"; }, never, never, true, never>;
|
|
88
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export * from './lib/Shared/components/modal-header/modal-header.component';
|
|
|
86
86
|
export * from './lib/Shared/components/modal-header/modal-header.module';
|
|
87
87
|
export * from './lib/Shared/components/modal/modal.component';
|
|
88
88
|
export * from './lib/Shared/components/modal/modal.module';
|
|
89
|
+
export * from './lib/Shared/components/webcam-media/webcam-media.component';
|
|
89
90
|
export * from './lib/Shared/components/modal/modal-body.directive';
|
|
90
91
|
export * from './lib/Shared/components/modal/modal-footer.directive';
|
|
91
92
|
export * from './lib/Shared/components/narration-history-comp/narration-history-comp.component';
|