mn-angular-lib 1.0.13 → 1.0.15
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
|
@@ -1849,7 +1849,7 @@ declare const mnSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
1849
1849
|
fullWidth: {
|
|
1850
1850
|
true: string;
|
|
1851
1851
|
};
|
|
1852
|
-
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer", {
|
|
1852
|
+
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer hover:bg-base-200 transition-colors duration-300", {
|
|
1853
1853
|
shadow: {
|
|
1854
1854
|
true: string;
|
|
1855
1855
|
};
|
|
@@ -1895,7 +1895,7 @@ declare const mnSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
1895
1895
|
fullWidth: {
|
|
1896
1896
|
true: string;
|
|
1897
1897
|
};
|
|
1898
|
-
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer", unknown, unknown, undefined>>;
|
|
1898
|
+
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer hover:bg-base-200 transition-colors duration-300", unknown, unknown, undefined>>;
|
|
1899
1899
|
type MnSelectVariants = VariantProps<typeof mnSelectVariants>;
|
|
1900
1900
|
|
|
1901
1901
|
type MnSelectErrorMessageData = string | ((args: any, errors: ValidationErrors) => string);
|
|
@@ -2033,6 +2033,8 @@ interface ColumnFilterOption {
|
|
|
2033
2033
|
interface ColumnDefinition<T> {
|
|
2034
2034
|
key: string;
|
|
2035
2035
|
header: string | TemplateRef<any>;
|
|
2036
|
+
/** Translation key for the column header. When set, mn-table resolves it via MnLanguageService and keeps it updated on locale change. */
|
|
2037
|
+
headerKey?: string;
|
|
2036
2038
|
cell: ((row: T) => string) | TemplateRef<any>;
|
|
2037
2039
|
sortType?: ColumnSortType;
|
|
2038
2040
|
getRawValueToSort?: (row: T) => any;
|
|
@@ -2047,6 +2049,8 @@ interface ColumnDefinition<T> {
|
|
|
2047
2049
|
filterOptions?: ColumnFilterOption[];
|
|
2048
2050
|
/** Placeholder text for the filter input. */
|
|
2049
2051
|
filterPlaceholder?: string;
|
|
2052
|
+
/** Translation key for the filter placeholder. When set, mn-table resolves it via MnLanguageService. */
|
|
2053
|
+
filterPlaceholderKey?: string;
|
|
2050
2054
|
/** Whether the filter input is disabled. */
|
|
2051
2055
|
filterDisabled?: boolean;
|
|
2052
2056
|
/** Autocomplete attribute for the filter input. */
|
|
@@ -2061,10 +2065,14 @@ interface TableDataSource<T> {
|
|
|
2061
2065
|
columns: ColumnDefinition<T>[];
|
|
2062
2066
|
getID: (row: T) => string;
|
|
2063
2067
|
emptyMessage: string;
|
|
2068
|
+
/** Translation key for the empty message. When set, mn-table resolves it via MnLanguageService. */
|
|
2069
|
+
emptyMessageKey?: string;
|
|
2064
2070
|
emptyTemplate?: TemplateRef<any>;
|
|
2065
2071
|
isDataLoading: boolean;
|
|
2066
2072
|
canSearch: boolean;
|
|
2067
2073
|
searchPlaceholder?: string;
|
|
2074
|
+
/** Translation key for the search placeholder. When set, mn-table resolves it via MnLanguageService. */
|
|
2075
|
+
searchPlaceholderKey?: string;
|
|
2068
2076
|
isInSearch?: (row: T, searchValue: string) => boolean;
|
|
2069
2077
|
searchForAdditionalItems?: (searchValue: string) => Promise<T[]>;
|
|
2070
2078
|
paginationMode?: 'none' | 'load-more' | 'paginated' | 'client-side-pagination' | 'infinite-scroll';
|
|
@@ -2110,7 +2118,11 @@ interface TableDataSource<T> {
|
|
|
2110
2118
|
}
|
|
2111
2119
|
interface TableLabels {
|
|
2112
2120
|
loadMore?: string;
|
|
2121
|
+
/** Translation key for the "Load more" button label. */
|
|
2122
|
+
loadMoreKey?: string;
|
|
2113
2123
|
rowsPerPage?: string;
|
|
2124
|
+
/** Translation key for the "Rows per page" label. */
|
|
2125
|
+
rowsPerPageKey?: string;
|
|
2114
2126
|
}
|
|
2115
2127
|
|
|
2116
2128
|
declare enum ModalKind {
|
|
@@ -3397,9 +3409,11 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3397
3409
|
/** Per-column filter values keyed by column key. */
|
|
3398
3410
|
columnFilters: ColumnFilterState;
|
|
3399
3411
|
private cdr;
|
|
3412
|
+
private lang;
|
|
3400
3413
|
private dataSubscription?;
|
|
3401
3414
|
private searchSubject;
|
|
3402
3415
|
private searchSubscription?;
|
|
3416
|
+
private langSubscription?;
|
|
3403
3417
|
/** Tracks the previous toolbar template reference for change detection. */
|
|
3404
3418
|
private previousToolbarTemplate?;
|
|
3405
3419
|
/**
|
|
@@ -3432,6 +3446,11 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3432
3446
|
get totalItemCount(): number;
|
|
3433
3447
|
get totalPages(): number;
|
|
3434
3448
|
ngOnInit(): void;
|
|
3449
|
+
/**
|
|
3450
|
+
* Resolves all translation keys (headerKey, filterPlaceholderKey, emptyMessageKey, etc.)
|
|
3451
|
+
* into their corresponding display strings using MnLanguageService.
|
|
3452
|
+
*/
|
|
3453
|
+
private resolveTranslationKeys;
|
|
3435
3454
|
onSearch(searchString: string): void;
|
|
3436
3455
|
loadMoreRows(): void;
|
|
3437
3456
|
get resolvedPageSizeOptions(): number[];
|