ngx-techlify-core 11.2.7 → 11.2.8

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.
@@ -2151,6 +2151,7 @@
2151
2151
  this.edit = false;
2152
2152
  this.sort = true;
2153
2153
  this.selectionChange = new i0.EventEmitter();
2154
+ this.itemsChange = new i0.EventEmitter();
2154
2155
  this.isLoading = false;
2155
2156
  this.onChange = function () { };
2156
2157
  this.onTouched = function () { };
@@ -2239,7 +2240,10 @@
2239
2240
  items = __spread([this.selectedValue], this.items);
2240
2241
  else
2241
2242
  items = this.items;
2242
- return items.filter(function (v, i, a) { return a.findIndex(function (v) { return v[_this.valueField] === a[i][_this.valueField]; }) === i; });
2243
+ items = items.filter(function (v, i, a) { return a.findIndex(function (v) { return v[_this.valueField] === a[i][_this.valueField]; }) === i; });
2244
+ //Emit the items to any child component
2245
+ this.itemsChange.emit(items);
2246
+ return items;
2243
2247
  },
2244
2248
  enumerable: false,
2245
2249
  configurable: true
@@ -2416,6 +2420,7 @@
2416
2420
  searchField: [{ type: i0.Input }],
2417
2421
  itemComponent: [{ type: i0.Input }],
2418
2422
  selectionChange: [{ type: i0.Output }],
2423
+ itemsChange: [{ type: i0.Output }],
2419
2424
  required: [{ type: i0.Input }],
2420
2425
  disabled: [{ type: i0.Input }],
2421
2426
  value: [{ type: i0.Input }]