@acontplus/ng-components 2.1.23 → 2.1.26
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.26",
|
|
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,7 +240,7 @@ declare class AdvancedDialogService {
|
|
|
240
240
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AdvancedDialogService>;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
type DialogType = 'normal' | 'alert'
|
|
243
|
+
type DialogType = 'normal' | 'alert';
|
|
244
244
|
/**
|
|
245
245
|
* Servicio centralizado para manejar z-index de todos los diálogos
|
|
246
246
|
* Asegura que los diálogos siempre aparezcan en el orden correcto
|
|
@@ -251,7 +251,7 @@ declare class DialogZIndexService {
|
|
|
251
251
|
private static readonly Z_INDEX_INCREMENT;
|
|
252
252
|
/**
|
|
253
253
|
* Obtiene el siguiente z-index disponible para un tipo específico de diálogo
|
|
254
|
-
* @param type Tipo de diálogo (normal, alert
|
|
254
|
+
* @param type Tipo de diálogo (normal, alert)
|
|
255
255
|
* @returns El próximo z-index a usar
|
|
256
256
|
*/
|
|
257
257
|
getNextZIndex(type?: DialogType): number;
|
|
@@ -290,20 +290,6 @@ declare class DialogZIndexService {
|
|
|
290
290
|
* @param dialogRef Referencia al diálogo
|
|
291
291
|
*/
|
|
292
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
|
|
300
|
-
*/
|
|
301
|
-
closeAllToasts(): void;
|
|
302
|
-
/**
|
|
303
|
-
* Obtiene el número de toasts activos
|
|
304
|
-
* @returns Número de toasts actualmente visibles
|
|
305
|
-
*/
|
|
306
|
-
getActiveToastCount(): number;
|
|
307
293
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogZIndexService, never>;
|
|
308
294
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogZIndexService>;
|
|
309
295
|
}
|
|
@@ -504,6 +490,15 @@ declare class AutocompleteWrapperService {
|
|
|
504
490
|
|
|
505
491
|
type AlertType = 'success' | 'error' | 'warning' | 'info' | 'question' | 'delete';
|
|
506
492
|
type AlertPosition = 'top' | 'top-start' | 'top-end' | 'center' | 'center-start' | 'center-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
493
|
+
interface ButtonConfig {
|
|
494
|
+
text?: string;
|
|
495
|
+
icon?: string;
|
|
496
|
+
variant?: ButtonVariant;
|
|
497
|
+
style?: MaterialButtonStyle;
|
|
498
|
+
color?: ThemePalette | string;
|
|
499
|
+
disabled?: boolean;
|
|
500
|
+
focus?: boolean;
|
|
501
|
+
}
|
|
507
502
|
interface AlertDialogOptions {
|
|
508
503
|
title?: string;
|
|
509
504
|
message?: string;
|
|
@@ -519,7 +514,7 @@ interface AlertDialogOptions {
|
|
|
519
514
|
customClass?: string;
|
|
520
515
|
panelClass?: string | string[];
|
|
521
516
|
backdropClass?: string;
|
|
522
|
-
layout?: 'default' | 'modern'
|
|
517
|
+
layout?: 'default' | 'modern';
|
|
523
518
|
iconPosition?: 'left' | 'center' | 'top';
|
|
524
519
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
525
520
|
actionsAlignment?: 'start' | 'center' | 'end';
|
|
@@ -529,8 +524,6 @@ interface AlertDialogOptions {
|
|
|
529
524
|
dragHandle?: string;
|
|
530
525
|
animation?: 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
|
|
531
526
|
animationDuration?: number;
|
|
532
|
-
autoClose?: boolean;
|
|
533
|
-
progressBar?: boolean;
|
|
534
527
|
component?: Type<any>;
|
|
535
528
|
componentProps?: Record<string, any>;
|
|
536
529
|
forceToTop?: boolean;
|
|
@@ -546,30 +539,14 @@ interface AlertDialogOptions {
|
|
|
546
539
|
allowEnterKey?: boolean;
|
|
547
540
|
scrollbarPadding?: boolean;
|
|
548
541
|
allowMultiple?: boolean;
|
|
542
|
+
buttons?: {
|
|
543
|
+
confirm?: ButtonConfig;
|
|
544
|
+
cancel?: ButtonConfig;
|
|
545
|
+
deny?: ButtonConfig;
|
|
546
|
+
};
|
|
549
547
|
showConfirmButton?: boolean;
|
|
550
548
|
showCancelButton?: boolean;
|
|
551
549
|
showDenyButton?: boolean;
|
|
552
|
-
confirmText?: string;
|
|
553
|
-
cancelText?: string;
|
|
554
|
-
denyText?: string;
|
|
555
|
-
confirmButtonIcon?: string;
|
|
556
|
-
cancelButtonIcon?: string;
|
|
557
|
-
denyButtonIcon?: string;
|
|
558
|
-
confirmButtonVariant?: ButtonVariant;
|
|
559
|
-
cancelButtonVariant?: ButtonVariant;
|
|
560
|
-
denyButtonVariant?: ButtonVariant;
|
|
561
|
-
confirmButtonStyle?: MaterialButtonStyle;
|
|
562
|
-
cancelButtonStyle?: MaterialButtonStyle;
|
|
563
|
-
denyButtonStyle?: MaterialButtonStyle;
|
|
564
|
-
confirmButtonColor?: ThemePalette | string;
|
|
565
|
-
cancelButtonColor?: ThemePalette | string;
|
|
566
|
-
denyButtonColor?: ThemePalette | string;
|
|
567
|
-
disableConfirmButton?: boolean;
|
|
568
|
-
disableCancelButton?: boolean;
|
|
569
|
-
disableDenyButton?: boolean;
|
|
570
|
-
focusConfirm?: boolean;
|
|
571
|
-
focusCancel?: boolean;
|
|
572
|
-
focusDeny?: boolean;
|
|
573
550
|
processing?: boolean;
|
|
574
551
|
processingButton?: 'confirm' | 'cancel' | 'deny';
|
|
575
552
|
input?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'textarea';
|
|
@@ -659,10 +636,6 @@ declare class AlertDialogService {
|
|
|
659
636
|
* Diálogo de confirmación para eliminar
|
|
660
637
|
*/
|
|
661
638
|
delete(options: string | Omit<AlertDialogOptions, 'type' | 'showCancelButton'>): Promise<AlertDialogResult>;
|
|
662
|
-
/**
|
|
663
|
-
* Toast notification (auto-cierre, posición personalizada, no-intrusivo)
|
|
664
|
-
*/
|
|
665
|
-
toast(options: string | AlertDialogOptions): Promise<AlertDialogResult>;
|
|
666
639
|
/**
|
|
667
640
|
* Alerta crítica que siempre aparece encima de todo
|
|
668
641
|
*/
|
|
@@ -676,14 +649,6 @@ declare class AlertDialogService {
|
|
|
676
649
|
* ⚠️ Usar con cuidado - afecta todos los diálogos de MatDialog
|
|
677
650
|
*/
|
|
678
651
|
closeAll(): void;
|
|
679
|
-
/**
|
|
680
|
-
* Cerrar solo los toasts activos (mantener otros diálogos abiertos)
|
|
681
|
-
*/
|
|
682
|
-
closeAllToasts(): void;
|
|
683
|
-
/**
|
|
684
|
-
* Obtener el número de toasts activos
|
|
685
|
-
*/
|
|
686
|
-
getActiveToastCount(): number;
|
|
687
652
|
private getDialogPosition;
|
|
688
653
|
private getPanelClasses;
|
|
689
654
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertDialogService, never>;
|
|
@@ -1476,7 +1441,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
1476
1441
|
noResultTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1477
1442
|
paginationTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1478
1443
|
summaryTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
|
|
1479
|
-
size: _angular_core.InputSignal<"
|
|
1444
|
+
size: _angular_core.InputSignal<"normal" | "small" | "medium">;
|
|
1480
1445
|
headerCellTemplate: _angular_core.InputSignal<TemplateRef<any> | DataGridCellTemplate | undefined>;
|
|
1481
1446
|
expandable: _angular_core.InputSignal<boolean>;
|
|
1482
1447
|
expansionTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
|
|
@@ -2700,14 +2665,19 @@ declare class AlertDialog implements OnInit, OnDestroy {
|
|
|
2700
2665
|
ngOnInit(): void;
|
|
2701
2666
|
getIconName(): string;
|
|
2702
2667
|
onClose(): void;
|
|
2668
|
+
private getButtonConfig;
|
|
2703
2669
|
getButtonVariant(buttonType: ButtonType): ButtonVariant;
|
|
2704
2670
|
getButtonIcon(buttonType: ButtonType): string;
|
|
2705
2671
|
getButtonStyle(buttonType: ButtonType): MaterialButtonStyle;
|
|
2672
|
+
getButtonText(buttonType: ButtonType): string;
|
|
2673
|
+
getButtonDisabled(buttonType: ButtonType): boolean;
|
|
2674
|
+
getButtonFocus(buttonType: ButtonType): boolean;
|
|
2706
2675
|
getActionsAlignment(): 'start' | 'center' | 'end';
|
|
2707
2676
|
onConfirm(): Promise<void>;
|
|
2708
2677
|
onCancel(): void;
|
|
2709
2678
|
onDeny(): void;
|
|
2710
2679
|
onInputEnter(): void;
|
|
2680
|
+
private getButtonColor;
|
|
2711
2681
|
getConfirmColor(): any;
|
|
2712
2682
|
getCancelColor(): any;
|
|
2713
2683
|
getDenyColor(): any;
|
|
@@ -2768,4 +2738,4 @@ declare class StatusDisplayPipe implements PipeTransform {
|
|
|
2768
2738
|
}
|
|
2769
2739
|
|
|
2770
2740
|
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 };
|
|
2771
|
-
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 };
|
|
2741
|
+
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, ButtonConfig, 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 };
|