@lesterarte/sefin-ui 0.0.20-dev.13 → 0.0.20-dev.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
|
@@ -1918,25 +1918,127 @@ declare class TableComponent implements OnInit, OnChanges {
|
|
|
1918
1918
|
readonly totalColspan: i0.Signal<number>;
|
|
1919
1919
|
readonly isAllSelected: i0.Signal<boolean>;
|
|
1920
1920
|
readonly isIndeterminate: i0.Signal<boolean>;
|
|
1921
|
+
readonly sortIcons: {
|
|
1922
|
+
readonly unsorted: "M3 4.5L6 1.5L9 4.5M3 7.5L6 10.5L9 7.5";
|
|
1923
|
+
readonly ascending: "M3 7.5L6 4.5L9 7.5";
|
|
1924
|
+
readonly descending: "M3 4.5L6 7.5L9 4.5";
|
|
1925
|
+
};
|
|
1921
1926
|
constructor(cdr: ChangeDetectorRef);
|
|
1922
1927
|
ngOnInit(): void;
|
|
1923
1928
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1929
|
+
/**
|
|
1930
|
+
* Validates component inputs and logs warnings for invalid configurations
|
|
1931
|
+
* @private
|
|
1932
|
+
*/
|
|
1933
|
+
private validateInputs;
|
|
1924
1934
|
trackByFn(index: number, item: any): any;
|
|
1935
|
+
/**
|
|
1936
|
+
* Gets the cell value from a row, supporting nested property paths (e.g., 'user.name')
|
|
1937
|
+
* @param row - The row data object
|
|
1938
|
+
* @param column - The column definition
|
|
1939
|
+
* @returns The cell value or undefined if not found
|
|
1940
|
+
*/
|
|
1925
1941
|
getCellValue(row: any, column: TableColumn): any;
|
|
1926
|
-
|
|
1942
|
+
/**
|
|
1943
|
+
* Formats a cell value based on its type
|
|
1944
|
+
* @param value - The value to format
|
|
1945
|
+
* @param type - The column type
|
|
1946
|
+
* @param column - Optional column definition for additional formatting options
|
|
1947
|
+
* @returns Formatted string representation
|
|
1948
|
+
*/
|
|
1949
|
+
formatCellValue(value: any, type?: TableColumnType, column?: TableColumn): string;
|
|
1950
|
+
/**
|
|
1951
|
+
* Parses a value into a Date object
|
|
1952
|
+
* @param value - The value to parse (Date, string, or number timestamp)
|
|
1953
|
+
* @returns A Date object
|
|
1954
|
+
*/
|
|
1927
1955
|
private parseDate;
|
|
1928
1956
|
onRowClick(row: any): void;
|
|
1929
|
-
|
|
1957
|
+
/**
|
|
1958
|
+
* Handles column sorting when header is clicked
|
|
1959
|
+
* @param column - The column to sort by
|
|
1960
|
+
* @param event - Optional keyboard event for accessibility
|
|
1961
|
+
*/
|
|
1962
|
+
onSort(column: TableColumn, event?: KeyboardEvent): void;
|
|
1930
1963
|
onPageChange(page: number): void;
|
|
1931
1964
|
isSelected(row: any): boolean;
|
|
1965
|
+
/**
|
|
1966
|
+
* Toggles the selection state of a row
|
|
1967
|
+
* @param checked - Whether the row should be selected
|
|
1968
|
+
* @param row - The row to toggle selection for
|
|
1969
|
+
*/
|
|
1932
1970
|
toggleRowSelection(checked: boolean, row?: any): void;
|
|
1971
|
+
/**
|
|
1972
|
+
* Toggles selection for all rows on the current page
|
|
1973
|
+
* @param checked - Whether all rows should be selected
|
|
1974
|
+
*/
|
|
1933
1975
|
toggleSelectAll(checked: boolean): void;
|
|
1976
|
+
/**
|
|
1977
|
+
* Gets the unique identifier for an item using the trackByKey
|
|
1978
|
+
* @param item - The item to get the ID for
|
|
1979
|
+
* @returns The item's ID or the item itself if no ID property exists
|
|
1980
|
+
* @private
|
|
1981
|
+
*/
|
|
1934
1982
|
private getItemId;
|
|
1983
|
+
/**
|
|
1984
|
+
* Gets CSS classes for a column cell
|
|
1985
|
+
* @param column - The column definition
|
|
1986
|
+
* @returns Space-separated string of CSS classes
|
|
1987
|
+
*/
|
|
1935
1988
|
getColumnClass(column: TableColumn): string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Gets CSS classes for the table element
|
|
1991
|
+
* @returns Space-separated string of CSS classes
|
|
1992
|
+
*/
|
|
1936
1993
|
getTableClasses(): string;
|
|
1994
|
+
/**
|
|
1995
|
+
* Gets the width CSS value for a column
|
|
1996
|
+
* @param column - The column definition
|
|
1997
|
+
* @returns The width value or undefined
|
|
1998
|
+
*/
|
|
1937
1999
|
getColumnWidth(column: TableColumn): string | undefined;
|
|
2000
|
+
/**
|
|
2001
|
+
* Gets the appropriate sort icon path for a column
|
|
2002
|
+
* @param column - The column to get the icon for
|
|
2003
|
+
* @returns The SVG path string for the sort icon
|
|
2004
|
+
*/
|
|
2005
|
+
getSortIconPath(column: TableColumn): string;
|
|
2006
|
+
/**
|
|
2007
|
+
* Determines if a column should show the unsorted icon
|
|
2008
|
+
* @param column - The column to check
|
|
2009
|
+
* @returns True if unsorted icon should be shown
|
|
2010
|
+
*/
|
|
2011
|
+
showUnsortedIcon(column: TableColumn): boolean;
|
|
2012
|
+
/**
|
|
2013
|
+
* Determines if a column should show the ascending icon
|
|
2014
|
+
* @param column - The column to check
|
|
2015
|
+
* @returns True if ascending icon should be shown
|
|
2016
|
+
*/
|
|
2017
|
+
showAscendingIcon(column: TableColumn): boolean;
|
|
2018
|
+
/**
|
|
2019
|
+
* Determines if a column should show the descending icon
|
|
2020
|
+
* @param column - The column to check
|
|
2021
|
+
* @returns True if descending icon should be shown
|
|
2022
|
+
*/
|
|
2023
|
+
showDescendingIcon(column: TableColumn): boolean;
|
|
2024
|
+
/**
|
|
2025
|
+
* Gets the ARIA sort state for a column
|
|
2026
|
+
* @param column - The column to get the sort state for
|
|
2027
|
+
* @returns The ARIA sort value ('ascending', 'descending', or 'none')
|
|
2028
|
+
*/
|
|
2029
|
+
getAriaSort(column: TableColumn): string;
|
|
2030
|
+
/**
|
|
2031
|
+
* Gets the ARIA label for a sortable column header
|
|
2032
|
+
* @param column - The column to get the label for
|
|
2033
|
+
* @returns The ARIA label string or null if not sortable
|
|
2034
|
+
*/
|
|
2035
|
+
getSortAriaLabel(column: TableColumn): string | null;
|
|
2036
|
+
/**
|
|
2037
|
+
* Generates page numbers array for pagination display
|
|
2038
|
+
* This method is currently not used in the template but kept for potential future use
|
|
2039
|
+
* @returns Array of page numbers and ellipsis strings
|
|
2040
|
+
*/
|
|
1938
2041
|
getPageNumbers(): (number | string)[];
|
|
1939
|
-
Math: Math;
|
|
1940
2042
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
1941
2043
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sefin-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "trackByKey": { "alias": "trackByKey"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "density": { "alias": "density"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "hover": { "alias": "hover"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "total": { "alias": "total"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "serverSide": { "alias": "serverSide"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "headerActionsTemplate": { "alias": "headerActionsTemplate"; "required": false; }; "emptyIconTemplate": { "alias": "emptyIconTemplate"; "required": false; }; }, { "rowClicked": "rowClicked"; "selectionChanged": "selectionChanged"; "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; }, never, ["[actions]", "[actions]"], true, never>;
|
|
1942
2044
|
}
|