speechrecorderng 2.22.5 → 2.23.2
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/speechrecorder/script/script.mjs +1 -1
- package/esm2020/lib/speechrecorder/session/recordingfile/recording-file-view.component.mjs +27 -5
- package/esm2020/lib/speechrecorder/session/sessionmanager.mjs +6 -3
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/fesm2015/speechrecorderng.mjs +33 -6
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +32 -6
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/speechrecorder/script/script.d.ts +1 -1
- package/lib/spr.module.version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8406,7 +8406,7 @@ class SessionManager extends BasicRecorder {
|
|
|
8406
8406
|
this.sessionService.patchSessionObserver(this._session, body).subscribe();
|
|
8407
8407
|
}
|
|
8408
8408
|
}
|
|
8409
|
-
if (this.section.promptphase === 'PRERECORDING') {
|
|
8409
|
+
if (this.section.promptphase === 'PRERECORDING' || this.section.promptphase === 'PRERECORDINGONLY') {
|
|
8410
8410
|
this.applyPrompt();
|
|
8411
8411
|
}
|
|
8412
8412
|
this.statusAlertType = 'info';
|
|
@@ -8420,7 +8420,7 @@ class SessionManager extends BasicRecorder {
|
|
|
8420
8420
|
postDelay = this.promptItem.postrecording;
|
|
8421
8421
|
}
|
|
8422
8422
|
let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
|
|
8423
|
-
if (this.promptItem.recduration) {
|
|
8423
|
+
if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
|
|
8424
8424
|
maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
|
|
8425
8425
|
}
|
|
8426
8426
|
this.maxRecTimerId = window.setTimeout(() => {
|
|
@@ -8441,6 +8441,9 @@ class SessionManager extends BasicRecorder {
|
|
|
8441
8441
|
if (this.section.promptphase === 'RECORDING') {
|
|
8442
8442
|
this.applyPrompt();
|
|
8443
8443
|
}
|
|
8444
|
+
if (this.section.promptphase === 'PRERECORDINGONLY') {
|
|
8445
|
+
this.clearPrompt();
|
|
8446
|
+
}
|
|
8444
8447
|
}, preDelay);
|
|
8445
8448
|
this.preRecTimerRunning = true;
|
|
8446
8449
|
}
|
|
@@ -10191,7 +10194,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10191
10194
|
let cRfs = this.availRecFiles[this.posInList];
|
|
10192
10195
|
let availVersionCnt = cRfs.length;
|
|
10193
10196
|
for (let cRf of cRfs) {
|
|
10194
|
-
if (cRf
|
|
10197
|
+
if (cRf.version != null) {
|
|
10195
10198
|
if (cRf.version === version) {
|
|
10196
10199
|
toRfId = cRf.recordingFileId;
|
|
10197
10200
|
break;
|
|
@@ -10218,11 +10221,14 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10218
10221
|
positionInList() {
|
|
10219
10222
|
if (this.availRecFiles && this.recordingFile) {
|
|
10220
10223
|
let cic = this.recordingFile.itemCode;
|
|
10224
|
+
if (!cic && this.recordingFile.recording && this.recordingFile.recording.itemcode) {
|
|
10225
|
+
cic = this.recordingFile.recording.itemcode;
|
|
10226
|
+
}
|
|
10221
10227
|
if (cic) {
|
|
10222
10228
|
let itemCnt = this.availRecFiles.length;
|
|
10223
10229
|
for (let rfdi = 0; rfdi < itemCnt; rfdi++) {
|
|
10224
10230
|
let arRf = this.availRecFiles[rfdi][0];
|
|
10225
|
-
if (arRf
|
|
10231
|
+
if (arRf.recording) {
|
|
10226
10232
|
let ar = arRf.recording;
|
|
10227
10233
|
if (cic === ar.itemcode) {
|
|
10228
10234
|
return rfdi;
|
|
@@ -10252,7 +10258,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10252
10258
|
if (arfs) {
|
|
10253
10259
|
this.versions = new Array();
|
|
10254
10260
|
for (let arf of arfs) {
|
|
10255
|
-
if (arf
|
|
10261
|
+
if (arf.recording?.itemcode) {
|
|
10256
10262
|
this.versions.push(arf.version);
|
|
10257
10263
|
}
|
|
10258
10264
|
}
|
|
@@ -10260,6 +10266,17 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10260
10266
|
}
|
|
10261
10267
|
}
|
|
10262
10268
|
}
|
|
10269
|
+
if (this.recordingFile) {
|
|
10270
|
+
if (this.recordingFile.version) {
|
|
10271
|
+
this.recordingFileVersion = this.recordingFile.version;
|
|
10272
|
+
}
|
|
10273
|
+
else {
|
|
10274
|
+
this.recordingFileVersion = 0;
|
|
10275
|
+
}
|
|
10276
|
+
}
|
|
10277
|
+
else {
|
|
10278
|
+
this.recordingFileVersion = null;
|
|
10279
|
+
}
|
|
10263
10280
|
this.updateActions();
|
|
10264
10281
|
}
|
|
10265
10282
|
loadRecFile(rfId) {
|
|
@@ -10411,6 +10428,15 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10411
10428
|
}
|
|
10412
10429
|
}
|
|
10413
10430
|
});
|
|
10431
|
+
for (let avRf of this.availRecFiles) {
|
|
10432
|
+
if (avRf[0] && avRf[0].recording) {
|
|
10433
|
+
let os = avRf[0].recording.itemcode + ': versions: ';
|
|
10434
|
+
for (let avRfV of avRf) {
|
|
10435
|
+
os += avRfV.version + '/';
|
|
10436
|
+
}
|
|
10437
|
+
console.debug(os);
|
|
10438
|
+
}
|
|
10439
|
+
}
|
|
10414
10440
|
this.updatePos();
|
|
10415
10441
|
this.naviInfoLoading = false;
|
|
10416
10442
|
this.ref.detectChanges();
|
|
@@ -11772,7 +11798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
11772
11798
|
}]
|
|
11773
11799
|
}] });
|
|
11774
11800
|
|
|
11775
|
-
const VERSION = '2.
|
|
11801
|
+
const VERSION = '2.23.2';
|
|
11776
11802
|
|
|
11777
11803
|
/*
|
|
11778
11804
|
* Public API Surface of speechrecorderng
|