mn-angular-lib 2.0.25 → 2.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -794,6 +794,13 @@ type ColumnBase<T> = {
794
794
  * a date that comes first but is not the row's name, an image that should not be text.
795
795
  */
796
796
  mobile?: MnColumnMobileSlot;
797
+ /**
798
+ * Whether this row has no value for the column. Below 640px an empty value is left off the
799
+ * composed row and the detail sheet, label included. A string cell needs nothing: a blank or
800
+ * lone-dash value is caught already. Set it on a template cell, whose markup the table cannot
801
+ * read, when that template draws a placeholder ("-") for "nothing".
802
+ */
803
+ isEmpty?: (row: T) => boolean;
797
804
  /** Customizes the loading-skeleton placeholder shown in this column's cells while data loads. */
798
805
  skeleton?: ColumnSkeleton;
799
806
  };
@@ -1074,9 +1081,10 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
1074
1081
  /** The template a composed row renders for a column; null for a string column. */
1075
1082
  rowCellTemplate(column: ColumnDefinition<T>): TemplateRef<unknown> | null;
1076
1083
  /**
1077
- * Whether a string cell is empty for this row: blank, or the lone dash an app writes for
1078
- * "nothing". Such a value is left off the composed row ("Beschrijving -" said nothing); the
1079
- * sheet still lists it. A template cell is never judged empty — its markup is the app's.
1084
+ * Whether a cell is empty for this row: what the column's `isEmpty` says, else for a string
1085
+ * cell blank or the lone dash an app writes for "nothing". Such a value is left off the
1086
+ * composed row and the detail sheet ("Beschrijving: -" said nothing). A template cell without
1087
+ * `isEmpty` is never judged empty — its markup is the app's.
1080
1088
  */
1081
1089
  rowValueEmpty(column: ColumnDefinition<T>, row: T): boolean;
1082
1090
  /** The second-line columns that have something to show for this row. */