ngx-eiffage-material 0.5.0 → 0.7.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/index.d.ts CHANGED
@@ -5,21 +5,29 @@ import { FormBuilder, FormGroup, FormArray, AbstractControl, ControlValueAccesso
5
5
  import { ErrorStateMatcher } from '@angular/material/core';
6
6
  import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
7
7
  import { MatSelect, MatSelectChange } from '@angular/material/select';
8
+ import { Observable, Subject } from 'rxjs';
8
9
  import { MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
9
10
  import { DateRange } from '@angular/material/datepicker';
10
11
  import { MatMenuTrigger } from '@angular/material/menu';
11
12
  import { PageEvent, MatPaginator } from '@angular/material/paginator';
12
13
  import { SortDirection, Sort } from '@angular/material/sort';
13
- import { Observable, Subject } from 'rxjs';
14
14
  import jsPDF from 'jspdf';
15
15
  import moment from 'moment';
16
16
  import { MatTableDataSource } from '@angular/material/table';
17
17
  import { MatChipEvent } from '@angular/material/chips';
18
18
 
19
19
  interface BasicSelectConfig<T> {
20
+ /** Propiedad de la opción que se usa como valor del control. */
20
21
  valueKey: keyof T;
22
+ /** Texto de cada opción (en la lista y en el campo). */
21
23
  displayedLabel: (item: T) => string;
24
+ /** Opciones que se ven pero no se pueden elegir. */
22
25
  disabled?: (item: T) => boolean;
26
+ /**
27
+ * Buscador del desplegable: `true` (por defecto) siempre, `false` nunca, o un número para
28
+ * mostrarlo solo cuando haya más opciones que ese número (p. ej. `7`: no sale en listas cortas).
29
+ */
30
+ search?: boolean | number;
23
31
  }
24
32
  /**
25
33
  * Configuration for NgxPaginatedSelect.
@@ -36,6 +44,11 @@ interface PaginatedSelectConfig<T> {
36
44
  * Defaults to `String(item[valueKey])` when omitted.
37
45
  */
38
46
  displayedLabel?: (item: T) => string;
47
+ /**
48
+ * Texto corto de cada elegido en el campo (chips y resumen de displayMode="text", en múltiple).
49
+ * Útil si displayedLabel es largo («OB-2401 - Subestación…» → «OB-2401»). Por defecto, displayedLabel.
50
+ */
51
+ chipLabel?: (item: T) => string;
39
52
  /** Optional secondary line shown below the label in the options list */
40
53
  subtitle?: (item: T) => string;
41
54
  /** Whether an individual option row is disabled */
@@ -53,6 +66,23 @@ interface PaginatedSelectConfig<T> {
53
66
  avatarText?: (item: T) => string;
54
67
  /** Material icon name shown as avatar when `avatarImage`/`avatarText` are not provided */
55
68
  avatarIcon?: string;
69
+ /**
70
+ * Busca los elementos completos a partir de sus claves. Si el valor llega del formulario solo con
71
+ * ids (sin `selectedItems`), el componente lo usa para mostrar sus nombres en vez de los ids.
72
+ * Las claves son valores de `valueKey`: se tipan como `any[]` para poder escribir
73
+ * `(ids: number[]) => …` sin conversiones (TypeScript no sabe el tipo concreto de `valueKey`).
74
+ */
75
+ loadByKeys?: (keys: any[]) => Observable<T[]>;
76
+ /** Milisegundos de espera tras la última tecla antes de buscar. Por defecto, 400. */
77
+ searchDebounce?: number;
78
+ /** Caracteres mínimos para buscar (con menos, se mantiene la lista y se avisa). Por defecto, 1. */
79
+ minSearchLength?: number;
80
+ }
81
+ /** Contexto de `optionTemplate` en ngx-paginated-select. */
82
+ interface PaginatedSelectOptionContext<T> {
83
+ $implicit: T;
84
+ /** Búsqueda aplicada (para resaltarla con el pipe ngxHighlight). */
85
+ query: string;
56
86
  }
57
87
 
58
88
  interface PaginatedItems<T> {
@@ -482,6 +512,17 @@ interface NgxEiffageTexts {
482
512
  dateRangeEnd: string;
483
513
  totalPerPage: string;
484
514
  totalGeneral: string;
515
+ /** Exportar en ngx-basic-table: todos los registros filtrados, no solo la página. */
516
+ exportExcelAll: string;
517
+ exportPdfAll: string;
518
+ /** Casilla de selección de una fila (lectores de pantalla). */
519
+ selectRow: string;
520
+ /** Casilla de la cabecera: seleccionar las filas de la página. */
521
+ selectPage: string;
522
+ expandRow: string;
523
+ collapseRow: string;
524
+ /** Nombre del filtro de columna en la opción «Sin …» de los selects de filtro. */
525
+ columnFilter: string;
485
526
  };
486
527
  /** Diálogo de ordenar y mostrar columnas de las tablas. */
487
528
  columnsDialog: {
@@ -537,6 +578,8 @@ interface NgxEiffageTexts {
537
578
  select: {
538
579
  noResults: string;
539
580
  showMore: string;
581
+ /** Etiqueta accesible del botón X que quita la selección (clearable). */
582
+ clear: string;
540
583
  removeOption: (optionName: string) => string;
541
584
  resultsCount: (count: number) => string;
542
585
  };
@@ -554,6 +597,18 @@ interface NgxEiffageTexts {
554
597
  retry: string;
555
598
  selectedCount: (selected: number, total: number) => string;
556
599
  resultsCount: (total: number) => string;
600
+ /** Etiqueta accesible del botón que quita un elemento seleccionado (chips). */
601
+ removeItem: (label: string) => string;
602
+ /** Texto accesible del indicador «+N» de chips que no caben. */
603
+ moreSelected: (count: number) => string;
604
+ /** Resumen de la selección en modo texto: las primeras etiquetas y cuántas más hay. */
605
+ summary: (labels: string[], rest: number) => string;
606
+ /** Aviso al cerrar el panel múltiple con cambios sin confirmar. */
607
+ discardChanges: string;
608
+ discard: string;
609
+ keepEditing: string;
610
+ /** Búsqueda demasiado corta (minSearchLength). */
611
+ minSearch: (min: number) => string;
557
612
  };
558
613
  /** NgxDialogService y ngx-dialog (botones por defecto). */
559
614
  dialog: {
@@ -1010,7 +1065,7 @@ interface ResolvedOption<T> {
1010
1065
  disabled: boolean;
1011
1066
  visible: boolean;
1012
1067
  }
1013
- declare class NgxBasicSelect<T> implements ControlValueAccessor {
1068
+ declare class NgxBasicSelect<T> implements ControlValueAccessor, AfterViewInit, DoCheck {
1014
1069
  readonly texts: _angular_core.Signal<ngx_eiffage_material.NgxEiffageTexts>;
1015
1070
  /**
1016
1071
  * Se auto-registra como ControlValueAccessor del control del formulario.
@@ -1025,19 +1080,21 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
1025
1080
  readonly label: _angular_core.InputSignal<string>;
1026
1081
  readonly options: _angular_core.InputSignal<T[]>;
1027
1082
  readonly basicSelectConfig: _angular_core.InputSignal<BasicSelectConfig<T>>;
1028
- readonly isLoading: _angular_core.InputSignal<boolean>;
1083
+ readonly isLoading: _angular_core.InputSignalWithTransform<boolean, unknown>;
1029
1084
  readonly placeholder: _angular_core.InputSignal<string>;
1030
1085
  readonly subscriptSizing: _angular_core.InputSignal<SubscriptSizing>;
1031
1086
  readonly appearance: _angular_core.InputSignal<"fill" | "outline">;
1032
- readonly multiple: _angular_core.InputSignal<boolean>;
1033
- readonly disabled: _angular_core.InputSignal<boolean>;
1034
- readonly clearable: _angular_core.InputSignal<boolean>;
1087
+ readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
1088
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
1089
+ readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1035
1090
  readonly error: _angular_core.InputSignal<string>;
1036
1091
  readonly class: _angular_core.InputSignal<string>;
1037
1092
  /** Emite el/los valor(es) de `valueKey` al cambiar la selección. */
1038
1093
  selectionChange: _angular_core.OutputEmitterRef<T[keyof T] | T[keyof T][] | null>;
1039
1094
  readonly matSelect: _angular_core.Signal<MatSelect>;
1040
1095
  readonly searchInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
1096
+ /** Igual que matSelect, pero sin fallar antes de crear la vista (ngDoCheck se llama antes). */
1097
+ private readonly _matSelectRef;
1041
1098
  /** FormControl interno que gobierna el mat-select (independiente del control del form). */
1042
1099
  protected readonly innerControl: FormControl<any>;
1043
1100
  /** Copia del valor como signal, para leerlo reactivamente en plantilla (OnPush). */
@@ -1046,6 +1103,8 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
1046
1103
  private readonly cvaDisabled;
1047
1104
  /** Estado del buscador (signal, no el DOM, para funcionar en zoneless). */
1048
1105
  protected readonly searchQuery: _angular_core.WritableSignal<string>;
1106
+ /** Anchos (en %) de las filas fantasma mientras se carga: distintos para que parezca texto. */
1107
+ protected readonly skeletonWidths: number[];
1049
1108
  private onChange;
1050
1109
  private onTouched;
1051
1110
  /** Deshabilitado efectivo: input `disabled` o el que llega del formulario. */
@@ -1056,6 +1115,8 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
1056
1115
  * pudiendo pintar la etiqueta del valor seleccionado aunque esté filtrado.
1057
1116
  */
1058
1117
  protected readonly resolvedOptions: _angular_core.Signal<ResolvedOption<T>[]>;
1118
+ /** Buscador visible según `basicSelectConfig.search` (true, false o número mínimo de opciones). */
1119
+ protected readonly showSearch: _angular_core.Signal<boolean>;
1059
1120
  /** Hay datos de entrada (con independencia del buscador). */
1060
1121
  protected readonly hasData: _angular_core.Signal<boolean>;
1061
1122
  /**
@@ -1080,14 +1141,17 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
1080
1141
  */
1081
1142
  protected readonly errorStateMatcher: ErrorStateMatcher;
1082
1143
  /**
1083
- * Obligatorio si el control del formulario tiene el validador `required`.
1084
- * Se propaga al mat-select interno para que el mat-form-field pinte el
1085
- * asterisco, igual que hace Material con un `<input matInput>`.
1144
+ * Obligatorio si el control del formulario tiene el validador `required`. Se propaga al
1145
+ * mat-select interno para que el mat-form-field pinte el asterisco. Es un signal (no un
1146
+ * método en plantilla): se actualiza con los eventos del control y en cada ngDoCheck.
1086
1147
  */
1087
- protected isRequired(): boolean;
1148
+ protected readonly isRequired: _angular_core.WritableSignal<boolean>;
1088
1149
  /** true cuando el formulario contenedor ya ha intentado enviarse. */
1089
1150
  private _isParentFormSubmitted;
1090
1151
  constructor();
1152
+ ngAfterViewInit(): void;
1153
+ ngDoCheck(): void;
1154
+ private _syncFormState;
1091
1155
  writeValue(value: any): void;
1092
1156
  registerOnChange(fn: (value: any) => void): void;
1093
1157
  registerOnTouched(fn: () => void): void;
@@ -1194,17 +1258,19 @@ declare class NgxPaginatedTable<T, U extends PaginatedFilter<T>> implements OnDe
1194
1258
  private readonly dialog;
1195
1259
  private readonly dialogService;
1196
1260
  private readonly datosPantallaService;
1261
+ private readonly _host;
1262
+ private readonly _destroyRef;
1197
1263
  readonly texts: Signal<ngx_eiffage_material.NgxEiffageTexts>;
1198
1264
  protected isDesktop: Signal<boolean>;
1199
1265
  endpoint: _angular_core.InputSignal<(filters: U) => Observable<PaginatedItems<T>>>;
1200
1266
  filters: _angular_core.InputSignal<WritableSignal<U>>;
1201
1267
  config: _angular_core.InputSignal<WritableSignal<PaginatedTableConfig<T>>>;
1202
- protected createClick: _angular_core.OutputEmitterRef<void>;
1203
- protected updateClick: _angular_core.OutputEmitterRef<T>;
1204
- protected deleteClick: _angular_core.OutputEmitterRef<T>;
1205
- protected rowActionClick: _angular_core.OutputEmitterRef<RowActionClickEvent<T>>;
1206
- protected expandedItemChange: _angular_core.OutputEmitterRef<T | null>;
1207
- protected selectionActionEvent: _angular_core.OutputEmitterRef<SelectionActionEvent<T>>;
1268
+ readonly createClick: _angular_core.OutputEmitterRef<void>;
1269
+ readonly updateClick: _angular_core.OutputEmitterRef<T>;
1270
+ readonly deleteClick: _angular_core.OutputEmitterRef<T>;
1271
+ readonly rowActionClick: _angular_core.OutputEmitterRef<RowActionClickEvent<T>>;
1272
+ readonly expandedItemChange: _angular_core.OutputEmitterRef<T | null>;
1273
+ readonly selectionActionEvent: _angular_core.OutputEmitterRef<SelectionActionEvent<T>>;
1208
1274
  protected readonly filterKeyPrefix = "filter";
1209
1275
  protected readonly nameOfActionsColumn = "actionsPerRow";
1210
1276
  protected readonly generalFooterKeyPrefix = "footer";
@@ -1222,21 +1288,30 @@ declare class NgxPaginatedTable<T, U extends PaginatedFilter<T>> implements OnDe
1222
1288
  protected showActionsColumn: Signal<boolean>;
1223
1289
  protected showTotalPerPageFooter: Signal<boolean>;
1224
1290
  protected showTotalGeneralFooter: Signal<boolean>;
1291
+ /** Texto del buscador (para la X de borrar; antes se leía el DOM desde la plantilla). */
1292
+ protected readonly queryText: WritableSignal<string>;
1293
+ /** Texto de cada celda de la página (sin componente ni plantilla), calculado una vez. */
1294
+ protected readonly cellTexts: Signal<Map<T, Record<keyof T, string>>>;
1295
+ /** Total por página (de lo cargado) y general (lo da el consumidor con getTotalGeneral), ya formateados. */
1296
+ protected readonly pageTotals: Signal<Record<string, string>>;
1297
+ protected readonly generalTotals: Signal<Record<string, string>>;
1298
+ /** Descripción del filtro avanzado aplicado (HTML). */
1299
+ protected readonly advancedFilterLabel: Signal<string>;
1225
1300
  protected queryTimeout: number | undefined;
1226
1301
  protected timeoutsByKey: Partial<Record<keyof T, number>>;
1227
1302
  protected advancedFilters: Signal<AdvancedFilter<T>[]>;
1228
1303
  protected readonly expandableColumnDef = "expandedDetail";
1229
1304
  protected expandedItem: WritableSignal<T | null>;
1230
1305
  protected selection: WritableSignal<T[]>;
1306
+ /** Claves de las filas seleccionadas: comprobar una fila es O(1). */
1307
+ private readonly _selectedKeys;
1308
+ protected readonly allPageSelected: Signal<boolean>;
1231
1309
  protected isFullScreen: WritableSignal<boolean>;
1232
1310
  private readonly overlay;
1233
- private readonly overlayContainer;
1234
1311
  private readonly viewContainerRef;
1235
1312
  tableContentTemplate: Signal<TemplateRef<any> | undefined>;
1236
1313
  private overlayRef?;
1237
- private portal?;
1238
1314
  protected defaultFiltersForPaginatedFilterOptions: WritableSignal<PaginatedFilter<FilterOption>>;
1239
- onEscape(): void;
1240
1315
  ngOnDestroy(): void;
1241
1316
  private includeInColumnConfig;
1242
1317
  protected getKeyAsString: (columnKey: keyof T | string) => string;
@@ -1261,34 +1336,32 @@ declare class NgxPaginatedTable<T, U extends PaginatedFilter<T>> implements OnDe
1261
1336
  protected getSearchableSelectValueOfColumnFilter(key: keyof T): string | string[] | undefined;
1262
1337
  protected getDateRangeValueOfColumnFilter(key: keyof T, type: 'start' | 'end'): moment.Moment | null;
1263
1338
  protected onEditColumns(): void;
1264
- protected applyColumnPipes(value: any, pipes?: ColumnPipe | ColumnPipe[]): any;
1265
1339
  protected onNewAdvancedFiltersClick(): void;
1266
1340
  protected onApplyTemplateClick(advancedFilter?: AdvancedFilter<T>): void;
1267
1341
  protected onSelectedAdvancedFilterUpdate(event: Event): void;
1268
1342
  protected onAdvancedFilterUpdate(event: Event, advancedFilter: AdvancedFilter<T>, advancedFiltersMenuTrigger?: MatMenuTrigger): void;
1269
1343
  protected onAdvancedFilterDelete(event: Event, advancedFiltersMenuTrigger: MatMenuTrigger, advancedFilter: AdvancedFilter<T>): void;
1270
1344
  protected onQuitAdvancedFilter(event: Event): void;
1271
- protected getAdvancedFilterLabel(): string;
1345
+ /** Por clave y no por referencia: el detalle sigue abierto si la página se recarga. */
1272
1346
  protected rowIsExpanded(row: T): boolean;
1273
1347
  protected expandableToggle(row: T): void;
1274
- protected getTotalOfColum(columnKey: keyof T): number;
1275
- protected areEqualByKeys(record1: T, record2: T): boolean;
1348
+ /** Lo que se pinta en una celda sin componente ni plantilla: valueGetter, o el valor con sus pipes, o «-». */
1349
+ private displayText;
1350
+ private totalsText;
1276
1351
  protected isRowSelected(row: T): boolean;
1277
1352
  protected toggleRowSelection(row: T): void;
1278
- protected isAllPageRowSelected(): boolean;
1279
1353
  protected toggleAllPageRowSelection(): void;
1280
1354
  private getSelectableRows;
1281
1355
  protected getRowSelectionAction(): RowSelectionAction<T>[];
1282
1356
  protected uncheckAllSelection(): void;
1283
1357
  protected onRowSelectionActionClick(actionId: string): void;
1284
- private getDocumentHeaders;
1285
- private getDocumentRows;
1358
+ /** Exporta la página cargada, con las columnas visibles y en el orden elegido. */
1286
1359
  protected exportToCsvCurrentPage(): void;
1287
1360
  protected exportToPdfCurrentPage(): void;
1361
+ private exportOptions;
1288
1362
  protected onToggleFullScreen(): void;
1289
1363
  private enterFullscreen;
1290
1364
  private exitFullscreen;
1291
- private isMyOverlayOnTop;
1292
1365
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxPaginatedTable<any, any>, never>;
1293
1366
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxPaginatedTable<any, any>, "ngx-paginated-table", never, { "endpoint": { "alias": "endpoint"; "required": true; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "createClick": "createClick"; "updateClick": "updateClick"; "deleteClick": "deleteClick"; "rowActionClick": "rowActionClick"; "expandedItemChange": "expandedItemChange"; "selectionActionEvent": "selectionActionEvent"; }, never, ["[icon-buttons]", "[more-filters]", "[extra-header-content]", "[end-container]"], true, never>;
1294
1367
  }
@@ -1298,6 +1371,8 @@ declare class NgxBasicTable<T, U extends BasicFilter<T>> {
1298
1371
  private readonly dialog;
1299
1372
  private readonly dialogService;
1300
1373
  private readonly datosPantallaService;
1374
+ private readonly _host;
1375
+ private readonly _destroyRef;
1301
1376
  readonly texts: _angular_core.Signal<ngx_eiffage_material.NgxEiffageTexts>;
1302
1377
  protected isDesktop: _angular_core.Signal<boolean>;
1303
1378
  filters: _angular_core.InputSignal<WritableSignal<U>>;
@@ -1306,14 +1381,22 @@ declare class NgxBasicTable<T, U extends BasicFilter<T>> {
1306
1381
  loading: _angular_core.InputSignal<boolean>;
1307
1382
  queryFilter: _angular_core.InputSignal<((query: string, data: T[]) => T[]) | undefined>;
1308
1383
  moreFilters: _angular_core.InputSignal<(data: T[], filters: U) => T[]>;
1309
- protected createClick: _angular_core.OutputEmitterRef<void>;
1310
- protected updateClick: _angular_core.OutputEmitterRef<T>;
1311
- protected deleteClick: _angular_core.OutputEmitterRef<T>;
1312
- protected rowActionClick: _angular_core.OutputEmitterRef<RowActionClickEvent<T>>;
1313
- protected expandedItemChange: _angular_core.OutputEmitterRef<T | null>;
1314
- protected selectionActionEvent: _angular_core.OutputEmitterRef<SelectionActionEvent<T>>;
1384
+ readonly createClick: _angular_core.OutputEmitterRef<void>;
1385
+ readonly updateClick: _angular_core.OutputEmitterRef<T>;
1386
+ readonly deleteClick: _angular_core.OutputEmitterRef<T>;
1387
+ readonly rowActionClick: _angular_core.OutputEmitterRef<RowActionClickEvent<T>>;
1388
+ readonly expandedItemChange: _angular_core.OutputEmitterRef<T | null>;
1389
+ readonly selectionActionEvent: _angular_core.OutputEmitterRef<SelectionActionEvent<T>>;
1390
+ protected paginator: _angular_core.Signal<MatPaginator | undefined>;
1391
+ /** Búsqueda, orden, filtros de columna y moreFilters aplicados: lo que se pagina y se exporta. */
1392
+ protected readonly filteredData: _angular_core.Signal<T[]>;
1315
1393
  dataSource: _angular_core.Signal<MatTableDataSource<T, MatPaginator>>;
1316
- filtersEffect: _angular_core.EffectRef;
1394
+ private readonly _syncData;
1395
+ /** Filas de la página visible (cambia con el paginador): totales por página y «seleccionar página». */
1396
+ protected readonly pageRows: _angular_core.Signal<T[]>;
1397
+ /** Al cambiar la búsqueda, el orden o un filtro se vuelve a la primera página. */
1398
+ private _lastFilters?;
1399
+ private readonly _resetPage;
1317
1400
  protected columnConfig: _angular_core.Signal<ColumnConfig<T>[]>;
1318
1401
  protected readonly filterKeyPrefix = "filter";
1319
1402
  protected readonly nameOfActionsColumn = "actionsPerRow";
@@ -1328,29 +1411,39 @@ declare class NgxBasicTable<T, U extends BasicFilter<T>> {
1328
1411
  protected showTotalPerPageFooter: _angular_core.Signal<boolean>;
1329
1412
  protected showTotalGeneralFooter: _angular_core.Signal<boolean>;
1330
1413
  protected showQueryFilter: _angular_core.Signal<boolean>;
1414
+ /** Texto del buscador (para la X de borrar; antes se leía el DOM desde la plantilla). */
1415
+ protected readonly queryText: WritableSignal<string>;
1416
+ /** Texto de cada celda de la página (sin componente ni plantilla), calculado una vez. */
1417
+ protected readonly cellTexts: _angular_core.Signal<Map<T, Record<keyof T, string>>>;
1418
+ /** Totales por página y generales ya formateados, por clave de columna. */
1419
+ protected readonly pageTotals: _angular_core.Signal<Record<string, string>>;
1420
+ protected readonly generalTotals: _angular_core.Signal<Record<string, string>>;
1331
1421
  protected tableContentTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1332
1422
  protected isFullScreen: WritableSignal<boolean>;
1333
1423
  private overlayRef?;
1334
- private portal?;
1335
1424
  private readonly overlay;
1336
- private readonly overlayContainer;
1337
1425
  private readonly viewContainerRef;
1338
1426
  protected selection: WritableSignal<T[]>;
1427
+ /** Claves de las filas seleccionadas: comprobar una fila es O(1). */
1428
+ private readonly _selectedKeys;
1429
+ protected readonly allPageSelected: _angular_core.Signal<boolean>;
1339
1430
  protected readonly expandableColumnDef = "expandedDetail";
1340
1431
  protected expandedItem: WritableSignal<T | null>;
1341
- protected paginator: _angular_core.Signal<MatPaginator | undefined>;
1342
1432
  protected defaultFiltersForPaginatedFilterOptions: WritableSignal<PaginatedFilter<FilterOption>>;
1433
+ constructor();
1343
1434
  protected getKeyAsString: (columnKey: keyof T | string) => string;
1344
1435
  private includeInColumnConfig;
1345
- protected onEscape(): void;
1346
1436
  private someColumnFilterable;
1437
+ /** Busca en el texto que se ve de cada columna buscable (también números, fechas con pipe y valueGetter). */
1347
1438
  private applyInputFilter;
1348
1439
  private applySort;
1349
1440
  private applyColumnFilter;
1441
+ /** Lo que se pinta en una celda sin componente ni plantilla: valueGetter, o el valor con sus pipes, o «-». */
1442
+ private displayText;
1443
+ private totalsText;
1350
1444
  protected onToggleFullScreen(): void;
1351
1445
  private enterFullscreen;
1352
1446
  private exitFullscreen;
1353
- private isMyOverlayOnTop;
1354
1447
  protected onNewClick(): void;
1355
1448
  protected onUpdateClick(row: T, event: Event): void;
1356
1449
  protected onRowClick(row: T): void;
@@ -1361,22 +1454,16 @@ declare class NgxBasicTable<T, U extends BasicFilter<T>> {
1361
1454
  protected getRowSelectionAction(): RowSelectionAction<T>[];
1362
1455
  protected uncheckAllSelection(): void;
1363
1456
  protected onRowSelectionActionClick(actionId: string): void;
1364
- private getDocumentHeaders;
1365
- private getDocumentRows;
1457
+ /** Exporta todos los registros filtrados, con las columnas visibles y en el orden elegido. */
1366
1458
  protected exportToCsv(): void;
1367
1459
  protected exportToPdf(): void;
1460
+ private exportOptions;
1368
1461
  protected onQueryChange(inputElement: HTMLInputElement): void;
1369
1462
  protected onQueryReset(inputElement: HTMLInputElement): void;
1370
1463
  protected onSortChange(sort: Sort): void;
1371
1464
  protected toggleAllPageRowSelection(): void;
1372
- protected isAllPageRowSelected(): boolean;
1373
- protected areEqualByKeys(record1: T, record2: T): boolean;
1374
1465
  protected isRowSelected(row: T): boolean;
1375
1466
  protected toggleRowSelection(row: T): void;
1376
- protected applyColumnPipes(value: any, pipes?: ColumnPipe | ColumnPipe[]): any;
1377
- protected getTotalPerPageOfColum(columnKey: keyof T): number;
1378
- protected getDataOfCurrentPage(): T[];
1379
- protected getTotalOfColum(columnKey: keyof T): number;
1380
1467
  protected getValueOfColumnFilter(key: keyof T): ColumnValue;
1381
1468
  protected getPaginatedSearchableSelectValueOfColumnFilter(key: keyof T): FilterOption | FilterOption[] | undefined;
1382
1469
  protected getSearchableSelectValueOfColumnFilter(key: keyof T): string | string[] | undefined;
@@ -1387,6 +1474,7 @@ declare class NgxBasicTable<T, U extends BasicFilter<T>> {
1387
1474
  protected onDateFilterChange(column: BasicTableColumn<T>, value: moment.Moment | null): void;
1388
1475
  protected onDateRangeFilterChange(column: BasicTableColumn<T>, value: DateRange<moment.Moment | null> | null): void;
1389
1476
  private onColumnFilterChange;
1477
+ /** Por clave y no por referencia: el detalle sigue abierto si los datos se recargan. */
1390
1478
  protected rowIsExpanded(row: T): boolean;
1391
1479
  protected expandableToggle(row: T): void;
1392
1480
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxBasicTable<any, any>, never>;
@@ -1527,7 +1615,7 @@ declare class NgxAlert {
1527
1615
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxAlert, "ngx-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "hideIcon": { "alias": "hideIcon"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; "isSignal": true; }; "politeness": { "alias": "politeness"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, never, ["*", "[alertActions]"], true, never>;
1528
1616
  }
1529
1617
 
1530
- declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements ControlValueAccessor {
1618
+ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements ControlValueAccessor, AfterViewInit, DoCheck {
1531
1619
  private readonly _bottomSheet;
1532
1620
  /** Se auto-registra como CVA (self/optional para leer validación y no fallar sin form). */
1533
1621
  private readonly _ngControl;
@@ -1535,6 +1623,8 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
1535
1623
  private readonly _parentFormGroup;
1536
1624
  private readonly _parentForm;
1537
1625
  private readonly _changeDetectorRef;
1626
+ private readonly _destroyRef;
1627
+ private readonly _host;
1538
1628
  readonly texts: _angular_core.Signal<ngx_eiffage_material.NgxEiffageTexts>;
1539
1629
  /** Label that floats on the form field */
1540
1630
  readonly label: _angular_core.InputSignal<string>;
@@ -1577,9 +1667,7 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
1577
1667
  /** Hint message rendered inside mat-hint */
1578
1668
  readonly hint: _angular_core.InputSignal<string>;
1579
1669
  /** Custom template for each option row inside the bottom sheet */
1580
- readonly optionTemplate: _angular_core.InputSignal<TemplateRef<{
1581
- $implicit: T;
1582
- }> | null>;
1670
+ readonly optionTemplate: _angular_core.InputSignal<TemplateRef<PaginatedSelectOptionContext<T>> | null>;
1583
1671
  /**
1584
1672
  * Optional template projected into the bottom sheet header (e.g. toggle filters).
1585
1673
  * Pass an `ng-template` reference from the consumer: `[extraFiltersTemplate]="myTpl"`
@@ -1612,30 +1700,62 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
1612
1700
  private onTouched;
1613
1701
  /** Evita re-emitir onChange cuando el cambio viene del formulario (writeValue). */
1614
1702
  private _suppressEmit;
1703
+ /**
1704
+ * Claves que el formulario ya tiene (las de writeValue o las últimas enviadas). Si la selección no
1705
+ * las cambia, no se llama a onChange: Angular marcaría el control como modificado (dirty) sin que
1706
+ * el usuario haya hecho nada, por ejemplo al arrancar con el valor null.
1707
+ */
1708
+ private _formKeys;
1709
+ /** El cambio en curso viene del input selectedItems (no del usuario). */
1710
+ private _fromSelectedItemsInput;
1615
1711
  /** Huella de la última selección aplicada desde el input `selectedItems`. */
1616
1712
  private _lastSyncedSelection;
1713
+ /** Primera página de la última apertura: la siguiente se pinta al instante mientras recarga. */
1714
+ private readonly _pageCache;
1715
+ /** Claves ya pedidas a config.loadByKeys (no se repiten aunque fallen). */
1716
+ private readonly _requestedKeys;
1717
+ /** Resolviendo etiquetas con config.loadByKeys. */
1718
+ protected readonly isResolving: WritableSignal<boolean>;
1617
1719
  protected readonly isDisabled: _angular_core.Signal<boolean>;
1720
+ /** Todas las etiquetas seleccionadas, separadas por comas (tooltip del modo texto). */
1721
+ protected readonly fullLabel: _angular_core.Signal<string>;
1722
+ /** Lo que se ve en el modo texto: en múltiple, las 3 primeras y «y N más». */
1618
1723
  protected readonly selectedLabel: _angular_core.Signal<string>;
1619
1724
  protected readonly hasSelection: _angular_core.Signal<boolean>;
1620
1725
  protected readonly showChips: _angular_core.Signal<boolean>;
1621
1726
  protected readonly displayedChips: _angular_core.Signal<Partial<T>[]>;
1727
+ /**
1728
+ * En fila (chipsDirection="row"), cuántos de los chips mostrados caben enteros en el ancho del
1729
+ * campo; null = sin medir. Los que no caben se ocultan y pasan a contar en el «+N», en vez de
1730
+ * quedar cortados a medias.
1731
+ */
1732
+ private readonly _fittingChips;
1733
+ /** Chips visibles de verdad: los de maxChipsDisplayed que caben (en fila) o todos (en columna). */
1734
+ protected readonly visibleChipCount: _angular_core.Signal<number>;
1622
1735
  protected readonly remainingChipsCount: _angular_core.Signal<number>;
1623
1736
  /** ErrorStateMatcher que refleja el estado del control del formulario. */
1624
1737
  protected readonly errorStateMatcher: ErrorStateMatcher;
1625
1738
  /** true cuando el formulario contenedor ya ha intentado enviarse. */
1626
1739
  private _isParentFormSubmitted;
1627
1740
  /**
1628
- * Obligatorio si el control del formulario tiene el validador `required`.
1629
- * Se propaga al input interno para que el mat-form-field pinte el asterisco,
1630
- * igual que hace Material con un `<input matInput>` normal.
1741
+ * Obligatorio si el control del formulario tiene el validador `required`: el mat-form-field pinta
1742
+ * el asterisco. Signal (no método en plantilla) que se actualiza en ngDoCheck.
1631
1743
  */
1632
- protected isRequired(): boolean;
1744
+ protected readonly isRequired: WritableSignal<boolean>;
1745
+ /** Control visible según el modo (chips o texto), para recalcular su error con OnPush. */
1746
+ private readonly _chipGrid;
1747
+ private readonly _textInput;
1633
1748
  protected readonly effectiveSearchPlaceholder: _angular_core.Signal<string>;
1634
1749
  protected readonly effectiveNoResults: _angular_core.Signal<string>;
1635
1750
  protected readonly effectiveConfirmLabel: _angular_core.Signal<string>;
1636
1751
  protected readonly effectiveResetLabel: _angular_core.Signal<string>;
1637
1752
  protected readonly effectiveSelectAllLabel: _angular_core.Signal<string>;
1638
1753
  constructor();
1754
+ ngAfterViewInit(): void;
1755
+ ngDoCheck(): void;
1756
+ /** Cuenta los chips que acaban dentro del ancho visible del grid (al menos uno). */
1757
+ private _measureChips;
1758
+ private _syncFormState;
1639
1759
  writeValue(value: T[keyof T] | T[keyof T][] | null): void;
1640
1760
  registerOnChange(fn: (value: T[keyof T] | T[keyof T][] | null) => void): void;
1641
1761
  registerOnTouched(fn: () => void): void;
@@ -1643,12 +1763,27 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
1643
1763
  private keysFromValue;
1644
1764
  private applyValueFromKeys;
1645
1765
  private sameKeySet;
1766
+ /**
1767
+ * Cambio hecho por el usuario (confirmar el panel, quitar un chip, limpiar): se envía al
1768
+ * formulario en el mismo evento. Si lo enviara el effect, ocurriría en mitad de la detección de
1769
+ * cambios, con la plantilla del padre ya pintada (NG0100 en desarrollo y un valor desfasado).
1770
+ */
1771
+ private _commitUserSelection;
1772
+ /**
1773
+ * Envía la selección al formulario y a los outputs. Con `fromInput` (preselección por
1774
+ * selectedItems) el valor se escribe en el control sin marcarlo como modificado: onChange lo
1775
+ * marcaría dirty como si lo hubiera cambiado el usuario.
1776
+ */
1646
1777
  private emitChange;
1647
1778
  /**
1648
1779
  * Safe label resolver: tries `displayedLabel(item)`, falls back to
1649
1780
  * `String(item[valueKey])` so partial objects never throw.
1650
1781
  */
1782
+ /** Texto corto del elegido en el campo: chipLabel si lo hay, si no displayedLabel. */
1783
+ protected getChipLabel(item: Partial<T>): string;
1651
1784
  protected getLabel(item: Partial<T>): string;
1785
+ /** Pide a config.loadByKeys los elementos de los que solo se conoce la clave. */
1786
+ private _resolvePartials;
1652
1787
  openBottomSheet(event: Event): void;
1653
1788
  /** Abrir el bottom sheet desde el teclado (Enter / Espacio / flecha abajo). */
1654
1789
  onTriggerKeydown(event: KeyboardEvent): void;
@@ -1658,6 +1793,40 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
1658
1793
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxPaginatedSelect<any, any>, "ngx-paginated-select", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "endpoint": { "alias": "endpoint"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; "selectedItems": { "alias": "selectedItems"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "displayMode": { "alias": "displayMode"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "noResultsMessage": { "alias": "noResultsMessage"; "required": false; "isSignal": true; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; "isSignal": true; }; "resetLabel": { "alias": "resetLabel"; "required": false; "isSignal": true; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "extraFiltersTemplate": { "alias": "extraFiltersTemplate"; "required": false; "isSignal": true; }; "maxChipsDisplayed": { "alias": "maxChipsDisplayed"; "required": false; "isSignal": true; }; "chipsDirection": { "alias": "chipsDirection"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; "isSignal": true; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
1659
1794
  }
1660
1795
 
1796
+ /** Trozo de un texto: `match` = coincide con la búsqueda (se resalta). */
1797
+ interface LabelPart {
1798
+ text: string;
1799
+ match: boolean;
1800
+ }
1801
+
1802
+ /** Estado ya resuelto de cada fila: se calcula una vez por cambio, no en cada pasada de la plantilla. */
1803
+ interface OptionView<T> {
1804
+ item: T;
1805
+ key: unknown;
1806
+ index: number;
1807
+ id: string;
1808
+ label: string;
1809
+ labelParts: LabelPart[];
1810
+ subtitle: string | null;
1811
+ disabled: boolean;
1812
+ selected: boolean;
1813
+ /** Seleccionada que no está en las páginas cargadas: se fija arriba para que se vea al abrir. */
1814
+ pinned: boolean;
1815
+ avatarImage: string | null;
1816
+ avatarText: string;
1817
+ /**
1818
+ * Tono del avatar (0-3), estable para cada elemento. Solo con iniciales: distingue elementos;
1819
+ * con un icono o una foto, colores distintos no dirían nada (null = el color por defecto).
1820
+ */
1821
+ avatarTone: number | null;
1822
+ }
1823
+ /** Primera página guardada entre aperturas: se muestra al instante mientras se recarga. */
1824
+ interface NgxPaginatedSelectPageCache<T> {
1825
+ value: {
1826
+ fingerprint: string;
1827
+ page: PaginatedItems<T>;
1828
+ } | null;
1829
+ }
1661
1830
  interface NgxPaginatedSelectBottomSheetData<T, U extends PaginatedFilter<T>> {
1662
1831
  title: string;
1663
1832
  config: PaginatedSelectConfig<T>;
@@ -1671,24 +1840,37 @@ interface NgxPaginatedSelectBottomSheetData<T, U extends PaginatedFilter<T>> {
1671
1840
  noResultsMessage: string;
1672
1841
  confirmLabel: string;
1673
1842
  resetLabel: string;
1674
- optionTemplate: TemplateRef<{
1675
- $implicit: T;
1676
- }> | null;
1843
+ optionTemplate: TemplateRef<PaginatedSelectOptionContext<T>> | null;
1677
1844
  extraFiltersTemplate: TemplateRef<void> | null;
1678
1845
  showSelectAll: boolean;
1679
1846
  selectAllLabel: string;
1847
+ /** Primera página de aperturas anteriores (opcional). */
1848
+ cache?: NgxPaginatedSelectPageCache<T>;
1680
1849
  }
1681
1850
  declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilter<T>> {
1682
1851
  private readonly _ref;
1683
1852
  private readonly _destroy;
1853
+ private readonly _host;
1854
+ private readonly _injector;
1684
1855
  readonly data: NgxPaginatedSelectBottomSheetData<T, U>;
1685
1856
  readonly texts: _angular_core.Signal<ngx_eiffage_material.NgxEiffageTexts>;
1857
+ /** Prefijo de ids para aria-activedescendant. */
1858
+ readonly listId: string;
1859
+ private readonly _key;
1860
+ /** Mínimo de caracteres para lanzar una búsqueda. */
1861
+ readonly minSearch: number;
1686
1862
  /** Raw input value — updates on every keystroke, does NOT trigger the resource */
1687
1863
  readonly query: WritableSignal<string | undefined>;
1864
+ /** Claves de items cuya imagen de avatar falló al cargar (para el fallback). */
1865
+ private readonly failedImages;
1688
1866
  /** Holds Partial<T> initially; items get upgraded to full T when toggled from the list */
1689
1867
  readonly selectedItems: WritableSignal<Partial<T>[]>;
1868
+ /** Claves seleccionadas al abrir: para saber si hay cambios sin confirmar. */
1869
+ private readonly _initialKeys;
1870
+ /** Aviso «¿Descartar los cambios?» visible (múltiple). */
1871
+ readonly confirmDiscard: WritableSignal<boolean>;
1690
1872
  /**
1691
- * Subject used to bypass the 400 ms debounce (e.g. when the user clears
1873
+ * Subject used to bypass the debounce (e.g. when the user clears
1692
1874
  * the search field — we want an immediate response).
1693
1875
  */
1694
1876
  private readonly _immediateQuery$;
@@ -1700,10 +1882,26 @@ declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilte
1700
1882
  * period — never on every keystroke.
1701
1883
  */
1702
1884
  readonly resource: _angular_core.ResourceRef<PaginatedItems<T>>;
1885
+ /** Búsqueda aplicada (la que ya filtra la lista): va al contexto de optionTemplate. */
1886
+ readonly appliedQuery: _angular_core.Signal<string>;
1703
1887
  readonly isLoading: _angular_core.Signal<boolean>;
1704
1888
  readonly options: _angular_core.Signal<T[]>;
1705
1889
  readonly hasError: _angular_core.Signal<boolean>;
1706
1890
  readonly selectedCount: _angular_core.Signal<number>;
1891
+ /** Claves seleccionadas en un Set: comprobar si una opción está elegida es O(1). */
1892
+ private readonly _selectedKeys;
1893
+ /** Hay cambios respecto a la selección con la que se abrió el panel. */
1894
+ readonly isDirty: _angular_core.Signal<boolean>;
1895
+ /** Búsqueda escrita pero más corta que minSearchLength. */
1896
+ readonly searchTooShort: _angular_core.Signal<boolean>;
1897
+ /** Opción activa del teclado (índice en optionViews); -1 = ninguna. */
1898
+ readonly activeIndex: WritableSignal<number>;
1899
+ readonly activeId: _angular_core.Signal<string | null>;
1900
+ /**
1901
+ * Todo lo que pinta cada fila, resuelto de una vez. En simple, si lo seleccionado no está en
1902
+ * las páginas cargadas y no se está buscando, se fija arriba para que se vea al abrir.
1903
+ */
1904
+ readonly optionViews: _angular_core.Signal<OptionView<T>[]>;
1707
1905
  /**
1708
1906
  * Total como signal, actualizado SOLO cuando el recurso no está cargando. Durante
1709
1907
  * la carga por scroll, resource.value() pasa transitoriamente al defaultValue
@@ -1714,9 +1912,9 @@ declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilte
1714
1912
  private readonly _total;
1715
1913
  readonly total: _angular_core.Signal<number>;
1716
1914
  private readonly _totalEffect;
1717
- /** Cargando la PRIMERA página (lista vacía) → se muestran skeletons. */
1915
+ /** Cargando la PRIMERA página sin nada que enseñar → skeletons. */
1718
1916
  readonly isInitialLoading: _angular_core.Signal<boolean>;
1719
- /** Cargando MÁS páginas (scroll) → fila inline "cargando más…", sin barra superior. */
1917
+ /** Cargando MÁS páginas (scroll) → fila «cargando más…». Recargar la primera (caché) no la muestra. */
1720
1918
  readonly isLoadingMore: _angular_core.Signal<boolean>;
1721
1919
  /** Ya se han cargado todos los resultados disponibles. */
1722
1920
  readonly allLoaded: _angular_core.Signal<boolean>;
@@ -1727,19 +1925,12 @@ declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilte
1727
1925
  /**
1728
1926
  * Reactively depends ONLY on `resource.value()`. The filter snapshot is read
1729
1927
  * via `untracked` so external filter changes (parent-driven, e.g. an extra
1730
- * filters panel) do NOT create a reactive dependency here — that would make
1731
- * the effect re-run on scroll page increments with stale resource data,
1732
- * duplicating items and breaking `onScroll` (see original limitation).
1928
+ * filters panel) do NOT create a reactive dependency here.
1733
1929
  *
1734
1930
  * Reset logic:
1735
1931
  * - Fingerprint the current filter identity (everything except `pageNumber`).
1736
- * - If the fingerprint changed since the previous fetch, this fetch belongs
1737
- * to a different filter set → replace the accumulated array.
1932
+ * - If the fingerprint changed since the previous fetch, or this is page 1 → replace.
1738
1933
  * - If only `pageNumber` moved, this is a scroll-load-more → append.
1739
- *
1740
- * This is what allows callers to mutate `data.filters` from outside (extra
1741
- * filter selects, checkboxes, etc.) and have the list refresh cleanly
1742
- * without the previous page's items lingering.
1743
1934
  */
1744
1935
  private _lastFilterFingerprint;
1745
1936
  private readonly _accumEffect;
@@ -1750,15 +1941,27 @@ declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilte
1750
1941
  * Works for both full objects and partials.
1751
1942
  */
1752
1943
  getLabel(item: Partial<T>): string;
1944
+ /** Texto corto de un elegido (chips del panel): chipLabel si lo hay, si no displayedLabel. */
1945
+ getChipLabel(item: Partial<T>): string;
1753
1946
  getAvatarText(item: Partial<T>): string;
1754
- /** Claves de items cuya imagen de avatar falló al cargar (para el fallback). */
1755
- private readonly failedImages;
1756
1947
  /** URL de imagen del avatar, o null si no hay o si falló al cargar. */
1757
1948
  getAvatarImage(item: Partial<T>): string | null | undefined;
1758
1949
  /** Marca la imagen como fallida para caer al texto/icono. */
1759
1950
  onAvatarError(item: Partial<T>): void;
1760
1951
  toggleItem(item: T): void;
1761
1952
  removeSelectedChip(item: Partial<T>): void;
1953
+ /**
1954
+ * Patrón combobox: el foco se queda en el buscador (se puede seguir escribiendo) y la opción
1955
+ * activa se marca con aria-activedescendant. Flechas y RePág/AvPág la mueven; Intro elige.
1956
+ */
1957
+ onSearchKeydown(event: KeyboardEvent): void;
1958
+ /** Sin buscador, la propia lista recibe el foco: además, Inicio/Fin y Espacio. */
1959
+ onListKeydown(event: KeyboardEvent): void;
1960
+ onOptionClick(view: OptionView<T>): void;
1961
+ private _moveActive;
1962
+ private _chooseActive;
1963
+ /** Activa una opción y la trae a la vista (si es de las últimas, el scroll carga la siguiente página). */
1964
+ private _setActive;
1762
1965
  onQueryInput(event: Event, container: HTMLElement): void;
1763
1966
  clearQuery(container?: HTMLElement): void;
1764
1967
  onScroll(container: HTMLElement): void;
@@ -1767,7 +1970,18 @@ declare class NgxPaginatedSelectBottomSheetComponent<T, U extends PaginatedFilte
1767
1970
  toggleSelectAll(): void;
1768
1971
  confirm(): void;
1769
1972
  reset(): void;
1973
+ /** Cierra sin aplicar cambios (botón X). En múltiple con cambios, pregunta antes. */
1770
1974
  close(): void;
1975
+ /** Cerrar desde la X, Escape o el fondo: si hay cambios sin confirmar, avisa primero. */
1976
+ requestClose(): void;
1977
+ discardChanges(): void;
1978
+ keepEditing(): void;
1979
+ /** Identidad de unos filtros sin la página: misma huella = misma lista. */
1980
+ private _fingerprint;
1981
+ /** El avatar pinta texto (iniciales o avatarText) y no una foto ni un icono. */
1982
+ private _avatarShowsText;
1983
+ /** Las funciones de config pueden fallar con objetos parciales (solo valueKey): se tratan como vacías. */
1984
+ private _safe;
1771
1985
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxPaginatedSelectBottomSheetComponent<any, any>, never>;
1772
1986
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxPaginatedSelectBottomSheetComponent<any, any>, "ngx-paginated-select-bottom-sheet", never, {}, {}, never, never, true, never>;
1773
1987
  }
@@ -2040,5 +2254,18 @@ declare class DynamicHostDirective<T> {
2040
2254
  declare const includeNoSensible: (cadena: string, query: string) => boolean;
2041
2255
  declare const base64ToUtf8: (str: string) => string;
2042
2256
 
2043
- export { AdvancedFilterService, AdvancedFilterUtils, ColumnConfigService, DatosPantallaService, DialogBodyType, DynamicHostDirective, NGX_EIFFAGE_DEFAULT_TEXTS, NGX_EIFFAGE_TEXTS, NgxAlert, NgxBasicSelect, NgxBasicTable, NgxConfirmDialogComponent, NgxDialog, NgxDialogContext, NgxDialogHeader, NgxDialogService, NgxFileInput, NgxInputFile, NgxLoadingButton, NgxPaginatedSelect, NgxPaginatedSelectBottomSheetComponent, NgxPaginatedTable, NgxSkeleton, NgxTablesIntl, NgxTexts, OPERATOR_BY_FILTER_TYPE, PaginatedSearchableSelectComponent, SearchableSelectComponent, USER_ID_FACTORY, base64ToUtf8, includeNoSensible, isFilterOption, provideNgxEiffageTexts };
2044
- export type { AdvancedFilter, AlertAppearance, AlertType, BasicFilter, BasicSelectConfig, BasicTableColumn, BasicTableConfig, ColumnConfig, ColumnPipe, ColumnValue, ConfigureTableColumnData, ConfirmDialogData, DeleteConfirm, DialogBodyConfig, DialogConfig, DynamicFilter, FilterConnector, FilterGroup, FilterOperator, FilterOption, FilterRule, FilterType, LoadingButtonAppearance, LoadingButtonColor, NgxDialogTemplateContext, NgxEiffageTexts, NgxEiffageTextsOverrides, NgxEiffageTextsSource, NgxFileError, NgxFileErrorCode, NgxFileInputVariant, NgxFileItem, NgxPaginatedSelectBottomSheetData, PaginatedFilter, PaginatedItems, PaginatedSelectConfig, PaginatedTableColumn, PaginatedTableConfig, Pantalla, RowActionClickEvent, RowActionIconColor, RowSelectionAction, SelectionActionEvent, SendType, SkeletonAnimation, SkeletonVariant, SortBy, SortType, TableBasicAction, TableRowAction, TipoPantalla };
2257
+ /**
2258
+ * Resalta `query` dentro de un texto (sin distinguir mayúsculas ni acentos), para usar con
2259
+ * `[innerHTML]`: `<span [innerHTML]="item.name | ngxHighlight: query"></span>`.
2260
+ * Devuelve HTML con las coincidencias en `<mark class="ngx-highlight">` y el resto escapado.
2261
+ * Pensado para el `optionTemplate` de ngx-paginated-select, que recibe `query` en su contexto
2262
+ * y ya da estilo a esas marcas.
2263
+ */
2264
+ declare class NgxHighlightPipe implements PipeTransform {
2265
+ transform(text: string | null | undefined, query: string | null | undefined): string;
2266
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxHighlightPipe, never>;
2267
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NgxHighlightPipe, "ngxHighlight", true>;
2268
+ }
2269
+
2270
+ export { AdvancedFilterService, AdvancedFilterUtils, ColumnConfigService, DatosPantallaService, DialogBodyType, DynamicHostDirective, NGX_EIFFAGE_DEFAULT_TEXTS, NGX_EIFFAGE_TEXTS, NgxAlert, NgxBasicSelect, NgxBasicTable, NgxConfirmDialogComponent, NgxDialog, NgxDialogContext, NgxDialogHeader, NgxDialogService, NgxFileInput, NgxHighlightPipe, NgxInputFile, NgxLoadingButton, NgxPaginatedSelect, NgxPaginatedSelectBottomSheetComponent, NgxPaginatedTable, NgxSkeleton, NgxTablesIntl, NgxTexts, OPERATOR_BY_FILTER_TYPE, PaginatedSearchableSelectComponent, SearchableSelectComponent, USER_ID_FACTORY, base64ToUtf8, includeNoSensible, isFilterOption, provideNgxEiffageTexts };
2271
+ export type { AdvancedFilter, AlertAppearance, AlertType, BasicFilter, BasicSelectConfig, BasicTableColumn, BasicTableConfig, ColumnConfig, ColumnPipe, ColumnValue, ConfigureTableColumnData, ConfirmDialogData, DeleteConfirm, DialogBodyConfig, DialogConfig, DynamicFilter, FilterConnector, FilterGroup, FilterOperator, FilterOption, FilterRule, FilterType, LoadingButtonAppearance, LoadingButtonColor, NgxDialogTemplateContext, NgxEiffageTexts, NgxEiffageTextsOverrides, NgxEiffageTextsSource, NgxFileError, NgxFileErrorCode, NgxFileInputVariant, NgxFileItem, NgxPaginatedSelectBottomSheetData, NgxPaginatedSelectPageCache, PaginatedFilter, PaginatedItems, PaginatedSelectConfig, PaginatedSelectOptionContext, PaginatedTableColumn, PaginatedTableConfig, Pantalla, RowActionClickEvent, RowActionIconColor, RowSelectionAction, SelectionActionEvent, SendType, SkeletonAnimation, SkeletonVariant, SortBy, SortType, TableBasicAction, TableRowAction, TipoPantalla };