ng-hub-ui-paginable 21.1.0 → 21.2.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.
- package/.npmignore +2 -0
- package/README.md +9 -6
- package/fesm2022/ng-hub-ui-paginable.mjs +3981 -0
- package/fesm2022/ng-hub-ui-paginable.mjs.map +1 -0
- package/package.json +101 -100
- package/types/ng-hub-ui-paginable.d.ts +3024 -0
- package/.gitignore +0 -1
- package/BREAKING_CHANGES.md +0 -31
- package/CHANGELOG.md +0 -1093
- package/FUNCTIONALITIES.md +0 -61
- package/README.es.md +0 -1404
- package/docs/css-variables-reference.es.md +0 -461
- package/docs/css-variables-reference.md +0 -517
- package/docs/example-generation-workflow.md +0 -105
- package/ng-package.json +0 -9
- package/src/lib/assets/i18n/an.ts +0 -73
- package/src/lib/assets/i18n/ar.ts +0 -73
- package/src/lib/assets/i18n/ast.ts +0 -73
- package/src/lib/assets/i18n/ca.ts +0 -73
- package/src/lib/assets/i18n/de.ts +0 -73
- package/src/lib/assets/i18n/en.ts +0 -80
- package/src/lib/assets/i18n/es.ts +0 -79
- package/src/lib/assets/i18n/eu.ts +0 -73
- package/src/lib/assets/i18n/gl.ts +0 -73
- package/src/lib/assets/i18n/ru.ts +0 -73
- package/src/lib/assets/i18n/zh.ts +0 -73
- package/src/lib/assets/images/loading.svg +0 -9
- package/src/lib/components/dropdown/dropdown.component.html +0 -9
- package/src/lib/components/dropdown/dropdown.component.scss +0 -31
- package/src/lib/components/dropdown/dropdown.component.ts +0 -266
- package/src/lib/components/icon/icon.component.html +0 -5
- package/src/lib/components/icon/icon.component.ts +0 -125
- package/src/lib/components/icon/readme.md +0 -157
- package/src/lib/components/list/paginable-list/list.component.html +0 -160
- package/src/lib/components/list/paginable-list/list.component.scss +0 -178
- package/src/lib/components/list/paginable-list/list.component.ts +0 -425
- package/src/lib/components/menu-filter/menu-filter.component.html +0 -181
- package/src/lib/components/menu-filter/menu-filter.component.scss +0 -50
- package/src/lib/components/menu-filter/menu-filter.component.ts +0 -214
- package/src/lib/components/paginable-table-dropdown/paginable-table-dropdown.component.html +0 -60
- package/src/lib/components/paginable-table-dropdown/paginable-table-dropdown.component.scss +0 -18
- package/src/lib/components/paginable-table-dropdown/paginable-table-dropdown.component.ts +0 -174
- package/src/lib/components/paginable-table-range-input/paginable-table-range-input.component.html +0 -28
- package/src/lib/components/paginable-table-range-input/paginable-table-range-input.component.scss +0 -54
- package/src/lib/components/paginable-table-range-input/paginable-table-range-input.component.ts +0 -67
- package/src/lib/components/paginator/paginator.component.html +0 -95
- package/src/lib/components/paginator/paginator.component.scss +0 -159
- package/src/lib/components/paginator/paginator.component.ts +0 -34
- package/src/lib/components/resizable/resizable.component.html +0 -6
- package/src/lib/components/resizable/resizable.component.scss +0 -35
- package/src/lib/components/resizable/resizable.component.ts +0 -28
- package/src/lib/components/table/table.component.html +0 -529
- package/src/lib/components/table/table.component.scss +0 -604
- package/src/lib/components/table/table.component.ts +0 -1002
- package/src/lib/constants/breakpoints.ts +0 -20
- package/src/lib/constants/defaults.ts +0 -16
- package/src/lib/directives/paginable-list-item.directive.ts +0 -8
- package/src/lib/directives/paginable-no-results.directive.ts +0 -23
- package/src/lib/directives/paginable-table-cell.directive.ts +0 -10
- package/src/lib/directives/paginable-table-error.directive.ts +0 -9
- package/src/lib/directives/paginable-table-expanding-row.directive.ts +0 -9
- package/src/lib/directives/paginable-table-filter.directive.ts +0 -11
- package/src/lib/directives/paginable-table-header.directive.ts +0 -10
- package/src/lib/directives/paginable-table-loading.directive.ts +0 -9
- package/src/lib/directives/paginable-table-row.directive.ts +0 -9
- package/src/lib/directives/resizable.directive.ts +0 -40
- package/src/lib/directives/tooltip.directive.ts +0 -192
- package/src/lib/enums/row-class.enum.ts +0 -41
- package/src/lib/enums/selection-types.ts +0 -4
- package/src/lib/index.ts +0 -59
- package/src/lib/interfaces/column-filter-event.ts +0 -93
- package/src/lib/interfaces/filter-change-event.ts +0 -4
- package/src/lib/interfaces/index.ts +0 -14
- package/src/lib/interfaces/item-click-event.ts +0 -59
- package/src/lib/interfaces/list-button.ts +0 -17
- package/src/lib/interfaces/paginable-table-config.ts +0 -13
- package/src/lib/interfaces/paginable-table-dropdown.ts +0 -45
- package/src/lib/interfaces/paginable-table-header.ts +0 -604
- package/src/lib/interfaces/paginable-table-options.ts +0 -45
- package/src/lib/interfaces/paginable-table-ordination.ts +0 -4
- package/src/lib/interfaces/paginable-table-pagination.ts +0 -14
- package/src/lib/interfaces/pagination-state.ts +0 -33
- package/src/lib/interfaces/row-button.ts +0 -54
- package/src/lib/interfaces/table-row-event.ts +0 -18
- package/src/lib/interfaces/table-row.ts +0 -29
- package/src/lib/paginable.module.ts +0 -86
- package/src/lib/service/modal.service.ts +0 -30
- package/src/lib/service/views.service.ts +0 -64
- package/src/lib/services/paginable.service.ts +0 -26
- package/src/lib/services/paginate-config.service.ts +0 -11
- package/src/lib/services/pagination.service.ts +0 -92
- package/src/lib/utils/icons.ts +0 -43
- package/src/lib/utils.ts +0 -221
- package/src/public-api.ts +0 -5
- package/src/test.ts +0 -4
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -15
package/.npmignore
ADDED
package/README.md
CHANGED
|
@@ -115,6 +115,10 @@ This library arises from the need to offer highly configurable, accessible, and
|
|
|
115
115
|
|
|
116
116
|
All components are built as standalone Angular components with full Angular Signals support.
|
|
117
117
|
|
|
118
|
+
> ⚠️ **Breaking changes in v21.2.0**
|
|
119
|
+
> This major release removes the `color` property from `PaginableActionButton` and unifies action button contracts.
|
|
120
|
+
> Review migration steps in [BREAKING_CHANGES.md](./BREAKING_CHANGES.md) before upgrading.
|
|
121
|
+
|
|
118
122
|
---
|
|
119
123
|
|
|
120
124
|
## 🎯 Features
|
|
@@ -443,7 +447,7 @@ const headers: PaginableTableHeader[] = [
|
|
|
443
447
|
| `sortable` | `boolean` | Enable sorting for this column | `false` | `true` |
|
|
444
448
|
| `wrapping` | `'wrap' \| 'nowrap'` | Text wrapping behavior | `'wrap'` | `'nowrap'` for IDs |
|
|
445
449
|
| `sticky` | `'start' \| 'end'` | Make column sticky during scroll | - | `'end'` for actions |
|
|
446
|
-
| `buttons` | `Array<
|
|
450
|
+
| `buttons` | `Array<PaginableActionButton \| PaginableTableDropdown>` | Action buttons in this column | - | See [Action Buttons](#action-buttons) |
|
|
447
451
|
| `filter` | `InputFilter \| DropdownFilter \| BooleanFilter` | Filter configuration | - | See [Column Filters](#column-filters) |
|
|
448
452
|
| `onlyButtons` | `boolean` | Optimize layout for button-only columns | `false` | `true` for action columns |
|
|
449
453
|
| `hidden` | `boolean \| Function` | Control column visibility | `false` | See [Column Visibility](#column-visibility) |
|
|
@@ -727,17 +731,16 @@ interface PaginableTableDropdown {
|
|
|
727
731
|
tooltip?: string | Observable<string>; // Supports reactive translations
|
|
728
732
|
icon?: string;
|
|
729
733
|
color?: string;
|
|
730
|
-
buttons:
|
|
734
|
+
buttons: PaginableActionButton[];
|
|
731
735
|
position?: 'left' | 'right' | 'start' | 'end';
|
|
732
736
|
fill?: 'clear' | 'outline';
|
|
733
737
|
}
|
|
734
738
|
|
|
735
|
-
interface
|
|
739
|
+
interface PaginableActionButton<T = any> {
|
|
736
740
|
title?: string | Observable<string>; // Button text (supports Observable)
|
|
737
741
|
label?: string | Observable<string>; // Display label (priority over title)
|
|
738
742
|
tooltip?: string | Observable<string>; // Hover tooltip (supports Observable)
|
|
739
743
|
icon?: string | Icon;
|
|
740
|
-
color?: string;
|
|
741
744
|
handler?: (event: TableRowEvent<T>) => void;
|
|
742
745
|
hidden?: boolean | ((row: TableRow<T>) => boolean);
|
|
743
746
|
classlist?: string[] | string;
|
|
@@ -991,7 +994,7 @@ filters = signal({
|
|
|
991
994
|
| `paginationPosition` | `'top' \| 'bottom' \| 'both'` | `'bottom'` | Where to display pagination controls. |
|
|
992
995
|
| `paginationInfo` | `boolean` | `true` | Whether to show pagination info (e.g., "Showing 1 to 10 of 100"). |
|
|
993
996
|
| `stickyActions` | `boolean` | `false` | Whether action buttons should stick during scrolling. |
|
|
994
|
-
| `batchActions` | `Array<PaginableTableDropdown \|
|
|
997
|
+
| `batchActions` | `Array<PaginableTableDropdown \| PaginableActionButton>` | `[]` | Actions available for selected rows. |
|
|
995
998
|
| `responsive` | `TableBreakpoint` | `null` | Responsive breakpoint for table layout. |
|
|
996
999
|
| `options` | `PaginableTableOptions` | `{}` | Visual configuration (cursor, hover, striped, variant). |
|
|
997
1000
|
| `clickFn` | `(event: TableRowEvent<T>) => void` | `null` | Handler for row click events. |
|
|
@@ -1035,7 +1038,7 @@ interface TableRowEvent<T> {
|
|
|
1035
1038
|
| `bindChildren` | `string` | `'children'` | Property containing child items. |
|
|
1036
1039
|
| `selectable` | `string` | `null` | Selection mode configuration. |
|
|
1037
1040
|
| `options` | `PaginableTableOptions` | `{}` | Visual and behavioral options. |
|
|
1038
|
-
| `batchActions` | `Array<PaginableTableDropdown \|
|
|
1041
|
+
| `batchActions` | `Array<PaginableTableDropdown \| PaginableActionButton>` | `[]` | Actions for selected items. |
|
|
1039
1042
|
| `clickFn` | `(event: ListClickEvent<T>) => void` | `null` | Handler for item click events. |
|
|
1040
1043
|
| `rowClass` | `string \| ((item: T) => string)` | `null` | Custom CSS class for a list item. Can be a fixed string or a function that returns a class based on item data. |
|
|
1041
1044
|
|