speechrecorderng 2.23.0 → 2.23.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.
@@ -7845,6 +7845,7 @@ class SessionManager extends BasicRecorder {
7845
7845
  this.dataSaved = true;
7846
7846
  this.preRecTimerId = null;
7847
7847
  this.preRecTimerRunning = null;
7848
+ this.postDelay = DEFAULT_POST_REC_DELAY;
7848
7849
  this.postRecTimerId = null;
7849
7850
  this.postRecTimerRunning = null;
7850
7851
  this.maxRecTimerId = null;
@@ -8412,16 +8413,22 @@ class SessionManager extends BasicRecorder {
8412
8413
  this.statusAlertType = 'info';
8413
8414
  this.statusMsg = 'Recording...';
8414
8415
  let preDelay = DEFAULT_PRE_REC_DELAY;
8415
- if (this.promptItem.prerecording) {
8416
+ if (this.promptItem.prerecdelay != null) {
8417
+ preDelay = this.promptItem.prerecdelay;
8418
+ }
8419
+ else if (this.promptItem.prerecording != null) {
8416
8420
  preDelay = this.promptItem.prerecording;
8417
8421
  }
8418
- let postDelay = DEFAULT_POST_REC_DELAY;
8419
- if (this.promptItem.postrecording) {
8420
- postDelay = this.promptItem.postrecording;
8422
+ this.postDelay = DEFAULT_POST_REC_DELAY;
8423
+ if (this.promptItem.postrecdelay != null) {
8424
+ this.postDelay = this.promptItem.postrecdelay;
8425
+ }
8426
+ else if (this.promptItem.postrecording != null) {
8427
+ this.postDelay = this.promptItem.postrecording;
8421
8428
  }
8422
8429
  let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
8423
8430
  if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
8424
- maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
8431
+ maxRecordingTimeMs = preDelay + this.promptItem.recduration + this.postDelay;
8425
8432
  }
8426
8433
  this.maxRecTimerId = window.setTimeout(() => {
8427
8434
  this.stopRecordingMaxRec();
@@ -8452,15 +8459,11 @@ class SessionManager extends BasicRecorder {
8452
8459
  this.startStopSignalState = 2 /* POSTRECORDING */;
8453
8460
  this.transportActions.stopAction.disabled = true;
8454
8461
  this.transportActions.nextAction.disabled = true;
8455
- let postDelay = 500;
8456
- if (this.promptItem.postrecording) {
8457
- postDelay = this.promptItem.postrecording;
8458
- }
8459
8462
  this.postRecTimerId = window.setTimeout(() => {
8460
8463
  this.postRecTimerRunning = false;
8461
8464
  this.status = 6 /* STOPPING_STOP */;
8462
8465
  this.stopRecording();
8463
- }, postDelay);
8466
+ }, this.postDelay);
8464
8467
  this.postRecTimerRunning = true;
8465
8468
  }
8466
8469
  pauseItem() {
@@ -8470,15 +8473,11 @@ class SessionManager extends BasicRecorder {
8470
8473
  this.transportActions.stopAction.disabled = true;
8471
8474
  this.transportActions.nextAction.disabled = true;
8472
8475
  this.transportActions.pauseAction.disabled = true;
8473
- let postDelay = 500;
8474
- if (this.promptItem.postrecording) {
8475
- postDelay = this.promptItem.postrecording;
8476
- }
8477
8476
  this.postRecTimerId = window.setTimeout(() => {
8478
8477
  this.postRecTimerRunning = false;
8479
8478
  this.status = 7 /* STOPPING_PAUSE */;
8480
8479
  this.stopRecording();
8481
- }, postDelay);
8480
+ }, this.postDelay);
8482
8481
  this.postRecTimerRunning = true;
8483
8482
  }
8484
8483
  stopRecording() {
@@ -10194,7 +10193,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
10194
10193
  let cRfs = this.availRecFiles[this.posInList];
10195
10194
  let availVersionCnt = cRfs.length;
10196
10195
  for (let cRf of cRfs) {
10197
- if (cRf instanceof SprRecordingFile) {
10196
+ if (cRf.version != null) {
10198
10197
  if (cRf.version === version) {
10199
10198
  toRfId = cRf.recordingFileId;
10200
10199
  break;
@@ -10221,11 +10220,14 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
10221
10220
  positionInList() {
10222
10221
  if (this.availRecFiles && this.recordingFile) {
10223
10222
  let cic = this.recordingFile.itemCode;
10223
+ if (!cic && this.recordingFile.recording && this.recordingFile.recording.itemcode) {
10224
+ cic = this.recordingFile.recording.itemcode;
10225
+ }
10224
10226
  if (cic) {
10225
10227
  let itemCnt = this.availRecFiles.length;
10226
10228
  for (let rfdi = 0; rfdi < itemCnt; rfdi++) {
10227
10229
  let arRf = this.availRecFiles[rfdi][0];
10228
- if (arRf instanceof SprRecordingFile) {
10230
+ if (arRf.recording) {
10229
10231
  let ar = arRf.recording;
10230
10232
  if (cic === ar.itemcode) {
10231
10233
  return rfdi;
@@ -10255,7 +10257,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
10255
10257
  if (arfs) {
10256
10258
  this.versions = new Array();
10257
10259
  for (let arf of arfs) {
10258
- if (arf instanceof SprRecordingFile) {
10260
+ if (arf.recording?.itemcode) {
10259
10261
  this.versions.push(arf.version);
10260
10262
  }
10261
10263
  }
@@ -10263,6 +10265,17 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
10263
10265
  }
10264
10266
  }
10265
10267
  }
10268
+ if (this.recordingFile) {
10269
+ if (this.recordingFile.version) {
10270
+ this.recordingFileVersion = this.recordingFile.version;
10271
+ }
10272
+ else {
10273
+ this.recordingFileVersion = 0;
10274
+ }
10275
+ }
10276
+ else {
10277
+ this.recordingFileVersion = null;
10278
+ }
10266
10279
  this.updateActions();
10267
10280
  }
10268
10281
  loadRecFile(rfId) {
@@ -10414,6 +10427,15 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
10414
10427
  }
10415
10428
  }
10416
10429
  });
10430
+ for (let avRf of this.availRecFiles) {
10431
+ if (avRf[0] && avRf[0].recording) {
10432
+ let os = avRf[0].recording.itemcode + ': versions: ';
10433
+ for (let avRfV of avRf) {
10434
+ os += avRfV.version + '/';
10435
+ }
10436
+ console.debug(os);
10437
+ }
10438
+ }
10417
10439
  this.updatePos();
10418
10440
  this.naviInfoLoading = false;
10419
10441
  this.ref.detectChanges();
@@ -11775,7 +11797,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
11775
11797
  }]
11776
11798
  }] });
11777
11799
 
11778
- const VERSION = '2.23.0';
11800
+ const VERSION = '2.23.4';
11779
11801
 
11780
11802
  /*
11781
11803
  * Public API Surface of speechrecorderng