ngx-render-material-forms 1.6.4 → 1.6.6
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 +4 -2
- package/fesm2015/ngx-render-material-forms.js +4 -2
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +3 -1
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/datagrid/datagrid.component.d.ts +1 -0
- package/package.json +11 -11
|
@@ -3223,6 +3223,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3223
3223
|
this.dataSource = new MatTableDataSource();
|
|
3224
3224
|
this.checkSubmissionStatus = false;
|
|
3225
3225
|
this.showDataGrid = true;
|
|
3226
|
+
this.hasValueAndEditMode = false;
|
|
3226
3227
|
}
|
|
3227
3228
|
getColumnLabel(column) {
|
|
3228
3229
|
return column.label || column.key;
|
|
@@ -3230,8 +3231,9 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3230
3231
|
setInstance(instance) {
|
|
3231
3232
|
const checkAttribute = instance?.component?.attributes;
|
|
3232
3233
|
this.checkSubmissionStatus = this.commonService.checkIsAttributeTrue(checkAttribute, 'isProductSubmitAllowed');
|
|
3234
|
+
this.hasValueAndEditMode = ((checkAttribute?.hasValue === 'yes' ?? false) && (checkAttribute?.editMode === 'true' ?? false));
|
|
3233
3235
|
super.setInstance(instance);
|
|
3234
|
-
if (this.checkSubmissionStatus) {
|
|
3236
|
+
if (this.checkSubmissionStatus && !this.hasValueAndEditMode) {
|
|
3235
3237
|
this.showDataGrid = false;
|
|
3236
3238
|
this.dataSource.data = [];
|
|
3237
3239
|
}
|