asap-viewer 12.5.42 → 12.5.44
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/asap-viewer.metadata.json +1 -1
- package/bundles/asap-viewer.umd.js +27 -17
- package/bundles/asap-viewer.umd.js.map +1 -1
- package/bundles/asap-viewer.umd.min.js +1 -1
- package/bundles/asap-viewer.umd.min.js.map +1 -1
- package/esm2015/lib/visualizador/curso-visualizador/curso-visualizador.component.js +2 -1
- package/esm2015/lib/visualizador/curso-visualizador/viewer/viewer.component.js +23 -16
- package/esm2015/lib/visualizador/modal-rating/modal-rating.component.js +5 -3
- package/esm5/lib/visualizador/curso-visualizador/curso-visualizador.component.js +2 -1
- package/esm5/lib/visualizador/curso-visualizador/viewer/viewer.component.js +23 -16
- package/esm5/lib/visualizador/modal-rating/modal-rating.component.js +5 -3
- package/fesm2015/asap-viewer.js +27 -17
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +27 -17
- package/fesm5/asap-viewer.js.map +1 -1
- package/lib/visualizador/curso-visualizador/viewer/viewer.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12945,6 +12945,7 @@
|
|
|
12945
12945
|
* @return {?}
|
|
12946
12946
|
*/
|
|
12947
12947
|
function ($event) {
|
|
12948
|
+
console.log("[CursoVisualizadorComponent] eventNavBar", $event);
|
|
12948
12949
|
if ($event == 'next') {
|
|
12949
12950
|
this.next();
|
|
12950
12951
|
}
|
|
@@ -14097,7 +14098,6 @@
|
|
|
14097
14098
|
*/
|
|
14098
14099
|
function () {
|
|
14099
14100
|
this.goToRedirect('onClose');
|
|
14100
|
-
// this.dialogRef.close('done');
|
|
14101
14101
|
};
|
|
14102
14102
|
/**
|
|
14103
14103
|
* @param {?} source
|
|
@@ -14108,9 +14108,12 @@
|
|
|
14108
14108
|
* @return {?}
|
|
14109
14109
|
*/
|
|
14110
14110
|
function (source) {
|
|
14111
|
-
console.log("[goToRedirect]", source, this.data.redirect);
|
|
14112
14111
|
if (this.data.redirect) {
|
|
14113
14112
|
this.router.navigateByUrl(this.data.redirect);
|
|
14113
|
+
this.dialogRef.close('redirecting');
|
|
14114
|
+
}
|
|
14115
|
+
else {
|
|
14116
|
+
this.dialogRef.close('done');
|
|
14114
14117
|
}
|
|
14115
14118
|
};
|
|
14116
14119
|
/**
|
|
@@ -14184,6 +14187,7 @@
|
|
|
14184
14187
|
this.trailContentService = trailContentService;
|
|
14185
14188
|
this.eventRefreshSideBar = new core.EventEmitter();
|
|
14186
14189
|
this.eventNavbar = new core.EventEmitter();
|
|
14190
|
+
this.ratingOpened = false;
|
|
14187
14191
|
}
|
|
14188
14192
|
/**
|
|
14189
14193
|
* @return {?}
|
|
@@ -14449,21 +14453,25 @@
|
|
|
14449
14453
|
function (event) {
|
|
14450
14454
|
var _this = this;
|
|
14451
14455
|
if (event === void 0) { event = 'next'; }
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14456
|
+
if (!this.ratingOpened) {
|
|
14457
|
+
this.ratingOpened = true;
|
|
14458
|
+
/** @type {?} */
|
|
14459
|
+
var dialogRef = this.dialog.open(ModalStarRatingComponent, {
|
|
14460
|
+
width: '380px',
|
|
14461
|
+
disableClose: true,
|
|
14462
|
+
data: { id: this.id, owner: this, event: event, redirect: this.redirect }
|
|
14463
|
+
});
|
|
14464
|
+
dialogRef.afterClosed().subscribe((/**
|
|
14465
|
+
* @param {?} result
|
|
14466
|
+
* @return {?}
|
|
14467
|
+
*/
|
|
14468
|
+
function (result) {
|
|
14469
|
+
_this.ratingOpened = false;
|
|
14470
|
+
console.log('[ViewerComponente] ratingEvent -> ', result);
|
|
14471
|
+
_this.eventNavbar.emit(result);
|
|
14472
|
+
window.scrollTo(0, 0);
|
|
14473
|
+
}));
|
|
14474
|
+
}
|
|
14467
14475
|
};
|
|
14468
14476
|
ViewerComponent.decorators = [
|
|
14469
14477
|
{ type: core.Component, args: [{
|
|
@@ -14521,6 +14529,8 @@
|
|
|
14521
14529
|
/** @type {?} */
|
|
14522
14530
|
ViewerComponent.prototype.redirect;
|
|
14523
14531
|
/** @type {?} */
|
|
14532
|
+
ViewerComponent.prototype.ratingOpened;
|
|
14533
|
+
/** @type {?} */
|
|
14524
14534
|
ViewerComponent.prototype.componentArray;
|
|
14525
14535
|
/** @type {?} */
|
|
14526
14536
|
ViewerComponent.prototype.loader;
|