ngx-render-material-forms 1.7.8 → 1.7.9
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/datagrid/datagrid.component.mjs +6 -4
- package/fesm2015/ngx-render-material-forms.js +5 -3
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +5 -3
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3826,8 +3826,8 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3826
3826
|
else {
|
|
3827
3827
|
this.dataSource.data = instance.dataValue;
|
|
3828
3828
|
}
|
|
3829
|
-
if (this.checkSubmissionStatus && !this.hasValueAndEditMode
|
|
3830
|
-
|
|
3829
|
+
if (this.checkSubmissionStatus && !this.hasValueAndEditMode) {
|
|
3830
|
+
this.showDataGrid = false;
|
|
3831
3831
|
this.dataSource.data = [];
|
|
3832
3832
|
}
|
|
3833
3833
|
else {
|
|
@@ -3874,6 +3874,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3874
3874
|
this.dataSource.data = [...this.dataSource.data];
|
|
3875
3875
|
}
|
|
3876
3876
|
addAnother() {
|
|
3877
|
+
this.showDataGrid = true;
|
|
3877
3878
|
if (this.showNewProductPicker) {
|
|
3878
3879
|
const diologeRef = this.dialog.open(AddOnProductsComponent, {
|
|
3879
3880
|
disableClose: true,
|
|
@@ -3898,6 +3899,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3898
3899
|
}
|
|
3899
3900
|
localStorage.setItem(`selectedProducts-${this.dealId}`, JSON.stringify(response.data.items.selectedProducts));
|
|
3900
3901
|
this.dataSourceNew = response.data.items.selectedProducts;
|
|
3902
|
+
this.showDataGrid = true;
|
|
3901
3903
|
this.instance.component.defaultValue = response.data.items.selectedProducts;
|
|
3902
3904
|
}
|
|
3903
3905
|
});
|
|
@@ -3932,7 +3934,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3932
3934
|
dialogRef.afterClosed().subscribe(result => {
|
|
3933
3935
|
if (result) {
|
|
3934
3936
|
if (this.dataSource?.data?.length === 1 && this.checkSubmissionStatus) {
|
|
3935
|
-
|
|
3937
|
+
this.showDataGrid = false;
|
|
3936
3938
|
}
|
|
3937
3939
|
// User confirmed, proceed with deletion
|
|
3938
3940
|
this.instance.removeRow(index);
|