ngx-render-material-forms 2.5.7 → 2.5.8
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/esm2020/lib/components/add-on-products/add-on-products.component.mjs +3 -3
- package/fesm2015/ngx-render-material-forms.js +3 -2
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +2 -2
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3587,8 +3587,9 @@ class AddOnProductsComponent {
|
|
|
3587
3587
|
return;
|
|
3588
3588
|
}
|
|
3589
3589
|
this.selection.selected.forEach(product => {
|
|
3590
|
+
var _a;
|
|
3590
3591
|
selectedProductsArray.push(this.fb.group({
|
|
3591
|
-
price: [(product === null || product === void 0 ? void 0 : product.price)
|
|
3592
|
+
price: [(_a = product === null || product === void 0 ? void 0 : product.price) !== null && _a !== void 0 ? _a : '', this.showPrice && !this.isPriceDisable ? Validators.required : []],
|
|
3592
3593
|
text: [(product === null || product === void 0 ? void 0 : product.text) || ''],
|
|
3593
3594
|
quantity: [product.quantity || '', Validators.required],
|
|
3594
3595
|
category: [(product === null || product === void 0 ? void 0 : product.category) || ''],
|
|
@@ -3812,7 +3813,7 @@ class AddOnProductsComponent {
|
|
|
3812
3813
|
return;
|
|
3813
3814
|
}
|
|
3814
3815
|
const productFormGroup = this.fb.group({
|
|
3815
|
-
price: [(_a = product === null || product === void 0 ? void 0 : product.price) !== null && _a !== void 0 ? _a : '', this.showPrice ? Validators.required : []],
|
|
3816
|
+
price: [(_a = product === null || product === void 0 ? void 0 : product.price) !== null && _a !== void 0 ? _a : '', this.showPrice && !this.isPriceDisable ? Validators.required : []],
|
|
3816
3817
|
text: [(product === null || product === void 0 ? void 0 : product.text) || ''],
|
|
3817
3818
|
quantity: [(_b = product === null || product === void 0 ? void 0 : product.quantity) !== null && _b !== void 0 ? _b : '', this.showQuantity ? Validators.required : []],
|
|
3818
3819
|
category: [(product === null || product === void 0 ? void 0 : product.category) || ''],
|