@mtna/web-form-angular 1.0.6-SNAPSHOT.18 → 1.0.6-SNAPSHOT.19
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.
- package/bundles/mtna-web-form-angular.umd.js +11 -1
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/step-card/step-card.component.js +11 -2
- package/fesm2015/mtna-web-form-angular.js +10 -1
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/step-card/step-card.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7628,13 +7628,23 @@
|
|
|
7628
7628
|
configurable: true
|
|
7629
7629
|
});
|
|
7630
7630
|
MtnaWfStepCardComponent.prototype.handleFocusChange = function (event) {
|
|
7631
|
+
var _this = this;
|
|
7631
7632
|
if (!!this.step && coreTs.isPresent(event)) {
|
|
7632
7633
|
this.focused.emit(this.step);
|
|
7633
7634
|
}
|
|
7634
7635
|
else if (!coreTs.isPresent(event)) {
|
|
7635
|
-
|
|
7636
|
+
// Wait until focus settles, then check whether it actually left the card
|
|
7637
|
+
setTimeout(function () {
|
|
7638
|
+
var activeElement = document.activeElement;
|
|
7639
|
+
if (!_this._elementRef.nativeElement.contains(activeElement)) {
|
|
7640
|
+
_this.emitDeactivate();
|
|
7641
|
+
}
|
|
7642
|
+
});
|
|
7636
7643
|
}
|
|
7637
7644
|
};
|
|
7645
|
+
MtnaWfStepCardComponent.prototype.emitDeactivate = function () {
|
|
7646
|
+
this.focused.emit(new FormStep(-1, 'Deactivate', deactivateStep));
|
|
7647
|
+
};
|
|
7638
7648
|
return MtnaWfStepCardComponent;
|
|
7639
7649
|
}(_StepCardMixinBase));
|
|
7640
7650
|
MtnaWfStepCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MtnaWfStepCardComponent, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|