@firestitch/list 12.7.1 → 12.7.3

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.
@@ -691,7 +691,12 @@
691
691
  this.menu = (_a = value.menu) !== null && _a !== void 0 ? _a : true;
692
692
  this.remove = value.remove;
693
693
  this.className = value.className;
694
- this.type = (_b = value.type) !== null && _b !== void 0 ? _b : exports.ActionType.Basic;
694
+ if (this.menu && this.icon && !this.label && !value.type) {
695
+ this.type = exports.ActionType.Icon;
696
+ }
697
+ else {
698
+ this.type = (_b = value.type) !== null && _b !== void 0 ? _b : exports.ActionType.Basic;
699
+ }
695
700
  this.show = value.show;
696
701
  this.restore = value.restore;
697
702
  this.rowActions = (_c = value.rowActions) === null || _c === void 0 ? void 0 : _c.map(function (action) { return new RowAction(action); });
@@ -1697,7 +1702,6 @@
1697
1702
  var row = this.visibleRows.find(function (visibleRow) { return visibleRow.data === rowData; });
1698
1703
  row.toggleRowExpandStatus();
1699
1704
  this._updateVisibleRows();
1700
- console.log(this._rowsStack);
1701
1705
  };
1702
1706
  DataController.prototype._updateRowsStack = function (rows) {
1703
1707
  var _this = this;
@@ -4854,14 +4858,17 @@
4854
4858
  this._destroy$ = new rxjs.Subject();
4855
4859
  }
4856
4860
  FsCellComponent.prototype.ngOnInit = function () {
4857
- this._initCellContext();
4858
- this._initCellTemplate();
4859
4861
  this._listenGroupOpen();
4860
4862
  };
4861
4863
  FsCellComponent.prototype.ngOnChanges = function (changes) {
4862
- if (changes.rowIndex) {
4864
+ var _a, _b, _c, _d;
4865
+ if (((_a = changes.rowIndex) === null || _a === void 0 ? void 0 : _a.currentValue) !== ((_b = changes.rowIndex) === null || _b === void 0 ? void 0 : _b.previousValue)) {
4863
4866
  this.cellContext.index = this.rowIndex;
4864
4867
  }
4868
+ if (((_c = changes.column) === null || _c === void 0 ? void 0 : _c.currentValue) !== ((_d = changes.column) === null || _d === void 0 ? void 0 : _d.previousValue)) {
4869
+ this._initCellContext();
4870
+ this._initCellTemplate();
4871
+ }
4865
4872
  };
4866
4873
  FsCellComponent.prototype.ngOnDestroy = function () {
4867
4874
  this._destroy$.next();
@@ -5296,7 +5303,6 @@
5296
5303
  doneResult
5297
5304
  .pipe(operators.takeUntil(this._destroy$))
5298
5305
  .subscribe(function () {
5299
- console.log('enable');
5300
5306
  _this._reorderController.enableReorderAction();
5301
5307
  });
5302
5308
  }