ngx-smz-ui 3.1.1 → 3.1.5

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.
@@ -7278,10 +7278,15 @@
7278
7278
  SmzCloneTableItemsPipe.prototype.getBigger = function (items, log) {
7279
7279
  var _this = this;
7280
7280
  var mapped = items
7281
- .map(function (x) { return x === null || x === void 0 ? void 0 : x.trim(); })
7281
+ .map(function (x) {
7282
+ if (x == null || isArray(x)) {
7283
+ return x;
7284
+ }
7285
+ return x == null ? x : x === null || x === void 0 ? void 0 : x.trim();
7286
+ })
7282
7287
  .map(function (x) {
7283
7288
  var _a, _b;
7284
- var multipleLines = x === null || x === void 0 ? void 0 : x.split('<br>');
7289
+ var multipleLines = (x == null || isArray(x)) ? [] : x === null || x === void 0 ? void 0 : x.split('<br>');
7285
7290
  // if (log) {
7286
7291
  // console.log('-----------')
7287
7292
  // console.log('map x', x);
@@ -10082,12 +10087,10 @@
10082
10087
  }(SmzFormInputBuilder));
10083
10088
  var SmzFormInputValidatorBuilder = /** @class */ (function () {
10084
10089
  function SmzFormInputValidatorBuilder(_inputBuilder, _input) {
10085
- var _a, _b, _c, _d;
10086
10090
  this._inputBuilder = _inputBuilder;
10087
10091
  this._input = _input;
10088
10092
  _input.validatorsPreset = {};
10089
- (_b = (_a = _input.advancedSettings) === null || _a === void 0 ? void 0 : _a.validators) !== null && _b !== void 0 ? _b : [];
10090
- (_d = (_c = _input.advancedSettings) === null || _c === void 0 ? void 0 : _c.validationMessages) !== null && _d !== void 0 ? _d : [];
10093
+ _input.advancedSettings = Object.assign({ validators: [], validationMessages: [] }, _input.advancedSettings);
10091
10094
  }
10092
10095
  SmzFormInputValidatorBuilder.prototype.required = function () {
10093
10096
  this._input.validatorsPreset.isRequired = true;
@@ -18388,13 +18391,13 @@
18388
18391
 
18389
18392
  var SmzNotificationsModule = /** @class */ (function () {
18390
18393
  function SmzNotificationsModule(configuration, service) {
18391
- var _a;
18394
+ var _a, _b;
18392
18395
  if (((_a = configuration.notifications) === null || _a === void 0 ? void 0 : _a.url) != null) {
18396
+ if (((_b = configuration.notifications) === null || _b === void 0 ? void 0 : _b.httpBehavior) == null) {
18397
+ throw Error('You need to specify the notification httpBehavior on rbk configuration.');
18398
+ }
18393
18399
  service.init();
18394
18400
  }
18395
- else {
18396
- throw Error('You need to specify the notification url on rbk configuration.');
18397
- }
18398
18401
  }
18399
18402
  return SmzNotificationsModule;
18400
18403
  }());