ngx-render-material-forms 1.9.9 → 2.0.0

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.
@@ -1173,12 +1173,6 @@ class MaterialNestedComponent extends MaterialComponent {
1173
1173
  ngAfterViewInit() {
1174
1174
  this.components.changes.subscribe(() => this.render());
1175
1175
  this.render();
1176
- if (this.element && this.element.nativeElement && this.instance) {
1177
- // Add custom classes to elements.
1178
- if (this.instance.component.customClass) {
1179
- this.element.nativeElement.classList.add(this.instance.component.customClass);
1180
- }
1181
- }
1182
1176
  }
1183
1177
  }
1184
1178
  MaterialNestedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialNestedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -3965,6 +3959,12 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
3965
3959
  this.dropdownL4Label = '';
3966
3960
  this.isCustomerCountryFiltered = false;
3967
3961
  this.emptyArray = false;
3962
+ if (this.element && this.element.nativeElement && this.instance) {
3963
+ // Add custom classes to elements.
3964
+ if (this.instance.component.customClass) {
3965
+ this.element.nativeElement.classList.add(this.instance.component.customClass);
3966
+ }
3967
+ }
3968
3968
  }
3969
3969
  getColumnLabel(column) {
3970
3970
  return column.label || column.key;
@@ -4079,6 +4079,12 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
4079
4079
  });
4080
4080
  return viewContainer ? viewContainer : null;
4081
4081
  };
4082
+ if (this.element && this.element.nativeElement && this.instance) {
4083
+ // Add custom classes to elements.
4084
+ if (this.instance.component.customClass) {
4085
+ this.element.nativeElement.classList.add(this.instance.component.customClass);
4086
+ }
4087
+ }
4082
4088
  }
4083
4089
  removeColumn(columnName) {
4084
4090
  this.displayedColumnsNew = this.displayedColumnsNew.filter(column => column !== columnName);