shirkasoft-ui-components 1.3.2 → 1.3.4
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/fesm2022/shirkasoft-ui-components-date-picker.mjs +325 -2
- package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-select.mjs +33 -2
- package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-table.mjs +85 -5
- package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs +2 -1
- package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shirkasoft-ui-components-date-picker.d.ts +92 -1
- package/types/shirkasoft-ui-components-select.d.ts +8 -0
- package/types/shirkasoft-ui-components-table.d.ts +22 -0
|
@@ -285,6 +285,28 @@ declare class TableComponent {
|
|
|
285
285
|
onHeaderKeydown(event: KeyboardEvent, col: Column): void;
|
|
286
286
|
/** Accessible aria-sort value for a given column header. */
|
|
287
287
|
getAriaSort(col: Column): 'ascending' | 'descending' | 'none';
|
|
288
|
+
/** Maximum number of row actions shown directly before collapsing into a dropdown. */
|
|
289
|
+
protected readonly MAX_VISIBLE_ACTIONS = 4;
|
|
290
|
+
/** Tracks which row's "more actions" dropdown is currently open (keyed by row identity). */
|
|
291
|
+
actionsDropdownOpen: _angular_core.WritableSignal<Record<string, boolean>>;
|
|
292
|
+
/** Returns the row actions that should be displayed as direct icon buttons. */
|
|
293
|
+
getVisibleRowActions(rowData: any): RowAction[];
|
|
294
|
+
/** Returns the row actions that overflow into the "more" dropdown. */
|
|
295
|
+
getHiddenRowActions(rowData: any): RowAction[];
|
|
296
|
+
/** Toggles the "more actions" dropdown for a given row, closing any other open dropdown. */
|
|
297
|
+
toggleActionsDropdown(rowData: any, event?: Event): void;
|
|
298
|
+
/** Computes the fixed position of the dropdown so it's not clipped by overflow. */
|
|
299
|
+
dropdownPosition: _angular_core.WritableSignal<{
|
|
300
|
+
top: number;
|
|
301
|
+
left: number;
|
|
302
|
+
}>;
|
|
303
|
+
private computeDropdownPosition;
|
|
304
|
+
/** Whether the "more actions" dropdown is open for a given row. */
|
|
305
|
+
isActionsDropdownOpen(rowData: any): boolean;
|
|
306
|
+
/** Returns a unique key for a row to track dropdown state. */
|
|
307
|
+
private getRowKey;
|
|
308
|
+
/** Closes all open action dropdowns when clicking anywhere on the document. */
|
|
309
|
+
onDocumentClick(): void;
|
|
288
310
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
289
311
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent, "shk-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "rowsPerPage": { "alias": "rowsPerPage"; "required": false; "isSignal": true; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "showActionRow": { "alias": "showActionRow"; "required": false; "isSignal": true; }; "customTemplates": { "alias": "customTemplates"; "required": false; "isSignal": true; }; "headerActions": { "alias": "headerActions"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "hasShadow": { "alias": "hasShadow"; "required": false; "isSignal": true; }; "defaultSortField": { "alias": "defaultSortField"; "required": false; "isSignal": true; }; "defaultSortOrder": { "alias": "defaultSortOrder"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "serverSide": { "alias": "serverSide"; "required": false; "isSignal": true; }; "totalRecords": { "alias": "totalRecords"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "activeFilter": { "alias": "activeFilter"; "required": false; "isSignal": true; }; }, { "refresh": "refresh"; "pageChange": "pageChange"; "filterChange": "filterChange"; "searchChange": "searchChange"; "filterClick": "filterClick"; }, never, never, true, never>;
|
|
290
312
|
}
|