@firestitch/list 12.7.0 → 12.7.2

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); });
@@ -4250,7 +4255,7 @@
4250
4255
  if (!data) {
4251
4256
  return;
4252
4257
  }
4253
- this.menu = (_a = data.menu) !== null && _a !== void 0 ? _a : true;
4258
+ this.menu = (_a = data.menu) !== null && _a !== void 0 ? _a : false;
4254
4259
  this.position = (_b = data.position) !== null && _b !== void 0 ? _b : exports.ReorderPosition.Left;
4255
4260
  if (!data.disabled) {
4256
4261
  this.strategy = ReorderStrategy.Always;