@smartbit4all/ng-client 4.5.5 → 4.5.6

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.
@@ -12,7 +12,6 @@
12
12
  import { UiAction } from '../../../view-context/api/model/uiAction';
13
13
  export interface RecordingUploaderProperties {
14
14
  uploadAction?: UiAction;
15
- doOpen?: boolean;
16
15
  openDirection?: RecordingUploaderPropertiesOpenDirectionEnum;
17
16
  }
18
17
  export declare enum RecordingUploaderPropertiesOpenDirectionEnum {
@@ -14,6 +14,10 @@ import { PropertyMapping } from './propertyMapping';
14
14
  * The definition of an arbitrary selection.
15
15
  */
16
16
  export interface SelectionDefinition {
17
+ /**
18
+ * Namespace of the ValueSet used for this selection.
19
+ */
20
+ valueSetNamespace?: string;
17
21
  /**
18
22
  * Name of the ValueSet used for this selection.
19
23
  */
@@ -1,26 +1,33 @@
1
- import { ElementRef, OnDestroy, AfterViewInit, EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, AfterViewInit, EventEmitter, OnInit, NgZone } from '@angular/core';
2
2
  import { ComponentLibrary } from '../../../../utility/componentLibrary';
3
3
  import { UiActionDescriptor } from '../../../../api';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit, OnDestroy {
6
+ private readonly ngZone;
7
+ private readonly changeDetectorRef;
6
8
  waveformRef: ElementRef;
9
+ mainButton: ElementRef;
10
+ openDirection: 'LEFT' | 'RIGHT';
7
11
  recordingSaved: EventEmitter<Blob>;
8
- private wavesurfer;
9
- private record;
12
+ private wavesurfer?;
13
+ private record?;
10
14
  compLib: ComponentLibrary;
11
15
  componentLibrary: typeof ComponentLibrary;
12
16
  isRecording: boolean;
13
17
  recordedBlob: Blob | null;
14
18
  time: string;
15
19
  isPlaying: boolean;
20
+ isWaveformOpen: boolean;
16
21
  micButton: UiActionDescriptor;
17
22
  stopButton: UiActionDescriptor;
18
23
  saveButton: UiActionDescriptor;
19
24
  playButton: UiActionDescriptor;
20
25
  stopPlaybackButton: UiActionDescriptor;
21
- constructor(compLib?: ComponentLibrary);
26
+ constructor(compLib: ComponentLibrary | undefined, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef);
22
27
  ngOnInit(): void;
23
28
  ngAfterViewInit(): void;
29
+ get isLeftDirection(): boolean;
30
+ private initializeWaveSurferIfNeeded;
24
31
  startRecording(): Promise<void>;
25
32
  private checkHasRecorded;
26
33
  updateProgress(time: number): void;
@@ -29,6 +36,7 @@ export declare class VoiceRecordWidgetComponent implements OnInit, AfterViewInit
29
36
  replayRecording(): void;
30
37
  ngOnDestroy(): void;
31
38
  private addAlphaToColor;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordWidgetComponent, [{ optional: true; }]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordWidgetComponent, "voice-record-widget", never, {}, { "recordingSaved": "recordingSaved"; }, never, never, false, never>;
39
+ private updateViewState;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordWidgetComponent, [{ optional: true; }, null, null]>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordWidgetComponent, "voice-record-widget", never, { "openDirection": { "alias": "openDirection"; "required": false; }; }, { "recordingSaved": "recordingSaved"; }, never, never, false, never>;
34
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.5.5",
3
+ "version": "4.5.6",
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
Binary file