@acontplus/ng-components 2.1.14 → 2.1.15
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.
|
|
3
|
+
"version": "2.1.15",
|
|
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
|
|
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
|
-
* @
|
|
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
|
|
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
|
-
|
|
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
|
}
|
|
@@ -502,6 +534,8 @@ interface AlertDialogOptions {
|
|
|
502
534
|
progressBar?: boolean;
|
|
503
535
|
component?: Type<any>;
|
|
504
536
|
componentProps?: Record<string, any>;
|
|
537
|
+
forceToTop?: boolean;
|
|
538
|
+
dialogType?: DialogType;
|
|
505
539
|
verticalButtons?: boolean;
|
|
506
540
|
fullWidthButtons?: boolean;
|
|
507
541
|
reverseButtons?: boolean;
|
|
@@ -626,13 +660,25 @@ declare class AlertDialogService {
|
|
|
626
660
|
*/
|
|
627
661
|
delete(options: string | Omit<AlertDialogOptions, 'type' | 'showCancelButton'>): Promise<AlertDialogResult>;
|
|
628
662
|
/**
|
|
629
|
-
* Toast notification (auto-cierre, posición personalizada)
|
|
663
|
+
* Toast notification (auto-cierre, posición personalizada, no-intrusivo)
|
|
630
664
|
*/
|
|
631
665
|
toast(options: string | AlertDialogOptions): Promise<AlertDialogResult>;
|
|
666
|
+
/**
|
|
667
|
+
* Alerta crítica que siempre aparece encima de todo
|
|
668
|
+
*/
|
|
669
|
+
critical(options: string | Omit<AlertDialogOptions, 'forceToTop'>): Promise<AlertDialogResult>;
|
|
632
670
|
/**
|
|
633
671
|
* Cerrar todos los diálogos abiertos
|
|
634
672
|
*/
|
|
635
673
|
closeAll(): void;
|
|
674
|
+
/**
|
|
675
|
+
* Cerrar solo los toasts activos (mantener otros diálogos abiertos)
|
|
676
|
+
*/
|
|
677
|
+
closeAllToasts(): void;
|
|
678
|
+
/**
|
|
679
|
+
* Obtener el número de toasts activos
|
|
680
|
+
*/
|
|
681
|
+
getActiveToastCount(): number;
|
|
636
682
|
private getDialogPosition;
|
|
637
683
|
private getPanelClasses;
|
|
638
684
|
private getToastPosition;
|
|
@@ -1427,7 +1473,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
1427
1473
|
noResultTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1428
1474
|
paginationTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1429
1475
|
summaryTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
|
|
1430
|
-
size: _angular_core.InputSignal<"
|
|
1476
|
+
size: _angular_core.InputSignal<"normal" | "small" | "medium">;
|
|
1431
1477
|
headerCellTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
|
|
1432
1478
|
expandable: _angular_core.InputSignal<boolean>;
|
|
1433
1479
|
expansionTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
@@ -2717,4 +2763,4 @@ declare class StatusDisplayPipe implements PipeTransform {
|
|
|
2717
2763
|
}
|
|
2718
2764
|
|
|
2719
2765
|
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 };
|
|
2766
|
+
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 };
|