@acontplus/ng-components 2.1.13 → 2.1.14

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.13",
3
+ "version": "2.1.14",
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",
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Type, AfterViewInit, OnDestroy, ViewContainerRef, ElementRef, OnInit, TemplateRef, OnChanges, SimpleChanges, InjectionToken, QueryList, TrackByFunction, KeyValueChangeRecord, OutputEmitterRef, WritableSignal, EventEmitter, ComponentRef, AfterContentInit, PipeTransform } from '@angular/core';
2
+ import { Type, AfterViewInit, OnDestroy, Signal, ViewContainerRef, ElementRef, OnInit, TemplateRef, OnChanges, SimpleChanges, InjectionToken, QueryList, TrackByFunction, KeyValueChangeRecord, OutputEmitterRef, WritableSignal, EventEmitter, ComponentRef, AfterContentInit, PipeTransform } from '@angular/core';
3
3
  import { MatDialogRef } from '@angular/material/dialog';
4
4
  import { ScrollStrategy } from '@angular/cdk/overlay';
5
5
  import { FormControl, ControlValueAccessor } from '@angular/forms';
@@ -205,6 +205,7 @@ declare class AdvancedDialogService {
205
205
  private readonly dialog;
206
206
  private readonly overlay;
207
207
  private readonly breakpointObserver;
208
+ private readonly zIndexService;
208
209
  private readonly isMobile$;
209
210
  /**
210
211
  * Main method to open any component in a dialog.
@@ -239,6 +240,42 @@ declare class AdvancedDialogService {
239
240
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AdvancedDialogService>;
240
241
  }
241
242
 
243
+ /**
244
+ * Servicio centralizado para manejar z-index de todos los diálogos
245
+ * Asegura que los diálogos siempre aparezcan en el orden correcto
246
+ */
247
+ declare class DialogZIndexService {
248
+ private static currentZIndex;
249
+ private static readonly Z_INDEX_INCREMENT;
250
+ /**
251
+ * Obtiene el siguiente z-index disponible
252
+ * @returns El próximo z-index a usar
253
+ */
254
+ getNextZIndex(): number;
255
+ /**
256
+ * Obtiene el z-index actual más alto
257
+ * @returns El z-index más alto actualmente en uso
258
+ */
259
+ getCurrentZIndex(): number;
260
+ /**
261
+ * Resetea el contador de z-index (útil para testing)
262
+ */
263
+ reset(): void;
264
+ /**
265
+ * Aplica z-index a un diálogo específico
266
+ * @param dialogRef Referencia al diálogo
267
+ * @param zIndex Z-index a aplicar (opcional, si no se proporciona usa getNextZIndex())
268
+ */
269
+ applyZIndex(dialogRef: any, zIndex?: number): void;
270
+ /**
271
+ * Trae un diálogo al frente (usado por drag functionality)
272
+ * @param element Elemento del diálogo a traer al frente
273
+ */
274
+ bringToFront(element: HTMLElement): void;
275
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogZIndexService, never>;
276
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogZIndexService>;
277
+ }
278
+
242
279
  declare class OverlayService {
243
280
  private readonly overlay;
244
281
  private overlayRef;
@@ -475,6 +512,7 @@ interface AlertDialogOptions {
475
512
  allowEscapeKey?: boolean;
476
513
  allowEnterKey?: boolean;
477
514
  scrollbarPadding?: boolean;
515
+ allowMultiple?: boolean;
478
516
  showConfirmButton?: boolean;
479
517
  showCancelButton?: boolean;
480
518
  showDenyButton?: boolean;
@@ -539,6 +577,7 @@ interface AlertDialogResult<T = any> {
539
577
  }
540
578
  declare class AlertDialogService {
541
579
  private dialog;
580
+ private zIndexService;
542
581
  private defaultOptions;
543
582
  /**
544
583
  * Configurar opciones por defecto para todos los diálogos
@@ -611,21 +650,17 @@ declare class AlertDialogService {
611
650
  declare class DialogWrapper implements AfterViewInit, OnDestroy {
612
651
  dialogRef: MatDialogRef<DialogWrapper, any>;
613
652
  config: DialogWrapperConfig<unknown>;
653
+ private zIndexService;
614
654
  /**
615
655
  * A template reference that acts as an anchor for dynamic content.
616
656
  * This is where the component specified in the config will be rendered.
617
657
  */
618
- readonly contentHost: _angular_core.Signal<ViewContainerRef>;
658
+ readonly contentHost: Signal<ViewContainerRef>;
619
659
  /**
620
660
  * A reference to the header element for the z-index focus logic.
621
661
  * Used to bring the dialog to the front when clicked.
622
662
  */
623
- readonly header: _angular_core.Signal<ElementRef<any> | undefined>;
624
- /**
625
- * Static counter to track the highest z-index for multiple dialogs.
626
- * Ensures that the most recently clicked dialog appears on top.
627
- */
628
- private static lastZIndex;
663
+ readonly header: Signal<ElementRef | undefined>;
629
664
  /**
630
665
  * Timeout ID for debouncing z-index updates to prevent excessive DOM manipulations.
631
666
  */
@@ -653,7 +688,7 @@ declare class DialogWrapper implements AfterViewInit, OnDestroy {
653
688
  onClose(): void;
654
689
  /**
655
690
  * Brings the dialog to the front by adjusting its z-index.
656
- * Uses requestAnimationFrame to debounce updates and prevent excessive DOM manipulations.
691
+ * Uses the centralized DialogZIndexService for consistent z-index management.
657
692
  * Called when the dialog header is clicked.
658
693
  */
659
694
  bringToFront(): void;
@@ -1416,7 +1451,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
1416
1451
  sortDirection: _angular_core.InputSignal<SortDirection>;
1417
1452
  sortDisableClear: _angular_core.InputSignal<boolean>;
1418
1453
  sortDisabled: _angular_core.InputSignal<boolean>;
1419
- sortStart: _angular_core.InputSignal<"asc" | "desc">;
1454
+ sortStart: _angular_core.InputSignal<"desc" | "asc">;
1420
1455
  rowHover: _angular_core.InputSignal<boolean>;
1421
1456
  rowStriped: _angular_core.InputSignal<boolean>;
1422
1457
  rowSelectable: _angular_core.InputSignal<boolean>;
@@ -2589,14 +2624,12 @@ declare function throwAcpPopoverInvalidPositionStart(): void;
2589
2624
  declare function throwAcpPopoverInvalidPositionEnd(): void;
2590
2625
 
2591
2626
  type ButtonType = 'confirm' | 'cancel' | 'deny';
2592
- declare class AlertDialog implements OnInit, OnDestroy, AfterViewInit {
2627
+ declare class AlertDialog implements OnInit, OnDestroy {
2593
2628
  inputField?: ElementRef<HTMLInputElement | HTMLTextAreaElement>;
2594
2629
  dialogTitle?: ElementRef<HTMLElement>;
2595
2630
  private container;
2596
2631
  private componentRef;
2597
2632
  private timerInterval;
2598
- private static lastZIndex;
2599
- private bringToFrontTimeoutId;
2600
2633
  inputValue: string;
2601
2634
  validationError: string | null;
2602
2635
  timerProgress: number;
@@ -2608,9 +2641,9 @@ declare class AlertDialog implements OnInit, OnDestroy, AfterViewInit {
2608
2641
  private renderer;
2609
2642
  private elementRef;
2610
2643
  private cdr;
2644
+ private zIndexService;
2611
2645
  constructor();
2612
2646
  ngOnDestroy(): void;
2613
- ngAfterViewInit(): void;
2614
2647
  private startTimer;
2615
2648
  private loadComponent;
2616
2649
  ngOnInit(): void;
@@ -2632,7 +2665,7 @@ declare class AlertDialog implements OnInit, OnDestroy, AfterViewInit {
2632
2665
  getDenyBackgroundColor(): string | undefined;
2633
2666
  /**
2634
2667
  * Brings the dialog to the front by adjusting its z-index.
2635
- * Uses requestAnimationFrame to debounce updates and prevent excessive DOM manipulations.
2668
+ * Uses the centralized DialogZIndexService for consistent z-index management.
2636
2669
  * Called when the dialog header is clicked.
2637
2670
  */
2638
2671
  bringToFront(): void;
@@ -2683,5 +2716,5 @@ declare class StatusDisplayPipe implements PipeTransform {
2683
2716
  static ɵpipe: _angular_core.ɵɵPipeDeclaration<StatusDisplayPipe, "statusDisplay", true>;
2684
2717
  }
2685
2718
 
2686
- 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, DynamicCard, DynamicSelect, GetTotalPipe, IconRegistryService, InputChip, KeyboardNavigationService, OverlayService, Pagination, ReusableAutocompleteComponent, Spinner, StatusDisplayPipe, SvgIcon, TabulatorTable, ThemeSwitcher, ThemeToggle, ToUpperCase, UserIcon, _AcpPopoverContentBase, createAutocompleteWrapperConfig, throwAcpPopoverInvalidPositionEnd, throwAcpPopoverInvalidPositionStart, throwAcpPopoverMissingError };
2719
+ 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 };
2687
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 };