info-library 2.10.35 → 2.10.38

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.
@@ -1633,13 +1633,15 @@
1633
1633
  /**
1634
1634
  * @param {?} usuario
1635
1635
  * @param {?} senha
1636
+ * @param {?=} reCaptchaToken
1636
1637
  * @return {?}
1637
1638
  */
1638
- InfoAuthenticationService.prototype.login = function (usuario, senha) {
1639
+ InfoAuthenticationService.prototype.login = function (usuario, senha, reCaptchaToken) {
1639
1640
  var _this = this;
1641
+ if (reCaptchaToken === void 0) { reCaptchaToken = null; }
1640
1642
  this.removeSessao();
1641
1643
  return this._http
1642
- .post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha })
1644
+ .post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/autenticar', { Usuario: usuario, Senha: senha, ReCaptchaToken: reCaptchaToken })
1643
1645
  .pipe(operators.map(( /**
1644
1646
  * @param {?} r
1645
1647
  * @return {?}
@@ -2518,7 +2520,18 @@
2518
2520
  */function (/**
2519
2521
  * @param {?} a
2520
2522
  * @return {?}
2521
- */ a) { _this.data = a.data; _this.loading = false; }));
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
+ }));
2522
2535
  this.control.valueChanges.subscribe(( /**
2523
2536
  * @param {?} value
2524
2537
  * @return {?}
@@ -2540,7 +2553,17 @@
2540
2553
  */function (/**
2541
2554
  * @param {?} a
2542
2555
  * @return {?}
2543
- */ a) { return _this.data = _this.options = a.data; }));
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
+ }));
2544
2567
  }
2545
2568
  };
2546
2569
  /**
@@ -5414,11 +5437,13 @@
5414
5437
  /**
5415
5438
  * @param {?} valor
5416
5439
  * @param {?=} selecionados
5440
+ * @param {?=} todos
5417
5441
  * @return {?}
5418
5442
  */
5419
- InfoListCheckboxComponent.prototype.getModel = function (valor, selecionados) {
5443
+ InfoListCheckboxComponent.prototype.getModel = function (valor, selecionados, todos) {
5420
5444
  if (selecionados === void 0) { selecionados = false; }
5421
- if (this.max == null || this.max == 0)
5445
+ if (todos === void 0) { todos = false; }
5446
+ if (todos || this.max == null || this.max == 0)
5422
5447
  return this.model.filter(( /**
5423
5448
  * @param {?} r
5424
5449
  * @return {?}
@@ -5444,7 +5469,7 @@
5444
5469
  InfoListCheckboxComponent.prototype.marcarFiltrados = function (valor, marcar, selecionados) {
5445
5470
  if (selecionados === void 0) { selecionados = false; }
5446
5471
  /** @type {?} */
5447
- var ids = this.getModel(valor, selecionados).map(( /**
5472
+ var ids = this.getModel(valor, selecionados, true).map(( /**
5448
5473
  * @param {?} r
5449
5474
  * @return {?}
5450
5475
  */function (/**
@@ -5812,8 +5837,11 @@
5812
5837
  * @param {?} r
5813
5838
  * @return {?}
5814
5839
  */ r) {
5815
- if (r.success)
5840
+ if (r.success) {
5816
5841
  _this.data = r.data;
5842
+ if (_this.selectedValue)
5843
+ _this.onChangeValue();
5844
+ }
5817
5845
  _this.loading = false;
5818
5846
  }));
5819
5847
  };
@@ -6358,8 +6386,11 @@
6358
6386
  * @param {?} r
6359
6387
  * @return {?}
6360
6388
  */ r) {
6361
- if (r.success)
6389
+ if (r.success) {
6362
6390
  _this.data = r.data;
6391
+ if ((_this.selectedValues || []).length > 0)
6392
+ _this.onChangeValue();
6393
+ }
6363
6394
  _this.loading = false;
6364
6395
  }));
6365
6396
  };