asap-viewer 12.5.44 → 12.5.46
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 +48 -27
- 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/editor/components/conclusion/conclusion.component.js +43 -23
- package/esm2015/lib/visualizador/modal-rating/modal-rating.component.js +1 -3
- package/esm5/lib/editor/components/conclusion/conclusion.component.js +49 -26
- package/esm5/lib/visualizador/modal-rating/modal-rating.component.js +1 -3
- package/fesm2015/asap-viewer.js +42 -24
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +48 -27
- package/fesm5/asap-viewer.js.map +1 -1
- package/lib/editor/components/conclusion/conclusion.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -70,11 +70,9 @@ var ModalStarRatingComponent = /** @class */ (function () {
|
|
|
70
70
|
// this.showCertificateLink = false;
|
|
71
71
|
_this.goToRedirect('save');
|
|
72
72
|
_this.showContinueButtom = true;
|
|
73
|
-
_this.dialogRef.close('done');
|
|
74
73
|
}
|
|
75
74
|
else {
|
|
76
75
|
_this.showContinueButtom = true;
|
|
77
|
-
_this.dialogRef.close('done');
|
|
78
76
|
}
|
|
79
77
|
}), (/**
|
|
80
78
|
* @param {?} error
|
|
@@ -178,4 +176,4 @@ if (false) {
|
|
|
178
176
|
/** @type {?} */
|
|
179
177
|
ModalStarRatingComponent.prototype.data;
|
|
180
178
|
}
|
|
181
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
179
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtcmF0aW5nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FzYXAtdmlld2VyLyIsInNvdXJjZXMiOlsibGli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mVjdCkge1xuICAgICAgdGhpcy5yb3V0ZXIubmF2aWdhdGVCeVVybCh0aGlzLmRhdGEucmVkaXJlY3QpO1xuICAgICAgdGhpcy5kaWFsb2dSZWYuY2xvc2UoJ3JlZGlyZWN0aW5nJyk7XG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgdGhpcy5kaWFsb2dSZWYuY2xvc2UoJ2RvbmUnKTtcbiAgICB9XG4gIH1cbiAgICBcbiAgZ29Ub0NlcnRpZmljYXRlKCkge1xuICAgIHRoaXMuZGlhbG9nUmVmLmNsb3NlKHRydWUpO1xuICAgIC8vIHRoaXMucm91dGVyLm5hdmlnYXRlKFsnL215LXBhZ2UnXSwge3F1ZXJ5UGFyYW1zOiB7Y2VydGlmaWNhdGU6ICdjZXJ0aWZpY2F0ZSd9fSk7XG4gIH1cbn1cbiJdfQ==
|
package/fesm2015/asap-viewer.js
CHANGED
|
@@ -5186,8 +5186,15 @@ class EditorConclusionComponent {
|
|
|
5186
5186
|
this.router = router;
|
|
5187
5187
|
this.event = new EventEmitter();
|
|
5188
5188
|
this.rating = new EventEmitter();
|
|
5189
|
+
this.certificateButton = {
|
|
5190
|
+
text: "Certificado",
|
|
5191
|
+
color: "#fff",
|
|
5192
|
+
background: "#0d0d80",
|
|
5193
|
+
hide: false
|
|
5194
|
+
};
|
|
5189
5195
|
this.loading = true;
|
|
5190
5196
|
this.getLoggedUser();
|
|
5197
|
+
console.log("[Constructor] Conclusion, o Certo e não o outro componente com o mesmo nome.");
|
|
5191
5198
|
this.activatedRoute.params.subscribe((/**
|
|
5192
5199
|
* @param {?} param
|
|
5193
5200
|
* @return {?}
|
|
@@ -5204,6 +5211,29 @@ class EditorConclusionComponent {
|
|
|
5204
5211
|
}
|
|
5205
5212
|
}));
|
|
5206
5213
|
}
|
|
5214
|
+
/**
|
|
5215
|
+
* @return {?}
|
|
5216
|
+
*/
|
|
5217
|
+
ngOnInit() {
|
|
5218
|
+
this.getLoggedUser();
|
|
5219
|
+
/** @type {?} */
|
|
5220
|
+
const path = this.activatedRoute.snapshot.routeConfig.path.split("/");
|
|
5221
|
+
if (path[0] === "mini-etapa") {
|
|
5222
|
+
this.miniType = 0;
|
|
5223
|
+
}
|
|
5224
|
+
else if (path[0] === "etapa-develop") {
|
|
5225
|
+
this.miniType = 1;
|
|
5226
|
+
}
|
|
5227
|
+
else if (path[0] === "etapa-artigo") {
|
|
5228
|
+
this.miniType = 2;
|
|
5229
|
+
}
|
|
5230
|
+
else if (path[0] === "etapa") {
|
|
5231
|
+
this.id = this.routeId;
|
|
5232
|
+
}
|
|
5233
|
+
this.getPerformance();
|
|
5234
|
+
console.log("[ngOnint] item: ", this.item);
|
|
5235
|
+
console.log("[ngOnint] content: ", this.content);
|
|
5236
|
+
}
|
|
5207
5237
|
/**
|
|
5208
5238
|
* @param {?} changes
|
|
5209
5239
|
* @return {?}
|
|
@@ -5261,27 +5291,6 @@ class EditorConclusionComponent {
|
|
|
5261
5291
|
certificate() {
|
|
5262
5292
|
this.router.navigate([`/training`, this.trail_id]);
|
|
5263
5293
|
}
|
|
5264
|
-
/**
|
|
5265
|
-
* @return {?}
|
|
5266
|
-
*/
|
|
5267
|
-
ngOnInit() {
|
|
5268
|
-
this.getLoggedUser();
|
|
5269
|
-
/** @type {?} */
|
|
5270
|
-
const path = this.activatedRoute.snapshot.routeConfig.path.split("/");
|
|
5271
|
-
if (path[0] === "mini-etapa") {
|
|
5272
|
-
this.miniType = 0;
|
|
5273
|
-
}
|
|
5274
|
-
else if (path[0] === "etapa-develop") {
|
|
5275
|
-
this.miniType = 1;
|
|
5276
|
-
}
|
|
5277
|
-
else if (path[0] === "etapa-artigo") {
|
|
5278
|
-
this.miniType = 2;
|
|
5279
|
-
}
|
|
5280
|
-
else if (path[0] === "etapa") {
|
|
5281
|
-
this.id = this.routeId;
|
|
5282
|
-
}
|
|
5283
|
-
this.getPerformance();
|
|
5284
|
-
}
|
|
5285
5294
|
/**
|
|
5286
5295
|
* @return {?}
|
|
5287
5296
|
*/
|
|
@@ -5382,11 +5391,17 @@ class EditorConclusionComponent {
|
|
|
5382
5391
|
}
|
|
5383
5392
|
}));
|
|
5384
5393
|
}
|
|
5394
|
+
/**
|
|
5395
|
+
* @return {?}
|
|
5396
|
+
*/
|
|
5397
|
+
goToUrlCertificate() {
|
|
5398
|
+
window.open(this.content.certificate, "_blank");
|
|
5399
|
+
}
|
|
5385
5400
|
}
|
|
5386
5401
|
EditorConclusionComponent.decorators = [
|
|
5387
5402
|
{ type: Component, args: [{
|
|
5388
5403
|
selector: "app-editor-component-conclusion",
|
|
5389
|
-
template: "<div class=\"card-content conclusion-container\" [ngStyle]=\"{'background-color': item.background}\">\n\n <div class=\"row\">\n <div class=\"col-md-12 text-center m-conc-container\">\n <div class=\"text-center m-conc\">\n\n <div *ngIf=\"item.feedback === 'feedback'\">\n <div class=\"text-center\" id=\"image-container\">\n <img class=\"logo-animation\" [src]=\"viewerService.options.logo || 'assets/img/logo.png'\" />\n </div>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <div id=\"feedback-container\">\n <ul class=\"unstyled-list list-inline\" @icons>\n\n <li\n matTooltip=\"\n {{ 'YouGot' | translate }} {{CorrectAnswer}}/{{ feedback.TotalMultiple }} {{ 'ofTheTotalityOfQuestionsMultipleChoice' | translate }}\"\n @icon *ngIf=\"CorrectAnswer != null && CorrectAnswer != 0\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion correct\" [class.icon-danger]=\"CorrectAnswer == '0%'\">\n <span>{{CorrectAnswer}}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"CorrectAnswer == '0%'\">\n <i class=\"fa fa-check\" [class.fa-check]=\"CorrectAnswer != '0%'\"\n [class.fa-times]=\"CorrectAnswer == '0%'\"></i>\n </div>\n </div>\n </li>\n\n <li\n matTooltip=\"{{ 'YouGot' | translate }} {{rightOrWrong}} {{ 'ofTheTotalityOfIssuesRightAndWrong' | translate }}\"\n @icon *ngIf=\"rightOrWrong != null && rightOrWrong > 0\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion\" [class.icon-danger]=\"rightOrWrong == '0%'\">\n <span>{{rightOrWrong}}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"rightOrWrong == '0%'\">\n <i class=\"fa fa-check\" [class.fa-check]=\"rightOrWrong != '0%'\"\n [class.fa-times]=\"rightOrWrong == '0%'\"></i>\n </div>\n </div>\n </li>\n\n <ng-container *ngIf=\"feedback?.randomQuestionTotal && feedback?.randomQuestionTotal != 0\">\n <li\n matTooltip=\"{{ 'YouGot' | translate }} {{ feedback?.randomQuestionScore }}/{{ feedback?.randomQuestionTotal }} {{ 'ofTheEntireForm' | translate }}\"\n @icon *ngIf=\"feedback?.randomQuestionTotal !== null\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion\"\n [class.icon-danger]=\"feedback.randomQuestionTotal === 0\">\n <span>{{feedback.randomQuestionScore }}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"feedback?.randomQuestionScore === 0\">\n <i classf=\"fa fa-check\" [class.fa-check]=\"feedback?.randomQuestionScore !== 0\"\n [class.fa-times]=\"feedback?.randomQuestionScore === 0\"></i>\n </div>\n </div>\n </li>\n </ng-container>\n\n </ul>\n </div>\n\n <p class=\"my-4 animated\" *ngIf=\"feedback && feedback.sequence && feedback.sequence.length > 0\"\n [ngStyle]=\"{'color': item?.text.color, 'text-align':item?.text.align, 'font-size':item?.text.size }\"\n [ngClass]=\"item.text.animation\">\n {{ 'YouGot' | translate }} <b>{{ performance }}%</b> {{ 'OfTheQuestions' | translate }}\n </p>\n\n <p *ngIf=\"!performance\">\n <i class=\"fa fa-spinner fa-spin fa-2x text-white\"></i>\n {{ 'CalculatingYourResult' | translate }}\n </p>\n </div>\n\n <div *ngIf=\"!item.feedback\">\n <i id=\"conclusion-icon\" class=\"material-icons fs-60 animated\" [ngStyle]=\"{'color': item.featureColor}\"\n [ngClass]=\"item.icon_animation\">check_circle\n </i>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">\n {{ item.text.text }}\n </p>\n </div>\n\n <div *ngIf=\"item.feedback === 'icon'\">\n <i id=\"conclusion-icon\" class=\"material-icons fs-60 animated\" [ngStyle]=\"{'color': item.featureColor}\"\n [ngClass]=\"item.icon_animation\">check_circle\n </i>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}\n </h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">{{ item.text.text }}\n </p>\n </div>\n\n <div *ngIf=\"item.feedback === 'badge'\">\n <div class=\"text-center\" id=\"image-container\" *ngIf=\"!badge\">\n <div style=\"height: 140px\"></div>\n </div>\n\n <div class=\"text-center\" id=\"image-container\" *ngIf=\"badge\">\n <img class=\"logo-animation\" [src]=\"badge\" />\n </div>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">{{ item.text.text }}\n </p>\n </div>\n\n <div class=\"conclusion-metrics\" *ngIf=\"item.feedback === 'metrics'\">\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\n\n <div class=\"row\">\n <div class=\"col-sm-11 mx-auto\">\n <ul id=\"feedback-container\" class=\"list-inline\" @icons>\n <li matTooltip=\"Voc\u00EA acertou 6/6 da totalidade dos question\u00E1rios\" @icon>\n <div id=\"conclusion-icon\" class=\"icon-conclusion correct\">\n <span>{{item.goal}}%</span>\n <div class=\"conclusion-check\">\n <i class=\"fa fa-check\"></i>\n </div>\n </div>\n <small class=\"text-center\">Sua meta</small>\n </li>\n <li matTooltip=\"Voc\u00EA acertou 1/6 da totalidade dos question\u00E1rios\" @icon>\n <div id=\"conclusion-icon\" class=\"icon-conclusion\" [ngClass]=\"{'wrong': !metaAtingida(item) }\">\n <span>{{item.goal_user}}%</span>\n <div [ngClass]=\"{'conclusion-wrong': !metaAtingida(item), 'conclusion-check': metaAtingida(item)}\">\n <i class=\"fa\" [ngClass]=\"{'fa-times': !metaAtingida(item), 'fa-check': metaAtingida(item)}\"></i>\n </div>\n </div>\n <small>Meta atingida</small>\n </li>\n </ul>\n <div *ngIf=\"!metaAtingida(item)\" class=\"text-center\">\n <p>Infelizmente voc\u00EA n\u00E3o bateu a meta.</p>\n <p>Quer refazer o curso?</p>\n <div class=\"mt-5\">\n <a class=\"btn btn-sm btn-danger mr-3 px-3\" (click)=\"checkEvaluate()\">N\u00E3o</a>\n <a class=\"btn btn-sm btn-primary px-3\" (click)=\"retakeCourse()\">Sim</a>\n </div>\n </div>\n <div *ngIf=\"metaAtingida(item)\" class=\"text-center\">\n <p>Voc\u00EA atingiu a sua meta. Deseja imprimir o certificado?</p>\n <div class=\"mt-5\">\n <a class=\"btn btn-sm btn-danger mr-3 px-3\" (click)=\"checkEvaluate()\">N\u00E3o</a>\n <a class=\"btn btn-sm btn-primary px-3\" (click)=\"certificate()\" target=\"_blank\" href=\"https://apiv3.plataformaasap.com.br/api/certificate/pdf/{{trail_id}}/{{item.user_id}}\">Sim</a>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <app-editor-component-shared-button *ngIf=\"item.feedback != 'metrics'\" [button]=\"item.button\" (event)=\"checkEvaluate()\"></app-editor-component-shared-button>\n\n </div>\n </div>\n </div>\n</div>\n",
|
|
5404
|
+
template: "<div class=\"card-content conclusion-container\" [ngStyle]=\"{'background-color': item.background}\">\n\n <div class=\"row\">\n <div class=\"col-md-12 text-center m-conc-container\">\n <div class=\"text-center m-conc\">\n\n <div *ngIf=\"item.feedback === 'feedback'\">\n <div class=\"text-center\" id=\"image-container\">\n <img class=\"logo-animation\" [src]=\"viewerService.options.logo || 'assets/img/logo.png'\" />\n </div>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <div id=\"feedback-container\">\n <ul class=\"unstyled-list list-inline\" @icons>\n\n <li\n matTooltip=\"\n {{ 'YouGot' | translate }} {{CorrectAnswer}}/{{ feedback.TotalMultiple }} {{ 'ofTheTotalityOfQuestionsMultipleChoice' | translate }}\"\n @icon *ngIf=\"CorrectAnswer != null && CorrectAnswer != 0\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion correct\" [class.icon-danger]=\"CorrectAnswer == '0%'\">\n <span>{{CorrectAnswer}}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"CorrectAnswer == '0%'\">\n <i class=\"fa fa-check\" [class.fa-check]=\"CorrectAnswer != '0%'\"\n [class.fa-times]=\"CorrectAnswer == '0%'\"></i>\n </div>\n </div>\n </li>\n\n <li\n matTooltip=\"{{ 'YouGot' | translate }} {{rightOrWrong}} {{ 'ofTheTotalityOfIssuesRightAndWrong' | translate }}\"\n @icon *ngIf=\"rightOrWrong != null && rightOrWrong > 0\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion\" [class.icon-danger]=\"rightOrWrong == '0%'\">\n <span>{{rightOrWrong}}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"rightOrWrong == '0%'\">\n <i class=\"fa fa-check\" [class.fa-check]=\"rightOrWrong != '0%'\"\n [class.fa-times]=\"rightOrWrong == '0%'\"></i>\n </div>\n </div>\n </li>\n\n <ng-container *ngIf=\"feedback?.randomQuestionTotal && feedback?.randomQuestionTotal != 0\">\n <li\n matTooltip=\"{{ 'YouGot' | translate }} {{ feedback?.randomQuestionScore }}/{{ feedback?.randomQuestionTotal }} {{ 'ofTheEntireForm' | translate }}\"\n @icon *ngIf=\"feedback?.randomQuestionTotal !== null\">\n <div id=\"conclusion-icon\" class=\"icon-conclusion\"\n [class.icon-danger]=\"feedback.randomQuestionTotal === 0\">\n <span>{{feedback.randomQuestionScore }}</span>\n <div class=\"conclusion-check\" [class.icon-danger]=\"feedback?.randomQuestionScore === 0\">\n <i classf=\"fa fa-check\" [class.fa-check]=\"feedback?.randomQuestionScore !== 0\"\n [class.fa-times]=\"feedback?.randomQuestionScore === 0\"></i>\n </div>\n </div>\n </li>\n </ng-container>\n\n </ul>\n </div>\n\n <p class=\"my-4 animated\" *ngIf=\"feedback && feedback.sequence && feedback.sequence.length > 0\"\n [ngStyle]=\"{'color': item?.text.color, 'text-align':item?.text.align, 'font-size':item?.text.size }\"\n [ngClass]=\"item.text.animation\">\n {{ 'YouGot' | translate }} <b>{{ performance }}%</b> {{ 'OfTheQuestions' | translate }}\n </p>\n\n <p *ngIf=\"!performance\">\n <i class=\"fa fa-spinner fa-spin fa-2x text-white\"></i>\n {{ 'CalculatingYourResult' | translate }}\n </p>\n </div>\n\n <div *ngIf=\"!item.feedback\">\n <i id=\"conclusion-icon\" class=\"material-icons fs-60 animated\" [ngStyle]=\"{'color': item.featureColor}\"\n [ngClass]=\"item.icon_animation\">check_circle\n </i>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">\n {{ item.text.text }}\n </p>\n </div>\n\n <div *ngIf=\"item.feedback === 'icon'\">\n <i id=\"conclusion-icon\" class=\"material-icons fs-60 animated\" [ngStyle]=\"{'color': item.featureColor}\"\n [ngClass]=\"item.icon_animation\">check_circle\n </i>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}\n </h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">{{ item.text.text }}\n </p>\n </div>\n\n <div *ngIf=\"item.feedback === 'badge'\">\n <div class=\"text-center\" id=\"image-container\" *ngIf=\"!badge\">\n <div style=\"height: 140px\"></div>\n </div>\n\n <div class=\"text-center\" id=\"image-container\" *ngIf=\"badge\">\n <img class=\"logo-animation\" [src]=\"badge\" />\n </div>\n\n <h3 class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.title.align, 'font-size.px': item.title.size, 'color': item.title.color}\"\n [ngClass]=\"item.title_animation\">{{ item.title.text }}</h3>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.subTitle.align, 'font-size.px': item.subTitle.size, 'color': item.subTitle.color}\"\n [ngClass]=\"item.subTitle_animation\">{{ item.subTitle.text }}</p>\n\n <p class=\"my-4 animated\"\n [ngStyle]=\"{'text-align': item.text.align, 'font-size.px': item.text.size, 'color': item.text.color}\"\n [ngClass]=\"item.text_animation\">{{ item.text.text }}\n </p>\n </div>\n\n <div class=\"conclusion-metrics\" *ngIf=\"item.feedback === 'metrics'\">\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\n\n <div class=\"row\">\n <div class=\"col-sm-11 mx-auto\">\n <ul id=\"feedback-container\" class=\"list-inline\" @icons>\n <li matTooltip=\"Voc\u00EA acertou 6/6 da totalidade dos question\u00E1rios\" @icon>\n <div id=\"conclusion-icon\" class=\"icon-conclusion correct\">\n <span>{{item.goal}}%</span>\n <div class=\"conclusion-check\">\n <i class=\"fa fa-check\"></i>\n </div>\n </div>\n <small class=\"text-center\">Sua meta</small>\n </li>\n <li matTooltip=\"Voc\u00EA acertou 1/6 da totalidade dos question\u00E1rios\" @icon>\n <div id=\"conclusion-icon\" class=\"icon-conclusion\" [ngClass]=\"{'wrong': !metaAtingida(item) }\">\n <span>{{item.goal_user}}%</span>\n <div [ngClass]=\"{'conclusion-wrong': !metaAtingida(item), 'conclusion-check': metaAtingida(item)}\">\n <i class=\"fa\" [ngClass]=\"{'fa-times': !metaAtingida(item), 'fa-check': metaAtingida(item)}\"></i>\n </div>\n </div>\n <small>Meta atingida</small>\n </li>\n </ul>\n <div *ngIf=\"!metaAtingida(item)\" class=\"text-center\">\n <p>Infelizmente voc\u00EA n\u00E3o bateu a meta.</p>\n <p>Quer refazer o curso?</p>\n <div class=\"mt-5\">\n <a class=\"btn btn-sm btn-danger mr-3 px-3\" (click)=\"checkEvaluate()\">N\u00E3o</a>\n <a class=\"btn btn-sm btn-primary px-3\" (click)=\"retakeCourse()\">Sim</a>\n </div>\n </div>\n <div *ngIf=\"metaAtingida(item)\" class=\"text-center\">\n <p>Voc\u00EA atingiu a sua meta. Deseja imprimir o certificado?</p>\n <div class=\"mt-5\">\n <a class=\"btn btn-sm btn-danger mr-3 px-3\" (click)=\"checkEvaluate()\">N\u00E3o</a>\n <a class=\"btn btn-sm btn-primary px-3\" (click)=\"certificate()\" target=\"_blank\" href=\"https://apiv3.plataformaasap.com.br/api/certificate/pdf/{{trail_id}}/{{item.user_id}}\">Sim</a>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <app-editor-component-shared-button *ngIf=\"item.feedback != 'metrics'\" [button]=\"certificateButton\" (event)=\"goToUrlCertificate()\"></app-editor-component-shared-button>\n <app-editor-component-shared-button *ngIf=\"item.feedback != 'metrics' && this.content.certificate\" [button]=\"item.button\" (event)=\"checkEvaluate()\"></app-editor-component-shared-button>\n\n </div>\n </div>\n </div>\n</div>\n",
|
|
5390
5405
|
providers: [TrilhaPerformanceService, TrilhaService, TrilhaRatingService, AsapService],
|
|
5391
5406
|
animations: [
|
|
5392
5407
|
trigger("icon", [
|
|
@@ -5418,6 +5433,7 @@ EditorConclusionComponent.ctorParameters = () => [
|
|
|
5418
5433
|
EditorConclusionComponent.propDecorators = {
|
|
5419
5434
|
id: [{ type: Input }],
|
|
5420
5435
|
item: [{ type: Input }],
|
|
5436
|
+
content: [{ type: Input }],
|
|
5421
5437
|
trail_id: [{ type: Input }],
|
|
5422
5438
|
event: [{ type: Output }],
|
|
5423
5439
|
rating: [{ type: Output }]
|
|
@@ -5428,6 +5444,8 @@ if (false) {
|
|
|
5428
5444
|
/** @type {?} */
|
|
5429
5445
|
EditorConclusionComponent.prototype.item;
|
|
5430
5446
|
/** @type {?} */
|
|
5447
|
+
EditorConclusionComponent.prototype.content;
|
|
5448
|
+
/** @type {?} */
|
|
5431
5449
|
EditorConclusionComponent.prototype.trail_id;
|
|
5432
5450
|
/** @type {?} */
|
|
5433
5451
|
EditorConclusionComponent.prototype.event;
|
|
@@ -5438,6 +5456,8 @@ if (false) {
|
|
|
5438
5456
|
/** @type {?} */
|
|
5439
5457
|
EditorConclusionComponent.prototype.miniType;
|
|
5440
5458
|
/** @type {?} */
|
|
5459
|
+
EditorConclusionComponent.prototype.certificateButton;
|
|
5460
|
+
/** @type {?} */
|
|
5441
5461
|
EditorConclusionComponent.prototype.performance;
|
|
5442
5462
|
/** @type {?} */
|
|
5443
5463
|
EditorConclusionComponent.prototype.rightOrWrong;
|
|
@@ -12089,11 +12109,9 @@ class ModalStarRatingComponent {
|
|
|
12089
12109
|
// this.showCertificateLink = false;
|
|
12090
12110
|
this.goToRedirect('save');
|
|
12091
12111
|
this.showContinueButtom = true;
|
|
12092
|
-
this.dialogRef.close('done');
|
|
12093
12112
|
}
|
|
12094
12113
|
else {
|
|
12095
12114
|
this.showContinueButtom = true;
|
|
12096
|
-
this.dialogRef.close('done');
|
|
12097
12115
|
}
|
|
12098
12116
|
}), (/**
|
|
12099
12117
|
* @param {?} error
|