@muraldevkit/ui-toolkit 4.42.0 → 4.43.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.
@@ -105,6 +105,15 @@ export interface MrlSmartTableColumn {
105
105
  * @default sortAlphabeticallyAsCoercedStrings
106
106
  */
107
107
  sortBy?: (aValue: unknown, bValue: unknown) => number;
108
+ /**
109
+ * A sort comparator function for the column that receives the entire
110
+ * row context. Will override the `sortBy` function (if provided).
111
+ *
112
+ * @param aValue
113
+ * @param bValue
114
+ * @returns number
115
+ */
116
+ sortByRowContext?: (aValue: unknown, bValue: unknown) => number;
108
117
  /**
109
118
  * Whether the column is sticky
110
119
  * the sticky effect will only work on the first or last column.
@@ -24,6 +24,11 @@ export declare const SAMPLE_ITEMS: {
24
24
  name: string;
25
25
  type: string;
26
26
  }[];
27
+ export declare const SAMPLE_ITEMS_FOR_ROW_CONTEXT_SORTING: {
28
+ dateModified: string;
29
+ id: string;
30
+ name: string;
31
+ }[];
27
32
  export declare const SAMPLE_ITEMS_WITH_NON_SELECTABLE_ITEM: ({
28
33
  dateModified: string;
29
34
  id: string;