ngx-render-material-forms 2.3.6 → 2.3.7

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.
@@ -4554,7 +4554,13 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
4554
4554
  <ng-container *ngIf="hasLabel">
4555
4555
  <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
4556
4556
  </ng-container>
4557
- <mat-card-content *ngIf="showDataGrid">
4557
+ <mat-card-content>
4558
+
4559
+ <!-- Message when no products are found -->
4560
+ <div class="no-data-message" *ngIf="!showDataGrid || (dataSource?.data?.length === 0 && !showNewProductPicker)">
4561
+ No products found. Please add some products.
4562
+ </div>
4563
+ <ng-container *ngIf="showDataGrid">
4558
4564
  <mat-card-actions
4559
4565
  *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
4560
4566
  <button mat-raised-button color="primary" (click)="addAnother()">
@@ -4678,7 +4684,7 @@ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
4678
4684
  </div>
4679
4685
  </ng-template>
4680
4686
 
4681
-
4687
+ </ng-container>
4682
4688
 
4683
4689
  </mat-card-content>
4684
4690
  <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">
@@ -4708,7 +4714,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
4708
4714
  <ng-container *ngIf="hasLabel">
4709
4715
  <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
4710
4716
  </ng-container>
4711
- <mat-card-content *ngIf="showDataGrid">
4717
+ <mat-card-content>
4718
+
4719
+ <!-- Message when no products are found -->
4720
+ <div class="no-data-message" *ngIf="!showDataGrid || (dataSource?.data?.length === 0 && !showNewProductPicker)">
4721
+ No products found. Please add some products.
4722
+ </div>
4723
+ <ng-container *ngIf="showDataGrid">
4712
4724
  <mat-card-actions
4713
4725
  *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
4714
4726
  <button mat-raised-button color="primary" (click)="addAnother()">
@@ -4832,7 +4844,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
4832
4844
  </div>
4833
4845
  </ng-template>
4834
4846
 
4835
-
4847
+ </ng-container>
4836
4848
 
4837
4849
  </mat-card-content>
4838
4850
  <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">