@life-cockpit/angular-ui-kit 1.11.7 → 1.11.9
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
|
@@ -3761,6 +3761,8 @@ declare class TableCellDirective {
|
|
|
3761
3761
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableCellDirective, "[lcTableCell]", never, { "columnKey": { "alias": "lcTableCell"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3762
3762
|
}
|
|
3763
3763
|
|
|
3764
|
+
type TableCellClass = string | ((value: unknown, row: Record<string, unknown>, column: TableColumn, rowIndex: number) => string);
|
|
3765
|
+
type TableCellStyle = Record<string, string> | ((value: unknown, row: Record<string, unknown>, column: TableColumn, rowIndex: number) => Record<string, string>);
|
|
3764
3766
|
interface TableColumn {
|
|
3765
3767
|
key: string;
|
|
3766
3768
|
label: string;
|
|
@@ -3770,6 +3772,10 @@ interface TableColumn {
|
|
|
3770
3772
|
width?: string;
|
|
3771
3773
|
/** Optional CSS class(es) applied to both th and td cells */
|
|
3772
3774
|
cssClass?: string;
|
|
3775
|
+
/** Optional CSS class(es) for td cells only (string or resolver callback) */
|
|
3776
|
+
cellClass?: TableCellClass;
|
|
3777
|
+
/** Optional inline styles for td cells only (object or resolver callback) */
|
|
3778
|
+
cellStyle?: TableCellStyle;
|
|
3773
3779
|
/** Optional tooltip shown on hover over the column header */
|
|
3774
3780
|
tooltip?: string;
|
|
3775
3781
|
/** Optional formatter for cell output when no custom template is used */
|
|
@@ -3805,6 +3811,7 @@ type TableSize = 'sm' | 'md' | 'lg';
|
|
|
3805
3811
|
* - Size presets (sm, md, lg)
|
|
3806
3812
|
* - Hoverable row highlighting
|
|
3807
3813
|
* - Per-column formatter callbacks for display values
|
|
3814
|
+
* - Per-cell class/style callbacks for conditional styling
|
|
3808
3815
|
* - Custom cell templates via content projection
|
|
3809
3816
|
* - Composed cells (e.g. avatar + badge + actions)
|
|
3810
3817
|
* - Responsive horizontal scrolling
|
|
@@ -3899,6 +3906,10 @@ declare class TableComponent {
|
|
|
3899
3906
|
protected readonly totalRows: _angular_core.Signal<number>;
|
|
3900
3907
|
/** Whether all visible rows are selected */
|
|
3901
3908
|
protected readonly allSelected: _angular_core.Signal<boolean>;
|
|
3909
|
+
protected readonly pageSizeSelectOptions: _angular_core.Signal<{
|
|
3910
|
+
value: number;
|
|
3911
|
+
label: string;
|
|
3912
|
+
}[]>;
|
|
3902
3913
|
/**
|
|
3903
3914
|
* Computed CSS classes for the table element
|
|
3904
3915
|
*/
|
|
@@ -3913,11 +3924,14 @@ declare class TableComponent {
|
|
|
3913
3924
|
getHeaderClasses(column: TableColumn): string;
|
|
3914
3925
|
getCellValue(row: Record<string, unknown>, columnKey: string): unknown;
|
|
3915
3926
|
getFormattedCellValue(row: Record<string, unknown>, column: TableColumn, relativeRowIndex: number): unknown;
|
|
3927
|
+
getCellClasses(row: Record<string, unknown>, column: TableColumn, relativeRowIndex: number): string;
|
|
3928
|
+
getCellStyles(row: Record<string, unknown>, column: TableColumn, relativeRowIndex: number): Record<string, string> | null;
|
|
3916
3929
|
getCellTemplate(columnKey: string): TableCellDirective | undefined;
|
|
3917
3930
|
hasCustomTemplate(columnKey: string): boolean;
|
|
3918
3931
|
onRowClick(row: Record<string, unknown>): void;
|
|
3919
3932
|
protected goToPage(page: number): void;
|
|
3920
3933
|
protected onPageSizeChange(event: Event): void;
|
|
3934
|
+
protected onPageSizeModelChange(value: string | number | null): void;
|
|
3921
3935
|
protected get paginationStart(): number;
|
|
3922
3936
|
protected get paginationEnd(): number;
|
|
3923
3937
|
protected toggleSelectAll(): void;
|
|
@@ -3925,7 +3939,7 @@ declare class TableComponent {
|
|
|
3925
3939
|
protected isRowSelected(relativeIndex: number): boolean;
|
|
3926
3940
|
private getAbsoluteIndex;
|
|
3927
3941
|
private emitSelectionChange;
|
|
3928
|
-
protected onFilterChange(columnKey: string,
|
|
3942
|
+
protected onFilterChange(columnKey: string, value: string): void;
|
|
3929
3943
|
protected getFilterValue(columnKey: string): string;
|
|
3930
3944
|
protected startEdit(rowIndex: number, column: string, currentValue: unknown): void;
|
|
3931
3945
|
protected isEditing(rowIndex: number, column: string): boolean;
|
|
@@ -4094,15 +4108,16 @@ declare class FilterBarComponent {
|
|
|
4094
4108
|
sizeClass: _angular_core.Signal<string>;
|
|
4095
4109
|
/** Get the current value for a filter key */
|
|
4096
4110
|
getValue(key: string): string;
|
|
4111
|
+
getSelectOptions(options?: readonly FilterOption[]): SelectOption[];
|
|
4097
4112
|
/** Handle select / toggle change */
|
|
4098
4113
|
onFilterChange(key: string, value: string): void;
|
|
4099
4114
|
/** Handle search input */
|
|
4100
|
-
onSearchInput(key: string,
|
|
4115
|
+
onSearchInput(key: string, value: string): void;
|
|
4116
|
+
normalizeSelectValue(value: string | number | null): string;
|
|
4101
4117
|
/** Check if a toggle option is active */
|
|
4102
4118
|
isToggleActive(key: string, optionValue: string): boolean;
|
|
4103
4119
|
/** Get toggle button classes */
|
|
4104
4120
|
getToggleClasses(key: string, option: FilterOption): string;
|
|
4105
|
-
protected getInputValue(event: Event): string;
|
|
4106
4121
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterBarComponent, never>;
|
|
4107
4122
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterBarComponent, "lc-filter-bar", never, { "filters": { "alias": "filters"; "required": true; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "valuesChange": "valuesChange"; }, never, never, true, never>;
|
|
4108
4123
|
}
|
|
@@ -6175,7 +6190,7 @@ declare class NotificationCenterComponent {
|
|
|
6175
6190
|
protected getPriorityLabel(priority?: NotificationPriority): string;
|
|
6176
6191
|
protected formatTime(date: Date): string;
|
|
6177
6192
|
protected setFilter(filter: NotificationType | 'all'): void;
|
|
6178
|
-
protected onSearch(
|
|
6193
|
+
protected onSearch(query: string): void;
|
|
6179
6194
|
protected onClick(notification: Notification): void;
|
|
6180
6195
|
protected onDismiss(id: string, event: Event): void;
|
|
6181
6196
|
protected onAction(notification: Notification, event: Event): void;
|