mn-angular-lib 2.0.24 → 2.0.25
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
|
@@ -1040,7 +1040,11 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
|
|
|
1040
1040
|
* run the consumer's row handler as on a wide table, open the detail sheet, or nothing.
|
|
1041
1041
|
*/
|
|
1042
1042
|
rowTap(row: T): MnTableRowTap;
|
|
1043
|
-
/**
|
|
1043
|
+
/**
|
|
1044
|
+
* Whether a row needs its own ⋯ button for the sheet, because a tap already does something
|
|
1045
|
+
* else. A row that opens the consumer's own detail (`onRowClick`) gets one only for actions:
|
|
1046
|
+
* a sheet with nothing but the same record next to that detail was two views of one row.
|
|
1047
|
+
*/
|
|
1044
1048
|
showsRowMore(row: T): boolean;
|
|
1045
1049
|
/** Whether a row shows its actions as a ⋯ menu: inside a modal, where there is no sheet. */
|
|
1046
1050
|
showsRowMenu(row: T): boolean;
|
|
@@ -1062,17 +1066,27 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
|
|
|
1062
1066
|
*/
|
|
1063
1067
|
runDetailAction(action: MnTableRowAction<T>, row: T): Promise<void>;
|
|
1064
1068
|
/**
|
|
1065
|
-
* The text a composed row shows for a string column:
|
|
1066
|
-
* form
|
|
1069
|
+
* The text a composed row shows for a string column: the full cell. Not `cellSm` — that is the
|
|
1070
|
+
* short form an app wrote for a squeezed grid column (an e-mail cut to ten characters, a status
|
|
1071
|
+
* reduced to an icon), and a composed row has the room the grid column lacked.
|
|
1067
1072
|
*/
|
|
1068
1073
|
rowCellText(column: ColumnDefinition<T>, row: T): string;
|
|
1069
|
-
/** The template a composed row renders for a column
|
|
1074
|
+
/** The template a composed row renders for a column; null for a string column. */
|
|
1070
1075
|
rowCellTemplate(column: ColumnDefinition<T>): TemplateRef<unknown> | null;
|
|
1071
1076
|
/**
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
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.
|
|
1080
|
+
*/
|
|
1081
|
+
rowValueEmpty(column: ColumnDefinition<T>, row: T): boolean;
|
|
1082
|
+
/** The second-line columns that have something to show for this row. */
|
|
1083
|
+
rowMeta(row: T): ColumnDefinition<T>[];
|
|
1084
|
+
/**
|
|
1085
|
+
* The column name a composed row shows beside a second-line or right-side value: with no
|
|
1086
|
+
* header row, "Lid", "1-12-2023" or "535" alone does not say what it is. Empty for a template
|
|
1087
|
+
* cell — a badge or an icon carries its own meaning, and its markup is the app's.
|
|
1074
1088
|
*/
|
|
1075
|
-
|
|
1089
|
+
rowSlotLabel(column: ColumnDefinition<T>): string;
|
|
1076
1090
|
/** A row's name as text, for accessible names: its title cell, else the selection label. */
|
|
1077
1091
|
rowLabel(row: T): string;
|
|
1078
1092
|
/** Accessible name of a row's ⋯ button. */
|
|
@@ -1081,9 +1095,22 @@ declare class MnTable<T = object> extends MnSelectableCollectionBase<T, TableDat
|
|
|
1081
1095
|
get sortableColumns(): ColumnDefinition<T>[];
|
|
1082
1096
|
/**
|
|
1083
1097
|
* Whether the toolbar shows the filter button: below 640px, when there is a filter to set or
|
|
1084
|
-
* a sort to choose — the header row that held both is gone there.
|
|
1098
|
+
* a sort to choose — the header row that held both is gone there. Not over an empty or
|
|
1099
|
+
* one-row list, where there is nothing to narrow or order, unless a filter or sort is
|
|
1100
|
+
* already set (then the button is how to undo it).
|
|
1085
1101
|
*/
|
|
1086
1102
|
get showsFilterButton(): boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* Whether the search field shows: as always on a wide table, but below 640px not over an empty
|
|
1105
|
+
* or one-row list (there is nothing to find), unless a search is already typed or rows are
|
|
1106
|
+
* still loading.
|
|
1107
|
+
*/
|
|
1108
|
+
get showsSearch(): boolean;
|
|
1109
|
+
/**
|
|
1110
|
+
* Whether the pagination strip shows. Below 640px not for a single page: "Page 1 of 1" under
|
|
1111
|
+
* an empty or short list is chrome with nothing to do. Above it the strip stays as it was.
|
|
1112
|
+
*/
|
|
1113
|
+
get showsPagination(): boolean;
|
|
1087
1114
|
/** How many column filters are set, shown as a count on the filter button. */
|
|
1088
1115
|
get activeFilterCount(): number;
|
|
1089
1116
|
/**
|