ngx-smz-ui 3.1.6 → 3.1.7

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.
@@ -7300,7 +7300,7 @@
7300
7300
  return (_b = x === null || x === void 0 ? void 0 : x.length) !== null && _b !== void 0 ? _b : 0;
7301
7301
  }
7302
7302
  ;
7303
- var result = _this.getBigger(multipleLines, true);
7303
+ var result = _this.getBigger(multipleLines, false);
7304
7304
  if (log) {
7305
7305
  console.log('-----------');
7306
7306
  console.log('result multipleLines', result);
@@ -7313,7 +7313,7 @@
7313
7313
  console.log('mapped', mapped);
7314
7314
  console.log('-----------');
7315
7315
  }
7316
- return mapped
7316
+ return mapped.length === 0 ? 0 : mapped
7317
7317
  .reduce(function (accumulator, element) {
7318
7318
  if (log) {
7319
7319
  console.log('-----------');
@@ -10116,6 +10116,11 @@
10116
10116
  }
10117
10117
  return this;
10118
10118
  };
10119
+ SmzFormInputValidatorBuilder.prototype.email = function () {
10120
+ this._input.advancedSettings.validators.push(i1.Validators.email);
10121
+ this._input.advancedSettings.validationMessages.push({ type: 'email', message: 'Email com formato inválido.' });
10122
+ return this;
10123
+ };
10119
10124
  Object.defineProperty(SmzFormInputValidatorBuilder.prototype, "group", {
10120
10125
  get: function () {
10121
10126
  return this._inputBuilder._groupBuilder;