speechrecorderng 2.22.1 → 2.22.3

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.
@@ -7713,10 +7713,17 @@ class SessionManager {
7713
7713
  }
7714
7714
  }
7715
7715
  onKeyDown(ke) {
7716
- if (ke.key == ' ' || ke.key == 'Escape') {
7716
+ if (ke.key == ' ') {
7717
7717
  this.transportActions.stopAction.perform();
7718
7718
  }
7719
- if (ke.key == 'p' || ke.key == 'Escape') {
7719
+ if (ke.key == 'p') {
7720
+ this.transportActions.pauseAction.perform();
7721
+ }
7722
+ if (ke.key == 'Escape') {
7723
+ if (!this.audioSignalCollapsed) {
7724
+ this.audioSignalCollapsed = true;
7725
+ }
7726
+ this.transportActions.stopAction.perform();
7720
7727
  this.transportActions.pauseAction.perform();
7721
7728
  }
7722
7729
  if (ke.key == 'MediaPlayPause') {
@@ -10783,8 +10790,10 @@ class RecorderCombiPane {
10783
10790
  }
10784
10791
  RecorderCombiPane.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: RecorderCombiPane, deps: [], target: i0.ɵɵFactoryTarget.Component });
10785
10792
  RecorderCombiPane.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: RecorderCombiPane, selector: "app-recordercombipane", inputs: { selectDisabled: "selectDisabled", selectedRecordingFile: "selectedRecordingFile", audioSignalCollapsed: "audioSignalCollapsed", displayAudioClip: "displayAudioClip", playStartAction: "playStartAction", playSelectionAction: "playSelectionAction", autoPlayOnSelectToggleAction: "autoPlayOnSelectToggleAction", playStopAction: "playStopAction" }, outputs: { selectedRecordingFileChanged: "selectedRecordingFileChanged" }, viewQueries: [{ propertyName: "recordingListComp", first: true, predicate: RecordingList, descendants: true }, { propertyName: "audioDisplay", first: true, predicate: AudioDisplay, descendants: true, static: true }], ngImport: i0, template: `
10786
- <app-recordinglist [selectedRecordingFile]="selectedRecordingFile" [selectDisabled]="selectDisabled" (selectedRecordingFileChanged)="selectRecordingFile($event)"></app-recordinglist>
10787
- <div fxHide.xs #asCt [class.active]="!audioSignalCollapsed">
10793
+ <div class="scrollList">
10794
+ <app-recordinglist [selectedRecordingFile]="selectedRecordingFile" [selectDisabled]="selectDisabled" (selectedRecordingFileChanged)="selectRecordingFile($event)"></app-recordinglist>
10795
+ </div>
10796
+ <div class="collapsable" fxHide.xs #asCt [class.active]="!audioSignalCollapsed">
10788
10797
  <app-audiodisplay #audioSignalContainer [class.active]="!audioSignalCollapsed"
10789
10798
  [audioClip]="displayAudioClip"
10790
10799
  [playStartAction]="playStartAction"
@@ -10792,12 +10801,14 @@ RecorderCombiPane.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
10792
10801
  [autoPlayOnSelectToggleAction]="autoPlayOnSelectToggleAction"
10793
10802
  [playStopAction]="playStopAction"></app-audiodisplay>
10794
10803
  </div>
10795
- `, isInline: true, styles: [".monospaced{font-family:monospace}.mat-cell,.mat-header-cell{padding-left:5px;padding-right:5px}.mat-card,.mat-card-header,.mat-card-content{width:auto}.flexForm{display:flex;flex-direction:column;width:auto}\n", ":host{position:relative;margin:0;padding:0;background:lightgrey;width:100%;flex:1;overflow-y:auto;min-height:0px}\n", ".selected{font-weight:700}\n", "div{display:none;position:absolute;z-index:5}\n", "div.active{display:flex;position:absolute;bottom:0px;height:90%;width:100%;overflow:hidden;padding:0;z-index:200;box-sizing:border-box;background-color:#0000}\n"], components: [{ type: RecordingList, selector: "app-recordinglist", inputs: ["selectDisabled", "selectedRecordingFile"], outputs: ["selectedRecordingFileChanged"] }, { type: AudioDisplay, selector: "app-audiodisplay", inputs: ["playStartAction", "playStopAction", "playSelectionAction", "autoPlayOnSelectToggleAction", "audioData", "audioClip"] }], directives: [{ type: i3$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }] });
10804
+ `, isInline: true, styles: [".monospaced{font-family:monospace}.mat-cell,.mat-header-cell{padding-left:5px;padding-right:5px}.mat-card,.mat-card-header,.mat-card-content{width:auto}.flexForm{display:flex;flex-direction:column;width:auto}\n", ":host{background-color:#ff0;position:relative;margin:0;padding:0;background:lightgrey;width:100%;flex:1;min-height:0px}\n", ".scrollList{margin:0;padding:0;background:lightgrey;width:100%;height:100%;overflow-y:auto}\n", ".collapsable{display:none;position:absolute;z-index:5}\n", ".collapsable.active{display:flex;position:absolute;bottom:0px;height:90%;width:100%;overflow:hidden;padding:0;z-index:200;box-sizing:border-box;background-color:#0000}\n"], components: [{ type: RecordingList, selector: "app-recordinglist", inputs: ["selectDisabled", "selectedRecordingFile"], outputs: ["selectedRecordingFileChanged"] }, { type: AudioDisplay, selector: "app-audiodisplay", inputs: ["playStartAction", "playStopAction", "playSelectionAction", "autoPlayOnSelectToggleAction", "audioData", "audioClip"] }], directives: [{ type: i3$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }] });
10796
10805
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: RecorderCombiPane, decorators: [{
10797
10806
  type: Component,
10798
10807
  args: [{ selector: 'app-recordercombipane', template: `
10799
- <app-recordinglist [selectedRecordingFile]="selectedRecordingFile" [selectDisabled]="selectDisabled" (selectedRecordingFileChanged)="selectRecordingFile($event)"></app-recordinglist>
10800
- <div fxHide.xs #asCt [class.active]="!audioSignalCollapsed">
10808
+ <div class="scrollList">
10809
+ <app-recordinglist [selectedRecordingFile]="selectedRecordingFile" [selectDisabled]="selectDisabled" (selectedRecordingFileChanged)="selectRecordingFile($event)"></app-recordinglist>
10810
+ </div>
10811
+ <div class="collapsable" fxHide.xs #asCt [class.active]="!audioSignalCollapsed">
10801
10812
  <app-audiodisplay #audioSignalContainer [class.active]="!audioSignalCollapsed"
10802
10813
  [audioClip]="displayAudioClip"
10803
10814
  [playStartAction]="playStartAction"
@@ -10805,7 +10816,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
10805
10816
  [autoPlayOnSelectToggleAction]="autoPlayOnSelectToggleAction"
10806
10817
  [playStopAction]="playStopAction"></app-audiodisplay>
10807
10818
  </div>
10808
- `, styles: [".monospaced{font-family:monospace}.mat-cell,.mat-header-cell{padding-left:5px;padding-right:5px}.mat-card,.mat-card-header,.mat-card-content{width:auto}.flexForm{display:flex;flex-direction:column;width:auto}\n", ":host{position:relative;margin:0;padding:0;background:lightgrey;width:100%;flex:1;overflow-y:auto;min-height:0px}\n", ".selected{font-weight:700}\n", "div{display:none;position:absolute;z-index:5}\n", "div.active{display:flex;position:absolute;bottom:0px;height:90%;width:100%;overflow:hidden;padding:0;z-index:200;box-sizing:border-box;background-color:#0000}\n"] }]
10819
+ `, styles: [".monospaced{font-family:monospace}.mat-cell,.mat-header-cell{padding-left:5px;padding-right:5px}.mat-card,.mat-card-header,.mat-card-content{width:auto}.flexForm{display:flex;flex-direction:column;width:auto}\n", ":host{background-color:#ff0;position:relative;margin:0;padding:0;background:lightgrey;width:100%;flex:1;min-height:0px}\n", ".scrollList{margin:0;padding:0;background:lightgrey;width:100%;height:100%;overflow-y:auto}\n", ".collapsable{display:none;position:absolute;z-index:5}\n", ".collapsable.active{display:flex;position:absolute;bottom:0px;height:90%;width:100%;overflow:hidden;padding:0;z-index:200;box-sizing:border-box;background-color:#0000}\n"] }]
10809
10820
  }], ctorParameters: function () { return []; }, propDecorators: { recordingListComp: [{
10810
10821
  type: ViewChild,
10811
10822
  args: [RecordingList]
@@ -10998,15 +11009,27 @@ class AudioRecorder {
10998
11009
  }
10999
11010
  onKeyPress(ke) {
11000
11011
  if (ke.key == ' ') {
11001
- this.transportActions.startAction.perform();
11002
- this.transportActions.nextAction.perform();
11012
+ //this.transportActions.startAction.perform();
11013
+ //this.transportActions.nextAction.perform();
11003
11014
  }
11004
11015
  }
11005
11016
  onKeyDown(ke) {
11006
- if (ke.key == ' ' || ke.key == 'Escape') {
11007
- this.transportActions.stopAction.perform();
11017
+ if (ke.key == ' ') {
11018
+ if (!this.transportActions.startAction.disabled) {
11019
+ this.transportActions.startAction.perform();
11020
+ }
11021
+ else if (!this.transportActions.stopAction.disabled) {
11022
+ this.transportActions.stopAction.perform();
11023
+ }
11008
11024
  }
11009
- if (ke.key == 'p' || ke.key == 'Escape') {
11025
+ if (ke.key == 'p') {
11026
+ this.transportActions.pauseAction.perform();
11027
+ }
11028
+ if (ke.key == 'Escape') {
11029
+ if (!this.audioSignalCollapsed) {
11030
+ this.audioSignalCollapsed = true;
11031
+ }
11032
+ this.transportActions.stopAction.perform();
11010
11033
  this.transportActions.pauseAction.perform();
11011
11034
  }
11012
11035
  if (ke.key == 'MediaPlayPause') {
@@ -11989,7 +12012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
11989
12012
  }]
11990
12013
  }] });
11991
12014
 
11992
- const VERSION = '2.22.1';
12015
+ const VERSION = '2.22.3';
11993
12016
 
11994
12017
  /*
11995
12018
  * Public API Surface of speechrecorderng