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.
- 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 +15 -16
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/fesm2015/speechrecorderng.mjs +42 -19
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +41 -19
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/speechrecorder/script/script.d.ts +4 -2
- package/lib/speechrecorder/session/sessionmanager.d.ts +1 -0
- package/lib/spr.module.version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7862,6 +7862,7 @@ class SessionManager extends BasicRecorder {
|
|
|
7862
7862
|
this.dataSaved = true;
|
|
7863
7863
|
this.preRecTimerId = null;
|
|
7864
7864
|
this.preRecTimerRunning = null;
|
|
7865
|
+
this.postDelay = DEFAULT_POST_REC_DELAY;
|
|
7865
7866
|
this.postRecTimerId = null;
|
|
7866
7867
|
this.postRecTimerRunning = null;
|
|
7867
7868
|
this.maxRecTimerId = null;
|
|
@@ -8429,16 +8430,22 @@ class SessionManager extends BasicRecorder {
|
|
|
8429
8430
|
this.statusAlertType = 'info';
|
|
8430
8431
|
this.statusMsg = 'Recording...';
|
|
8431
8432
|
let preDelay = DEFAULT_PRE_REC_DELAY;
|
|
8432
|
-
if (this.promptItem.
|
|
8433
|
+
if (this.promptItem.prerecdelay != null) {
|
|
8434
|
+
preDelay = this.promptItem.prerecdelay;
|
|
8435
|
+
}
|
|
8436
|
+
else if (this.promptItem.prerecording != null) {
|
|
8433
8437
|
preDelay = this.promptItem.prerecording;
|
|
8434
8438
|
}
|
|
8435
|
-
|
|
8436
|
-
if (this.promptItem.
|
|
8437
|
-
postDelay = this.promptItem.
|
|
8439
|
+
this.postDelay = DEFAULT_POST_REC_DELAY;
|
|
8440
|
+
if (this.promptItem.postrecdelay != null) {
|
|
8441
|
+
this.postDelay = this.promptItem.postrecdelay;
|
|
8442
|
+
}
|
|
8443
|
+
else if (this.promptItem.postrecording != null) {
|
|
8444
|
+
this.postDelay = this.promptItem.postrecording;
|
|
8438
8445
|
}
|
|
8439
8446
|
let maxRecordingTimeMs = MAX_RECORDING_TIME_MS;
|
|
8440
8447
|
if (this.promptItem.recduration !== null && this.promptItem.recduration !== undefined) {
|
|
8441
|
-
maxRecordingTimeMs = preDelay + this.promptItem.recduration + postDelay;
|
|
8448
|
+
maxRecordingTimeMs = preDelay + this.promptItem.recduration + this.postDelay;
|
|
8442
8449
|
}
|
|
8443
8450
|
this.maxRecTimerId = window.setTimeout(() => {
|
|
8444
8451
|
this.stopRecordingMaxRec();
|
|
@@ -8469,15 +8476,11 @@ class SessionManager extends BasicRecorder {
|
|
|
8469
8476
|
this.startStopSignalState = 2 /* POSTRECORDING */;
|
|
8470
8477
|
this.transportActions.stopAction.disabled = true;
|
|
8471
8478
|
this.transportActions.nextAction.disabled = true;
|
|
8472
|
-
let postDelay = 500;
|
|
8473
|
-
if (this.promptItem.postrecording) {
|
|
8474
|
-
postDelay = this.promptItem.postrecording;
|
|
8475
|
-
}
|
|
8476
8479
|
this.postRecTimerId = window.setTimeout(() => {
|
|
8477
8480
|
this.postRecTimerRunning = false;
|
|
8478
8481
|
this.status = 6 /* STOPPING_STOP */;
|
|
8479
8482
|
this.stopRecording();
|
|
8480
|
-
}, postDelay);
|
|
8483
|
+
}, this.postDelay);
|
|
8481
8484
|
this.postRecTimerRunning = true;
|
|
8482
8485
|
}
|
|
8483
8486
|
pauseItem() {
|
|
@@ -8487,15 +8490,11 @@ class SessionManager extends BasicRecorder {
|
|
|
8487
8490
|
this.transportActions.stopAction.disabled = true;
|
|
8488
8491
|
this.transportActions.nextAction.disabled = true;
|
|
8489
8492
|
this.transportActions.pauseAction.disabled = true;
|
|
8490
|
-
let postDelay = 500;
|
|
8491
|
-
if (this.promptItem.postrecording) {
|
|
8492
|
-
postDelay = this.promptItem.postrecording;
|
|
8493
|
-
}
|
|
8494
8493
|
this.postRecTimerId = window.setTimeout(() => {
|
|
8495
8494
|
this.postRecTimerRunning = false;
|
|
8496
8495
|
this.status = 7 /* STOPPING_PAUSE */;
|
|
8497
8496
|
this.stopRecording();
|
|
8498
|
-
}, postDelay);
|
|
8497
|
+
}, this.postDelay);
|
|
8499
8498
|
this.postRecTimerRunning = true;
|
|
8500
8499
|
}
|
|
8501
8500
|
stopRecording() {
|
|
@@ -10218,7 +10217,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10218
10217
|
let cRfs = this.availRecFiles[this.posInList];
|
|
10219
10218
|
let availVersionCnt = cRfs.length;
|
|
10220
10219
|
for (let cRf of cRfs) {
|
|
10221
|
-
if (cRf
|
|
10220
|
+
if (cRf.version != null) {
|
|
10222
10221
|
if (cRf.version === version) {
|
|
10223
10222
|
toRfId = cRf.recordingFileId;
|
|
10224
10223
|
break;
|
|
@@ -10245,11 +10244,14 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10245
10244
|
positionInList() {
|
|
10246
10245
|
if (this.availRecFiles && this.recordingFile) {
|
|
10247
10246
|
let cic = this.recordingFile.itemCode;
|
|
10247
|
+
if (!cic && this.recordingFile.recording && this.recordingFile.recording.itemcode) {
|
|
10248
|
+
cic = this.recordingFile.recording.itemcode;
|
|
10249
|
+
}
|
|
10248
10250
|
if (cic) {
|
|
10249
10251
|
let itemCnt = this.availRecFiles.length;
|
|
10250
10252
|
for (let rfdi = 0; rfdi < itemCnt; rfdi++) {
|
|
10251
10253
|
let arRf = this.availRecFiles[rfdi][0];
|
|
10252
|
-
if (arRf
|
|
10254
|
+
if (arRf.recording) {
|
|
10253
10255
|
let ar = arRf.recording;
|
|
10254
10256
|
if (cic === ar.itemcode) {
|
|
10255
10257
|
return rfdi;
|
|
@@ -10270,6 +10272,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10270
10272
|
return null;
|
|
10271
10273
|
}
|
|
10272
10274
|
updatePos() {
|
|
10275
|
+
var _a;
|
|
10273
10276
|
this.posInList = this.positionInList();
|
|
10274
10277
|
this.toVersionAction.disabled = true;
|
|
10275
10278
|
if (this.availRecFiles) {
|
|
@@ -10279,7 +10282,7 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10279
10282
|
if (arfs) {
|
|
10280
10283
|
this.versions = new Array();
|
|
10281
10284
|
for (let arf of arfs) {
|
|
10282
|
-
if (arf
|
|
10285
|
+
if ((_a = arf.recording) === null || _a === void 0 ? void 0 : _a.itemcode) {
|
|
10283
10286
|
this.versions.push(arf.version);
|
|
10284
10287
|
}
|
|
10285
10288
|
}
|
|
@@ -10287,6 +10290,17 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10287
10290
|
}
|
|
10288
10291
|
}
|
|
10289
10292
|
}
|
|
10293
|
+
if (this.recordingFile) {
|
|
10294
|
+
if (this.recordingFile.version) {
|
|
10295
|
+
this.recordingFileVersion = this.recordingFile.version;
|
|
10296
|
+
}
|
|
10297
|
+
else {
|
|
10298
|
+
this.recordingFileVersion = 0;
|
|
10299
|
+
}
|
|
10300
|
+
}
|
|
10301
|
+
else {
|
|
10302
|
+
this.recordingFileVersion = null;
|
|
10303
|
+
}
|
|
10290
10304
|
this.updateActions();
|
|
10291
10305
|
}
|
|
10292
10306
|
loadRecFile(rfId) {
|
|
@@ -10439,6 +10453,15 @@ class RecordingFileViewComponent extends AudioDisplayPlayer {
|
|
|
10439
10453
|
}
|
|
10440
10454
|
}
|
|
10441
10455
|
});
|
|
10456
|
+
for (let avRf of this.availRecFiles) {
|
|
10457
|
+
if (avRf[0] && avRf[0].recording) {
|
|
10458
|
+
let os = avRf[0].recording.itemcode + ': versions: ';
|
|
10459
|
+
for (let avRfV of avRf) {
|
|
10460
|
+
os += avRfV.version + '/';
|
|
10461
|
+
}
|
|
10462
|
+
console.debug(os);
|
|
10463
|
+
}
|
|
10464
|
+
}
|
|
10442
10465
|
this.updatePos();
|
|
10443
10466
|
this.naviInfoLoading = false;
|
|
10444
10467
|
this.ref.detectChanges();
|
|
@@ -11804,7 +11827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
11804
11827
|
}]
|
|
11805
11828
|
}] });
|
|
11806
11829
|
|
|
11807
|
-
const VERSION = '2.23.
|
|
11830
|
+
const VERSION = '2.23.4';
|
|
11808
11831
|
|
|
11809
11832
|
/*
|
|
11810
11833
|
* Public API Surface of speechrecorderng
|