speechrecorderng 3.3.1 → 3.3.4
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/esm2020/lib/audio/playback/player.mjs +2 -2
- package/esm2020/lib/speechrecorder/session/audiorecorder.mjs +92 -77
- package/esm2020/lib/speechrecorder/session/basicrecorder.mjs +11 -5
- package/esm2020/lib/speechrecorder/session/controlpanel.mjs +50 -37
- package/esm2020/lib/speechrecorder/session/prompting.mjs +19 -15
- package/esm2020/lib/speechrecorder/session/recorder_combi_pane.mjs +14 -11
- package/esm2020/lib/speechrecorder/session/recording_list.mjs +2 -2
- package/esm2020/lib/speechrecorder/session/recordingfile/recording-file-navi.component.mjs +9 -9
- package/esm2020/lib/speechrecorder/session/recordingfile/recording-file-u-i.component.mjs +3 -3
- package/esm2020/lib/speechrecorder/session/recordingfile/recording-file-view.component.mjs +3 -3
- package/esm2020/lib/speechrecorder/session/sessionmanager.mjs +226 -206
- package/esm2020/lib/speechrecorderng.component.mjs +2 -1
- package/esm2020/lib/speechrecorderng.module.mjs +5 -5
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/esm2020/lib/ui/recordingitem_display.mjs +29 -25
- package/esm2020/lib/ui/responsive_component.mjs +24 -0
- package/fesm2015/speechrecorderng.mjs +432 -349
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +432 -349
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/speechrecorder/session/audiorecorder.d.ts +5 -3
- package/lib/speechrecorder/session/basicrecorder.d.ts +6 -3
- package/lib/speechrecorder/session/controlpanel.d.ts +9 -3
- package/lib/speechrecorder/session/prompting.d.ts +5 -1
- package/lib/speechrecorder/session/recorder_combi_pane.d.ts +5 -2
- package/lib/speechrecorder/session/sessionmanager.d.ts +6 -3
- package/lib/speechrecorderng.component.d.ts +1 -1
- package/lib/speechrecorderng.module.d.ts +18 -19
- package/lib/spr.module.version.d.ts +1 -1
- package/lib/ui/recordingitem_display.d.ts +8 -4
- package/lib/ui/responsive_component.d.ts +9 -0
- package/package.json +1 -2
|
@@ -17,6 +17,7 @@ import { RecorderCombiPane } from "./recorder_combi_pane";
|
|
|
17
17
|
import { BasicRecorder, ChunkAudioBufferReceiver } from "./basicrecorder";
|
|
18
18
|
import { ReadyStateProvider, RecorderComponent } from "../../recorder_component";
|
|
19
19
|
import { Mode } from "../../speechrecorderng.component";
|
|
20
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export declare const enum Status {
|
|
22
23
|
BLOCKED = 0,
|
|
@@ -27,6 +28,7 @@ export declare const enum Status {
|
|
|
27
28
|
ERROR = 5
|
|
28
29
|
}
|
|
29
30
|
export declare class AudioRecorder extends BasicRecorder implements OnInit, AfterViewInit, OnDestroy, AudioCaptureListener, ReadyStateProvider, ChunkAudioBufferReceiver {
|
|
31
|
+
protected bpo: BreakpointObserver;
|
|
30
32
|
private renderer;
|
|
31
33
|
private route;
|
|
32
34
|
private recFileService;
|
|
@@ -44,7 +46,7 @@ export declare class AudioRecorder extends BasicRecorder implements OnInit, Afte
|
|
|
44
46
|
audio: any;
|
|
45
47
|
private _displayRecFile;
|
|
46
48
|
private displayRecFileVersion;
|
|
47
|
-
constructor(changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, route: ActivatedRoute, dialog: MatDialog, sessionService: SessionService, recFileService: RecordingService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig);
|
|
49
|
+
constructor(bpo: BreakpointObserver, changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, route: ActivatedRoute, dialog: MatDialog, sessionService: SessionService, recFileService: RecordingService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig);
|
|
48
50
|
ngAfterViewInit(): void;
|
|
49
51
|
ready(): boolean;
|
|
50
52
|
ngOnDestroy(): void;
|
|
@@ -59,8 +61,8 @@ export declare class AudioRecorder extends BasicRecorder implements OnInit, Afte
|
|
|
59
61
|
get project(): Project | undefined | null;
|
|
60
62
|
selectRecordingFile(rf: RecordingFile): void;
|
|
61
63
|
uploadUpdate(ue: UploaderStatusChangeEvent): void;
|
|
62
|
-
set controlAudioPlayer(controlAudioPlayer: AudioPlayer);
|
|
63
|
-
get controlAudioPlayer(): AudioPlayer;
|
|
64
|
+
set controlAudioPlayer(controlAudioPlayer: AudioPlayer | null);
|
|
65
|
+
get controlAudioPlayer(): AudioPlayer | null;
|
|
64
66
|
update(e: AudioPlayerEvent): void;
|
|
65
67
|
startDisabled(): boolean;
|
|
66
68
|
stopDisabled(): boolean;
|
|
@@ -18,6 +18,8 @@ import { SequenceAudioFloat32OutStream } from "../../audio/io/stream";
|
|
|
18
18
|
import { RecordingFile, SprRecordingFile } from "../recording";
|
|
19
19
|
import { State as LiveLevelState } from "../../audio/ui/livelevel";
|
|
20
20
|
import { PersistentAudioStorageTarget } from "../../audio/inddb_audio_buffer";
|
|
21
|
+
import { ResponsiveComponent } from "../../ui/responsive_component";
|
|
22
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
21
23
|
export declare const FORCE_REQUEST_AUDIO_PERMISSIONS = false;
|
|
22
24
|
export declare const RECFILE_API_CTX = "recfile";
|
|
23
25
|
export declare const MAX_RECORDING_TIME_MS: number;
|
|
@@ -42,7 +44,8 @@ export declare class ChunkManager implements SequenceAudioFloat32OutStream {
|
|
|
42
44
|
setFormat(channels: number, sampleRate: number): void;
|
|
43
45
|
write(buffers: Array<Float32Array>): number;
|
|
44
46
|
}
|
|
45
|
-
export declare abstract class BasicRecorder {
|
|
47
|
+
export declare abstract class BasicRecorder extends ResponsiveComponent {
|
|
48
|
+
protected bpo: BreakpointObserver;
|
|
46
49
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
47
50
|
dialog: MatDialog;
|
|
48
51
|
protected sessionService: SessionService;
|
|
@@ -91,7 +94,7 @@ export declare abstract class BasicRecorder {
|
|
|
91
94
|
peakLevelInDb: number;
|
|
92
95
|
audioLoaded: boolean;
|
|
93
96
|
disableAudioDetails: boolean;
|
|
94
|
-
protected _controlAudioPlayer: AudioPlayer;
|
|
97
|
+
protected _controlAudioPlayer: AudioPlayer | null;
|
|
95
98
|
displayAudioClip: AudioClip | null;
|
|
96
99
|
protected audioFetchSubscription: Subscription | null;
|
|
97
100
|
liveLevelDisplayState: LiveLevelState;
|
|
@@ -104,7 +107,7 @@ export declare abstract class BasicRecorder {
|
|
|
104
107
|
protected _persistentAudioStorageTarget: PersistentAudioStorageTarget | null;
|
|
105
108
|
protected _screenLocked: boolean;
|
|
106
109
|
private wakeLockManager?;
|
|
107
|
-
constructor(changeDetectorRef: ChangeDetectorRef, dialog: MatDialog, sessionService: SessionService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig | undefined);
|
|
110
|
+
constructor(bpo: BreakpointObserver, changeDetectorRef: ChangeDetectorRef, dialog: MatDialog, sessionService: SessionService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig | undefined);
|
|
108
111
|
get wakeLock(): boolean;
|
|
109
112
|
set wakeLock(value: boolean);
|
|
110
113
|
enableWakeLockCond(): void;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../action/action';
|
|
2
2
|
import { MatDialog } from "@angular/material/dialog";
|
|
3
3
|
import { ProgressSpinnerMode } from "@angular/material/progress-spinner";
|
|
4
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
5
|
+
import { ResponsiveComponent } from "../../ui/responsive_component";
|
|
6
|
+
import { ThemePalette } from "@angular/material/core";
|
|
4
7
|
import * as i0 from "@angular/core";
|
|
5
8
|
export declare class StatusDisplay {
|
|
6
9
|
statusAlertType: string;
|
|
@@ -13,6 +16,7 @@ export declare class UploadStatus {
|
|
|
13
16
|
private _awaitNewUpload;
|
|
14
17
|
spinnerMode: ProgressSpinnerMode;
|
|
15
18
|
_status: string;
|
|
19
|
+
_colorStatus: ThemePalette;
|
|
16
20
|
_value: number;
|
|
17
21
|
displayValue: string | null;
|
|
18
22
|
toolTipText: string;
|
|
@@ -39,13 +43,14 @@ export declare class TransportActions {
|
|
|
39
43
|
bwdAction: Action<void>;
|
|
40
44
|
constructor();
|
|
41
45
|
}
|
|
42
|
-
export declare class TransportPanel {
|
|
46
|
+
export declare class TransportPanel extends ResponsiveComponent {
|
|
43
47
|
readonly: boolean;
|
|
44
48
|
actions: TransportActions;
|
|
45
49
|
navigationEnabled: boolean;
|
|
46
50
|
pausingEnabled: boolean;
|
|
47
51
|
startStopNextButtonName: string;
|
|
48
52
|
startStopNextButtonIconName: string;
|
|
53
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
49
54
|
startDisabled(): boolean;
|
|
50
55
|
stopDisabled(): boolean;
|
|
51
56
|
nextDisabled(): boolean;
|
|
@@ -77,7 +82,8 @@ export declare class ReadyStateIndicator {
|
|
|
77
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReadyStateIndicator, never>;
|
|
78
83
|
static ɵcmp: i0.ɵɵComponentDeclaration<ReadyStateIndicator, "app-readystateindicator", never, { "ready": "ready"; }, {}, never, never, false>;
|
|
79
84
|
}
|
|
80
|
-
export declare class ControlPanel {
|
|
85
|
+
export declare class ControlPanel extends ResponsiveComponent {
|
|
86
|
+
protected bpo: BreakpointObserver;
|
|
81
87
|
dialog: MatDialog;
|
|
82
88
|
statusDisplay: StatusDisplay;
|
|
83
89
|
transportPanel: TransportPanel;
|
|
@@ -93,7 +99,7 @@ export declare class ControlPanel {
|
|
|
93
99
|
enableUploadRecordings: boolean;
|
|
94
100
|
navigationEnabled: boolean;
|
|
95
101
|
_ready: boolean;
|
|
96
|
-
constructor(dialog: MatDialog);
|
|
102
|
+
constructor(bpo: BreakpointObserver, dialog: MatDialog);
|
|
97
103
|
set ready(ready: boolean);
|
|
98
104
|
get ready(): boolean;
|
|
99
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlPanel, never>;
|
|
@@ -8,6 +8,8 @@ import { Action } from "../../action/action";
|
|
|
8
8
|
import { AudioDisplay } from "../../audio/audio_display";
|
|
9
9
|
import { ProjectService } from "../project/project.service";
|
|
10
10
|
import { AudioClip } from "../../audio/persistor";
|
|
11
|
+
import { ResponsiveComponent } from "../../ui/responsive_component";
|
|
12
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
11
13
|
import * as i0 from "@angular/core";
|
|
12
14
|
export declare class Recinstructions {
|
|
13
15
|
recinstructions: string | null | undefined;
|
|
@@ -89,7 +91,9 @@ export declare class PromptingContainer {
|
|
|
89
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<PromptingContainer, never>;
|
|
90
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<PromptingContainer, "app-sprpromptingcontainer", never, { "projectName": "projectName"; "promptItem": "promptItem"; "showPrompt": "showPrompt"; "selectedItemIdx": "selectedItemIdx"; "itemCount": "itemCount"; "transportActions": "transportActions"; }, {}, never, never, false>;
|
|
91
93
|
}
|
|
92
|
-
export declare class Prompting {
|
|
94
|
+
export declare class Prompting extends ResponsiveComponent {
|
|
95
|
+
protected bpo: BreakpointObserver;
|
|
96
|
+
constructor(bpo: BreakpointObserver);
|
|
93
97
|
simpleTrafficLight: SimpleTrafficLight;
|
|
94
98
|
audioDisplay: AudioDisplay;
|
|
95
99
|
projectName: string | undefined;
|
|
@@ -5,8 +5,11 @@ import { AudioClip } from "../../audio/persistor";
|
|
|
5
5
|
import { Action } from "../../action/action";
|
|
6
6
|
import { AudioDisplay } from "../../audio/audio_display";
|
|
7
7
|
import { AudioDataHolder } from "../../audio/audio_data_holder";
|
|
8
|
+
import { ResponsiveComponent } from "../../ui/responsive_component";
|
|
9
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class RecorderCombiPane implements AfterViewInit {
|
|
11
|
+
export declare class RecorderCombiPane extends ResponsiveComponent implements AfterViewInit {
|
|
12
|
+
protected bpo: BreakpointObserver;
|
|
10
13
|
recordingListComp: RecordingList;
|
|
11
14
|
selectDisabled: boolean;
|
|
12
15
|
selectedRecordingFileChanged: EventEmitter<RecordingFile>;
|
|
@@ -18,7 +21,7 @@ export declare class RecorderCombiPane implements AfterViewInit {
|
|
|
18
21
|
playSelectionAction: Action<void> | undefined;
|
|
19
22
|
autoPlayOnSelectToggleAction: Action<boolean> | undefined;
|
|
20
23
|
playStopAction: Action<void> | undefined;
|
|
21
|
-
constructor();
|
|
24
|
+
constructor(bpo: BreakpointObserver);
|
|
22
25
|
ngAfterViewInit(): void;
|
|
23
26
|
addRecFile(rf: RecordingFile): void;
|
|
24
27
|
setRecFileAudioData(recFile: RecordingFile, adh: AudioDataHolder | null): void;
|
|
@@ -14,6 +14,7 @@ import { LevelBar } from "../../audio/ui/livelevel";
|
|
|
14
14
|
import { BasicRecorder, ChunkAudioBufferReceiver } from "./basicrecorder";
|
|
15
15
|
import { SprItemsCache } from "./recording_file_cache";
|
|
16
16
|
import { PersistentAudioStorageTarget } from "../../audio/inddb_audio_buffer";
|
|
17
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export declare const enum Status {
|
|
19
20
|
BLOCKED = 0,
|
|
@@ -28,6 +29,7 @@ export declare const enum Status {
|
|
|
28
29
|
ERROR = 9
|
|
29
30
|
}
|
|
30
31
|
export declare class SessionManager extends BasicRecorder implements AfterViewInit, OnDestroy, AudioCaptureListener, ChunkAudioBufferReceiver {
|
|
32
|
+
protected bpo: BreakpointObserver;
|
|
31
33
|
private renderer;
|
|
32
34
|
private recFileService;
|
|
33
35
|
get persistentAudioStorageTarget(): PersistentAudioStorageTarget | null;
|
|
@@ -60,7 +62,7 @@ export declare class SessionManager extends BasicRecorder implements AfterViewIn
|
|
|
60
62
|
private _displayRecFile;
|
|
61
63
|
private displayRecFileVersion;
|
|
62
64
|
promptItemCount: number;
|
|
63
|
-
constructor(changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, dialog: MatDialog, sessionService: SessionService, recFileService: RecordingService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig);
|
|
65
|
+
constructor(bpo: BreakpointObserver, changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, dialog: MatDialog, sessionService: SessionService, recFileService: RecordingService, uploader: SpeechRecorderUploader, config?: SpeechRecorderConfig);
|
|
64
66
|
ngAfterViewInit(): void;
|
|
65
67
|
ngOnDestroy(): void;
|
|
66
68
|
private init;
|
|
@@ -71,8 +73,8 @@ export declare class SessionManager extends BasicRecorder implements AfterViewIn
|
|
|
71
73
|
isTestSession(): boolean;
|
|
72
74
|
isDefaultAudioTestSession(): boolean;
|
|
73
75
|
isDefaultAudioTestSessionOverwritingProjectRequirements(): boolean;
|
|
74
|
-
set controlAudioPlayer(controlAudioPlayer: AudioPlayer);
|
|
75
|
-
get controlAudioPlayer(): AudioPlayer;
|
|
76
|
+
set controlAudioPlayer(controlAudioPlayer: AudioPlayer | null);
|
|
77
|
+
get controlAudioPlayer(): AudioPlayer | null;
|
|
76
78
|
set script(script: any);
|
|
77
79
|
update(e: AudioPlayerEvent): void;
|
|
78
80
|
get promptIndex(): number;
|
|
@@ -88,6 +90,7 @@ export declare class SessionManager extends BasicRecorder implements AfterViewIn
|
|
|
88
90
|
applyPrompt(): void;
|
|
89
91
|
downloadRecording(): void;
|
|
90
92
|
set displayRecFile(displayRecFile: SprRecordingFile | null);
|
|
93
|
+
protected updateDisplayRecFile(displayRecFile: SprRecordingFile | null, fetchAndApplyRecordingFile?: boolean): void;
|
|
91
94
|
get displayRecFile(): SprRecordingFile | null;
|
|
92
95
|
isRecordingItem(): boolean;
|
|
93
96
|
updateStartActionDisableState(): void;
|
|
@@ -27,7 +27,7 @@ export declare class SpeechrecorderngComponent extends RecorderComponent impleme
|
|
|
27
27
|
private recFilesService;
|
|
28
28
|
protected uploader: SpeechRecorderUploader;
|
|
29
29
|
mode: Mode;
|
|
30
|
-
controlAudioPlayer: AudioPlayer;
|
|
30
|
+
controlAudioPlayer: AudioPlayer | null;
|
|
31
31
|
audio: any;
|
|
32
32
|
_project: Project | null;
|
|
33
33
|
sessionId: string;
|
|
@@ -30,28 +30,27 @@ import * as i25 from "./speechrecorder/session/recordingfile/recording-file-meta
|
|
|
30
30
|
import * as i26 from "./speechrecorder/session/recording_list";
|
|
31
31
|
import * as i27 from "./speechrecorder/session/recorder_combi_pane";
|
|
32
32
|
import * as i28 from "@angular/router";
|
|
33
|
-
import * as i29 from "@angular/
|
|
34
|
-
import * as i30 from "@angular/
|
|
35
|
-
import * as i31 from "@angular/material/
|
|
36
|
-
import * as i32 from "@angular/material/
|
|
37
|
-
import * as i33 from "@angular/material/
|
|
38
|
-
import * as i34 from "@angular/material/progress-
|
|
39
|
-
import * as i35 from "@angular/material/
|
|
40
|
-
import * as i36 from "@angular/
|
|
41
|
-
import * as i37 from "@angular/
|
|
42
|
-
import * as i38 from "@angular/material/
|
|
43
|
-
import * as i39 from "@angular/material/
|
|
44
|
-
import * as i40 from "@angular/material/
|
|
45
|
-
import * as i41 from "@angular/material/
|
|
46
|
-
import * as i42 from "@angular/material/
|
|
47
|
-
import * as i43 from "@angular/material/
|
|
48
|
-
import * as i44 from "@angular/material/
|
|
49
|
-
import * as i45 from "@angular/material/
|
|
50
|
-
import * as i46 from "@angular/material/menu";
|
|
33
|
+
import * as i29 from "@angular/common";
|
|
34
|
+
import * as i30 from "@angular/material/icon";
|
|
35
|
+
import * as i31 from "@angular/material/button";
|
|
36
|
+
import * as i32 from "@angular/material/dialog";
|
|
37
|
+
import * as i33 from "@angular/material/progress-bar";
|
|
38
|
+
import * as i34 from "@angular/material/progress-spinner";
|
|
39
|
+
import * as i35 from "@angular/material/tooltip";
|
|
40
|
+
import * as i36 from "@angular/common/http";
|
|
41
|
+
import * as i37 from "@angular/material/checkbox";
|
|
42
|
+
import * as i38 from "@angular/material/card";
|
|
43
|
+
import * as i39 from "@angular/material/divider";
|
|
44
|
+
import * as i40 from "@angular/material/grid-list";
|
|
45
|
+
import * as i41 from "@angular/material/table";
|
|
46
|
+
import * as i42 from "@angular/material/input";
|
|
47
|
+
import * as i43 from "@angular/material/select";
|
|
48
|
+
import * as i44 from "@angular/material/snack-bar";
|
|
49
|
+
import * as i45 from "@angular/material/menu";
|
|
51
50
|
export declare const SPR_ROUTES: Routes;
|
|
52
51
|
export declare class SpeechrecorderngModule {
|
|
53
52
|
static forRoot(config: SpeechRecorderConfig): ModuleWithProviders<SpeechrecorderngModule>;
|
|
54
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpeechrecorderngModule, never>;
|
|
55
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpeechrecorderngModule, [typeof i1.AudioSignal, typeof i2.Sonagram, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i10.Progress, typeof i11.SimpleTrafficLight, typeof i12.Recinstructions, typeof i12.Prompter, typeof i12.PromptContainer, typeof i12.PromptingContainer, typeof i12.Prompting, typeof i13.StatusDisplay, typeof i13.ProgressDisplay, typeof i14.RecordingItemDisplay, typeof i14.RecordingItemControls, typeof i13.UploadStatus, typeof i13.TransportPanel, typeof i13.WakeLockIndicator, typeof i13.ReadyStateIndicator, typeof i13.ControlPanel, typeof i15.WarningBar, typeof i16.AudioRecorder, typeof i17.SessionManager, typeof i18.MessageDialog, typeof i19.SessionFinishedDialog, typeof i20.SpeechrecorderngComponent, typeof i16.AudioRecorderComponent, typeof i21.RecordingFileViewComponent, typeof i22.RecordingFileUI, typeof i23.ScrollIntoViewDirective, typeof i24.RecordingFileNaviComponent, typeof i25.RecordingFileMetaComponent, typeof i26.RecordingList, typeof i27.RecorderCombiPane, typeof i16.AudioRecorder], [typeof i28.RouterModule, typeof i29.
|
|
54
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpeechrecorderngModule, [typeof i1.AudioSignal, typeof i2.Sonagram, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i10.Progress, typeof i11.SimpleTrafficLight, typeof i12.Recinstructions, typeof i12.Prompter, typeof i12.PromptContainer, typeof i12.PromptingContainer, typeof i12.Prompting, typeof i13.StatusDisplay, typeof i13.ProgressDisplay, typeof i14.RecordingItemDisplay, typeof i14.RecordingItemControls, typeof i13.UploadStatus, typeof i13.TransportPanel, typeof i13.WakeLockIndicator, typeof i13.ReadyStateIndicator, typeof i13.ControlPanel, typeof i15.WarningBar, typeof i16.AudioRecorder, typeof i17.SessionManager, typeof i18.MessageDialog, typeof i19.SessionFinishedDialog, typeof i20.SpeechrecorderngComponent, typeof i16.AudioRecorderComponent, typeof i21.RecordingFileViewComponent, typeof i22.RecordingFileUI, typeof i23.ScrollIntoViewDirective, typeof i24.RecordingFileNaviComponent, typeof i25.RecordingFileMetaComponent, typeof i26.RecordingList, typeof i27.RecorderCombiPane, typeof i16.AudioRecorder], [typeof i28.RouterModule, typeof i29.CommonModule, typeof i30.MatIconModule, typeof i31.MatButtonModule, typeof i32.MatDialogModule, typeof i33.MatProgressBarModule, typeof i34.MatProgressSpinnerModule, typeof i35.MatTooltipModule, typeof i36.HttpClientModule, typeof i37.MatCheckboxModule, typeof i38.MatCardModule, typeof i39.MatDividerModule, typeof i40.MatGridListModule, typeof i41.MatTableModule, typeof i42.MatInputModule, typeof i43.MatSelectModule, typeof i44.MatSnackBarModule, typeof i45.MatMenuModule], [typeof i18.MessageDialog, typeof i20.SpeechrecorderngComponent, typeof i3.ScrollPaneHorizontal, typeof i4.AudioClipUIContainer, typeof i5.AudioDisplayScrollPane, typeof i6.AudioDisplay, typeof i7.AudioDisplayPlayer, typeof i8.AudioDisplayControl, typeof i9.LevelBar, typeof i16.AudioRecorder]>;
|
|
56
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpeechrecorderngModule>;
|
|
57
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.3.
|
|
1
|
+
export declare const VERSION = "3.3.4";
|
|
@@ -2,10 +2,13 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from "@angular
|
|
|
2
2
|
import { LevelInfo, LevelInfos, LevelListener } from "../audio/dsp/level_measure";
|
|
3
3
|
import { LevelBar } from "../audio/ui/livelevel";
|
|
4
4
|
import { Action } from "../action/action";
|
|
5
|
+
import { ResponsiveComponent } from "./responsive_component";
|
|
6
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare const MIN_DB_LEVEL = -40;
|
|
7
9
|
export declare const DEFAULT_WARN_DB_LEVEL = -2;
|
|
8
|
-
export declare class RecordingItemControls implements OnDestroy {
|
|
10
|
+
export declare class RecordingItemControls extends ResponsiveComponent implements OnDestroy {
|
|
11
|
+
protected bpo: BreakpointObserver;
|
|
9
12
|
private ref;
|
|
10
13
|
private changeDetectorRef;
|
|
11
14
|
ce: HTMLDivElement | null;
|
|
@@ -28,7 +31,7 @@ export declare class RecordingItemControls implements OnDestroy {
|
|
|
28
31
|
private updateTimerId;
|
|
29
32
|
private destroyed;
|
|
30
33
|
warnDbLevel: number;
|
|
31
|
-
constructor(ref: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
34
|
+
constructor(bpo: BreakpointObserver, ref: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
32
35
|
ngOnDestroy(): void;
|
|
33
36
|
showRecordingDetails(): void;
|
|
34
37
|
downloadRecording(): void;
|
|
@@ -38,7 +41,8 @@ export declare class RecordingItemControls implements OnDestroy {
|
|
|
38
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<RecordingItemControls, never>;
|
|
39
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<RecordingItemControls, "spr-recordingitemcontrols", never, { "audioSignalCollapsed": "audioSignalCollapsed"; "enableDownload": "enableDownload"; "peakDbLvl": "peakDbLvl"; "agc": "agc"; "disableAudioDetails": "disableAudioDetails"; "audioLoaded": "audioLoaded"; "playStartAction": "playStartAction"; "playStopAction": "playStopAction"; "displayLevelInfos": "displayLevelInfos"; }, { "onShowRecordingDetails": "onShowRecordingDetails"; "onDownloadRecording": "onDownloadRecording"; }, never, never, false>;
|
|
40
43
|
}
|
|
41
|
-
export declare class RecordingItemDisplay implements LevelListener, OnDestroy {
|
|
44
|
+
export declare class RecordingItemDisplay extends ResponsiveComponent implements LevelListener, OnDestroy {
|
|
45
|
+
protected bpo: BreakpointObserver;
|
|
42
46
|
private ref;
|
|
43
47
|
private changeDetectorRef;
|
|
44
48
|
ce: HTMLDivElement | null;
|
|
@@ -61,7 +65,7 @@ export declare class RecordingItemDisplay implements LevelListener, OnDestroy {
|
|
|
61
65
|
private updateTimerId;
|
|
62
66
|
private destroyed;
|
|
63
67
|
warnDbLevel: number;
|
|
64
|
-
constructor(ref: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
68
|
+
constructor(bpo: BreakpointObserver, ref: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
65
69
|
ngOnDestroy(): void;
|
|
66
70
|
set displayAudioBuffer(displayAudioBuffer: AudioBuffer | null | undefined);
|
|
67
71
|
get displayAudioBuffer(): AudioBuffer | null | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BreakpointObserver } from "@angular/cdk/layout";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ResponsiveComponent {
|
|
4
|
+
protected breakpointObserver: BreakpointObserver;
|
|
5
|
+
screenXs: boolean;
|
|
6
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveComponent, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResponsiveComponent, never, never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "speechrecorderng",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "~14.2.12",
|
|
6
6
|
"@angular/cdk": "~14.2.7",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"@angular/platform-browser-dynamic": "~14.2.12",
|
|
14
14
|
"@angular/router": "~14.2.12",
|
|
15
15
|
"@angular/service-worker": "~14.2.12",
|
|
16
|
-
"@angular/flex-layout": "~14.0.0-beta.41",
|
|
17
16
|
"rxjs": "~7.5.5",
|
|
18
17
|
"zone.js": "~0.11.5"
|
|
19
18
|
},
|