ngx-smz-ui 3.4.12 → 3.4.13
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.
|
@@ -5556,19 +5556,36 @@
|
|
|
5556
5556
|
DialogFooterComponent.prototype.onSubmit = function () {
|
|
5557
5557
|
var _this = this;
|
|
5558
5558
|
if (this.isValid()) {
|
|
5559
|
+
if (this.rbkConfig.debugMode) {
|
|
5560
|
+
console.log(' onSubmit => ', true);
|
|
5561
|
+
}
|
|
5559
5562
|
return true;
|
|
5560
5563
|
}
|
|
5561
5564
|
else {
|
|
5565
|
+
if (this.rbkConfig.debugMode) {
|
|
5566
|
+
console.log(' Forms... ');
|
|
5567
|
+
}
|
|
5562
5568
|
this.dialogConfig.data.features
|
|
5563
5569
|
.filter(function (x) { return x.type === 'form'; })
|
|
5564
5570
|
.forEach(function (feature) {
|
|
5565
5571
|
var formFeature = feature.data;
|
|
5566
5572
|
var form = formFeature._context.form;
|
|
5573
|
+
if (_this.rbkConfig.debugMode) {
|
|
5574
|
+
console.log(' > formFeature:', formFeature);
|
|
5575
|
+
console.log(' > form:', form);
|
|
5576
|
+
console.log(' > controls:', form.controls);
|
|
5577
|
+
}
|
|
5567
5578
|
Object.keys(form.controls).forEach(function (field) {
|
|
5568
5579
|
var control = form.get(field);
|
|
5580
|
+
if (_this.rbkConfig.debugMode) {
|
|
5581
|
+
console.log(" > control for " + field + ":", control);
|
|
5582
|
+
}
|
|
5569
5583
|
control.markAsTouched({ onlySelf: true });
|
|
5570
5584
|
});
|
|
5571
5585
|
});
|
|
5586
|
+
if (this.rbkConfig.debugMode) {
|
|
5587
|
+
console.log(' Components... ');
|
|
5588
|
+
}
|
|
5572
5589
|
this.dialogConfig.data.features
|
|
5573
5590
|
.filter(function (x) { return x.type === 'component'; })
|
|
5574
5591
|
.forEach(function (feature) {
|
|
@@ -5593,6 +5610,9 @@
|
|
|
5593
5610
|
}
|
|
5594
5611
|
});
|
|
5595
5612
|
this.cdf.markForCheck();
|
|
5613
|
+
if (this.rbkConfig.debugMode) {
|
|
5614
|
+
console.log(' onSubmit => ', false);
|
|
5615
|
+
}
|
|
5596
5616
|
return false;
|
|
5597
5617
|
}
|
|
5598
5618
|
};
|