@mtna/web-form-angular 1.0.4-SNAPSHOT.1 → 1.0.4-SNAPSHOT.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.
- package/bundles/mtna-web-form-angular.umd.js +6 -2
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/base-form/base-form.component.js +4 -1
- package/esm2015/lib/components/form-stepper/form-stepper/form-stepper.component.js +4 -3
- package/fesm2015/mtna-web-form-angular.js +6 -2
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/base-form/base-form.component.d.ts +1 -0
- package/package.json +9 -9
|
@@ -4399,9 +4399,11 @@
|
|
|
4399
4399
|
/**
|
|
4400
4400
|
* Emitted every time a form control's validation status changes.
|
|
4401
4401
|
* The `id` is the form control's name and the `status` is the new validation status for the control.
|
|
4402
|
+
* TODO: This should be renamed to controlStatus to be more clear
|
|
4402
4403
|
*/
|
|
4403
4404
|
_this.status = new i0.EventEmitter();
|
|
4404
4405
|
_this.focusedSection = new i0.EventEmitter();
|
|
4406
|
+
// TODO: This should emit an object that wraps the generic form type with the validity status boolean
|
|
4405
4407
|
_this.mtnaFormChange = new i0.EventEmitter();
|
|
4406
4408
|
_this.componentIds = [];
|
|
4407
4409
|
_this._hasPreviousForm = false;
|
|
@@ -4624,6 +4626,7 @@
|
|
|
4624
4626
|
this._mtnaFormItemChangeSub = this.mtnaFormManager.formChanges
|
|
4625
4627
|
.pipe(operators.takeUntil(this.destroyed$), operators.skipWhile(function (change) { return !change; }))
|
|
4626
4628
|
.subscribe(function (newForm) { return _this.mtnaFormChange.emit(newForm); });
|
|
4629
|
+
// TODO: This should emit an object that wraps the generic form type with the validity status boolean
|
|
4627
4630
|
};
|
|
4628
4631
|
MtnaWfBaseFormComponent.prototype._unsubscribeFromNgFormChanges = function () {
|
|
4629
4632
|
if (!!this._ngFormStatusChangeSub && !this._ngFormStatusChangeSub.closed) {
|
|
@@ -4916,6 +4919,9 @@
|
|
|
4916
4919
|
event.preventDefault();
|
|
4917
4920
|
event.stopImmediatePropagation();
|
|
4918
4921
|
}
|
|
4922
|
+
else {
|
|
4923
|
+
this.selected.emit(step);
|
|
4924
|
+
}
|
|
4919
4925
|
};
|
|
4920
4926
|
MtnaWfFormStepperComponent.prototype.createGroupStepCollapsedMap = function (steps) {
|
|
4921
4927
|
var _this = this;
|
|
@@ -4924,11 +4930,9 @@
|
|
|
4924
4930
|
_this.groupStepCollapsedMap[step.instanceId] = step.collapsed;
|
|
4925
4931
|
}
|
|
4926
4932
|
});
|
|
4927
|
-
console.warn('groupStepCollapsedMap', this.groupStepCollapsedMap);
|
|
4928
4933
|
};
|
|
4929
4934
|
MtnaWfFormStepperComponent.prototype.toggleGroupStep = function (step) {
|
|
4930
4935
|
this.groupStepCollapsedMap[step.instanceId] = !this.groupStepCollapsedMap[step.instanceId];
|
|
4931
|
-
console.warn('groupStepCollapsedMap', this.groupStepCollapsedMap);
|
|
4932
4936
|
};
|
|
4933
4937
|
return MtnaWfFormStepperComponent;
|
|
4934
4938
|
}(_FormStepperMixinBase));
|