@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.
- package/esm2022/lib/smart-form/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/recordingUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2022/lib/smart-form/widgets/components/smart-voice-recorder/smart-voice-recorder.component.mjs +22 -4
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +5 -4
- package/esm2022/lib/view-context/smart-ui-action/components/upload-widget/upload-widget.component.mjs +3 -3
- package/esm2022/lib/view-context/smart-ui-action/components/upload-widget/voice-record-widget/voice-record-widget.component.mjs +93 -37
- package/fesm2022/smartbit4all-ng-client.mjs +119 -43
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/api/model/recordingUploaderProperties.d.ts +0 -1
- package/lib/smart-form/api/model/selectionDefinition.d.ts +4 -0
- package/lib/view-context/smart-ui-action/components/upload-widget/voice-record-widget/voice-record-widget.component.d.ts +14 -6
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.5.6.tgz +0 -0
- package/smartbit4all-ng-client-4.5.5.tgz +0 -0
|
@@ -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
|
|
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
|
-
|
|
33
|
-
static
|
|
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
|
Binary file
|
|
Binary file
|