@coolon/angular-ui-powerups 12.4.0-alpha.38 → 12.4.0-alpha.39

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.
@@ -1431,10 +1431,22 @@
1431
1431
  exports.TrackBy = void 0;
1432
1432
  (function (TrackBy) {
1433
1433
  TrackBy.byIndex = function (index, item) { return index; };
1434
+ /**
1435
+ * @deprecated use #track(MyType).by("property") instead.
1436
+ * @param property
1437
+ */
1434
1438
  function trackByProperty(property) {
1435
1439
  return function (index, item) { return item[property]; };
1436
1440
  }
1437
1441
  TrackBy.trackByProperty = trackByProperty;
1442
+ function track(type) {
1443
+ return {
1444
+ by: function (property) {
1445
+ return function (index, item) { return item[property]; };
1446
+ }
1447
+ };
1448
+ }
1449
+ TrackBy.track = track;
1438
1450
  })(exports.TrackBy || (exports.TrackBy = {}));
1439
1451
 
1440
1452
  exports.CommandContainer = /** @class */ (function (_super) {