@wizishop/angular-components 0.0.50 → 0.0.51

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.
@@ -230,16 +230,10 @@
230
230
  r[k] = a[j];
231
231
  return r;
232
232
  }
233
- function __spreadArray(to, from, pack) {
234
- if (pack || arguments.length === 2)
235
- for (var i = 0, l = from.length, ar; i < l; i++) {
236
- if (ar || !(i in from)) {
237
- if (!ar)
238
- ar = Array.prototype.slice.call(from, 0, i);
239
- ar[i] = from[i];
240
- }
241
- }
242
- return to.concat(ar || Array.prototype.slice.call(from));
233
+ function __spreadArray(to, from) {
234
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
235
+ to[j] = from[i];
236
+ return to;
243
237
  }
244
238
  function __await(v) {
245
239
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -3362,14 +3356,14 @@
3362
3356
  FiltersComponent.prototype.activeFilter = function (index) {
3363
3357
  this.options[index].active = true;
3364
3358
  this.filterActiveIndex = '' + index;
3365
- this.filterChange.emit(true);
3359
+ this.filterChange.emit(index);
3366
3360
  };
3367
3361
  FiltersComponent.prototype.resetFilter = function () {
3368
3362
  this.options.forEach(function (item) {
3369
3363
  item.active = false;
3370
3364
  });
3371
3365
  this.filterActiveIndex = null;
3372
- this.filterChange.emit(true);
3366
+ this.filterChange.emit(-1);
3373
3367
  };
3374
3368
  return FiltersComponent;
3375
3369
  }());