@mtna/web-form-angular 1.0.6-SNAPSHOT.14 → 1.0.6-SNAPSHOT.16

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.
@@ -4473,6 +4473,9 @@
4473
4473
  },
4474
4474
  set: function (value) {
4475
4475
  this._step = value;
4476
+ if (this.wfItemComponent && this.wfItemComponent instanceof MtnaWfBaseSectionItem) {
4477
+ this.wfItemComponent.step = this._step;
4478
+ }
4476
4479
  },
4477
4480
  enumerable: false,
4478
4481
  configurable: true
@@ -7588,7 +7591,7 @@
7588
7591
  Object.defineProperty(MtnaWfStepCardComponent.prototype, "active", {
7589
7592
  get: function () {
7590
7593
  var _a;
7591
- return !!((_a = this.step) === null || _a === void 0 ? void 0 : _a.active);
7594
+ return !!((_a = this.step) === null || _a === void 0 ? void 0 : _a.active) || this.mouseFocused;
7592
7595
  },
7593
7596
  enumerable: false,
7594
7597
  configurable: true
@@ -7598,6 +7601,7 @@
7598
7601
  this.mouseFocused = true;
7599
7602
  };
7600
7603
  MtnaWfStepCardComponent.prototype.handleMouseLeave = function (event) {
7604
+ this.handleFocusChange(null);
7601
7605
  this.mouseFocused = false;
7602
7606
  };
7603
7607
  Object.defineProperty(MtnaWfStepCardComponent.prototype, "step", {
@@ -7612,9 +7616,12 @@
7612
7616
  configurable: true
7613
7617
  });
7614
7618
  MtnaWfStepCardComponent.prototype.handleFocusChange = function (event) {
7615
- if (!!this.step && !!event) {
7619
+ if (!!this.step && coreTs.isPresent(event)) {
7616
7620
  this.focused.emit(this.step);
7617
7621
  }
7622
+ else if (!coreTs.isPresent(event)) {
7623
+ this.focused.emit(undefined);
7624
+ }
7618
7625
  };
7619
7626
  return MtnaWfStepCardComponent;
7620
7627
  }(_StepCardMixinBase));