info-library 2.10.38 → 2.10.41
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/bundles/info-library.umd.js +10 -26
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/controls/autocomplete/autocomplete.component.js +3 -20
- package/esm2015/controls/card/card.component.js +2 -2
- package/esm2015/layouts/main/main.component.js +2 -1
- package/esm2015/model/session.model.js +3 -1
- package/esm2015/service/authentication.service.js +4 -3
- package/fesm2015/info-library.js +9 -22
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.metadata.json +1 -1
- package/model/session.model.d.ts +1 -0
- package/package.json +1 -1
- package/service/authentication.service.d.ts +1 -1
|
@@ -612,6 +612,8 @@
|
|
|
612
612
|
/** @type {?} */
|
|
613
613
|
InfoSessionModel.prototype.Parametros;
|
|
614
614
|
/** @type {?} */
|
|
615
|
+
InfoSessionModel.prototype.MFA;
|
|
616
|
+
/** @type {?} */
|
|
615
617
|
InfoSessionModel.prototype.TempoInatividade;
|
|
616
618
|
}
|
|
617
619
|
|
|
@@ -1634,14 +1636,16 @@
|
|
|
1634
1636
|
* @param {?} usuario
|
|
1635
1637
|
* @param {?} senha
|
|
1636
1638
|
* @param {?=} reCaptchaToken
|
|
1639
|
+
* @param {?=} codigo2FA
|
|
1637
1640
|
* @return {?}
|
|
1638
1641
|
*/
|
|
1639
|
-
InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken) {
|
|
1642
|
+
InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken, codigo2FA) {
|
|
1640
1643
|
var _this = this;
|
|
1641
1644
|
if (reCaptchaToken === void 0) { reCaptchaToken = null; }
|
|
1645
|
+
if (codigo2FA === void 0) { codigo2FA = null; }
|
|
1642
1646
|
this.removeSessao();
|
|
1643
1647
|
return this._http
|
|
1644
|
-
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken })
|
|
1648
|
+
.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken, Codigo2FA: codigo2FA })
|
|
1645
1649
|
.pipe(operators.map(( /**
|
|
1646
1650
|
* @param {?} r
|
|
1647
1651
|
* @return {?}
|
|
@@ -2520,18 +2524,7 @@
|
|
|
2520
2524
|
*/function (/**
|
|
2521
2525
|
* @param {?} a
|
|
2522
2526
|
* @return {?}
|
|
2523
|
-
*/ a) {
|
|
2524
|
-
_this.data = a.data;
|
|
2525
|
-
_this.loading = false;
|
|
2526
|
-
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2527
|
-
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2528
|
-
* @param {?} r
|
|
2529
|
-
* @return {?}
|
|
2530
|
-
*/function (/**
|
|
2531
|
-
* @param {?} r
|
|
2532
|
-
* @return {?}
|
|
2533
|
-
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2534
|
-
}));
|
|
2527
|
+
*/ a) { _this.data = a.data; _this.loading = false; }));
|
|
2535
2528
|
this.control.valueChanges.subscribe(( /**
|
|
2536
2529
|
* @param {?} value
|
|
2537
2530
|
* @return {?}
|
|
@@ -2553,17 +2546,7 @@
|
|
|
2553
2546
|
*/function (/**
|
|
2554
2547
|
* @param {?} a
|
|
2555
2548
|
* @return {?}
|
|
2556
|
-
*/ a) {
|
|
2557
|
-
_this.data = _this.options = a.data;
|
|
2558
|
-
if (_this.selectedValue && _this.onselecteditem != null)
|
|
2559
|
-
_this.onselecteditem.emit(_this.data == null ? null : _this.data.find(( /**
|
|
2560
|
-
* @param {?} r
|
|
2561
|
-
* @return {?}
|
|
2562
|
-
*/function (/**
|
|
2563
|
-
* @param {?} r
|
|
2564
|
-
* @return {?}
|
|
2565
|
-
*/ r) { return r.Id == _this.selectedValue; })));
|
|
2566
|
-
}));
|
|
2549
|
+
*/ a) { return _this.data = _this.options = a.data; }));
|
|
2567
2550
|
}
|
|
2568
2551
|
};
|
|
2569
2552
|
/**
|
|
@@ -3138,7 +3121,7 @@
|
|
|
3138
3121
|
InfoCardComponent.decorators = [
|
|
3139
3122
|
{ type: i0.Component, args: [{
|
|
3140
3123
|
selector: 'info-card',
|
|
3141
|
-
template: "<mat-card (click)=\"onCardClick()\">\r\n <mat-card-content>\r\n <h4>{{ label | translate }}</h4>\r\n <p
|
|
3124
|
+
template: "<mat-card (click)=\"onCardClick()\">\r\n <mat-card-content>\r\n <h4>{{ label | translate }}</h4>\r\n <p [innerHTML]=\"description | translate\"></p>\r\n <mark *ngIf=\"mark\"><small>{{ mark }}</small></mark>\r\n </mat-card-content>\r\n <mat-card-footer>\r\n <mat-icon>{{icon}}</mat-icon>\r\n </mat-card-footer>\r\n</mat-card>",
|
|
3142
3125
|
styles: [":host mat-card-footer{height:70px;overflow:hidden;position:relative}:host mat-card-footer mat-icon{bottom:36px;color:#aaa;font-size:5.71rem;opacity:.4;position:absolute;right:42px}"]
|
|
3143
3126
|
}] }
|
|
3144
3127
|
];
|
|
@@ -6760,6 +6743,7 @@
|
|
|
6760
6743
|
_this._session.OcultarNomeCliente = r.data.OcultarNomeCliente;
|
|
6761
6744
|
_this._session.Empresas = r.data.Empresas;
|
|
6762
6745
|
_this._session.Parametros = r.data.Parametros;
|
|
6746
|
+
_this._session.MFA = r.data.MFA;
|
|
6763
6747
|
_this._session.TempoInatividade = r.data.TempoInatividade;
|
|
6764
6748
|
_this._session.Versao = r.data.Versao;
|
|
6765
6749
|
_this.version = r.data.Versao;
|