@acontplus/ng-components 2.1.32 → 2.3.0

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.
@@ -382,6 +382,7 @@ interface AutocompleteWrapperSearchResult {
382
382
  type AutocompleteWrapperSearchFunction = (query: string, filters: AutocompleteWrapperFilters, page?: number, pageSize?: number) => Observable<AutocompleteWrapperSearchResult>;
383
383
  interface AutocompleteWrapperConfig {
384
384
  placeholder?: string;
385
+ label?: string;
385
386
  clearInput?: boolean;
386
387
  disabled?: boolean;
387
388
  debounceTime?: number;
@@ -505,7 +506,7 @@ type AutocompleteWrapperItemProperty = keyof AutocompleteWrapperItem;
505
506
  type AutocompleteWrapperEventHandler<T = any> = (event: T) => void;
506
507
 
507
508
  declare class AutocompleteWrapperService {
508
- private historySubject;
509
+ private readonly historySubject;
509
510
  history$: Observable<AutocompleteWrapperItem[]>;
510
511
  constructor();
511
512
  searchLocal(items: AutocompleteWrapperItem[], query: string, filters: AutocompleteWrapperFilters, config: AutocompleteWrapperConfig): Observable<AutocompleteWrapperSearchResult>;
@@ -595,10 +596,11 @@ declare class DialogWrapper implements AfterViewInit, OnDestroy {
595
596
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogWrapper, "acp-dialog-wrapper", never, {}, {}, never, never, true, never>;
596
597
  }
597
598
 
599
+ type SelectValue = string | number | null;
598
600
  declare class DynamicSelect implements OnInit, OnDestroy {
599
601
  label: _angular_core.InputSignal<string>;
600
602
  options: _angular_core.InputSignal<SelectOption[]>;
601
- selectedValue: _angular_core.InputSignal<string | number | null | undefined>;
603
+ selectedValue: _angular_core.InputSignal<SelectValue | undefined>;
602
604
  className: _angular_core.InputSignal<string>;
603
605
  placeholder: _angular_core.InputSignal<string | undefined>;
604
606
  disabled: _angular_core.InputSignal<boolean>;
@@ -623,11 +625,11 @@ declare class DynamicSelect implements OnInit, OnDestroy {
623
625
  loadingText: _angular_core.InputSignal<string>;
624
626
  clearAllText: _angular_core.InputSignal<string>;
625
627
  notFoundText: _angular_core.InputSignal<string>;
626
- selectionChange: _angular_core.OutputEmitterRef<string | number | null>;
627
- selectControl: FormControl<string | number | null>;
628
+ selectionChange: _angular_core.OutputEmitterRef<SelectValue>;
629
+ selectControl: FormControl<SelectValue>;
628
630
  filteredOptions: SelectOption[];
629
631
  loading: boolean;
630
- private _onDestroy;
632
+ private readonly _onDestroy;
631
633
  constructor();
632
634
  ngOnInit(): void;
633
635
  onSelectionChange(selectedItem: any): void;
@@ -822,6 +824,42 @@ declare class Button {
822
824
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "acp-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "matStyle": { "alias": "matStyle"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; "reportFormat": { "alias": "reportFormat"; "required": false; "isSignal": true; }; "extended": { "alias": "extended"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, { "handleClick": "handleClick"; }, never, ["*"], true, never>;
823
825
  }
824
826
 
827
+ type AcpButtonVariant = 'basic' | 'icon' | 'fab' | 'mini-fab';
828
+ type AcpButtonAppearance = 'text' | 'filled' | 'elevated' | 'outlined' | 'tonal';
829
+ type AcpButtonType = 'button' | 'submit' | 'reset';
830
+ type AcpButtonColor = 'primary' | 'secondary' | 'accent' | 'error' | 'success' | 'warning' | 'info' | 'dark';
831
+ declare abstract class BaseButton {
832
+ color: _angular_core.InputSignal<AcpButtonColor>;
833
+ square: _angular_core.InputSignalWithTransform<boolean, unknown>;
834
+ icon: _angular_core.InputSignal<string | undefined>;
835
+ suffixIcon: _angular_core.InputSignal<string | undefined>;
836
+ loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
837
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
838
+ disableRipple: _angular_core.InputSignalWithTransform<boolean, unknown>;
839
+ variant: _angular_core.InputSignal<AcpButtonVariant>;
840
+ appearance: _angular_core.InputSignal<AcpButtonAppearance>;
841
+ type: _angular_core.InputSignal<AcpButtonType>;
842
+ extended: _angular_core.InputSignalWithTransform<boolean, unknown>;
843
+ size: _angular_core.InputSignal<"small" | "medium" | "large">;
844
+ text: _angular_core.InputSignal<string | undefined>;
845
+ hasText: _angular_core.Signal<boolean>;
846
+ clicked: _angular_core.OutputEmitterRef<void>;
847
+ focused: _angular_core.OutputEmitterRef<void>;
848
+ blurred: _angular_core.OutputEmitterRef<void>;
849
+ colorClass: _angular_core.Signal<string>;
850
+ sizeClass: _angular_core.Signal<string>;
851
+ squareClass: _angular_core.Signal<"" | "acp-square">;
852
+ isDisabled: _angular_core.Signal<boolean>;
853
+ pointerEvents: _angular_core.Signal<"auto" | "none">;
854
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseButton, never>;
855
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseButton, never, never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "square": { "alias": "square"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "extended": { "alias": "extended"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; "focused": "focused"; "blurred": "blurred"; }, never, never, true, never>;
856
+ }
857
+
858
+ declare class AcpButton extends BaseButton {
859
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpButton, never>;
860
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpButton, "acp-button", never, {}, {}, never, ["*", "*"], true, never>;
861
+ }
862
+
825
863
  declare class Spinner {
826
864
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Spinner, never>;
827
865
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Spinner, "acp-spinner", never, {}, {}, never, never, true, never>;
@@ -1106,6 +1144,7 @@ declare class TabulatorTable implements OnChanges, AfterViewInit, OnDestroy {
1106
1144
  readonly rowSelected: _angular_core.OutputEmitterRef<any>;
1107
1145
  readonly tableReady: _angular_core.OutputEmitterRef<Tabulator>;
1108
1146
  private _tabulator;
1147
+ private static instanceCounter;
1109
1148
  containerId: string;
1110
1149
  ngAfterViewInit(): void;
1111
1150
  ngOnChanges(changes: SimpleChanges): void;
@@ -1153,6 +1192,12 @@ declare class ThemeToggle {
1153
1192
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggle, "acp-theme-toggle", never, { "lightModeIcon": { "alias": "lightModeIcon"; "required": false; "isSignal": true; }; "darkModeIcon": { "alias": "darkModeIcon"; "required": false; "isSignal": true; }; "lightModeLabel": { "alias": "lightModeLabel"; "required": false; "isSignal": true; }; "darkModeLabel": { "alias": "darkModeLabel"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1154
1193
  }
1155
1194
 
1195
+ interface PaginationOptions {
1196
+ hidePageSize?: boolean;
1197
+ showPageSizeOptions?: boolean;
1198
+ showFirstLastButtons?: boolean;
1199
+ disabled?: boolean;
1200
+ }
1156
1201
  declare class Pagination {
1157
1202
  totalRecords: number;
1158
1203
  pageSize: number;
@@ -1167,13 +1212,10 @@ declare class Pagination {
1167
1212
  * @param pageSize Number of records per page
1168
1213
  * @param totalRecords Total number of records
1169
1214
  * @param pageSizeOptions Available page size options
1170
- * @param hidePageSize Whether to hide the page size selector
1171
- * @param showPageSizeOptions Whether to show page size options
1172
- * @param showFirstLastButtons Whether to show first/last buttons
1173
- * @param disabled Whether the paginator is disabled
1215
+ * @param options Display and behavior options
1174
1216
  */
1175
1217
  constructor(pageIndex?: number, // MatPaginator starts at 0
1176
- pageSize?: number, totalRecords?: number, pageSizeOptions?: number[], hidePageSize?: boolean, showPageSizeOptions?: boolean, showFirstLastButtons?: boolean, disabled?: boolean);
1218
+ pageSize?: number, totalRecords?: number, pageSizeOptions?: number[], options?: PaginationOptions);
1177
1219
  /**
1178
1220
  * Calculates the total number of pages.
1179
1221
  */
@@ -1186,6 +1228,8 @@ declare class Pagination {
1186
1228
  }
1187
1229
 
1188
1230
  declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
1231
+ private static inputIdCounter;
1232
+ readonly inputId: string;
1189
1233
  readonly dataSource: _angular_core.InputSignal<AutocompleteWrapperItem[]>;
1190
1234
  config: AutocompleteWrapperConfig;
1191
1235
  readonly itemTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
@@ -1225,8 +1269,8 @@ declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
1225
1269
  endItem: _angular_core.Signal<number>;
1226
1270
  sectionTitle: _angular_core.Signal<string>;
1227
1271
  isNoResults: _angular_core.Signal<boolean>;
1228
- private destroy$;
1229
- private searchSubject;
1272
+ private readonly destroy$;
1273
+ private readonly searchSubject;
1230
1274
  private autocompleteService;
1231
1275
  ngOnInit(): void;
1232
1276
  ngOnDestroy(): void;
@@ -1237,6 +1281,12 @@ declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
1237
1281
  private searchSubjectNext;
1238
1282
  onInput(event: Event): void;
1239
1283
  onKeyDown(event: KeyboardEvent): void;
1284
+ private handleArrowDown;
1285
+ private handleArrowUp;
1286
+ private handleEnter;
1287
+ private handleEscape;
1288
+ private handlePageDown;
1289
+ private handlePageUp;
1240
1290
  onFilterChange(): void;
1241
1291
  updateSearchResults(result: AutocompleteWrapperSearchResult): void;
1242
1292
  showOverlay(): void;
@@ -1453,9 +1503,9 @@ declare const DATA_GRID_DEFAULT_OPTIONS: InjectionToken<DataGridDefaultOptions>;
1453
1503
  declare class DataGrid implements AfterViewInit, OnChanges {
1454
1504
  size: _angular_core.InputSignal<"normal" | "small" | "medium">;
1455
1505
  protected _animationsDisabled: boolean;
1456
- private _utils;
1457
- private _changeDetectorRef;
1458
- private _defaultOptions;
1506
+ private readonly _utils;
1507
+ private readonly _changeDetectorRef;
1508
+ private readonly _defaultOptions;
1459
1509
  table: MatTable<any>;
1460
1510
  paginator: MatPaginator;
1461
1511
  sort: MatSort;
@@ -1763,11 +1813,11 @@ interface FocusableElement {
1763
1813
  */
1764
1814
  declare class KeyboardNavigationService {
1765
1815
  /** Array privado que contiene todos los elementos registrados para la navegación */
1766
- private focusableElements;
1816
+ private readonly focusableElements;
1767
1817
  /** Signal que mantiene el índice del elemento actualmente enfocado en el array `focusableElements` */
1768
- private currentFocusIndex;
1818
+ private readonly currentFocusIndex;
1769
1819
  /** Subject para notificar la destrucción del servicio y limpiar suscripciones */
1770
- private destroy$;
1820
+ private readonly destroy$;
1771
1821
  /**
1772
1822
  * Signal público que expone el índice de la fila enfocada (usado por componentes como DataGrid).
1773
1823
  * Es un signal escribible porque el componente hijo (DataGrid) es quien actualiza su valor.
@@ -3198,8 +3248,8 @@ declare class AcpCheckboxGroup implements AfterViewInit, OnDestroy, ControlValue
3198
3248
  }
3199
3249
 
3200
3250
  declare class ToUpperCase implements ControlValueAccessor {
3201
- private el;
3202
- private renderer;
3251
+ private readonly el;
3252
+ private readonly renderer;
3203
3253
  onInput(): void;
3204
3254
  onChange: (_value: string) => void;
3205
3255
  onTouched: () => void;
@@ -3230,15 +3280,16 @@ interface StatusOptions {
3230
3280
  iconClass?: string;
3231
3281
  }
3232
3282
  declare class StatusDisplayPipe implements PipeTransform {
3233
- private sanitizer;
3234
- private transloco;
3283
+ private readonly sanitizer;
3284
+ private readonly transloco;
3235
3285
  transform(isActive: boolean, options?: StatusOptions): SafeHtml;
3236
3286
  private getStatusText;
3237
3287
  private getTranslationKey;
3238
3288
  private getFallbackText;
3289
+ private sanitizeClassName;
3239
3290
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatusDisplayPipe, never>;
3240
3291
  static ɵpipe: _angular_core.ɵɵPipeDeclaration<StatusDisplayPipe, "statusDisplay", true>;
3241
3292
  }
3242
3293
 
3243
- export { ACP_ACTIVE_DATE_DEBOUNCE, ACP_DATE_OPTION_TYPE, ACP_DEFAULT_DATE_OPTIONS, 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, AcpAlert, AcpCheckboxBase, AcpCheckboxGroup, AcpDateRangeInput, AcpDrawer, AcpDrawerConfig, AcpDrawerContainer, AcpDrawerRef, AcpPopover, AcpPopoverContent, AcpPopoverTarget, AcpPopoverTrigger, AcpSelectDateOption, AdvancedDialogService, 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 };
3244
- export type { AcpAlertType, AcpCheckboxGroupOption, AcpPopoverDefaultOptions, AcpPopoverPanel, AcpPopoverPosition, AcpPopoverPositionEnd, AcpPopoverPositionStart, AcpPopoverTriggerEvent, AcpSelectedDateEvent, 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, IAcpSelectDateOption, IconRegistryConfig, MatCustomDialogConfig, PopoverCloseReason, ReusableAutocompleteWrapperComponent, TabulatorColumn, TabulatorConfig, TabulatorEventHandlers, TabulatorTheme };
3294
+ export { ACP_ACTIVE_DATE_DEBOUNCE, ACP_DATE_OPTION_TYPE, ACP_DEFAULT_DATE_OPTIONS, 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, AcpAlert, AcpButton, AcpCheckboxBase, AcpCheckboxGroup, AcpDateRangeInput, AcpDrawer, AcpDrawerConfig, AcpDrawerContainer, AcpDrawerRef, AcpPopover, AcpPopoverContent, AcpPopoverTarget, AcpPopoverTrigger, AcpSelectDateOption, AdvancedDialogService, 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 };
3295
+ export type { AcpAlertType, AcpCheckboxGroupOption, AcpPopoverDefaultOptions, AcpPopoverPanel, AcpPopoverPosition, AcpPopoverPositionEnd, AcpPopoverPositionStart, AcpPopoverTriggerEvent, AcpSelectedDateEvent, 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, IAcpSelectDateOption, IconRegistryConfig, MatCustomDialogConfig, PaginationOptions, PopoverCloseReason, ReusableAutocompleteWrapperComponent, TabulatorColumn, TabulatorConfig, TabulatorEventHandlers, TabulatorTheme };
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Acontplus S.A.S.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
File without changes
File without changes
File without changes