@acontplus/ng-components 2.1.14 → 2.1.16

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acontplus/ng-components",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
4
4
  "description": "Comprehensive Angular Material UI component library featuring dynamic Tabulator tables, theme toggle with dark mode, dialog wrappers, autocomplete components, cards, buttons, icons, input chips, spinners, directives, pipes, and SCSS styling utilities.",
5
5
  "peerDependencies": {
6
6
  "@acontplus/ui-kit": "^1.0.2",
@@ -240,38 +240,70 @@ declare class AdvancedDialogService {
240
240
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AdvancedDialogService>;
241
241
  }
242
242
 
243
+ type DialogType = 'normal' | 'alert' | 'toast';
243
244
  /**
244
245
  * Servicio centralizado para manejar z-index de todos los diálogos
245
246
  * Asegura que los diálogos siempre aparezcan en el orden correcto
247
+ * Los AlertDialogs siempre tienen prioridad sobre otros diálogos
246
248
  */
247
249
  declare class DialogZIndexService {
248
- private static currentZIndex;
250
+ private static readonly Z_INDEX_RANGES;
249
251
  private static readonly Z_INDEX_INCREMENT;
250
252
  /**
251
- * Obtiene el siguiente z-index disponible
253
+ * Obtiene el siguiente z-index disponible para un tipo específico de diálogo
254
+ * @param type Tipo de diálogo (normal, alert, toast)
252
255
  * @returns El próximo z-index a usar
253
256
  */
254
- getNextZIndex(): number;
257
+ getNextZIndex(type?: DialogType): number;
255
258
  /**
256
- * Obtiene el z-index actual más alto
257
- * @returns El z-index más alto actualmente en uso
259
+ * Obtiene el z-index actual más alto para un tipo específico
260
+ * @param type Tipo de diálogo
261
+ * @returns El z-index más alto actualmente en uso para ese tipo
258
262
  */
259
- getCurrentZIndex(): number;
263
+ getCurrentZIndex(type?: DialogType): number;
264
+ /**
265
+ * Obtiene el z-index más alto de todos los tipos
266
+ * @returns El z-index más alto de todos los diálogos
267
+ */
268
+ getHighestZIndex(): number;
260
269
  /**
261
270
  * Resetea el contador de z-index (útil para testing)
271
+ * @param type Tipo específico a resetear, o undefined para resetear todos
262
272
  */
263
- reset(): void;
273
+ reset(type?: DialogType): void;
264
274
  /**
265
275
  * Aplica z-index a un diálogo específico
266
276
  * @param dialogRef Referencia al diálogo
267
- * @param zIndex Z-index a aplicar (opcional, si no se proporciona usa getNextZIndex())
277
+ * @param type Tipo de diálogo (determina el rango de z-index)
278
+ * @param zIndex Z-index específico a aplicar (opcional)
268
279
  */
269
- applyZIndex(dialogRef: any, zIndex?: number): void;
280
+ applyZIndex(dialogRef: any, type?: DialogType, zIndex?: number): void;
270
281
  /**
271
282
  * Trae un diálogo al frente (usado por drag functionality)
272
283
  * @param element Elemento del diálogo a traer al frente
284
+ * @param type Tipo de diálogo
285
+ */
286
+ bringToFront(element: HTMLElement, type?: DialogType): void;
287
+ /**
288
+ * Fuerza un diálogo a estar siempre encima de todos los demás
289
+ * Útil para alertas críticas que deben tener máxima prioridad
290
+ * @param dialogRef Referencia al diálogo
291
+ */
292
+ forceToTop(dialogRef: any): void;
293
+ /**
294
+ * Obtiene todos los toasts activos
295
+ * @returns Array de elementos de toast activos
296
+ */
297
+ getActiveToasts(): HTMLElement[];
298
+ /**
299
+ * Cierra todos los toasts activos
273
300
  */
274
- bringToFront(element: HTMLElement): void;
301
+ closeAllToasts(): void;
302
+ /**
303
+ * Obtiene el número de toasts activos
304
+ * @returns Número de toasts actualmente visibles
305
+ */
306
+ getActiveToastCount(): number;
275
307
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogZIndexService, never>;
276
308
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogZIndexService>;
277
309
  }
@@ -497,11 +529,12 @@ interface AlertDialogOptions {
497
529
  animation?: 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
498
530
  animationDuration?: number;
499
531
  toastMode?: boolean;
500
- toastPosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
501
532
  autoClose?: boolean;
502
533
  progressBar?: boolean;
503
534
  component?: Type<any>;
504
535
  componentProps?: Record<string, any>;
536
+ forceToTop?: boolean;
537
+ dialogType?: DialogType;
505
538
  verticalButtons?: boolean;
506
539
  fullWidthButtons?: boolean;
507
540
  reverseButtons?: boolean;
@@ -626,17 +659,27 @@ declare class AlertDialogService {
626
659
  */
627
660
  delete(options: string | Omit<AlertDialogOptions, 'type' | 'showCancelButton'>): Promise<AlertDialogResult>;
628
661
  /**
629
- * Toast notification (auto-cierre, posición personalizada)
662
+ * Toast notification (auto-cierre, posición personalizada, no-intrusivo)
630
663
  */
631
664
  toast(options: string | AlertDialogOptions): Promise<AlertDialogResult>;
665
+ /**
666
+ * Alerta crítica que siempre aparece encima de todo
667
+ */
668
+ critical(options: string | Omit<AlertDialogOptions, 'forceToTop'>): Promise<AlertDialogResult>;
632
669
  /**
633
670
  * Cerrar todos los diálogos abiertos
634
671
  */
635
672
  closeAll(): void;
673
+ /**
674
+ * Cerrar solo los toasts activos (mantener otros diálogos abiertos)
675
+ */
676
+ closeAllToasts(): void;
677
+ /**
678
+ * Obtener el número de toasts activos
679
+ */
680
+ getActiveToastCount(): number;
636
681
  private getDialogPosition;
637
682
  private getPanelClasses;
638
- private getToastPosition;
639
- private getToastDialogPosition;
640
683
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertDialogService, never>;
641
684
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AlertDialogService>;
642
685
  }
@@ -706,7 +749,7 @@ declare class DynamicSelect implements OnInit, OnDestroy {
706
749
  clearable: _angular_core.InputSignal<boolean>;
707
750
  searchable: _angular_core.InputSignal<boolean>;
708
751
  virtualScroll: _angular_core.InputSignal<boolean>;
709
- dropdownPosition: _angular_core.InputSignal<"auto" | "top" | "bottom">;
752
+ dropdownPosition: _angular_core.InputSignal<"top" | "bottom" | "auto">;
710
753
  closeOnSelect: _angular_core.InputSignal<boolean>;
711
754
  hideSelected: _angular_core.InputSignal<boolean>;
712
755
  multiple: _angular_core.InputSignal<boolean>;
@@ -1427,7 +1470,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
1427
1470
  noResultTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
1428
1471
  paginationTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
1429
1472
  summaryTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
1430
- size: _angular_core.InputSignal<"small" | "medium" | "normal">;
1473
+ size: _angular_core.InputSignal<"normal" | "small" | "medium">;
1431
1474
  headerCellTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
1432
1475
  expandable: _angular_core.InputSignal<boolean>;
1433
1476
  expansionTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
@@ -2717,4 +2760,4 @@ declare class StatusDisplayPipe implements PipeTransform {
2717
2760
  }
2718
2761
 
2719
2762
  export { ACP_DRAWER_DATA, ACP_DRAWER_DEFAULT_OPTIONS, ACP_POPOVER_CONTENT, ACP_POPOVER_DEFAULT_OPTIONS, ACP_POPOVER_SCROLL_STRATEGY, AUTOCOMPLETE_WRAPPER_CUSTOMER_CONFIG, AUTOCOMPLETE_WRAPPER_DEFAULT_CONFIG, AUTOCOMPLETE_WRAPPER_LOCAL_CONFIG, AUTOCOMPLETE_WRAPPER_PAGINATED_CONFIG, AUTOCOMPLETE_WRAPPER_PRODUCT_CONFIG, AUTOCOMPLETE_WRAPPER_SIMPLE_CONFIG, AcpDrawer, AcpDrawerConfig, AcpDrawerContainer, AcpDrawerRef, AcpPopover, AcpPopoverContent, AcpPopoverTarget, AcpPopoverTrigger, AdvancedDialogService, AlertDialog, AlertDialogService, AutocompleteWrapperService, Button, DATA_GRID_DEFAULT_OPTIONS, DataGrid, DateRangePicker, DialogWrapper, DialogZIndexService, DynamicCard, DynamicSelect, GetTotalPipe, IconRegistryService, InputChip, KeyboardNavigationService, OverlayService, Pagination, ReusableAutocompleteComponent, Spinner, StatusDisplayPipe, SvgIcon, TabulatorTable, ThemeSwitcher, ThemeToggle, ToUpperCase, UserIcon, _AcpPopoverContentBase, createAutocompleteWrapperConfig, throwAcpPopoverInvalidPositionEnd, throwAcpPopoverInvalidPositionStart, throwAcpPopoverMissingError };
2720
- export type { AcpPopoverDefaultOptions, AcpPopoverPanel, AcpPopoverPosition, AcpPopoverPositionEnd, AcpPopoverPositionStart, AcpPopoverTriggerEvent, AlertDialogOptions, AlertDialogResult, AlertPosition, AlertType, AutoFocusTarget, AutocompleteWrapperActions, AutocompleteWrapperConfig, AutocompleteWrapperEventHandler, AutocompleteWrapperEvents, AutocompleteWrapperFilters, AutocompleteWrapperItem, AutocompleteWrapperItemProperty, AutocompleteWrapperPaginationInfo, AutocompleteWrapperSearchField, AutocompleteWrapperSearchFunction, AutocompleteWrapperSearchMode, AutocompleteWrapperSearchResult, AutocompleteWrapperState, AutocompleteWrapperStockOption, DataGridButtonType, DataGridCellTemplate, DataGridColumn, DataGridColumnButton, DataGridColumnButtonBadge, DataGridColumnButtonPop, DataGridColumnButtonTooltip, DataGridColumnPinOption, DataGridColumnPinValue, DataGridColumnTag, DataGridColumnTagValue, DataGridColumnType, DataGridColumnTypeParameter, DataGridDefaultOptions, DataGridMenuItem, DataGridRowClassFormatter, DataGridRowSelectionFormatter, DataGridSortProp, DateRangePickerOptions, DateRangeValue, DialogSize, DialogWrapperConfig, DrawerPosition, FocusableElement, IconRegistryConfig, MatCustomDialogConfig, PopoverCloseReason, ReusableAutocompleteWrapperComponent, TabulatorColumn, TabulatorConfig, TabulatorEventHandlers, TabulatorTheme };
2763
+ export type { AcpPopoverDefaultOptions, AcpPopoverPanel, AcpPopoverPosition, AcpPopoverPositionEnd, AcpPopoverPositionStart, AcpPopoverTriggerEvent, AlertDialogOptions, AlertDialogResult, AlertPosition, AlertType, AutoFocusTarget, AutocompleteWrapperActions, AutocompleteWrapperConfig, AutocompleteWrapperEventHandler, AutocompleteWrapperEvents, AutocompleteWrapperFilters, AutocompleteWrapperItem, AutocompleteWrapperItemProperty, AutocompleteWrapperPaginationInfo, AutocompleteWrapperSearchField, AutocompleteWrapperSearchFunction, AutocompleteWrapperSearchMode, AutocompleteWrapperSearchResult, AutocompleteWrapperState, AutocompleteWrapperStockOption, DataGridButtonType, DataGridCellTemplate, DataGridColumn, DataGridColumnButton, DataGridColumnButtonBadge, DataGridColumnButtonPop, DataGridColumnButtonTooltip, DataGridColumnPinOption, DataGridColumnPinValue, DataGridColumnTag, DataGridColumnTagValue, DataGridColumnType, DataGridColumnTypeParameter, DataGridDefaultOptions, DataGridMenuItem, DataGridRowClassFormatter, DataGridRowSelectionFormatter, DataGridSortProp, DateRangePickerOptions, DateRangeValue, DialogSize, DialogType, DialogWrapperConfig, DrawerPosition, FocusableElement, IconRegistryConfig, MatCustomDialogConfig, PopoverCloseReason, ReusableAutocompleteWrapperComponent, TabulatorColumn, TabulatorConfig, TabulatorEventHandlers, TabulatorTheme };