@acontplus/ng-components 2.1.22 → 2.1.24

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.22",
3
+ "version": "2.1.24",
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' | 'toast';
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, toast)
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' | 'toast';
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>;
@@ -755,7 +720,7 @@ declare class DynamicSelect implements OnInit, OnDestroy {
755
720
  clearable: _angular_core.InputSignal<boolean>;
756
721
  searchable: _angular_core.InputSignal<boolean>;
757
722
  virtualScroll: _angular_core.InputSignal<boolean>;
758
- dropdownPosition: _angular_core.InputSignal<"auto" | "top" | "bottom">;
723
+ dropdownPosition: _angular_core.InputSignal<"top" | "bottom" | "auto">;
759
724
  closeOnSelect: _angular_core.InputSignal<boolean>;
760
725
  hideSelected: _angular_core.InputSignal<boolean>;
761
726
  multiple: _angular_core.InputSignal<boolean>;
@@ -1700,6 +1665,8 @@ declare class DateRangePicker<AsString extends boolean = true> implements OnInit
1700
1665
  showCheckbox: _angular_core.InputSignal<boolean>;
1701
1666
  checkboxChecked: _angular_core.ModelSignal<boolean>;
1702
1667
  checkboxPosition: _angular_core.InputSignal<"prefix" | "suffix">;
1668
+ startDate: _angular_core.InputSignal<Date>;
1669
+ endDate: _angular_core.InputSignal<Date>;
1703
1670
  singleDatePicker: _angular_core.InputSignal<boolean>;
1704
1671
  timePicker: _angular_core.InputSignal<boolean>;
1705
1672
  timePicker24Hour: _angular_core.InputSignal<boolean>;
@@ -1753,7 +1720,7 @@ declare class DateRangePicker<AsString extends boolean = true> implements OnInit
1753
1720
  hide(): void;
1754
1721
  toggle(): void;
1755
1722
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateRangePicker<any>, never>;
1756
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateRangePicker<any>, "acp-date-range-picker", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholderText": { "alias": "placeholderText"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "inputReadonly": { "alias": "inputReadonly"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "formatOutputAsString": { "alias": "formatOutputAsString"; "required": false; "isSignal": true; }; "calendarIcon": { "alias": "calendarIcon"; "required": false; "isSignal": true; }; "showCalendarButton": { "alias": "showCalendarButton"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; "isSignal": true; }; "checkboxChecked": { "alias": "checkboxChecked"; "required": false; "isSignal": true; }; "checkboxPosition": { "alias": "checkboxPosition"; "required": false; "isSignal": true; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; "isSignal": true; }; "timePicker": { "alias": "timePicker"; "required": false; "isSignal": true; }; "timePicker24Hour": { "alias": "timePicker24Hour"; "required": false; "isSignal": true; }; "timePickerSeconds": { "alias": "timePickerSeconds"; "required": false; "isSignal": true; }; "timePickerIncrement": { "alias": "timePickerIncrement"; "required": false; "isSignal": true; }; "autoApply": { "alias": "autoApply"; "required": false; "isSignal": true; }; "showDropdowns": { "alias": "showDropdowns"; "required": false; "isSignal": true; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; "isSignal": true; }; "alwaysShowCalendars": { "alias": "alwaysShowCalendars"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; }, { "checkboxChecked": "checkboxCheckedChange"; "dateRangeSelected": "dateRangeSelected"; "pickerShow": "pickerShow"; "pickerHide": "pickerHide"; "pickerApply": "pickerApply"; "pickerCancel": "pickerCancel"; "checkboxChange": "checkboxChange"; }, never, never, true, never>;
1723
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateRangePicker<any>, "acp-date-range-picker", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "placeholderText": { "alias": "placeholderText"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "inputReadonly": { "alias": "inputReadonly"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "formatOutputAsString": { "alias": "formatOutputAsString"; "required": false; "isSignal": true; }; "calendarIcon": { "alias": "calendarIcon"; "required": false; "isSignal": true; }; "showCalendarButton": { "alias": "showCalendarButton"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; "isSignal": true; }; "checkboxChecked": { "alias": "checkboxChecked"; "required": false; "isSignal": true; }; "checkboxPosition": { "alias": "checkboxPosition"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "singleDatePicker": { "alias": "singleDatePicker"; "required": false; "isSignal": true; }; "timePicker": { "alias": "timePicker"; "required": false; "isSignal": true; }; "timePicker24Hour": { "alias": "timePicker24Hour"; "required": false; "isSignal": true; }; "timePickerSeconds": { "alias": "timePickerSeconds"; "required": false; "isSignal": true; }; "timePickerIncrement": { "alias": "timePickerIncrement"; "required": false; "isSignal": true; }; "autoApply": { "alias": "autoApply"; "required": false; "isSignal": true; }; "showDropdowns": { "alias": "showDropdowns"; "required": false; "isSignal": true; }; "linkedCalendars": { "alias": "linkedCalendars"; "required": false; "isSignal": true; }; "alwaysShowCalendars": { "alias": "alwaysShowCalendars"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; }, { "checkboxChecked": "checkboxCheckedChange"; "dateRangeSelected": "dateRangeSelected"; "pickerShow": "pickerShow"; "pickerHide": "pickerHide"; "pickerApply": "pickerApply"; "pickerCancel": "pickerCancel"; "checkboxChange": "checkboxChange"; }, never, never, true, never>;
1757
1724
  }
1758
1725
 
1759
1726
  /** Options for where to set focus to automatically on dialog open. */
@@ -2698,14 +2665,19 @@ declare class AlertDialog implements OnInit, OnDestroy {
2698
2665
  ngOnInit(): void;
2699
2666
  getIconName(): string;
2700
2667
  onClose(): void;
2668
+ private getButtonConfig;
2701
2669
  getButtonVariant(buttonType: ButtonType): ButtonVariant;
2702
2670
  getButtonIcon(buttonType: ButtonType): string;
2703
2671
  getButtonStyle(buttonType: ButtonType): MaterialButtonStyle;
2672
+ getButtonText(buttonType: ButtonType): string;
2673
+ getButtonDisabled(buttonType: ButtonType): boolean;
2674
+ getButtonFocus(buttonType: ButtonType): boolean;
2704
2675
  getActionsAlignment(): 'start' | 'center' | 'end';
2705
2676
  onConfirm(): Promise<void>;
2706
2677
  onCancel(): void;
2707
2678
  onDeny(): void;
2708
2679
  onInputEnter(): void;
2680
+ private getButtonColor;
2709
2681
  getConfirmColor(): any;
2710
2682
  getCancelColor(): any;
2711
2683
  getDenyColor(): any;
@@ -2766,4 +2738,4 @@ declare class StatusDisplayPipe implements PipeTransform {
2766
2738
  }
2767
2739
 
2768
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 };
2769
- 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 };