@mtna/web-form-angular 1.0.6-SNAPSHOT.17 → 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 +14 -1
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/step-card/step-card.component.js +13 -2
- package/esm2015/lib/models/form-stepper/index.js +2 -1
- package/esm2015/lib/models/form-stepper/step-constants.model.js +2 -0
- package/fesm2015/mtna-web-form-angular.js +13 -2
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/step-card/step-card.component.d.ts +1 -0
- package/lib/models/form-stepper/index.d.ts +1 -0
- package/lib/models/form-stepper/step-constants.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3270,6 +3270,8 @@
|
|
|
3270
3270
|
return coreTs.isType(something, 'className') && something.className === 'FormStep';
|
|
3271
3271
|
}
|
|
3272
3272
|
|
|
3273
|
+
var deactivateStep = 'mtna-web-form-deactivate-step';
|
|
3274
|
+
|
|
3273
3275
|
var CUSTOM_MAT_DATE_FORMAT = {
|
|
3274
3276
|
parse: {
|
|
3275
3277
|
dateInput: 'YYYY/MM/DD',
|
|
@@ -7626,13 +7628,23 @@
|
|
|
7626
7628
|
configurable: true
|
|
7627
7629
|
});
|
|
7628
7630
|
MtnaWfStepCardComponent.prototype.handleFocusChange = function (event) {
|
|
7631
|
+
var _this = this;
|
|
7629
7632
|
if (!!this.step && coreTs.isPresent(event)) {
|
|
7630
7633
|
this.focused.emit(this.step);
|
|
7631
7634
|
}
|
|
7632
7635
|
else if (!coreTs.isPresent(event)) {
|
|
7633
|
-
|
|
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
|
+
});
|
|
7634
7643
|
}
|
|
7635
7644
|
};
|
|
7645
|
+
MtnaWfStepCardComponent.prototype.emitDeactivate = function () {
|
|
7646
|
+
this.focused.emit(new FormStep(-1, 'Deactivate', deactivateStep));
|
|
7647
|
+
};
|
|
7636
7648
|
return MtnaWfStepCardComponent;
|
|
7637
7649
|
}(_StepCardMixinBase));
|
|
7638
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 });
|
|
@@ -12722,6 +12734,7 @@
|
|
|
12722
12734
|
exports.WHOLE_NUMBER_ANSWER_POTENTIAL_DESIGN = WHOLE_NUMBER_ANSWER_POTENTIAL_DESIGN;
|
|
12723
12735
|
exports.YEAR_QUARTER_RANGE_POTENTIAL_DESIGN = YEAR_QUARTER_RANGE_POTENTIAL_DESIGN;
|
|
12724
12736
|
exports.YearQuarterRangeItemTemplateMapper = YearQuarterRangeItemTemplateMapper;
|
|
12737
|
+
exports.deactivateStep = deactivateStep;
|
|
12725
12738
|
exports.everyStepStatus = everyStepStatus;
|
|
12726
12739
|
exports.findFormControl = findFormControl;
|
|
12727
12740
|
exports.findFormItem = findFormItem;
|