@smartbit4all/ng-client 4.2.42 → 4.2.44

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.
@@ -6,23 +6,25 @@ export declare class PhotoCaptureWidgetComponent {
6
6
  videoRef: ElementRef<HTMLVideoElement>;
7
7
  canvasRef: ElementRef<HTMLCanvasElement>;
8
8
  fileInputRef: ElementRef<HTMLInputElement>;
9
+ maxFileSize?: number;
9
10
  photoCaptured: EventEmitter<File[]>;
10
11
  cameraActive: boolean;
11
12
  isCaptured: boolean;
12
13
  stream?: MediaStream;
13
14
  compLib: ComponentLibrary;
14
15
  componentLibrary: typeof ComponentLibrary;
15
- mobileButton: UiActionModel;
16
- startCameraButton: UiActionModel;
17
- stopCameraButton: UiActionModel;
16
+ toggleCameraButton: UiActionModel;
18
17
  captureButton: UiActionModel;
19
18
  constructor(compLib?: ComponentLibrary);
20
19
  isMobile(): boolean;
21
20
  startCamera(): Promise<void>;
22
21
  stopCamera(): void;
23
- capturePhoto(): void;
22
+ capturePhoto(): Promise<void>;
24
23
  getPhotoDataURL(): string;
25
- onFileSelected(event: Event): void;
24
+ onFileSelected(event: Event): Promise<void>;
25
+ toggleCamera(): void;
26
+ updateToggleButton(): void;
27
+ private compressImageFile;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PhotoCaptureWidgetComponent, [{ optional: true; }]>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<PhotoCaptureWidgetComponent, "photo-capture-widget", never, {}, { "photoCaptured": "photoCaptured"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PhotoCaptureWidgetComponent, "photo-capture-widget", never, { "maxFileSize": { "alias": "maxFileSize"; "required": false; }; }, { "photoCaptured": "photoCaptured"; }, never, never, false, never>;
28
30
  }
@@ -23,9 +23,12 @@ export declare class UiActionFileUploadDialogComponent implements OnDestroy {
23
23
  maxSizeMb: number;
24
24
  fileFormats?: string[];
25
25
  isMultiple?: boolean;
26
+ hasFiles?: boolean;
26
27
  uploadedFiles: any[];
28
+ uploadFormatMap: Record<UploadWidgetType, string[]>;
27
29
  constructor(service: UiActionFileUploadDialogService, compLib: ComponentLibrary, manager: UiActionDescriptorService, cdr: ChangeDetectorRef);
28
30
  ngOnDestroy(): void;
31
+ isMobile(): boolean;
29
32
  setUp(): Promise<void>;
30
33
  getTitle(): string;
31
34
  getText(): string;
@@ -41,7 +44,6 @@ export declare class UiActionFileUploadDialogComponent implements OnDestroy {
41
44
  uploadRecording(file: any): void;
42
45
  uploadImage(files: any): void;
43
46
  loadFilesIntoWidget(files: File[]): void;
44
- getContainsFiles(): boolean;
45
47
  static ɵfac: i0.ɵɵFactoryDeclaration<UiActionFileUploadDialogComponent, never>;
46
48
  static ɵcmp: i0.ɵɵComponentDeclaration<UiActionFileUploadDialogComponent, "lib-ui-action-file-upload-dialog", never, {}, {}, never, never, false, never>;
47
49
  }
@@ -1,5 +1,6 @@
1
1
  import { ElementRef, OnDestroy, AfterViewInit, EventEmitter, OnInit } from '@angular/core';
2
2
  import { ComponentLibrary } from '../../../../utility/componentLibrary';
3
+ import { UiActionModel } from '../../../ui-action.model';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit, OnDestroy {
5
6
  waveformRef: ElementRef;
@@ -14,6 +15,10 @@ export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit
14
15
  recordedBlob: Blob | null;
15
16
  time: string;
16
17
  isPlaying: boolean;
18
+ micButton: UiActionModel;
19
+ stopButton: UiActionModel;
20
+ saveButton: UiActionModel;
21
+ playStopButton: UiActionModel;
17
22
  constructor(compLib?: ComponentLibrary);
18
23
  ngOnInit(): void;
19
24
  ngAfterViewInit(): void;
@@ -25,6 +30,7 @@ export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit
25
30
  replayRecording(): void;
26
31
  ngOnDestroy(): void;
27
32
  private addAlphaToColor;
33
+ updatePlayStopButton(): void;
28
34
  static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordWidgetComponent, [{ optional: true; }]>;
29
35
  static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordWidgetComponent, "voice-record-widget", never, { "color": { "alias": "color"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, { "recordingSaved": "recordingSaved"; }, never, never, false, never>;
30
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.2.42",
3
+ "version": "4.2.44",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file