@acontplus/ng-components 2.1.30 → 2.1.32
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/LICENSE +21 -0
- package/fesm2022/acontplus-ng-components.mjs +5957 -3544
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/package.json +41 -16
- package/src/_index.scss +22 -0
- package/src/core/color/_all-color.scss +15 -0
- package/src/core/density/_all-density.scss +17 -0
- package/src/core/style/_elevation.scss +207 -0
- package/src/core/theming/_all-theme.scss +36 -0
- package/src/core/theming/_config-validation.scss +171 -0
- package/src/core/theming/_definition.scss +158 -0
- package/src/core/theming/_palettes.scss +1576 -0
- package/src/core/theming/prebuilt/aqua.scss +21 -0
- package/src/core/theming/prebuilt/blue.scss +21 -0
- package/src/core/theming/prebuilt/cyan.scss +21 -0
- package/src/core/theming/prebuilt/green.scss +21 -0
- package/src/core/theming/prebuilt/orange.scss +21 -0
- package/src/core/theming/prebuilt/pink.scss +21 -0
- package/src/core/theming/prebuilt/purple.scss +21 -0
- package/src/core/theming/prebuilt/rose.scss +21 -0
- package/src/core/tokens/_m3-tokens.scss +141 -0
- package/src/core/tokens/_m3-utils.scss +36 -0
- package/src/core/tokens/_system.scss +388 -0
- package/src/core/tokens/_token-utils.scss +117 -0
- package/src/core/tokens/m3/_index.scss +7 -0
- package/src/core/tokens/m3/_md-sys-color.scss +150 -0
- package/src/core/tokens/m3/_md-sys-elevation.scss +8 -0
- package/src/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/src/core/tokens/m3/_md-sys-shape.scss +31 -0
- package/src/core/tokens/m3/_md-sys-state.scss +13 -0
- package/src/core/tokens/m3/_md-sys-typescale.scss +131 -0
- package/src/core/tokens/m3/_theme.scss +41 -0
- package/src/core/typography/_all-typography.scss +12 -0
- package/src/lib/components/alert/_alert-theme.scss +57 -0
- package/src/lib/components/alert/_m3-alert.scss +72 -0
- package/src/lib/components/alert/alert.scss +60 -0
- package/src/lib/components/autocomplete-wrapper/autocomplete-wrapper.scss +667 -0
- package/src/lib/components/button/button.scss +297 -0
- package/src/lib/components/cards/dynamic-card/dynamic-card.scss +131 -0
- package/src/lib/components/checkbox-group/checkbox-group.scss +14 -0
- package/src/lib/components/date-range-input/calendar/date-range-calendar.scss +29 -0
- package/src/lib/components/date-range-input/date-range-input.scss +194 -0
- package/src/lib/components/dialog-wrapper/dialog-wrapper.scss +36 -0
- package/src/lib/components/drawer/_drawer-theme.scss +57 -0
- package/src/lib/components/drawer/_m3-drawer.scss +23 -0
- package/src/lib/components/drawer/drawer-container.scss +97 -0
- package/src/lib/components/grid/_grid-theme.scss +53 -0
- package/src/lib/components/grid/_m3-grid.scss +34 -0
- package/src/lib/components/grid/cell/cell.scss +38 -0
- package/src/lib/components/grid/column-menu/column-menu.scss +117 -0
- package/src/lib/components/grid/column-resize/_column-resize.scss +126 -0
- package/src/lib/components/grid/grid.scss +245 -0
- package/src/lib/components/icons/svg-icon/svg-icon.scss +16 -0
- package/src/lib/components/icons/user-icon/user-icon.scss +0 -0
- package/src/lib/components/input-chip/input-chip.scss +0 -0
- package/src/lib/components/popover/_m3-popover.scss +24 -0
- package/src/lib/components/popover/_popover-theme.scss +57 -0
- package/src/lib/components/popover/popover.scss +239 -0
- package/src/lib/components/spinner/spinner.scss +6 -0
- package/src/lib/components/tables/tabulator-table/tabulator-table.scss +68 -0
- package/src/lib/components/theme-toggle/theme-toggle.scss +3 -0
- package/src/lib/styles/_elevation.scss +168 -0
- package/src/lib/styles/_token-utils.scss +115 -0
- package/types/acontplus-ng-components.d.ts +1017 -536
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { EventEmitter, Type, AfterViewInit, OnDestroy, Signal, ViewContainerRef, ElementRef, OnInit, TemplateRef, OnChanges, SimpleChanges, NgZone, InjectionToken, QueryList, TrackByFunction, KeyValueChangeRecord, OutputEmitterRef, WritableSignal, ComponentRef, AfterContentInit, PipeTransform } from '@angular/core';
|
|
3
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
5
|
-
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
6
|
-
import {
|
|
5
|
+
import { FormControl, ControlValueAccessor, FormGroup } from '@angular/forms';
|
|
6
|
+
import { SelectOption, IconDefinition, ButtonVariant, ButtonType, MaterialButtonStyle, REPORT_FORMAT } from '@acontplus/ui-kit';
|
|
7
7
|
import { SafeHtml } from '@angular/platform-browser';
|
|
8
8
|
import { MatChipInputEvent, MatChipEditedEvent } from '@angular/material/chips';
|
|
9
9
|
import { LiveAnnouncer, FocusOrigin } from '@angular/cdk/a11y';
|
|
@@ -18,32 +18,32 @@ import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
|
|
|
18
18
|
import { MatButtonAppearance } from '@angular/material/button';
|
|
19
19
|
import { ThemePalette } from '@angular/material/core';
|
|
20
20
|
import { TooltipPosition, TooltipTouchGestures } from '@angular/material/tooltip';
|
|
21
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
22
|
+
import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
|
|
21
23
|
import { NgxDatexLocale, NgxDatexTheme, NgxDatexValue } from 'ngx-datex';
|
|
22
24
|
export { MATERIAL_LIGHT_THEME, NgxDatex, NgxDatexConfig, NgxDatexLocale, NgxDatexRange, NgxDatexTheme, NgxDatexValue, SPANISH_LOCALE } from 'ngx-datex';
|
|
23
25
|
import { ComponentType } from '@angular/cdk/portal';
|
|
24
26
|
import { Direction } from '@angular/cdk/bidi';
|
|
25
27
|
import { DialogRole, CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
28
|
+
import { DateRange, MatCalendar } from '@angular/material/datepicker';
|
|
29
|
+
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
26
30
|
|
|
27
31
|
type AcpAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
28
32
|
declare class AcpAlert {
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
private _changeDetectorRef;
|
|
34
|
+
get hostClassList(): string;
|
|
31
35
|
/** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
|
|
32
|
-
type:
|
|
36
|
+
type: AcpAlertType;
|
|
33
37
|
/** Whether to display an inline close button. */
|
|
34
|
-
dismissible:
|
|
38
|
+
dismissible: boolean;
|
|
35
39
|
/** The alert's elevation (0~24). */
|
|
36
|
-
elevation:
|
|
40
|
+
elevation: number;
|
|
37
41
|
/** Event emitted when the alert closed. */
|
|
38
|
-
closed:
|
|
39
|
-
get hostClassList(): string;
|
|
40
|
-
/** Programmatically close the alert */
|
|
41
|
-
close(): void;
|
|
42
|
-
/** Programmatically show the alert */
|
|
43
|
-
show(): void;
|
|
42
|
+
closed: EventEmitter<AcpAlert>;
|
|
44
43
|
_onClosed(): void;
|
|
45
44
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpAlert, never>;
|
|
46
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpAlert, "acp-alert", ["acpAlert"], { "type": { "alias": "type"; "required": false;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpAlert, "acp-alert", ["acpAlert"], { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
46
|
+
static ngAcceptInputType_dismissible: unknown;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -124,6 +124,18 @@ declare class DynamicCard {
|
|
|
124
124
|
* Event emitted when the card is clicked.
|
|
125
125
|
*/
|
|
126
126
|
cardClicked: _angular_core.OutputEmitterRef<Event>;
|
|
127
|
+
/**
|
|
128
|
+
* Event emitted when a key is pressed down on the card.
|
|
129
|
+
*/
|
|
130
|
+
keyDown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
131
|
+
/**
|
|
132
|
+
* Event emitted when a key is released on the card.
|
|
133
|
+
*/
|
|
134
|
+
keyUp: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
135
|
+
/**
|
|
136
|
+
* Event emitted when a key is pressed on the card.
|
|
137
|
+
*/
|
|
138
|
+
keyPress: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
127
139
|
/**
|
|
128
140
|
* Handles the primary button click event.
|
|
129
141
|
* Stops event propagation and emits the primaryButtonClicked event.
|
|
@@ -142,8 +154,26 @@ declare class DynamicCard {
|
|
|
142
154
|
* @param event The click event
|
|
143
155
|
*/
|
|
144
156
|
handleCardClick(event: Event): void;
|
|
157
|
+
/**
|
|
158
|
+
* Handles the key down event on the card.
|
|
159
|
+
* Emits the keyDown event with the original keyboard event.
|
|
160
|
+
* @param event The keyboard event
|
|
161
|
+
*/
|
|
162
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
163
|
+
/**
|
|
164
|
+
* Handles the key up event on the card.
|
|
165
|
+
* Emits the keyUp event with the original keyboard event.
|
|
166
|
+
* @param event The keyboard event
|
|
167
|
+
*/
|
|
168
|
+
handleKeyUp(event: KeyboardEvent): void;
|
|
169
|
+
/**
|
|
170
|
+
* Handles the key press event on the card.
|
|
171
|
+
* Emits the keyPress event with the original keyboard event.
|
|
172
|
+
* @param event The keyboard event
|
|
173
|
+
*/
|
|
174
|
+
handleKeyPress(event: KeyboardEvent): void;
|
|
145
175
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicCard, never>;
|
|
146
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicCard, "acp-dynamic-card", never, { "cardTitle": { "alias": "cardTitle"; "required": false; "isSignal": true; }; "cardSubtitle": { "alias": "cardSubtitle"; "required": false; "isSignal": true; }; "avatarImageUrl": { "alias": "avatarImageUrl"; "required": false; "isSignal": true; }; "isHeaderVisible": { "alias": "isHeaderVisible"; "required": false; "isSignal": true; }; "contentPadding": { "alias": "contentPadding"; "required": false; "isSignal": true; }; "hasDivider": { "alias": "hasDivider"; "required": false; "isSignal": true; }; "areActionsVisible": { "alias": "areActionsVisible"; "required": false; "isSignal": true; }; "primaryButtonText": { "alias": "primaryButtonText"; "required": false; "isSignal": true; }; "secondaryButtonText": { "alias": "secondaryButtonText"; "required": false; "isSignal": true; }; "primaryButtonIcon": { "alias": "primaryButtonIcon"; "required": false; "isSignal": true; }; "secondaryButtonIcon": { "alias": "secondaryButtonIcon"; "required": false; "isSignal": true; }; "buttonsPosition": { "alias": "buttonsPosition"; "required": false; "isSignal": true; }; }, { "primaryButtonClicked": "primaryButtonClicked"; "secondaryButtonClicked": "secondaryButtonClicked"; "cardClicked": "cardClicked"; }, never, ["*"], true, never>;
|
|
176
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicCard, "acp-dynamic-card", never, { "cardTitle": { "alias": "cardTitle"; "required": false; "isSignal": true; }; "cardSubtitle": { "alias": "cardSubtitle"; "required": false; "isSignal": true; }; "avatarImageUrl": { "alias": "avatarImageUrl"; "required": false; "isSignal": true; }; "isHeaderVisible": { "alias": "isHeaderVisible"; "required": false; "isSignal": true; }; "contentPadding": { "alias": "contentPadding"; "required": false; "isSignal": true; }; "hasDivider": { "alias": "hasDivider"; "required": false; "isSignal": true; }; "areActionsVisible": { "alias": "areActionsVisible"; "required": false; "isSignal": true; }; "primaryButtonText": { "alias": "primaryButtonText"; "required": false; "isSignal": true; }; "secondaryButtonText": { "alias": "secondaryButtonText"; "required": false; "isSignal": true; }; "primaryButtonIcon": { "alias": "primaryButtonIcon"; "required": false; "isSignal": true; }; "secondaryButtonIcon": { "alias": "secondaryButtonIcon"; "required": false; "isSignal": true; }; "buttonsPosition": { "alias": "buttonsPosition"; "required": false; "isSignal": true; }; }, { "primaryButtonClicked": "primaryButtonClicked"; "secondaryButtonClicked": "secondaryButtonClicked"; "cardClicked": "cardClicked"; "keyDown": "keyDown"; "keyUp": "keyUp"; "keyPress": "keyPress"; }, never, ["*"], true, never>;
|
|
147
177
|
}
|
|
148
178
|
|
|
149
179
|
type DialogSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'full';
|
|
@@ -510,173 +540,6 @@ declare class AutocompleteWrapperService {
|
|
|
510
540
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AutocompleteWrapperService>;
|
|
511
541
|
}
|
|
512
542
|
|
|
513
|
-
type AlertType = 'success' | 'error' | 'warning' | 'info' | 'question' | 'delete';
|
|
514
|
-
type AlertPosition = 'top' | 'top-start' | 'top-end' | 'center' | 'center-start' | 'center-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
515
|
-
interface ButtonConfig {
|
|
516
|
-
text?: string;
|
|
517
|
-
icon?: string;
|
|
518
|
-
variant?: ButtonVariant;
|
|
519
|
-
style?: MaterialButtonStyle;
|
|
520
|
-
color?: ThemePalette | string;
|
|
521
|
-
disabled?: boolean;
|
|
522
|
-
focus?: boolean;
|
|
523
|
-
}
|
|
524
|
-
interface AlertDialogOptions {
|
|
525
|
-
title?: string;
|
|
526
|
-
message?: string;
|
|
527
|
-
html?: string;
|
|
528
|
-
icon?: string;
|
|
529
|
-
iconColor?: string;
|
|
530
|
-
type?: AlertType;
|
|
531
|
-
width?: string;
|
|
532
|
-
minWidth?: string;
|
|
533
|
-
maxWidth?: string;
|
|
534
|
-
height?: string;
|
|
535
|
-
position?: AlertPosition;
|
|
536
|
-
customClass?: string;
|
|
537
|
-
panelClass?: string | string[];
|
|
538
|
-
backdropClass?: string;
|
|
539
|
-
layout?: 'default' | 'modern';
|
|
540
|
-
iconPosition?: 'left' | 'center' | 'top';
|
|
541
|
-
contentAlignment?: 'left' | 'center' | 'right';
|
|
542
|
-
actionsAlignment?: 'start' | 'center' | 'end';
|
|
543
|
-
showCloseButton?: boolean;
|
|
544
|
-
closeButtonPosition?: 'top-right' | 'top-left';
|
|
545
|
-
draggable?: boolean;
|
|
546
|
-
dragHandle?: string;
|
|
547
|
-
animation?: 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
|
|
548
|
-
animationDuration?: number;
|
|
549
|
-
component?: Type<any>;
|
|
550
|
-
componentProps?: Record<string, any>;
|
|
551
|
-
forceToTop?: boolean;
|
|
552
|
-
dialogType?: DialogType;
|
|
553
|
-
verticalButtons?: boolean;
|
|
554
|
-
fullWidthButtons?: boolean;
|
|
555
|
-
reverseButtons?: boolean;
|
|
556
|
-
timer?: number;
|
|
557
|
-
timerProgressBar?: boolean;
|
|
558
|
-
disableClose?: boolean;
|
|
559
|
-
closeOnBackdropClick?: boolean;
|
|
560
|
-
allowEscapeKey?: boolean;
|
|
561
|
-
allowEnterKey?: boolean;
|
|
562
|
-
scrollbarPadding?: boolean;
|
|
563
|
-
allowMultiple?: boolean;
|
|
564
|
-
buttons?: {
|
|
565
|
-
confirm?: ButtonConfig;
|
|
566
|
-
cancel?: ButtonConfig;
|
|
567
|
-
deny?: ButtonConfig;
|
|
568
|
-
};
|
|
569
|
-
showConfirmButton?: boolean;
|
|
570
|
-
showCancelButton?: boolean;
|
|
571
|
-
showDenyButton?: boolean;
|
|
572
|
-
processing?: boolean;
|
|
573
|
-
processingButton?: 'confirm' | 'cancel' | 'deny';
|
|
574
|
-
input?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'textarea';
|
|
575
|
-
inputLabel?: string;
|
|
576
|
-
inputPlaceholder?: string;
|
|
577
|
-
inputValue?: string;
|
|
578
|
-
inputValidator?: (value: string) => string | null | Promise<string | null>;
|
|
579
|
-
inputAttributes?: Record<string, string>;
|
|
580
|
-
imageUrl?: string;
|
|
581
|
-
imageWidth?: string;
|
|
582
|
-
imageHeight?: string;
|
|
583
|
-
imageAlt?: string;
|
|
584
|
-
footer?: string;
|
|
585
|
-
footerHtml?: string;
|
|
586
|
-
willOpen?: () => void;
|
|
587
|
-
didOpen?: () => void;
|
|
588
|
-
willClose?: () => void;
|
|
589
|
-
didClose?: () => void;
|
|
590
|
-
preConfirm?: (value?: string) => Promise<any> | any;
|
|
591
|
-
preDeny?: (value?: string) => Promise<any> | any;
|
|
592
|
-
showClass?: {
|
|
593
|
-
backdrop?: string;
|
|
594
|
-
popup?: string;
|
|
595
|
-
};
|
|
596
|
-
hideClass?: {
|
|
597
|
-
backdrop?: string;
|
|
598
|
-
popup?: string;
|
|
599
|
-
};
|
|
600
|
-
ariaLabel?: string;
|
|
601
|
-
ariaDescribedBy?: string;
|
|
602
|
-
}
|
|
603
|
-
interface AlertDialogResult<T = any> {
|
|
604
|
-
isConfirmed: boolean;
|
|
605
|
-
isDismissed: boolean;
|
|
606
|
-
isDenied: boolean;
|
|
607
|
-
value?: T;
|
|
608
|
-
dismiss?: 'backdrop' | 'cancel' | 'esc' | 'close' | 'timer';
|
|
609
|
-
}
|
|
610
|
-
declare class AlertDialogService {
|
|
611
|
-
private dialog;
|
|
612
|
-
private zIndexService;
|
|
613
|
-
private openAlertDialogs;
|
|
614
|
-
private defaultOptions;
|
|
615
|
-
/**
|
|
616
|
-
* Configurar opciones por defecto para todos los diálogos
|
|
617
|
-
*/
|
|
618
|
-
setDefaults(options: Partial<AlertDialogOptions>): void;
|
|
619
|
-
/**
|
|
620
|
-
* Obtener opciones por defecto actuales
|
|
621
|
-
*/
|
|
622
|
-
getDefaults(): Partial<AlertDialogOptions>;
|
|
623
|
-
/**
|
|
624
|
-
* Resetear a opciones por defecto originales
|
|
625
|
-
*/
|
|
626
|
-
resetDefaults(): void;
|
|
627
|
-
/**
|
|
628
|
-
* Muestra un diálogo de alerta con todas las opciones configurables
|
|
629
|
-
*/
|
|
630
|
-
fire(options: AlertDialogOptions): Promise<AlertDialogResult>;
|
|
631
|
-
/**
|
|
632
|
-
* Alerta de éxito
|
|
633
|
-
*/
|
|
634
|
-
success(options: string | Omit<AlertDialogOptions, 'type'>): Promise<AlertDialogResult>;
|
|
635
|
-
/**
|
|
636
|
-
* Alerta de error
|
|
637
|
-
*/
|
|
638
|
-
error(options: string | Omit<AlertDialogOptions, 'type'>): Promise<AlertDialogResult>;
|
|
639
|
-
/**
|
|
640
|
-
* Alerta de advertencia
|
|
641
|
-
*/
|
|
642
|
-
warning(options: string | Omit<AlertDialogOptions, 'type'>): Promise<AlertDialogResult>;
|
|
643
|
-
/**
|
|
644
|
-
* Alerta de información
|
|
645
|
-
*/
|
|
646
|
-
info(options: string | Omit<AlertDialogOptions, 'type'>): Promise<AlertDialogResult>;
|
|
647
|
-
/**
|
|
648
|
-
* Diálogo de confirmación
|
|
649
|
-
*/
|
|
650
|
-
confirm(options: string | Omit<AlertDialogOptions, 'type' | 'showCancelButton'>): Promise<AlertDialogResult>;
|
|
651
|
-
/**
|
|
652
|
-
* Prompt para capturar input del usuario
|
|
653
|
-
*/
|
|
654
|
-
prompt(options: Omit<AlertDialogOptions, 'input'> & {
|
|
655
|
-
input?: AlertDialogOptions['input'];
|
|
656
|
-
}): Promise<AlertDialogResult<string>>;
|
|
657
|
-
/**
|
|
658
|
-
* Diálogo de confirmación para eliminar
|
|
659
|
-
*/
|
|
660
|
-
delete(options: string | Omit<AlertDialogOptions, 'type' | 'showCancelButton'>): Promise<AlertDialogResult>;
|
|
661
|
-
/**
|
|
662
|
-
* Alerta crítica que siempre aparece encima de todo
|
|
663
|
-
*/
|
|
664
|
-
critical(options: string | Omit<AlertDialogOptions, 'forceToTop'>): Promise<AlertDialogResult>;
|
|
665
|
-
/**
|
|
666
|
-
* Cerrar solo los AlertDialogs abiertos (no afecta otros diálogos)
|
|
667
|
-
*/
|
|
668
|
-
closeAllAlertDialogs(): void;
|
|
669
|
-
/**
|
|
670
|
-
* Cerrar TODOS los diálogos abiertos (incluyendo otros servicios)
|
|
671
|
-
* ⚠️ Usar con cuidado - afecta todos los diálogos de MatDialog
|
|
672
|
-
*/
|
|
673
|
-
closeAll(): void;
|
|
674
|
-
private getDialogPosition;
|
|
675
|
-
private getPanelClasses;
|
|
676
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertDialogService, never>;
|
|
677
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AlertDialogService>;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
543
|
/**
|
|
681
544
|
* A wrapper component for Angular Material dialogs that provides a consistent look and feel,
|
|
682
545
|
* including a draggable header and the ability to dynamically create components inside the dialog.
|
|
@@ -742,7 +605,7 @@ declare class DynamicSelect implements OnInit, OnDestroy {
|
|
|
742
605
|
clearable: _angular_core.InputSignal<boolean>;
|
|
743
606
|
searchable: _angular_core.InputSignal<boolean>;
|
|
744
607
|
virtualScroll: _angular_core.InputSignal<boolean>;
|
|
745
|
-
dropdownPosition: _angular_core.InputSignal<"auto" | "
|
|
608
|
+
dropdownPosition: _angular_core.InputSignal<"auto" | "bottom" | "top">;
|
|
746
609
|
closeOnSelect: _angular_core.InputSignal<boolean>;
|
|
747
610
|
hideSelected: _angular_core.InputSignal<boolean>;
|
|
748
611
|
multiple: _angular_core.InputSignal<boolean>;
|
|
@@ -913,7 +776,7 @@ declare class Button {
|
|
|
913
776
|
text: _angular_core.InputSignal<string>;
|
|
914
777
|
icon: _angular_core.InputSignal<string>;
|
|
915
778
|
disabled: _angular_core.InputSignal<boolean>;
|
|
916
|
-
type: _angular_core.InputSignal<ButtonType
|
|
779
|
+
type: _angular_core.InputSignal<ButtonType>;
|
|
917
780
|
matStyle: _angular_core.InputSignal<MaterialButtonStyle>;
|
|
918
781
|
customClass: _angular_core.InputSignal<string | undefined>;
|
|
919
782
|
reportFormat: _angular_core.InputSignal<REPORT_FORMAT | undefined>;
|
|
@@ -1401,22 +1264,176 @@ declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
|
|
|
1401
1264
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ReusableAutocompleteComponent, "acp-autocomplete-wrapper", never, { "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "searchFunction": { "alias": "searchFunction"; "required": false; "isSignal": true; }; "notFoundTemplate": { "alias": "notFoundTemplate"; "required": false; "isSignal": true; }; "overlayWidth": { "alias": "overlayWidth"; "required": false; "isSignal": true; }; "overlayMaxHeight": { "alias": "overlayMaxHeight"; "required": false; "isSignal": true; }; }, { "itemSelected": "itemSelected"; "searchChanged": "searchChanged"; "searchRequested": "searchRequested"; "pageChanged": "pageChanged"; "filterChanged": "filterChanged"; "advancedSearchClicked": "advancedSearchClicked"; "allResultsClicked": "allResultsClicked"; "createClicked": "createClicked"; }, never, never, true, never>;
|
|
1402
1265
|
}
|
|
1403
1266
|
|
|
1404
|
-
declare class
|
|
1267
|
+
declare class AcpGridSelectableCell {
|
|
1405
1268
|
ctrlKeyPressed: boolean;
|
|
1406
1269
|
shiftKeyPressed: boolean;
|
|
1407
1270
|
get selected(): boolean;
|
|
1408
1271
|
private _selected;
|
|
1409
|
-
cellSelectable:
|
|
1410
|
-
cellSelectedChange:
|
|
1272
|
+
cellSelectable: boolean;
|
|
1273
|
+
cellSelectedChange: EventEmitter<AcpGridSelectableCell>;
|
|
1411
1274
|
onClick(event: MouseEvent): void;
|
|
1412
1275
|
select(): void;
|
|
1413
1276
|
deselect(): void;
|
|
1414
1277
|
toggle(): void;
|
|
1415
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1416
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<
|
|
1278
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridSelectableCell, never>;
|
|
1279
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpGridSelectableCell, "[acpGridSelectableCell]", never, { "cellSelectable": { "alias": "cellSelectable"; "required": false; }; }, { "cellSelectedChange": "cellSelectedChange"; }, never, never, true, never>;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/** Indicates the width of a column. */
|
|
1283
|
+
interface ColumnSize {
|
|
1284
|
+
/** The ID/name of the column, as defined in CdkColumnDef. */
|
|
1285
|
+
readonly columnId: string;
|
|
1286
|
+
/** The width in pixels of the column. */
|
|
1287
|
+
readonly size: number;
|
|
1288
|
+
/** The width in pixels of the column prior to this update, if known. */
|
|
1289
|
+
readonly previousSize?: number;
|
|
1290
|
+
}
|
|
1291
|
+
/** Interface describing column size changes. */
|
|
1292
|
+
interface ColumnSizeAction extends ColumnSize {
|
|
1293
|
+
/**
|
|
1294
|
+
* Whether the resize action should be applied instantaneously. False for events triggered during
|
|
1295
|
+
* a UI-triggered resize (such as with the mouse) until the mouse button is released. True
|
|
1296
|
+
* for all programmatically triggered resizes.
|
|
1297
|
+
*/
|
|
1298
|
+
readonly completeImmediately?: boolean;
|
|
1299
|
+
/**
|
|
1300
|
+
* Whether the resize action is being applied to a sticky/stickyEnd column.
|
|
1301
|
+
*/
|
|
1302
|
+
readonly isStickyColumn?: boolean;
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Originating source of column resize events within a table.
|
|
1306
|
+
* @docs-private
|
|
1307
|
+
*/
|
|
1308
|
+
declare class ColumnResizeNotifierSource {
|
|
1309
|
+
/** Emits when an in-progress resize is canceled. */
|
|
1310
|
+
readonly resizeCanceled: Subject<ColumnSizeAction>;
|
|
1311
|
+
/** Emits when a resize is applied. */
|
|
1312
|
+
readonly resizeCompleted: Subject<ColumnSize>;
|
|
1313
|
+
/** Triggers a resize action. */
|
|
1314
|
+
readonly triggerResize: Subject<ColumnSizeAction>;
|
|
1315
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifierSource, never>;
|
|
1316
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifierSource>;
|
|
1317
|
+
}
|
|
1318
|
+
/** Service for triggering column resizes imperatively or being notified of them. */
|
|
1319
|
+
declare class ColumnResizeNotifier {
|
|
1320
|
+
private readonly _source;
|
|
1321
|
+
/** Emits whenever a column is resized. */
|
|
1322
|
+
readonly resizeCompleted: Observable<ColumnSize>;
|
|
1323
|
+
/** Instantly resizes the specified column. */
|
|
1324
|
+
resize(columnId: string, size: number): void;
|
|
1325
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
|
|
1326
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifier>;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/** Coordinates events between the column resize directives. */
|
|
1330
|
+
declare class HeaderRowEventDispatcher {
|
|
1331
|
+
private readonly _ngZone;
|
|
1332
|
+
/**
|
|
1333
|
+
* Emits the currently hovered header cell or null when no header cells are hovered.
|
|
1334
|
+
* Exposed publicly for events to feed in, but subscribers should use headerCellHoveredDistinct,
|
|
1335
|
+
* defined below.
|
|
1336
|
+
*/
|
|
1337
|
+
readonly headerCellHovered: Subject<Element | null>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Emits the header cell for which a user-triggered resize is active or null
|
|
1340
|
+
* when no resize is in progress.
|
|
1341
|
+
*/
|
|
1342
|
+
readonly overlayHandleActiveForCell: Subject<Element | null>;
|
|
1343
|
+
/** Distinct and shared version of headerCellHovered. */
|
|
1344
|
+
readonly headerCellHoveredDistinct: Observable<Element | null>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Emits the header that is currently hovered or hosting an active resize event (with active
|
|
1347
|
+
* taking precedence).
|
|
1348
|
+
*/
|
|
1349
|
+
readonly headerRowHoveredOrActiveDistinct: Observable<Element | null>;
|
|
1350
|
+
private readonly _headerRowHoveredOrActiveDistinctReenterZone;
|
|
1351
|
+
private _lastSeenRow;
|
|
1352
|
+
private _lastSeenRowHover;
|
|
1353
|
+
/**
|
|
1354
|
+
* Emits whether the specified row should show its overlay controls.
|
|
1355
|
+
* Emission occurs within the NgZone.
|
|
1356
|
+
*/
|
|
1357
|
+
resizeOverlayVisibleForHeaderRow(row: Element): Observable<boolean>;
|
|
1358
|
+
private _enterZone;
|
|
1359
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderRowEventDispatcher, never>;
|
|
1360
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<HeaderRowEventDispatcher>;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Base class for ColumnResize directives which attach to mat-table elements to
|
|
1365
|
+
* provide common events and services for column resizing.
|
|
1366
|
+
*/
|
|
1367
|
+
declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
|
|
1368
|
+
private _renderer;
|
|
1369
|
+
private _eventCleanups;
|
|
1370
|
+
protected readonly destroyed: Subject<void>;
|
|
1371
|
+
abstract readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
1372
|
+
abstract readonly elementRef: ElementRef<HTMLElement>;
|
|
1373
|
+
protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
1374
|
+
protected abstract readonly ngZone: NgZone;
|
|
1375
|
+
protected abstract readonly notifier: ColumnResizeNotifierSource;
|
|
1376
|
+
/** Unique ID for this table instance. */
|
|
1377
|
+
protected readonly selectorId: string;
|
|
1378
|
+
/** The id attribute of the table, if specified. */
|
|
1379
|
+
id?: string;
|
|
1380
|
+
/** @docs-private Whether a call to updateStickyColumnStyles is pending after a resize. */
|
|
1381
|
+
_flushPending: boolean;
|
|
1382
|
+
/**
|
|
1383
|
+
* Whether to update the column's width continuously as the mouse position
|
|
1384
|
+
* changes, or to wait until mouseup to apply the new size.
|
|
1385
|
+
*/
|
|
1386
|
+
liveResizeUpdates: boolean;
|
|
1387
|
+
ngAfterViewInit(): void;
|
|
1388
|
+
ngOnDestroy(): void;
|
|
1389
|
+
/** Gets the unique CSS class name for this table instance. */
|
|
1390
|
+
getUniqueCssClass(): string;
|
|
1391
|
+
/** Gets the ID for this table used for column size persistance. */
|
|
1392
|
+
getTableId(): string;
|
|
1393
|
+
/** Called when a column in the table is resized. Applies a css class to the table element. */
|
|
1394
|
+
setResized(): void;
|
|
1395
|
+
private _listenForRowHoverEvents;
|
|
1396
|
+
private _listenForResizeActivity;
|
|
1397
|
+
private _listenForHoverActivity;
|
|
1398
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResize, never>;
|
|
1399
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColumnResize, never, never, { "liveResizeUpdates": { "alias": "liveResizeUpdates"; "required": false; }; }, {}, never, never, true, never>;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
declare class AcpGridColumnMenu {
|
|
1403
|
+
menuPanel: MatMenu;
|
|
1404
|
+
menuTrigger: MatMenuTrigger;
|
|
1405
|
+
columns: DataGridColumn[];
|
|
1406
|
+
selectable: boolean;
|
|
1407
|
+
selectableChecked: 'show' | 'hide';
|
|
1408
|
+
sortable: boolean;
|
|
1409
|
+
pinnable: boolean;
|
|
1410
|
+
get buttonText(): string;
|
|
1411
|
+
set buttonText(value: string);
|
|
1412
|
+
private _buttonText;
|
|
1413
|
+
buttonType: DataGridButtonType;
|
|
1414
|
+
buttonColor: ThemePalette;
|
|
1415
|
+
buttonClass: string;
|
|
1416
|
+
buttonIcon: string;
|
|
1417
|
+
buttonFontIcon: string;
|
|
1418
|
+
buttonSvgIcon: string;
|
|
1419
|
+
showHeader: boolean;
|
|
1420
|
+
headerText: string;
|
|
1421
|
+
headerTemplate: TemplateRef<any>;
|
|
1422
|
+
showFooter: boolean;
|
|
1423
|
+
footerText: string;
|
|
1424
|
+
footerTemplate: TemplateRef<any>;
|
|
1425
|
+
columnChange: EventEmitter<DataGridColumn<any>[]>;
|
|
1426
|
+
get pinOptions(): DataGridColumnPinOption[];
|
|
1427
|
+
set pinOptions(value: DataGridColumnPinOption[]);
|
|
1428
|
+
private _pinOptions;
|
|
1429
|
+
_handleDroped(e: CdkDragDrop<string[]>): void;
|
|
1430
|
+
_handleChecked(col: DataGridColumn): void;
|
|
1431
|
+
_handlePinSelect(col: DataGridColumn, val: DataGridColumnPinValue): void;
|
|
1432
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridColumnMenu, never>;
|
|
1433
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpGridColumnMenu, "acp-grid-column-menu", ["acpGridColumnMenu"], { "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectableChecked": { "alias": "selectableChecked"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "pinnable": { "alias": "pinnable"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "buttonColor": { "alias": "buttonColor"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonFontIcon": { "alias": "buttonFontIcon"; "required": false; }; "buttonSvgIcon": { "alias": "buttonSvgIcon"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerText": { "alias": "footerText"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "pinOptions": { "alias": "pinOptions"; "required": false; }; }, { "columnChange": "columnChange"; }, never, never, true, never>;
|
|
1417
1434
|
}
|
|
1418
1435
|
|
|
1419
|
-
declare class
|
|
1436
|
+
declare class AcpGridExpansionToggle {
|
|
1420
1437
|
private _opened;
|
|
1421
1438
|
private _row;
|
|
1422
1439
|
private _tplRef;
|
|
@@ -1425,148 +1442,298 @@ declare class DataGridExpansionToggle {
|
|
|
1425
1442
|
openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
1426
1443
|
set expandableRow(value: any);
|
|
1427
1444
|
set expansionRowTpl(value: TemplateRef<any>);
|
|
1428
|
-
toggleChange: _angular_core.OutputEmitterRef<
|
|
1445
|
+
toggleChange: _angular_core.OutputEmitterRef<AcpGridExpansionToggle>;
|
|
1429
1446
|
onClick(event: MouseEvent): void;
|
|
1430
1447
|
toggle(): void;
|
|
1431
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1432
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<
|
|
1448
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridExpansionToggle, never>;
|
|
1449
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpGridExpansionToggle, "[acpGridExpansionToggle]", never, { "opened": { "alias": "opened"; "required": false; }; "expandableRow": { "alias": "expandableRow"; "required": false; }; "expansionRowTpl": { "alias": "expansionRowTpl"; "required": false; }; }, { "openedChange": "openedChange"; "toggleChange": "toggleChange"; }, never, never, true, never>;
|
|
1433
1450
|
}
|
|
1434
1451
|
|
|
1435
1452
|
declare const DATA_GRID_DEFAULT_OPTIONS: InjectionToken<DataGridDefaultOptions>;
|
|
1436
|
-
declare class DataGrid
|
|
1453
|
+
declare class DataGrid implements AfterViewInit, OnChanges {
|
|
1454
|
+
size: _angular_core.InputSignal<"normal" | "small" | "medium">;
|
|
1437
1455
|
protected _animationsDisabled: boolean;
|
|
1438
1456
|
private _utils;
|
|
1457
|
+
private _changeDetectorRef;
|
|
1439
1458
|
private _defaultOptions;
|
|
1440
|
-
private _keyboardNavService;
|
|
1441
|
-
private _destroy$;
|
|
1442
|
-
paginator: _angular_core.Signal<MatPaginator | undefined>;
|
|
1443
1459
|
table: MatTable<any>;
|
|
1444
|
-
|
|
1460
|
+
paginator: MatPaginator;
|
|
1445
1461
|
sort: MatSort;
|
|
1446
|
-
tableContainer: ElementRef<HTMLDivElement>;
|
|
1447
1462
|
rowDefs: QueryList<MatRowDef<any>>;
|
|
1448
1463
|
headerRowDefs: QueryList<MatHeaderRowDef>;
|
|
1449
1464
|
footerRowDefs: QueryList<MatFooterRowDef>;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1465
|
+
columnResize?: ColumnResize;
|
|
1466
|
+
columnMenu: AcpGridColumnMenu;
|
|
1467
|
+
tableContainer: ElementRef<HTMLDivElement>;
|
|
1468
|
+
dataSource: MatTableDataSource<unknown, MatPaginator>;
|
|
1469
|
+
/** The grid's displayed columns. */
|
|
1470
|
+
displayedColumns: string[];
|
|
1471
|
+
/** The grid's columns. */
|
|
1472
|
+
columns: DataGridColumn[];
|
|
1473
|
+
/** The grid's data. */
|
|
1474
|
+
data: any[];
|
|
1475
|
+
/** The total number of the data. */
|
|
1476
|
+
length: number;
|
|
1477
|
+
/** Whether the grid is loading. */
|
|
1478
|
+
loading: boolean;
|
|
1479
|
+
/** Tracking function that will be used to check the differences in data changes. */
|
|
1480
|
+
trackBy: TrackByFunction<any>;
|
|
1481
|
+
/** Whether the column is resizable. */
|
|
1482
|
+
columnResizable: boolean;
|
|
1483
|
+
/** Placeholder for the empty value (`null`, `''`, `[]`). */
|
|
1484
|
+
emptyValuePlaceholder: string;
|
|
1485
|
+
/** Whether to paginate the data on front end. */
|
|
1486
|
+
pageOnFront: boolean;
|
|
1487
|
+
/** Whether to show the paginator. */
|
|
1488
|
+
showPaginator: boolean;
|
|
1489
|
+
/** Whether the paginator is disabled. */
|
|
1490
|
+
pageDisabled: boolean;
|
|
1491
|
+
/** Whether to show the first/last buttons UI to the user. */
|
|
1492
|
+
showFirstLastButtons: boolean;
|
|
1493
|
+
/** The zero-based page index of the displayed list of items. */
|
|
1494
|
+
pageIndex: number;
|
|
1495
|
+
/** Number of items to display on a page. */
|
|
1496
|
+
pageSize: number;
|
|
1497
|
+
/** The set of provided page size options to display to the user. */
|
|
1498
|
+
pageSizeOptions: number[];
|
|
1499
|
+
/** Whether to hide the page size selection UI from the user. */
|
|
1500
|
+
hidePageSize: boolean;
|
|
1501
|
+
/** Event emitted when the paginator changes the page size or page index. */
|
|
1502
|
+
page: EventEmitter<PageEvent>;
|
|
1503
|
+
/** The template for the pagination. */
|
|
1504
|
+
paginationTemplate: TemplateRef<any>;
|
|
1505
|
+
/** Whether to sort the data on front end. */
|
|
1506
|
+
sortOnFront: boolean;
|
|
1507
|
+
/** The id of the most recently sorted MatSortable. */
|
|
1508
|
+
sortActive: string;
|
|
1509
|
+
/** The sort direction of the currently active MatSortable. */
|
|
1510
|
+
sortDirection: SortDirection;
|
|
1511
|
+
/**
|
|
1512
|
+
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
1513
|
+
* May be overriden by the column's `disableClear` in `sortProp`.
|
|
1514
|
+
*/
|
|
1515
|
+
sortDisableClear: boolean;
|
|
1516
|
+
/** Whether the sort is disabled. */
|
|
1517
|
+
sortDisabled: boolean;
|
|
1518
|
+
/**
|
|
1519
|
+
* The direction to set when an MatSortable is initially sorted.
|
|
1520
|
+
* May be overriden by the column's `start` in `sortProp`.
|
|
1521
|
+
*/
|
|
1522
|
+
sortStart: 'asc' | 'desc';
|
|
1523
|
+
/** Event emitted when the user changes either the active sort or sort direction. */
|
|
1524
|
+
sortChange: EventEmitter<Sort>;
|
|
1525
|
+
/** Whether to use the row hover style. */
|
|
1526
|
+
rowHover: boolean;
|
|
1527
|
+
/** Whether to use the row striped style. */
|
|
1528
|
+
rowStriped: boolean;
|
|
1529
|
+
/** Event emitted when the user clicks the row. */
|
|
1530
|
+
rowClick: EventEmitter<any>;
|
|
1531
|
+
/** Event emitted when the user attempts to open a context menu. */
|
|
1532
|
+
rowContextMenu: EventEmitter<any>;
|
|
1533
|
+
expansionRowStates: any[];
|
|
1534
|
+
/** Whether the row is expandable. */
|
|
1535
|
+
expandable: boolean;
|
|
1536
|
+
/** The template for the expandable row. */
|
|
1537
|
+
expansionTemplate: TemplateRef<any>;
|
|
1538
|
+
/** Event emitted when the user toggles the expandable row. */
|
|
1539
|
+
expansionChange: EventEmitter<any>;
|
|
1470
1540
|
closeOthersOnExpand: _angular_core.InputSignal<boolean>;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1541
|
+
rowSelection: SelectionModel<any>;
|
|
1542
|
+
/** Whether to support multiple row/cell selection. */
|
|
1543
|
+
multiSelectable: boolean;
|
|
1544
|
+
/** Whether the user can select multiple rows with click. */
|
|
1545
|
+
multiSelectionWithClick: boolean;
|
|
1546
|
+
/** Whether the row is selectable. */
|
|
1547
|
+
rowSelectable: boolean;
|
|
1548
|
+
/** Whether to hide the row selection checkbox. */
|
|
1549
|
+
hideRowSelectionCheckbox: boolean;
|
|
1550
|
+
/** Whether disable rows to be selected when clicked. */
|
|
1551
|
+
disableRowClickSelection: boolean;
|
|
1552
|
+
/** The formatter to disable the row selection or hide the row's checkbox. */
|
|
1553
|
+
rowSelectionFormatter: DataGridRowSelectionFormatter;
|
|
1554
|
+
/** The formatter to set the row's class. */
|
|
1555
|
+
rowClassFormatter?: DataGridRowClassFormatter;
|
|
1556
|
+
/** The selected row items. */
|
|
1557
|
+
rowSelected: any[];
|
|
1558
|
+
/** Event emitted when the row is selected. */
|
|
1559
|
+
rowSelectedChange: EventEmitter<any[]>;
|
|
1560
|
+
checkboxKeyDown: EventEmitter<KeyboardEvent>;
|
|
1561
|
+
checkboxKeyUp: EventEmitter<KeyboardEvent>;
|
|
1562
|
+
checkboxKeyPress: EventEmitter<KeyboardEvent>;
|
|
1563
|
+
rowKeyDown: EventEmitter<{
|
|
1564
|
+
event: KeyboardEvent;
|
|
1565
|
+
row: Record<string, any>;
|
|
1566
|
+
index: number;
|
|
1567
|
+
}>;
|
|
1568
|
+
rowKeyUp: EventEmitter<{
|
|
1569
|
+
event: KeyboardEvent;
|
|
1570
|
+
row: Record<string, any>;
|
|
1571
|
+
index: number;
|
|
1572
|
+
}>;
|
|
1573
|
+
rowKeyPress: EventEmitter<{
|
|
1574
|
+
event: KeyboardEvent;
|
|
1575
|
+
row: Record<string, any>;
|
|
1576
|
+
index: number;
|
|
1577
|
+
}>;
|
|
1578
|
+
cellSelection: any[];
|
|
1579
|
+
/** Whether the cell is selectable. */
|
|
1580
|
+
cellSelectable: boolean;
|
|
1581
|
+
/** Event emitted when the cell is selected. */
|
|
1582
|
+
cellSelectedChange: EventEmitter<any[]>;
|
|
1583
|
+
private _selectedCell?;
|
|
1584
|
+
/** Whether to show the toolbar. */
|
|
1585
|
+
showToolbar: boolean;
|
|
1586
|
+
/** The text of the toolbar's title. */
|
|
1587
|
+
toolbarTitle: string;
|
|
1588
|
+
/** The template for the toolbar. */
|
|
1589
|
+
toolbarTemplate: TemplateRef<any>;
|
|
1590
|
+
/** Whether the column is hideable. */
|
|
1591
|
+
columnHideable: boolean;
|
|
1592
|
+
/** Hide or show when the column's checkbox is checked. */
|
|
1593
|
+
columnHideableChecked: 'show' | 'hide';
|
|
1594
|
+
/** Whether the column is sortable. */
|
|
1595
|
+
columnSortable: boolean;
|
|
1596
|
+
/** Whether the column is pinnable. */
|
|
1597
|
+
columnPinnable: boolean;
|
|
1598
|
+
/** Event emitted when the column is hided or is sorted. */
|
|
1599
|
+
columnChange: EventEmitter<DataGridColumn<any>[]>;
|
|
1600
|
+
/** The options for the column pin list. */
|
|
1601
|
+
columnPinOptions: DataGridColumnPinOption[];
|
|
1602
|
+
/** Whether to show the column menu button. */
|
|
1603
|
+
showColumnMenuButton: boolean;
|
|
1604
|
+
/** The text for the column menu button. */
|
|
1605
|
+
columnMenuButtonText: string;
|
|
1606
|
+
/** The type for the column menu button. */
|
|
1607
|
+
columnMenuButtonType: DataGridButtonType;
|
|
1608
|
+
/** The color for the column menu button. */
|
|
1609
|
+
columnMenuButtonColor: ThemePalette;
|
|
1610
|
+
/** The class for the column menu button. */
|
|
1611
|
+
columnMenuButtonClass: string;
|
|
1612
|
+
/** The icon for the column menu button. */
|
|
1613
|
+
columnMenuButtonIcon: string;
|
|
1614
|
+
/** The font icon for the column menu button. */
|
|
1615
|
+
columnMenuButtonFontIcon: string;
|
|
1616
|
+
/** The svg icon for the column menu button. */
|
|
1617
|
+
columnMenuButtonSvgIcon: string;
|
|
1618
|
+
/** Whether to show the column-menu's header. */
|
|
1619
|
+
showColumnMenuHeader: boolean;
|
|
1620
|
+
/** The text for the column-menu's header. */
|
|
1621
|
+
columnMenuHeaderText: string;
|
|
1622
|
+
/** The template for the column-menu's header. */
|
|
1623
|
+
columnMenuHeaderTemplate: TemplateRef<any>;
|
|
1624
|
+
/** Whether to show the the column-menu's footer. */
|
|
1625
|
+
showColumnMenuFooter: boolean;
|
|
1626
|
+
/** The text for the column-menu's footer. */
|
|
1627
|
+
columnMenuFooterText: string;
|
|
1628
|
+
/** The template for the column-menu's footer. */
|
|
1629
|
+
columnMenuFooterTemplate: TemplateRef<any>;
|
|
1630
|
+
/** The displayed text for the empty data. */
|
|
1631
|
+
noResultText: string;
|
|
1632
|
+
/** The template for the empty data. */
|
|
1633
|
+
noResultTemplate: TemplateRef<any>;
|
|
1482
1634
|
keyboardNavigation: _angular_core.InputSignal<boolean>;
|
|
1483
|
-
focusedRowIndex: _angular_core.Signal<number>;
|
|
1484
1635
|
highlightedRowIndex: _angular_core.InputSignal<number>;
|
|
1485
|
-
sortOnFront: _angular_core.InputSignal<boolean>;
|
|
1486
|
-
sortActive: _angular_core.InputSignal<string>;
|
|
1487
|
-
sortDirection: _angular_core.InputSignal<SortDirection>;
|
|
1488
|
-
sortDisableClear: _angular_core.InputSignal<boolean>;
|
|
1489
|
-
sortDisabled: _angular_core.InputSignal<boolean>;
|
|
1490
|
-
sortStart: _angular_core.InputSignal<"desc" | "asc">;
|
|
1491
|
-
rowHover: _angular_core.InputSignal<boolean>;
|
|
1492
|
-
rowStriped: _angular_core.InputSignal<boolean>;
|
|
1493
|
-
rowSelectable: _angular_core.InputSignal<boolean>;
|
|
1494
|
-
multiSelectable: _angular_core.InputSignal<boolean>;
|
|
1495
|
-
multiSelectionWithClick: _angular_core.InputSignal<boolean>;
|
|
1496
|
-
hideRowSelectionCheckbox: _angular_core.InputSignal<boolean>;
|
|
1497
|
-
disableRowClickSelection: _angular_core.InputSignal<boolean>;
|
|
1498
|
-
rowClassFormatter: _angular_core.InputSignal<DataGridRowClassFormatter | undefined>;
|
|
1499
|
-
rowSelected: _angular_core.InputSignal<T[]>;
|
|
1500
|
-
rowSelectionFormatter: _angular_core.InputSignal<DataGridRowSelectionFormatter<any>>;
|
|
1501
|
-
cellSelectable: _angular_core.InputSignal<boolean>;
|
|
1502
|
-
useContentRowTemplate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1503
|
-
useContentHeaderRowTemplate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1504
|
-
useContentFooterRowTemplate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1505
|
-
showSummary: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1506
|
-
noResultText: _angular_core.InputSignal<string>;
|
|
1507
|
-
page: _angular_core.OutputEmitterRef<PageEvent>;
|
|
1508
|
-
sortChange: _angular_core.OutputEmitterRef<Sort>;
|
|
1509
|
-
rowClick: _angular_core.OutputEmitterRef<any>;
|
|
1510
|
-
rowSelectedChange: _angular_core.OutputEmitterRef<any[]>;
|
|
1511
|
-
selectionChange: _angular_core.OutputEmitterRef<T[]>;
|
|
1512
|
-
cellClick: _angular_core.OutputEmitterRef<{
|
|
1513
|
-
row: T;
|
|
1514
|
-
column: DataGridColumn<T>;
|
|
1515
|
-
}>;
|
|
1516
|
-
cellSelectedChange: _angular_core.OutputEmitterRef<any[]>;
|
|
1517
|
-
expansionChange: _angular_core.OutputEmitterRef<any>;
|
|
1518
|
-
rowContextMenu: _angular_core.OutputEmitterRef<any>;
|
|
1519
|
-
infiniteScrollLoad: _angular_core.OutputEmitterRef<void>;
|
|
1520
1636
|
focusedRowChange: _angular_core.OutputEmitterRef<{
|
|
1521
|
-
row:
|
|
1637
|
+
row: any;
|
|
1522
1638
|
index: number;
|
|
1523
1639
|
}>;
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1640
|
+
get _hasNoResult(): boolean;
|
|
1641
|
+
/** The header's cell template for the grid. */
|
|
1642
|
+
headerTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1643
|
+
/** The header's cell template for the grid exclude sort. */
|
|
1644
|
+
headerExtraTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1645
|
+
/** The cell template for the grid. */
|
|
1646
|
+
cellTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1647
|
+
/** Whether to use custom row template. If true, you should define a matRowDef. */
|
|
1648
|
+
useContentRowTemplate: boolean;
|
|
1649
|
+
useContentHeaderRowTemplate: boolean;
|
|
1650
|
+
useContentFooterRowTemplate: boolean;
|
|
1651
|
+
/** Whether to show the summary. */
|
|
1652
|
+
showSummary: boolean;
|
|
1653
|
+
/** The template for the summary. */
|
|
1654
|
+
summaryTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1655
|
+
get _whetherShowSummary(): boolean;
|
|
1656
|
+
/** Whether to show the sidebar. */
|
|
1657
|
+
showSidebar: boolean;
|
|
1658
|
+
/** The template for the sidebar. */
|
|
1659
|
+
sidebarTemplate: TemplateRef<any>;
|
|
1660
|
+
/** Whether to show the status bar. */
|
|
1661
|
+
showStatusbar: boolean;
|
|
1662
|
+
/** The template for the status bar. */
|
|
1663
|
+
statusbarTemplate: TemplateRef<any>;
|
|
1664
|
+
/** The changed record of row data. */
|
|
1527
1665
|
rowChangeRecord?: KeyValueChangeRecord<string, any>;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
currentSort: _angular_core.WritableSignal<Sort>;
|
|
1532
|
-
isLoadingMore: _angular_core.WritableSignal<boolean>;
|
|
1533
|
-
displayedColumns: _angular_core.Signal<string[]>;
|
|
1534
|
-
hasNoResult: _angular_core.Signal<boolean>;
|
|
1535
|
-
whetherShowSummary: _angular_core.Signal<boolean>;
|
|
1536
|
-
constructor();
|
|
1537
|
-
ngAfterViewInit(): void;
|
|
1538
|
-
ngOnDestroy(): void;
|
|
1539
|
-
private setupInfiniteScroll;
|
|
1540
|
-
private loadMoreData;
|
|
1541
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
1542
|
-
focusRow(index: number): void;
|
|
1543
|
-
private scrollRowIntoView;
|
|
1544
|
-
private handleRowAction;
|
|
1545
|
-
private toggleRowExpansion;
|
|
1546
|
-
private toggleRowSelection;
|
|
1547
|
-
onSortChange(sort: Sort): void;
|
|
1548
|
-
onPage(event: PageEvent): void;
|
|
1549
|
-
onExpansionChange(expansionRef: DataGridExpansionToggle, rowData: Record<string, any>, column: DataGridColumn, index: number): void;
|
|
1550
|
-
isAllSelected(): boolean;
|
|
1551
|
-
toggleAllRows(): void;
|
|
1552
|
-
toggleNormalCheckbox(row: Record<string, any>): void;
|
|
1553
|
-
isRowDisabled(row: T, index?: number): boolean;
|
|
1554
|
-
shouldHideCheckbox(row: T, index?: number): boolean;
|
|
1555
|
-
selectRow(event: MouseEvent, rowData: Record<string, any>, index: number): void;
|
|
1556
|
-
selectCell(cellRef: DataGridSelectableCell, rowData: Record<string, any>, colDef: DataGridColumn): void;
|
|
1557
|
-
onRowDataChange(record: KeyValueChangeRecord<string, any>): void;
|
|
1666
|
+
detectChanges(): void;
|
|
1667
|
+
_getColData(data: any[], colDef: DataGridColumn): any[];
|
|
1668
|
+
_isColumnHide(item: DataGridColumn): boolean;
|
|
1558
1669
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1670
|
+
ngAfterViewInit(): void;
|
|
1671
|
+
_countPinnedPosition(): void;
|
|
1672
|
+
_getIndex(index: number | undefined, dataIndex: number): number;
|
|
1673
|
+
_onSortChange(sort: Sort): void;
|
|
1674
|
+
_onRowDataChange(record: KeyValueChangeRecord<string, any>): void;
|
|
1675
|
+
/** Expansion change event */
|
|
1676
|
+
_onExpansionChange(expansionRef: AcpGridExpansionToggle, rowData: Record<string, any>, column: DataGridColumn, index: number): void;
|
|
1677
|
+
/** Cell select event */
|
|
1678
|
+
_selectCell(cellRef: AcpGridSelectableCell, rowData: Record<string, any>, colDef: DataGridColumn): void;
|
|
1679
|
+
/** Row select event */
|
|
1680
|
+
_selectRow(event: MouseEvent, rowData: Record<string, any>, index: number): void;
|
|
1681
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
1682
|
+
_isAllSelected(): boolean;
|
|
1683
|
+
/** Select all rows if they are not all selected; otherwise clear selection. */
|
|
1684
|
+
_toggleMasterCheckbox(): void;
|
|
1685
|
+
/** Select normal row */
|
|
1686
|
+
_toggleNormalCheckbox(row: Record<string, any>): void;
|
|
1687
|
+
_onCheckboxKeyDown(event: KeyboardEvent): void;
|
|
1688
|
+
_onCheckboxKeyUp(event: KeyboardEvent): void;
|
|
1689
|
+
_onCheckboxKeyPress(event: KeyboardEvent): void;
|
|
1690
|
+
_onRowKeyDown(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1691
|
+
_onRowKeyUp(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1692
|
+
_onRowKeyPress(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1693
|
+
/** Column change event */
|
|
1694
|
+
_onColumnChange(columns: DataGridColumn[]): void;
|
|
1695
|
+
getDisplayedColumnFields(columns: DataGridColumn[]): string[];
|
|
1696
|
+
/** Customize expansion event */
|
|
1697
|
+
toggleExpansion(index: number): any;
|
|
1698
|
+
/** Scroll to top when turn to the next page. */
|
|
1699
|
+
_onPage(e: PageEvent): void;
|
|
1562
1700
|
scrollTop(value?: number): number | void;
|
|
1563
1701
|
scrollLeft(value?: number): number | void;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
static
|
|
1569
|
-
static
|
|
1702
|
+
_contextmenu(event: MouseEvent, rowData: Record<string, any>, index: number): void;
|
|
1703
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGrid, never>;
|
|
1704
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid, "acp-data-grid", ["dataGrid"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "length": { "alias": "length"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "columnResizable": { "alias": "columnResizable"; "required": false; }; "emptyValuePlaceholder": { "alias": "emptyValuePlaceholder"; "required": false; }; "pageOnFront": { "alias": "pageOnFront"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "pageDisabled": { "alias": "pageDisabled"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "paginationTemplate": { "alias": "paginationTemplate"; "required": false; }; "sortOnFront": { "alias": "sortOnFront"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortDisableClear": { "alias": "sortDisableClear"; "required": false; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; }; "sortStart": { "alias": "sortStart"; "required": false; }; "rowHover": { "alias": "rowHover"; "required": false; }; "rowStriped": { "alias": "rowStriped"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "closeOthersOnExpand": { "alias": "closeOthersOnExpand"; "required": false; "isSignal": true; }; "multiSelectable": { "alias": "multiSelectable"; "required": false; }; "multiSelectionWithClick": { "alias": "multiSelectionWithClick"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "hideRowSelectionCheckbox": { "alias": "hideRowSelectionCheckbox"; "required": false; }; "disableRowClickSelection": { "alias": "disableRowClickSelection"; "required": false; }; "rowSelectionFormatter": { "alias": "rowSelectionFormatter"; "required": false; }; "rowClassFormatter": { "alias": "rowClassFormatter"; "required": false; }; "rowSelected": { "alias": "rowSelected"; "required": false; }; "cellSelectable": { "alias": "cellSelectable"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "toolbarTitle": { "alias": "toolbarTitle"; "required": false; }; "toolbarTemplate": { "alias": "toolbarTemplate"; "required": false; }; "columnHideable": { "alias": "columnHideable"; "required": false; }; "columnHideableChecked": { "alias": "columnHideableChecked"; "required": false; }; "columnSortable": { "alias": "columnSortable"; "required": false; }; "columnPinnable": { "alias": "columnPinnable"; "required": false; }; "columnPinOptions": { "alias": "columnPinOptions"; "required": false; }; "showColumnMenuButton": { "alias": "showColumnMenuButton"; "required": false; }; "columnMenuButtonText": { "alias": "columnMenuButtonText"; "required": false; }; "columnMenuButtonType": { "alias": "columnMenuButtonType"; "required": false; }; "columnMenuButtonColor": { "alias": "columnMenuButtonColor"; "required": false; }; "columnMenuButtonClass": { "alias": "columnMenuButtonClass"; "required": false; }; "columnMenuButtonIcon": { "alias": "columnMenuButtonIcon"; "required": false; }; "columnMenuButtonFontIcon": { "alias": "columnMenuButtonFontIcon"; "required": false; }; "columnMenuButtonSvgIcon": { "alias": "columnMenuButtonSvgIcon"; "required": false; }; "showColumnMenuHeader": { "alias": "showColumnMenuHeader"; "required": false; }; "columnMenuHeaderText": { "alias": "columnMenuHeaderText"; "required": false; }; "columnMenuHeaderTemplate": { "alias": "columnMenuHeaderTemplate"; "required": false; }; "showColumnMenuFooter": { "alias": "showColumnMenuFooter"; "required": false; }; "columnMenuFooterText": { "alias": "columnMenuFooterText"; "required": false; }; "columnMenuFooterTemplate": { "alias": "columnMenuFooterTemplate"; "required": false; }; "noResultText": { "alias": "noResultText"; "required": false; }; "noResultTemplate": { "alias": "noResultTemplate"; "required": false; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "highlightedRowIndex": { "alias": "highlightedRowIndex"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "headerExtraTemplate": { "alias": "headerExtraTemplate"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "useContentRowTemplate": { "alias": "useContentRowTemplate"; "required": false; }; "useContentHeaderRowTemplate": { "alias": "useContentHeaderRowTemplate"; "required": false; }; "useContentFooterRowTemplate": { "alias": "useContentFooterRowTemplate"; "required": false; }; "showSummary": { "alias": "showSummary"; "required": false; }; "summaryTemplate": { "alias": "summaryTemplate"; "required": false; }; "showSidebar": { "alias": "showSidebar"; "required": false; }; "sidebarTemplate": { "alias": "sidebarTemplate"; "required": false; }; "showStatusbar": { "alias": "showStatusbar"; "required": false; }; "statusbarTemplate": { "alias": "statusbarTemplate"; "required": false; }; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "rowContextMenu": "rowContextMenu"; "expansionChange": "expansionChange"; "rowSelectedChange": "rowSelectedChange"; "checkboxKeyDown": "checkboxKeyDown"; "checkboxKeyUp": "checkboxKeyUp"; "checkboxKeyPress": "checkboxKeyPress"; "rowKeyDown": "rowKeyDown"; "rowKeyUp": "rowKeyUp"; "rowKeyPress": "rowKeyPress"; "cellSelectedChange": "cellSelectedChange"; "columnChange": "columnChange"; "focusedRowChange": "focusedRowChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, true, never>;
|
|
1705
|
+
static ngAcceptInputType_loading: unknown;
|
|
1706
|
+
static ngAcceptInputType_columnResizable: unknown;
|
|
1707
|
+
static ngAcceptInputType_pageOnFront: unknown;
|
|
1708
|
+
static ngAcceptInputType_showPaginator: unknown;
|
|
1709
|
+
static ngAcceptInputType_pageDisabled: unknown;
|
|
1710
|
+
static ngAcceptInputType_showFirstLastButtons: unknown;
|
|
1711
|
+
static ngAcceptInputType_hidePageSize: unknown;
|
|
1712
|
+
static ngAcceptInputType_sortOnFront: unknown;
|
|
1713
|
+
static ngAcceptInputType_sortDisableClear: unknown;
|
|
1714
|
+
static ngAcceptInputType_sortDisabled: unknown;
|
|
1715
|
+
static ngAcceptInputType_rowHover: unknown;
|
|
1716
|
+
static ngAcceptInputType_rowStriped: unknown;
|
|
1717
|
+
static ngAcceptInputType_expandable: unknown;
|
|
1718
|
+
static ngAcceptInputType_multiSelectable: unknown;
|
|
1719
|
+
static ngAcceptInputType_multiSelectionWithClick: unknown;
|
|
1720
|
+
static ngAcceptInputType_rowSelectable: unknown;
|
|
1721
|
+
static ngAcceptInputType_hideRowSelectionCheckbox: unknown;
|
|
1722
|
+
static ngAcceptInputType_disableRowClickSelection: unknown;
|
|
1723
|
+
static ngAcceptInputType_cellSelectable: unknown;
|
|
1724
|
+
static ngAcceptInputType_showToolbar: unknown;
|
|
1725
|
+
static ngAcceptInputType_columnHideable: unknown;
|
|
1726
|
+
static ngAcceptInputType_columnSortable: unknown;
|
|
1727
|
+
static ngAcceptInputType_columnPinnable: unknown;
|
|
1728
|
+
static ngAcceptInputType_showColumnMenuButton: unknown;
|
|
1729
|
+
static ngAcceptInputType_showColumnMenuHeader: unknown;
|
|
1730
|
+
static ngAcceptInputType_showColumnMenuFooter: unknown;
|
|
1731
|
+
static ngAcceptInputType_useContentRowTemplate: unknown;
|
|
1732
|
+
static ngAcceptInputType_useContentHeaderRowTemplate: unknown;
|
|
1733
|
+
static ngAcceptInputType_useContentFooterRowTemplate: unknown;
|
|
1734
|
+
static ngAcceptInputType_showSummary: unknown;
|
|
1735
|
+
static ngAcceptInputType_showSidebar: unknown;
|
|
1736
|
+
static ngAcceptInputType_showStatusbar: unknown;
|
|
1570
1737
|
}
|
|
1571
1738
|
|
|
1572
1739
|
/**
|
|
@@ -2083,15 +2250,6 @@ declare class AcpDrawer implements OnDestroy {
|
|
|
2083
2250
|
* retention of the class and its directive metadata.
|
|
2084
2251
|
*/
|
|
2085
2252
|
declare const ACP_POPOVER_CONTENT: InjectionToken<AcpPopoverContent>;
|
|
2086
|
-
/**
|
|
2087
|
-
* Base class for popover content that provides common functionality.
|
|
2088
|
-
*
|
|
2089
|
-
* This abstract class handles the attachment and detachment of popover content
|
|
2090
|
-
* using Angular CDK portals. It manages the DOM manipulation required to display
|
|
2091
|
-
* popover content in an overlay.
|
|
2092
|
-
*
|
|
2093
|
-
* @docs-private
|
|
2094
|
-
*/
|
|
2095
2253
|
declare abstract class _AcpPopoverContentBase implements OnDestroy {
|
|
2096
2254
|
private _template;
|
|
2097
2255
|
private _appRef;
|
|
@@ -2105,39 +2263,22 @@ declare abstract class _AcpPopoverContentBase implements OnDestroy {
|
|
|
2105
2263
|
readonly _attached: Subject<void>;
|
|
2106
2264
|
/**
|
|
2107
2265
|
* Attaches the content with a particular context.
|
|
2108
|
-
* @param context Context data to pass to the template
|
|
2109
2266
|
* @docs-private
|
|
2110
2267
|
*/
|
|
2111
2268
|
attach(context?: any): void;
|
|
2112
2269
|
/**
|
|
2113
|
-
* Detaches the content
|
|
2270
|
+
* Detaches the content.
|
|
2114
2271
|
* @docs-private
|
|
2115
2272
|
*/
|
|
2116
2273
|
detach(): void;
|
|
2117
|
-
/**
|
|
2118
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2119
|
-
* Cleans up the portal outlet to prevent memory leaks.
|
|
2120
|
-
*/
|
|
2121
2274
|
ngOnDestroy(): void;
|
|
2122
2275
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<_AcpPopoverContentBase, never>;
|
|
2123
2276
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<_AcpPopoverContentBase, never, never, {}, {}, never, never, true, never>;
|
|
2124
2277
|
}
|
|
2125
2278
|
/**
|
|
2126
2279
|
* Popover content that will be rendered lazily once the popover is opened.
|
|
2127
|
-
*
|
|
2128
|
-
* This directive allows you to define content that should be rendered inside
|
|
2129
|
-
* a popover panel. The content is only created when the popover is actually
|
|
2130
|
-
* opened, which can improve performance for complex content.
|
|
2131
|
-
*
|
|
2132
|
-
* @example
|
|
2133
|
-
* ```html
|
|
2134
|
-
* <ng-template acpPopoverContent>
|
|
2135
|
-
* <div>This content will be shown in the popover</div>
|
|
2136
|
-
* </ng-template>
|
|
2137
|
-
* ```
|
|
2138
2280
|
*/
|
|
2139
2281
|
declare class AcpPopoverContent extends _AcpPopoverContentBase {
|
|
2140
|
-
constructor();
|
|
2141
2282
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpPopoverContent, never>;
|
|
2142
2283
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpPopoverContent, "ng-template[acpPopoverContent]", never, {}, {}, never, never, true, never>;
|
|
2143
2284
|
}
|
|
@@ -2285,7 +2426,6 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2285
2426
|
private _elevationPrefix;
|
|
2286
2427
|
private _baseElevation;
|
|
2287
2428
|
private _exitFallbackTimeout;
|
|
2288
|
-
private _mouseleaveTimer;
|
|
2289
2429
|
/** Whether animations are currently disabled. */
|
|
2290
2430
|
protected _animationsDisabled: boolean;
|
|
2291
2431
|
/** Config object to be passed into the popover's class. */
|
|
@@ -2354,22 +2494,8 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2354
2494
|
*/
|
|
2355
2495
|
set panelClass(classes: string);
|
|
2356
2496
|
private _previousPanelClass?;
|
|
2357
|
-
/**
|
|
2358
|
-
* This method takes classes set on the host acp-popover element and applies them on the
|
|
2359
|
-
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
2360
|
-
* to style the containing popover from outside the component.
|
|
2361
|
-
* @deprecated Use `panelClass` instead.
|
|
2362
|
-
* @breaking-change 8.0.0
|
|
2363
|
-
*/
|
|
2364
|
-
get classList(): string;
|
|
2365
|
-
set classList(classes: string);
|
|
2366
2497
|
/** Event emitted when the popover is closed. */
|
|
2367
2498
|
closed: EventEmitter<PopoverCloseReason>;
|
|
2368
|
-
/**
|
|
2369
|
-
* Programmatically closes the popover.
|
|
2370
|
-
* @param reason Optional reason for closing
|
|
2371
|
-
*/
|
|
2372
|
-
close(reason?: PopoverCloseReason): void;
|
|
2373
2499
|
/** @docs-private */
|
|
2374
2500
|
templateRef: TemplateRef<any>;
|
|
2375
2501
|
/**
|
|
@@ -2378,66 +2504,31 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2378
2504
|
*/
|
|
2379
2505
|
lazyContent?: AcpPopoverContent;
|
|
2380
2506
|
readonly panelId: string;
|
|
2381
|
-
/**
|
|
2382
|
-
* Lifecycle hook called when the component is initialized.
|
|
2383
|
-
* Sets up the initial position classes for the popover.
|
|
2384
|
-
*/
|
|
2385
2507
|
ngOnInit(): void;
|
|
2386
|
-
/**
|
|
2387
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2388
|
-
* Cleans up subscriptions and timers.
|
|
2389
|
-
*/
|
|
2390
2508
|
ngOnDestroy(): void;
|
|
2391
|
-
/**
|
|
2392
|
-
* Handle a keyboard event from the popover, delegating to the appropriate action.
|
|
2393
|
-
* @param event The keyboard event to handle
|
|
2394
|
-
*/
|
|
2509
|
+
/** Handle a keyboard event from the popover, delegating to the appropriate action. */
|
|
2395
2510
|
_handleKeydown(event: KeyboardEvent): void;
|
|
2396
|
-
/**
|
|
2397
|
-
* Close popover on click if `closeOnPanelClick` is true.
|
|
2398
|
-
*/
|
|
2511
|
+
/** Close popover on click if `closeOnPanelClick` is true. */
|
|
2399
2512
|
_handleClick(): void;
|
|
2400
|
-
/**
|
|
2401
|
-
* Disables close of popover when leaving trigger element and mouse over the popover.
|
|
2402
|
-
*/
|
|
2513
|
+
/** Disables close of popover when leaving trigger element and mouse over the popover. */
|
|
2403
2514
|
_handleMouseOver(): void;
|
|
2404
|
-
/**
|
|
2405
|
-
* Enables close of popover when mouse leaving popover element.
|
|
2406
|
-
*/
|
|
2515
|
+
/** Enables close of popover when mouse leaving popover element. */
|
|
2407
2516
|
_handleMouseLeave(): void;
|
|
2408
|
-
/**
|
|
2409
|
-
* Sets the current styles for the popover to allow for dynamically changing settings.
|
|
2410
|
-
* @param pos The position to set styles for, defaults to current position
|
|
2411
|
-
*/
|
|
2517
|
+
/** Sets the current styles for the popover to allow for dynamically changing settings. */
|
|
2412
2518
|
setCurrentStyles(pos?: AcpPopoverPosition): void;
|
|
2413
2519
|
/**
|
|
2414
2520
|
* It's necessary to set position-based classes to ensure the popover panel animation
|
|
2415
2521
|
* folds out from the correct direction.
|
|
2416
|
-
* @param pos The position to set classes for, defaults to current position
|
|
2417
2522
|
*/
|
|
2418
2523
|
setPositionClasses(pos?: AcpPopoverPosition): void;
|
|
2419
|
-
/**
|
|
2420
|
-
* Sets the popover-panel's elevation.
|
|
2421
|
-
* Applies Material Design elevation classes based on the base elevation level.
|
|
2422
|
-
*/
|
|
2524
|
+
/** Sets the popover-panel's elevation. */
|
|
2423
2525
|
setElevation(): void;
|
|
2424
|
-
/**
|
|
2425
|
-
* Callback that is invoked when the panel animation completes.
|
|
2426
|
-
* @param state The animation state that completed
|
|
2427
|
-
*/
|
|
2526
|
+
/** Callback that is invoked when the panel animation completes. */
|
|
2428
2527
|
protected _onAnimationDone(state: string): void;
|
|
2429
|
-
/**
|
|
2430
|
-
* Callback that is invoked when the panel animation starts.
|
|
2431
|
-
* @param state The animation state that started
|
|
2432
|
-
*/
|
|
2433
2528
|
protected _onAnimationStart(state: string): void;
|
|
2434
|
-
/**
|
|
2435
|
-
* Sets the open state of the popover and manages animations.
|
|
2436
|
-
* @param isOpen Whether the popover should be open
|
|
2437
|
-
*/
|
|
2438
2529
|
_setIsOpen(isOpen: boolean): void;
|
|
2439
2530
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpPopover, never>;
|
|
2440
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpPopover, "acp-popover", ["acpPopover"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; }; "enterDelay": { "alias": "enterDelay"; "required": false; }; "leaveDelay": { "alias": "leaveDelay"; "required": false; }; "position": { "alias": "position"; "required": false; }; "xOffset": { "alias": "xOffset"; "required": false; }; "yOffset": { "alias": "yOffset"; "required": false; }; "arrowWidth": { "alias": "arrowWidth"; "required": false; }; "arrowHeight": { "alias": "arrowHeight"; "required": false; }; "arrowOffsetX": { "alias": "arrowOffsetX"; "required": false; }; "arrowOffsetY": { "alias": "arrowOffsetY"; "required": false; }; "hideArrow": { "alias": "hideArrow"; "required": false; }; "closeOnPanelClick": { "alias": "closeOnPanelClick"; "required": false; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; }; "focusTrapEnabled": { "alias": "focusTrapEnabled"; "required": false; }; "focusTrapAutoCaptureEnabled": { "alias": "focusTrapAutoCaptureEnabled"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; };
|
|
2531
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpPopover, "acp-popover", ["acpPopover"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; }; "enterDelay": { "alias": "enterDelay"; "required": false; }; "leaveDelay": { "alias": "leaveDelay"; "required": false; }; "position": { "alias": "position"; "required": false; }; "xOffset": { "alias": "xOffset"; "required": false; }; "yOffset": { "alias": "yOffset"; "required": false; }; "arrowWidth": { "alias": "arrowWidth"; "required": false; }; "arrowHeight": { "alias": "arrowHeight"; "required": false; }; "arrowOffsetX": { "alias": "arrowOffsetX"; "required": false; }; "arrowOffsetY": { "alias": "arrowOffsetY"; "required": false; }; "hideArrow": { "alias": "hideArrow"; "required": false; }; "closeOnPanelClick": { "alias": "closeOnPanelClick"; "required": false; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; }; "focusTrapEnabled": { "alias": "focusTrapEnabled"; "required": false; }; "focusTrapAutoCaptureEnabled": { "alias": "focusTrapAutoCaptureEnabled"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; }, { "closed": "closed"; }, ["lazyContent"], ["*"], true, never>;
|
|
2441
2532
|
static ngAcceptInputType_hideArrow: unknown;
|
|
2442
2533
|
static ngAcceptInputType_closeOnPanelClick: unknown;
|
|
2443
2534
|
static ngAcceptInputType_closeOnBackdropClick: unknown;
|
|
@@ -2470,52 +2561,6 @@ declare class AcpPopoverTarget {
|
|
|
2470
2561
|
|
|
2471
2562
|
/** Injection token that determines the scroll handling while the popover is open. */
|
|
2472
2563
|
declare const ACP_POPOVER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
2473
|
-
/**
|
|
2474
|
-
* This directive is intended to be used in conjunction with an `acp-popover` tag. It is
|
|
2475
|
-
* responsible for toggling the display of the provided popover instance.
|
|
2476
|
-
*
|
|
2477
|
-
* The trigger handles various events (click, hover) and manages the popover's lifecycle,
|
|
2478
|
-
* including opening, closing, positioning, and focus management.
|
|
2479
|
-
*
|
|
2480
|
-
* ## Basic Usage
|
|
2481
|
-
* @example
|
|
2482
|
-
* ```html
|
|
2483
|
-
* <acp-popover #popover="acpPopover">
|
|
2484
|
-
* <div>Popover content</div>
|
|
2485
|
-
* </acp-popover>
|
|
2486
|
-
*
|
|
2487
|
-
* <button [acpPopoverTriggerFor]="popover">
|
|
2488
|
-
* Show popover
|
|
2489
|
-
* </button>
|
|
2490
|
-
* ```
|
|
2491
|
-
*
|
|
2492
|
-
* ## Programmatic Control
|
|
2493
|
-
* @example
|
|
2494
|
-
* ```html
|
|
2495
|
-
* <acp-popover #popover="acpPopover">
|
|
2496
|
-
* <div>Popover content</div>
|
|
2497
|
-
* </acp-popover>
|
|
2498
|
-
*
|
|
2499
|
-
* <button [acpPopoverTriggerFor]="popover" #trigger="acpPopoverTrigger">
|
|
2500
|
-
* Toggle popover
|
|
2501
|
-
* </button>
|
|
2502
|
-
*
|
|
2503
|
-
* <!-- Programmatic control -->
|
|
2504
|
-
* <button (click)="trigger.openPopover()">Open</button>
|
|
2505
|
-
* <button (click)="trigger.closePopover()">Close</button>
|
|
2506
|
-
* <button (click)="trigger.closePopoverWithReason('manual')">Close with reason</button>
|
|
2507
|
-
* <button (click)="trigger.togglePopover()">Toggle</button>
|
|
2508
|
-
* ```
|
|
2509
|
-
*
|
|
2510
|
-
* ## Custom Target
|
|
2511
|
-
* @example
|
|
2512
|
-
* ```html
|
|
2513
|
-
* <div acpPopoverTarget #target="acpPopoverTarget">Target element</div>
|
|
2514
|
-
* <button [acpPopoverTriggerFor]="popover" [targetElement]="target">
|
|
2515
|
-
* Trigger (popover appears at target)
|
|
2516
|
-
* </button>
|
|
2517
|
-
* ```
|
|
2518
|
-
*/
|
|
2519
2564
|
declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
2520
2565
|
private _overlay;
|
|
2521
2566
|
private _elementRef;
|
|
@@ -2533,7 +2578,6 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2533
2578
|
private _closingActionsSubscription;
|
|
2534
2579
|
private _scrollStrategy;
|
|
2535
2580
|
private _mouseoverTimer;
|
|
2536
|
-
private _mouseleaveTimer;
|
|
2537
2581
|
_openedBy: Exclude<FocusOrigin, 'program' | null> | undefined;
|
|
2538
2582
|
/** References the popover instance that the trigger is associated with. */
|
|
2539
2583
|
get popover(): AcpPopoverPanel;
|
|
@@ -2549,39 +2593,18 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2549
2593
|
popoverOpened: EventEmitter<void>;
|
|
2550
2594
|
/** Event emitted when the associated popover is closed. */
|
|
2551
2595
|
popoverClosed: EventEmitter<void>;
|
|
2552
|
-
/**
|
|
2553
|
-
* Lifecycle hook called after content initialization.
|
|
2554
|
-
* Validates the popover reference and sets up initial configuration.
|
|
2555
|
-
*/
|
|
2556
2596
|
ngAfterContentInit(): void;
|
|
2557
|
-
/**
|
|
2558
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2559
|
-
* Cleans up subscriptions and overlay references.
|
|
2560
|
-
*/
|
|
2561
2597
|
ngOnDestroy(): void;
|
|
2562
|
-
/**
|
|
2563
|
-
* Sets the current configuration for the popover.
|
|
2564
|
-
* Updates trigger event and applies current styles.
|
|
2565
|
-
*/
|
|
2566
2598
|
private _setCurrentConfig;
|
|
2567
2599
|
/** Whether the popover is open. */
|
|
2568
2600
|
get popoverOpen(): boolean;
|
|
2569
2601
|
/** The text direction of the containing app. */
|
|
2570
2602
|
get dir(): Direction;
|
|
2571
|
-
/**
|
|
2572
|
-
* Handles mouse click on the trigger.
|
|
2573
|
-
* @param _event The mouse event
|
|
2574
|
-
*/
|
|
2603
|
+
/** Handles mouse click on the trigger. */
|
|
2575
2604
|
_handleClick(_event: MouseEvent): void;
|
|
2576
|
-
/**
|
|
2577
|
-
* Handles mouse enter on the trigger.
|
|
2578
|
-
* @param _event The mouse event
|
|
2579
|
-
*/
|
|
2605
|
+
/** Handles mouse enter on the trigger. */
|
|
2580
2606
|
_handleMouseEnter(_event: MouseEvent): void;
|
|
2581
|
-
/**
|
|
2582
|
-
* Handles mouse leave on the trigger.
|
|
2583
|
-
* @param _event The mouse event
|
|
2584
|
-
*/
|
|
2607
|
+
/** Handles mouse leave on the trigger. */
|
|
2585
2608
|
_handleMouseLeave(_event: MouseEvent): void;
|
|
2586
2609
|
/** Handles mouse presses on the trigger. */
|
|
2587
2610
|
_handleMousedown(event: MouseEvent): void;
|
|
@@ -2593,11 +2616,6 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2593
2616
|
openPopover(): void;
|
|
2594
2617
|
/** Closes the popover. */
|
|
2595
2618
|
closePopover(): void;
|
|
2596
|
-
/**
|
|
2597
|
-
* Programmatically closes the popover with a specific reason.
|
|
2598
|
-
* @param reason The reason for closing
|
|
2599
|
-
*/
|
|
2600
|
-
closePopoverWithReason(reason: PopoverCloseReason): void;
|
|
2601
2619
|
/**
|
|
2602
2620
|
* Focuses the popover trigger.
|
|
2603
2621
|
* @param origin Source of the popover trigger's focus.
|
|
@@ -2611,7 +2629,7 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2611
2629
|
private _initPopover;
|
|
2612
2630
|
private _setIsPopoverOpen;
|
|
2613
2631
|
/**
|
|
2614
|
-
* This method checks that a valid instance of
|
|
2632
|
+
* This method checks that a valid instance of MdPopover has been passed into
|
|
2615
2633
|
* `acpPopoverTriggerFor`. If not, an exception is thrown.
|
|
2616
2634
|
*/
|
|
2617
2635
|
private _checkPopover;
|
|
@@ -2643,77 +2661,540 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2643
2661
|
/** Gets the portal that should be attached to the overlay. */
|
|
2644
2662
|
private _getPortal;
|
|
2645
2663
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpPopoverTrigger, never>;
|
|
2646
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpPopoverTrigger, "[acpPopoverTriggerFor]", ["acpPopoverTrigger"], { "popover": { "alias": "acpPopoverTriggerFor"; "required": false; }; "popoverData": { "alias": "popoverData"; "required": false; }; "targetElement": { "alias": "targetElement"; "required": false; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; }; }, { "popoverOpened": "popoverOpened"; "popoverClosed": "popoverClosed"; }, never, never, true, never>;
|
|
2664
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpPopoverTrigger, "[acp-popover-trigger-for], [acpPopoverTriggerFor]", ["acpPopoverTrigger"], { "popover": { "alias": "acpPopoverTriggerFor"; "required": false; }; "popoverData": { "alias": "popoverData"; "required": false; }; "targetElement": { "alias": "targetElement"; "required": false; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; }; }, { "popoverOpened": "popoverOpened"; "popoverClosed": "popoverClosed"; }, never, never, true, never>;
|
|
2647
2665
|
}
|
|
2648
2666
|
|
|
2667
|
+
declare const ACP_ACTIVE_DATE_DEBOUNCE = 100;
|
|
2668
|
+
declare enum ACP_DATE_OPTION_TYPE {
|
|
2669
|
+
DATE_DIFF = 1,
|
|
2670
|
+
LAST_MONTH = 2,
|
|
2671
|
+
THIS_MONTH = 3,
|
|
2672
|
+
YEAR_TO_DATE = 4,
|
|
2673
|
+
CUSTOM = 5,
|
|
2674
|
+
MONTH_TO_DATE = 6,
|
|
2675
|
+
WEEK_TO_DATE = 7
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
interface IAcpSelectDateOption {
|
|
2679
|
+
/**
|
|
2680
|
+
* Etiqueta mostrada en la lista desplegable para esta opción.
|
|
2681
|
+
* Ejemplo: "Últimos 7 días", "Hoy", "Personalizado".
|
|
2682
|
+
*/
|
|
2683
|
+
optionLabel: string;
|
|
2684
|
+
/**
|
|
2685
|
+
* Tipo de opción que indica cómo se determina la fecha.
|
|
2686
|
+
* Por defecto es DATE_DIFF si no se proporciona.
|
|
2687
|
+
*/
|
|
2688
|
+
optionType?: ACP_DATE_OPTION_TYPE;
|
|
2689
|
+
/**
|
|
2690
|
+
* Número de días de desplazamiento desde hoy.
|
|
2691
|
+
*
|
|
2692
|
+
* - Números positivos indican fechas futuras.
|
|
2693
|
+
* - Números negativos indican fechas pasadas.
|
|
2694
|
+
* - Se utiliza solo cuando optionType es DATE_DIFF y no hay callback.
|
|
2695
|
+
*
|
|
2696
|
+
* Ejemplo: -7 → "Últimos 7 días"
|
|
2697
|
+
*/
|
|
2698
|
+
dateDiff?: number;
|
|
2699
|
+
/**
|
|
2700
|
+
* Indica si esta opción está actualmente seleccionada.
|
|
2701
|
+
*/
|
|
2702
|
+
isSelected: boolean;
|
|
2703
|
+
/**
|
|
2704
|
+
* Indica si esta opción debe mostrarse en la lista desplegable.
|
|
2705
|
+
*/
|
|
2706
|
+
isVisible: boolean;
|
|
2707
|
+
/**
|
|
2708
|
+
* Función personalizada para calcular y retornar un DateRange.
|
|
2709
|
+
* Se utiliza cuando optionType requiere manejo especial más allá de dateDiff.
|
|
2710
|
+
*/
|
|
2711
|
+
callBackFunction?: () => DateRange<Date>;
|
|
2712
|
+
/**
|
|
2713
|
+
* Expresión de fecha-matemática/relativa opcional mostrada para el inicio del rango
|
|
2714
|
+
* cuando los inputs editables están habilitados (ej: `now-7d`).
|
|
2715
|
+
* Anula el valor derivado de `dateDiff`. Debe estar emparejada con {@link endExpr}.
|
|
2716
|
+
*/
|
|
2717
|
+
startExpr?: string;
|
|
2718
|
+
/**
|
|
2719
|
+
* Expresión de fecha-matemática/relativa opcional mostrada para el fin del rango
|
|
2720
|
+
* cuando los inputs editables están habilitados (ej: `now`).
|
|
2721
|
+
* Debe estar emparejada con {@link startExpr}.
|
|
2722
|
+
*/
|
|
2723
|
+
endExpr?: string;
|
|
2724
|
+
}
|
|
2649
2725
|
/**
|
|
2650
|
-
*
|
|
2651
|
-
|
|
2652
|
-
declare function throwAcpPopoverMissingError(): void;
|
|
2653
|
-
/**
|
|
2654
|
-
* Throws an exception for the case when popover's acpPopoverPosition[0] value isn't valid.
|
|
2655
|
-
* In other words, it doesn't match 'above', 'below', 'before' or 'after'.
|
|
2656
|
-
*/
|
|
2657
|
-
declare function throwAcpPopoverInvalidPositionStart(): void;
|
|
2658
|
-
/**
|
|
2659
|
-
* Throws an exception for the case when popover's acpPopoverPosition[1] value isn't valid.
|
|
2660
|
-
* In other words, it doesn't match 'above', 'below', 'before', 'after' or 'center'.
|
|
2726
|
+
* Implementación por defecto de una opción de fecha seleccionable.
|
|
2727
|
+
* Proporciona valores por defecto para todos los campos.
|
|
2661
2728
|
*/
|
|
2662
|
-
declare
|
|
2729
|
+
declare class AcpSelectDateOption implements IAcpSelectDateOption {
|
|
2730
|
+
optionLabel: string;
|
|
2731
|
+
optionType: ACP_DATE_OPTION_TYPE;
|
|
2732
|
+
dateDiff: number;
|
|
2733
|
+
isSelected: boolean;
|
|
2734
|
+
isVisible: boolean;
|
|
2735
|
+
callBackFunction: () => DateRange<Date>;
|
|
2736
|
+
}
|
|
2663
2737
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
private sanitizer;
|
|
2738
|
+
declare class AcpDateRangeCalendar implements AfterViewInit {
|
|
2739
|
+
firstViewStartDate: _angular_core.WritableSignal<Date>;
|
|
2740
|
+
secondViewStartDate: _angular_core.WritableSignal<Date>;
|
|
2741
|
+
secondViewMinDate: _angular_core.WritableSignal<Date>;
|
|
2742
|
+
minDate: Date;
|
|
2743
|
+
maxDate: Date;
|
|
2744
|
+
/** Emits when the user changes the selection by clicking dates in the views. */
|
|
2745
|
+
selectedDatesChange: EventEmitter<DateRange<Date>>;
|
|
2746
|
+
firstCalendarView: MatCalendar<Date>;
|
|
2747
|
+
secondCalendarView: MatCalendar<Date>;
|
|
2748
|
+
private _selectedDates;
|
|
2749
|
+
private isAllowHoverEvent;
|
|
2750
|
+
private cdref;
|
|
2751
|
+
private el;
|
|
2679
2752
|
private renderer;
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2753
|
+
/**
|
|
2754
|
+
* Updates the selected date range and synchronizes both calendar views.
|
|
2755
|
+
*/
|
|
2756
|
+
set selectedDates(selectedDates: DateRange<Date> | null);
|
|
2757
|
+
get selectedDates(): DateRange<Date> | null;
|
|
2758
|
+
/**
|
|
2759
|
+
* Lifecycle hook that is called after Angular has fully initialized
|
|
2760
|
+
* the component's view (and child views).
|
|
2761
|
+
*
|
|
2762
|
+
* Used here to attach hover events and register active date change
|
|
2763
|
+
* listeners once the calendar views are available in the DOM.
|
|
2764
|
+
*/
|
|
2765
|
+
ngAfterViewInit(): void;
|
|
2766
|
+
/**
|
|
2767
|
+
* Handles month selection in the first view.
|
|
2768
|
+
*
|
|
2769
|
+
* @param event - Selected month date
|
|
2770
|
+
*/
|
|
2771
|
+
monthSelected(viewName: string): void;
|
|
2772
|
+
/**
|
|
2773
|
+
* Updates the selected date range when a date is clicked.
|
|
2774
|
+
*
|
|
2775
|
+
* @param date - Date clicked by the user
|
|
2776
|
+
*/
|
|
2777
|
+
updateDateRangeSelection(date: Date | null): void;
|
|
2778
|
+
/**
|
|
2779
|
+
* Registers event handlers for active date changes on both calendar views.
|
|
2780
|
+
*
|
|
2781
|
+
* This method overrides the default `activeDate` property setter of each
|
|
2782
|
+
* calendar view to ensure custom handlers are executed whenever the
|
|
2783
|
+
* active date changes.
|
|
2784
|
+
*/
|
|
2785
|
+
private registerActiveDateChangeEvents;
|
|
2786
|
+
/**
|
|
2787
|
+
* Handles the event when the active date of the first calendar view changes.
|
|
2788
|
+
*
|
|
2789
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2790
|
+
*/
|
|
2791
|
+
private onFirstViewActiveDateChange;
|
|
2792
|
+
/**
|
|
2793
|
+
* Handles the event when the active date of the second calendar view changes.
|
|
2794
|
+
*
|
|
2795
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2796
|
+
*/
|
|
2797
|
+
private onSecondViewActiveDateChange;
|
|
2798
|
+
/**
|
|
2799
|
+
* Handles the "next" navigation event for the first calendar view.
|
|
2800
|
+
*
|
|
2801
|
+
* @param currDate - The currently active date in the first calendar view.
|
|
2802
|
+
* @param force - Optional flag that can be used to enforce updates (not used in current logic).
|
|
2803
|
+
*/
|
|
2804
|
+
private handleFirstViewNextEvent;
|
|
2805
|
+
/**
|
|
2806
|
+
* Handles the "previous" navigation event for the first calendar view.
|
|
2807
|
+
*
|
|
2808
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2809
|
+
*/
|
|
2810
|
+
private handleFirstViewPrevEvent;
|
|
2811
|
+
/**
|
|
2812
|
+
* Checks whether the previous date is greater than the current date.
|
|
2813
|
+
*
|
|
2814
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2815
|
+
* @returns `true` if the previous date is later than the current date, otherwise `false`.
|
|
2816
|
+
*/
|
|
2817
|
+
private isPrevious;
|
|
2818
|
+
/**
|
|
2819
|
+
* Attaches hover events to all date cells in the first view.
|
|
2820
|
+
*/
|
|
2821
|
+
private attachHoverEvent;
|
|
2822
|
+
/**
|
|
2823
|
+
* Removes active focus from the second view.
|
|
2824
|
+
*
|
|
2825
|
+
* @param classRef - Reference to this component
|
|
2826
|
+
*/
|
|
2827
|
+
private removeDefaultFocus;
|
|
2828
|
+
/**
|
|
2829
|
+
* Updates the selection range dynamically on hover.
|
|
2830
|
+
*
|
|
2831
|
+
* @param date - Hovered date
|
|
2832
|
+
*/
|
|
2833
|
+
private updateSelectionOnMouseHover;
|
|
2834
|
+
/**
|
|
2835
|
+
* Attaches hover events to given nodes to update range selection.
|
|
2836
|
+
*
|
|
2837
|
+
* @param nodes - Date cell nodes
|
|
2838
|
+
*/
|
|
2839
|
+
private addHoverEvents;
|
|
2840
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpDateRangeCalendar, never>;
|
|
2841
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpDateRangeCalendar, "acp-date-range-calendar", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "selectedDates": { "alias": "selectedDates"; "required": false; }; }, { "selectedDatesChange": "selectedDatesChange"; }, never, never, true, never>;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
interface AcpSelectedDateEvent {
|
|
2845
|
+
/** Rango de fechas seleccionado, o null si se limpió la selección. */
|
|
2846
|
+
range: DateRange<Date> | null;
|
|
2847
|
+
/** Opción de fecha seleccionada, o null si se limpió la selección. */
|
|
2848
|
+
selectedOption: IAcpSelectDateOption | null;
|
|
2849
|
+
/**
|
|
2850
|
+
* Expresión legible para el inicio del rango: la entrada del usuario (ej: `now-7d`)
|
|
2851
|
+
* cuando se edita, la forma relativa de una opción de diferencia de días,
|
|
2852
|
+
* o la fecha formateada absoluta. `null` cuando se limpia la selección.
|
|
2853
|
+
*/
|
|
2854
|
+
startExpr: string | null;
|
|
2855
|
+
/** Expresión legible para el fin del rango. Ver {@link startExpr}. */
|
|
2856
|
+
endExpr: string | null;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
declare class AcpDateRangeInput implements OnInit, AfterViewInit {
|
|
2860
|
+
isDateOptionList: boolean;
|
|
2861
|
+
isCustomRange: boolean;
|
|
2862
|
+
inputLabel: string;
|
|
2863
|
+
showClearButton: _angular_core.InputSignal<boolean>;
|
|
2864
|
+
showCalendarIcon: _angular_core.InputSignal<boolean>;
|
|
2865
|
+
showRangeRequired: _angular_core.InputSignal<boolean>;
|
|
2866
|
+
isRangeRequired: _angular_core.InputSignal<boolean>;
|
|
2867
|
+
staticOptionId: string;
|
|
2868
|
+
dynamicOptionId: string;
|
|
2869
|
+
calendarId: string;
|
|
2870
|
+
enableDefaultOptions: boolean;
|
|
2871
|
+
selectedDates: DateRange<Date> | null;
|
|
2872
|
+
dateFormat: string;
|
|
2873
|
+
isShowStaticDefaultOptions: boolean;
|
|
2874
|
+
hideDefaultOptions: boolean;
|
|
2875
|
+
cdkConnectedOverlayOffsetX: number;
|
|
2876
|
+
cdkConnectedOverlayOffsetY: number;
|
|
2877
|
+
listCdkConnectedOverlayOffsetY: number;
|
|
2878
|
+
listCdkConnectedOverlayOffsetX: number;
|
|
2879
|
+
selectedOptionIndex: number;
|
|
2880
|
+
displaySelectedLabel: boolean;
|
|
2881
|
+
/**
|
|
2882
|
+
* When true, the main input shows the human-readable expressions
|
|
2883
|
+
* (e.g. `now-7d - now`) instead of the absolute date range. If
|
|
2884
|
+
* `displaySelectedLabel` is also true, the label takes priority.
|
|
2885
|
+
*/
|
|
2886
|
+
displaySelectedExpression: boolean;
|
|
2887
|
+
/**
|
|
2888
|
+
* When true, the custom-range footer shows two editable Material inputs
|
|
2889
|
+
* (start / end) that accept dates in `dateFormat`, ISO 8601 durations
|
|
2890
|
+
* (`p7d`), or date math (`now-7d`). When false, a read-only label is shown.
|
|
2891
|
+
*/
|
|
2892
|
+
enableEditableDates: boolean;
|
|
2893
|
+
cdkConnectedOverlayPush: boolean;
|
|
2894
|
+
cdkConnectedOverlayPositions: never[];
|
|
2895
|
+
allowSingleDateSelection: boolean;
|
|
2896
|
+
/**
|
|
2897
|
+
* When true, automatically selects the preset option whose computed date range
|
|
2898
|
+
* matches the provided selectedDates (works with both default and custom options).
|
|
2899
|
+
* Falls back to "Custom Range" if no option matches.
|
|
2900
|
+
*/
|
|
2901
|
+
autoSelectOption: boolean;
|
|
2902
|
+
minDate: Date;
|
|
2903
|
+
maxDate: Date;
|
|
2904
|
+
dateSelectionChanged: _angular_core.OutputEmitterRef<AcpSelectedDateEvent>;
|
|
2905
|
+
dateListOptions: _angular_core.OutputEmitterRef<IAcpSelectDateOption[]>;
|
|
2906
|
+
rangeRequiredChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2907
|
+
private cdref;
|
|
2908
|
+
private el;
|
|
2909
|
+
calendar?: AcpDateRangeCalendar;
|
|
2910
|
+
private _dateOptions;
|
|
2911
|
+
visibleOptions: _angular_core.Signal<IAcpSelectDateOption[]>;
|
|
2912
|
+
/**
|
|
2913
|
+
* Reactive form backing the editable start/end inputs. Each control accepts
|
|
2914
|
+
* a `dateFormat` date, an ISO 8601 duration, or a date-math expression; the
|
|
2915
|
+
* group is invalid when either value is unparseable or start is after end.
|
|
2916
|
+
*/
|
|
2917
|
+
editableForm: FormGroup<{
|
|
2918
|
+
start: FormControl<string>;
|
|
2919
|
+
end: FormControl<string>;
|
|
2920
|
+
}>;
|
|
2921
|
+
private editableExpr;
|
|
2922
|
+
set dateDropDownOptions(defaultDateList: IAcpSelectDateOption[]);
|
|
2923
|
+
get dateDropDownOptions(): IAcpSelectDateOption[];
|
|
2687
2924
|
ngOnInit(): void;
|
|
2688
|
-
|
|
2689
|
-
onClose(): void;
|
|
2690
|
-
private getButtonConfig;
|
|
2691
|
-
getButtonVariant(buttonType: ButtonType): ButtonVariant;
|
|
2692
|
-
getButtonIcon(buttonType: ButtonType): string;
|
|
2693
|
-
getButtonStyle(buttonType: ButtonType): MaterialButtonStyle;
|
|
2694
|
-
getButtonText(buttonType: ButtonType): string;
|
|
2695
|
-
getButtonDisabled(buttonType: ButtonType): boolean;
|
|
2696
|
-
getButtonFocus(buttonType: ButtonType): boolean;
|
|
2697
|
-
getActionsAlignment(): 'start' | 'center' | 'end';
|
|
2698
|
-
onConfirm(): Promise<void>;
|
|
2699
|
-
onCancel(): void;
|
|
2700
|
-
onDeny(): void;
|
|
2701
|
-
onInputEnter(): void;
|
|
2702
|
-
private getButtonColor;
|
|
2703
|
-
getConfirmColor(): any;
|
|
2704
|
-
getCancelColor(): any;
|
|
2705
|
-
getDenyColor(): any;
|
|
2706
|
-
getConfirmBackgroundColor(): string | undefined;
|
|
2707
|
-
getCancelBackgroundColor(): string | undefined;
|
|
2708
|
-
getDenyBackgroundColor(): string | undefined;
|
|
2925
|
+
ngAfterViewInit(): void;
|
|
2709
2926
|
/**
|
|
2710
|
-
*
|
|
2711
|
-
*
|
|
2712
|
-
*
|
|
2927
|
+
* Alterna la visibilidad de la lista de opciones de fecha predeterminada.
|
|
2928
|
+
* Si el panel de rango personalizado está abierto, lo cierra en su lugar.
|
|
2929
|
+
* Si el dropdown ya está abierto y se hace clic en el input, no lo cierra.
|
|
2930
|
+
*
|
|
2931
|
+
* @param event MouseEvent opcional que activa el alternador.
|
|
2713
2932
|
*/
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2933
|
+
toggleRangeSelection(event: MouseEvent): void;
|
|
2934
|
+
toggleDateOptionSelectionList(event?: MouseEvent): void;
|
|
2935
|
+
/**
|
|
2936
|
+
* Actualiza la selección de rango de fecha personalizado desde la entrada.
|
|
2937
|
+
*
|
|
2938
|
+
* @param input El elemento de entrada HTML asociado con el selector de fecha.
|
|
2939
|
+
* @param selectedDates El rango de fechas seleccionado.
|
|
2940
|
+
*/
|
|
2941
|
+
updateCustomRange(input: HTMLInputElement, selectedDates: DateRange<Date> | null): void;
|
|
2942
|
+
/**
|
|
2943
|
+
* Actualiza la selección cuando se hace clic en una opción de fecha específica.
|
|
2944
|
+
*
|
|
2945
|
+
* @param option La opción de fecha seleccionada.
|
|
2946
|
+
* @param input El elemento de entrada HTML a actualizar con fechas seleccionadas.
|
|
2947
|
+
*/
|
|
2948
|
+
updateSelection(option: IAcpSelectDateOption, input: HTMLInputElement): void;
|
|
2949
|
+
/**
|
|
2950
|
+
* Re-emite la señal de opciones después de un cambio de selección en el lugar para que
|
|
2951
|
+
* las vistas OnPush (vinculadas a `visibleOptions` calculado) reflejen de manera confiable
|
|
2952
|
+
* el nuevo estado `isSelected` - la misma notificación que proporciona el `set` de señal inicial.
|
|
2953
|
+
*/
|
|
2954
|
+
private syncOptionSelection;
|
|
2955
|
+
/**
|
|
2956
|
+
* Alterna la visibilidad de la vista de selección de rango de fecha personalizado.
|
|
2957
|
+
*/
|
|
2958
|
+
toggleCustomDateRangeView(): void;
|
|
2959
|
+
/**
|
|
2960
|
+
* Analiza un único valor de entrada editable, aceptando una fecha `dateFormat`
|
|
2961
|
+
* o uno de los formatos humanos (duración ISO 8601, matemática de fecha).
|
|
2962
|
+
*
|
|
2963
|
+
* @param value - La cadena de entrada sin procesar.
|
|
2964
|
+
* @returns La fecha analizada, o `null` si no se puede analizar.
|
|
2965
|
+
*/
|
|
2966
|
+
private parseInputValue;
|
|
2967
|
+
/**
|
|
2968
|
+
* Validador para un único control de fecha editable: válido cuando el valor se analiza
|
|
2969
|
+
* como una fecha. Los valores vacíos se dejan al validador `required`.
|
|
2970
|
+
*/
|
|
2971
|
+
private validateDateControl;
|
|
2972
|
+
/**
|
|
2973
|
+
* Validador de grupo que asegura que la fecha de inicio analizada no sea posterior a la fecha de fin.
|
|
2974
|
+
*/
|
|
2975
|
+
private validateRange;
|
|
2976
|
+
/**
|
|
2977
|
+
* Confirma las entradas editables en el calendario para que las vistas y la acción
|
|
2978
|
+
* Aplicar reflejen los valores escritos. No-op cuando la edición está deshabilitada o
|
|
2979
|
+
* el formulario es inválido.
|
|
2980
|
+
*
|
|
2981
|
+
* @param calendar - La instancia del componente de calendario desde la plantilla.
|
|
2982
|
+
*/
|
|
2983
|
+
commitEditableDates(calendar: AcpDateRangeCalendar): void;
|
|
2984
|
+
/**
|
|
2985
|
+
* Refleja una selección de calendario (clic de fecha) en las entradas editables como
|
|
2986
|
+
* fechas absolutas. Una selección de calendario es una selección absoluta explícita, por lo que
|
|
2987
|
+
* cualquier expresión recordada se borra y las entradas muestran fechas formateadas.
|
|
2988
|
+
*
|
|
2989
|
+
* @param range - El rango emitido por el calendario.
|
|
2990
|
+
*/
|
|
2991
|
+
onCalendarSelectionChange(range: DateRange<Date>): void;
|
|
2992
|
+
/**
|
|
2993
|
+
* Confirma las entradas editables y aplica el rango, cerrando el panel -
|
|
2994
|
+
* lo mismo que hacer clic en Aplicar. Se usa para la tecla Intro. No-op cuando la edición está
|
|
2995
|
+
* deshabilitada o el formulario es inválido, por lo que Intro nunca cierra con entrada incorrecta.
|
|
2996
|
+
*
|
|
2997
|
+
* @param input - El elemento de entrada de fecha principal a actualizar.
|
|
2998
|
+
* @param calendar - La instancia del componente de calendario desde la plantilla.
|
|
2999
|
+
*/
|
|
3000
|
+
applyEditableDates(input: HTMLInputElement, _calendar: AcpDateRangeCalendar): void;
|
|
3001
|
+
/**
|
|
3002
|
+
* Rellena previamente las entradas editables desde la selección actual: expresiones relativas
|
|
3003
|
+
* para una opción de diferencia de días (ej: `now-7d` .. `now`), de lo contrario las
|
|
3004
|
+
* fechas formateadas absolutas.
|
|
3005
|
+
*/
|
|
3006
|
+
private populateEditableForm;
|
|
3007
|
+
/**
|
|
3008
|
+
* Resuelve las expresiones legibles de inicio/fin para un rango. Prefiere la
|
|
3009
|
+
* expresión comprometida del usuario (cuando aún se resuelve a este rango),
|
|
3010
|
+
* luego la forma relativa de una opción de diferencia de días, y finalmente las
|
|
3011
|
+
* fechas formateadas absolutas. Compartido por las entradas editables y el evento emitido.
|
|
3012
|
+
*
|
|
3013
|
+
* @param start - Fecha de inicio del rango.
|
|
3014
|
+
* @param end - Fecha de fin del rango.
|
|
3015
|
+
* @param opt - La opción de fecha asociada, si la hay.
|
|
3016
|
+
* @returns Las cadenas de expresión de inicio y fin.
|
|
3017
|
+
*/
|
|
3018
|
+
private resolveDisplayExpr;
|
|
3019
|
+
/**
|
|
3020
|
+
* Checks whether a saved expression still resolves (to day precision) to the
|
|
3021
|
+
* given dates, so a stale expression is not reused after the range changed
|
|
3022
|
+
* by other means.
|
|
3023
|
+
*/
|
|
3024
|
+
private exprMatchesDates;
|
|
3025
|
+
/**
|
|
3026
|
+
* Clears the currently selected dates and resets all related properties.
|
|
3027
|
+
*
|
|
3028
|
+
* @param event The MouseEvent triggering the clear action.
|
|
3029
|
+
*/
|
|
3030
|
+
clearSelection(event: MouseEvent): void;
|
|
3031
|
+
/**
|
|
3032
|
+
* Clears the input field value for the date picker.
|
|
3033
|
+
*/
|
|
3034
|
+
private clearDateInput;
|
|
3035
|
+
/**
|
|
3036
|
+
* Updates selected dates based on a selected option and input element.
|
|
3037
|
+
*
|
|
3038
|
+
* @param option The selected date option.
|
|
3039
|
+
* @param input The HTML input element to update.
|
|
3040
|
+
*/
|
|
3041
|
+
private updateDateOnOptionSelect;
|
|
3042
|
+
/**
|
|
3043
|
+
* Calculates and updates the start and end dates based on the selected option.
|
|
3044
|
+
*
|
|
3045
|
+
* @param option The selected date option.
|
|
3046
|
+
* @param input The HTML input element to update.
|
|
3047
|
+
*/
|
|
3048
|
+
private updateDateWithSelectedOption;
|
|
3049
|
+
/**
|
|
3050
|
+
* Updates the date range and input display.
|
|
3051
|
+
*
|
|
3052
|
+
* @param input The HTML input element.
|
|
3053
|
+
* @param start Start date of the range.
|
|
3054
|
+
* @param end End date of the range.
|
|
3055
|
+
* @param opt Optional selected date option.
|
|
3056
|
+
*/
|
|
3057
|
+
private updateSelectedDates;
|
|
3058
|
+
/**
|
|
3059
|
+
* Updates the input and internal state with default dates on initialization.
|
|
3060
|
+
* When autoSelectOption is true and selectedDates is provided, attempts to
|
|
3061
|
+
* match against existing options before falling back to Custom Range.
|
|
3062
|
+
*/
|
|
3063
|
+
private updateDefaultDatesValues;
|
|
3064
|
+
/**
|
|
3065
|
+
* Maneja cambios manuales en el input principal de fecha.
|
|
3066
|
+
* Cuando el usuario escribe directamente, deselecciona todas las opciones
|
|
3067
|
+
* predefinidas y marca "Rango personalizado" como seleccionado.
|
|
3068
|
+
*
|
|
3069
|
+
* @param input El elemento de entrada HTML que cambió.
|
|
3070
|
+
*/
|
|
3071
|
+
onMainInputChange(input: HTMLInputElement): void;
|
|
3072
|
+
/**
|
|
3073
|
+
* Iterates over all non-custom options and returns the first one whose
|
|
3074
|
+
* computed date range matches the provided selectedDates (day-level comparison).
|
|
3075
|
+
* Works for both default options and consumer-provided options with callBackFunction.
|
|
3076
|
+
*
|
|
3077
|
+
* @param selectedDates The date range to match against
|
|
3078
|
+
* @returns The matching ISelectDateOption, or null if none found
|
|
3079
|
+
*/
|
|
3080
|
+
private findMatchingOption;
|
|
3081
|
+
/**
|
|
3082
|
+
* Updates the input and selected dates based on a selected option from the list.
|
|
3083
|
+
*
|
|
3084
|
+
* @param selectedOption The selected date option.
|
|
3085
|
+
* @param input The HTML input element to update.
|
|
3086
|
+
*/
|
|
3087
|
+
private updatedFromListValueSelection;
|
|
3088
|
+
/**
|
|
3089
|
+
* Checks whether default initialization of options is required.
|
|
3090
|
+
*
|
|
3091
|
+
* @returns True if default options need to be initialized, otherwise false.
|
|
3092
|
+
*/
|
|
3093
|
+
private isDefaultInitRequired;
|
|
3094
|
+
/**
|
|
3095
|
+
* Initializes the default date options with the selected index.
|
|
3096
|
+
*/
|
|
3097
|
+
private initDefaultOptions;
|
|
3098
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpDateRangeInput, never>;
|
|
3099
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpDateRangeInput, "acp-date-range-input", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; "isSignal": true; }; "showCalendarIcon": { "alias": "showCalendarIcon"; "required": false; "isSignal": true; }; "showRangeRequired": { "alias": "showRangeRequired"; "required": false; "isSignal": true; }; "isRangeRequired": { "alias": "isRangeRequired"; "required": false; "isSignal": true; }; "staticOptionId": { "alias": "staticOptionId"; "required": false; }; "dynamicOptionId": { "alias": "dynamicOptionId"; "required": false; }; "calendarId": { "alias": "calendarId"; "required": false; }; "enableDefaultOptions": { "alias": "enableDefaultOptions"; "required": false; }; "selectedDates": { "alias": "selectedDates"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "isShowStaticDefaultOptions": { "alias": "isShowStaticDefaultOptions"; "required": false; }; "hideDefaultOptions": { "alias": "hideDefaultOptions"; "required": false; }; "cdkConnectedOverlayOffsetX": { "alias": "cdkConnectedOverlayOffsetX"; "required": false; }; "cdkConnectedOverlayOffsetY": { "alias": "cdkConnectedOverlayOffsetY"; "required": false; }; "listCdkConnectedOverlayOffsetY": { "alias": "listCdkConnectedOverlayOffsetY"; "required": false; }; "listCdkConnectedOverlayOffsetX": { "alias": "listCdkConnectedOverlayOffsetX"; "required": false; }; "selectedOptionIndex": { "alias": "selectedOptionIndex"; "required": false; }; "displaySelectedLabel": { "alias": "displaySelectedLabel"; "required": false; }; "displaySelectedExpression": { "alias": "displaySelectedExpression"; "required": false; }; "enableEditableDates": { "alias": "enableEditableDates"; "required": false; }; "cdkConnectedOverlayPush": { "alias": "cdkConnectedOverlayPush"; "required": false; }; "cdkConnectedOverlayPositions": { "alias": "cdkConnectedOverlayPositions"; "required": false; }; "allowSingleDateSelection": { "alias": "allowSingleDateSelection"; "required": false; }; "autoSelectOption": { "alias": "autoSelectOption"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "dateDropDownOptions": { "alias": "dateDropDownOptions"; "required": false; }; }, { "dateSelectionChanged": "dateSelectionChanged"; "dateListOptions": "dateListOptions"; "rangeRequiredChange": "rangeRequiredChange"; }, never, never, true, never>;
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
declare const ACP_DEFAULT_DATE_OPTIONS: IAcpSelectDateOption[];
|
|
3103
|
+
|
|
3104
|
+
interface AcpCheckboxGroupOption {
|
|
3105
|
+
ariaDescribedby?: string;
|
|
3106
|
+
ariaLabel?: string;
|
|
3107
|
+
ariaLabelledby?: string;
|
|
3108
|
+
label?: any;
|
|
3109
|
+
value?: any;
|
|
3110
|
+
color?: string;
|
|
3111
|
+
checked?: boolean;
|
|
3112
|
+
disabled?: boolean;
|
|
3113
|
+
disableRipple?: boolean;
|
|
3114
|
+
indeterminate?: boolean;
|
|
3115
|
+
labelPosition?: 'before' | 'after';
|
|
3116
|
+
id?: string;
|
|
3117
|
+
name?: string | null;
|
|
3118
|
+
required?: boolean;
|
|
3119
|
+
[k: string]: any;
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3122
|
+
declare class AcpCheckboxBase {
|
|
3123
|
+
label?: any | undefined;
|
|
3124
|
+
value?: any | undefined;
|
|
3125
|
+
constructor(label?: any | undefined, value?: any | undefined);
|
|
3126
|
+
}
|
|
3127
|
+
declare class AcpCheckboxGroup implements AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
3128
|
+
private _changeDetectorRef;
|
|
3129
|
+
private _focusMonitor;
|
|
3130
|
+
private _elementRef;
|
|
3131
|
+
_checkboxes: QueryList<MatCheckbox>;
|
|
3132
|
+
get trackBy(): TrackByFunction<any> | undefined;
|
|
3133
|
+
set trackBy(fn: TrackByFunction<any> | undefined);
|
|
3134
|
+
private _trackByFn?;
|
|
3135
|
+
get items(): any[];
|
|
3136
|
+
set items(value: any[]);
|
|
3137
|
+
private _items;
|
|
3138
|
+
private _originalItems;
|
|
3139
|
+
private _itemsAreUsed;
|
|
3140
|
+
bindLabel: _angular_core.InputSignal<string>;
|
|
3141
|
+
bindValue: _angular_core.InputSignal<string>;
|
|
3142
|
+
showSelectAll: boolean;
|
|
3143
|
+
selectAllLabel: string;
|
|
3144
|
+
get compareWith(): ((o1: any, o2: any) => boolean) | undefined;
|
|
3145
|
+
set compareWith(fn: ((o1: any, o2: any) => boolean) | undefined);
|
|
3146
|
+
private _compareWith?;
|
|
3147
|
+
disabled: boolean;
|
|
3148
|
+
selectionChange: _angular_core.OutputEmitterRef<{
|
|
3149
|
+
model: AcpCheckboxGroupOption[];
|
|
3150
|
+
index: number;
|
|
3151
|
+
}>;
|
|
3152
|
+
selectAll: boolean;
|
|
3153
|
+
selectAllIndeterminate: boolean;
|
|
3154
|
+
selectedItems: AcpCheckboxGroupOption[];
|
|
3155
|
+
_onChange: (value: AcpCheckboxGroupOption[]) => void;
|
|
3156
|
+
_onTouched: () => void;
|
|
3157
|
+
ngAfterViewInit(): void;
|
|
3158
|
+
private _setItemsFromContentCheckboxes;
|
|
3159
|
+
ngOnDestroy(): void;
|
|
3160
|
+
/**
|
|
3161
|
+
* Finds and selects and option based on its value.
|
|
3162
|
+
* @returns Option that has the corresponding value.
|
|
3163
|
+
*/
|
|
3164
|
+
private _selectValue;
|
|
3165
|
+
/**
|
|
3166
|
+
* Sets the model value. Implemented as part of ControlValueAccessor.
|
|
3167
|
+
* @param value New value to be written to the model.
|
|
3168
|
+
*/
|
|
3169
|
+
writeValue(value: any[]): void;
|
|
3170
|
+
/**
|
|
3171
|
+
* Registers a callback to be triggered when the model value changes.
|
|
3172
|
+
* Implemented as part of ControlValueAccessor.
|
|
3173
|
+
* @param fn Callback to be registered.
|
|
3174
|
+
*/
|
|
3175
|
+
registerOnChange(fn: (value: AcpCheckboxGroupOption[]) => Record<string, unknown>): void;
|
|
3176
|
+
/**
|
|
3177
|
+
* Registers a callback to be triggered when the control is touched.
|
|
3178
|
+
* Implemented as part of ControlValueAccessor.
|
|
3179
|
+
* @param fn Callback to be registered.
|
|
3180
|
+
*/
|
|
3181
|
+
registerOnTouched(fn: () => Record<string, unknown>): void;
|
|
3182
|
+
/**
|
|
3183
|
+
* Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
|
|
3184
|
+
* @param isDisabled Whether the control should be disabled.
|
|
3185
|
+
*/
|
|
3186
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3187
|
+
private _checkMasterCheckboxState;
|
|
3188
|
+
private _getSelectedItems;
|
|
3189
|
+
/** Handle normal checkbox toggle */
|
|
3190
|
+
_updateNormalCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
3191
|
+
/** Handle master checkbox toggle */
|
|
3192
|
+
_updateMasterCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
3193
|
+
_trackBy: (index: number, item: any) => any;
|
|
3194
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpCheckboxGroup, never>;
|
|
3195
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpCheckboxGroup, "acp-checkbox-group", ["acpCheckboxGroup"], { "trackBy": { "alias": "trackBy"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; "isSignal": true; }; "bindValue": { "alias": "bindValue"; "required": false; "isSignal": true; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, ["_checkboxes"], never, true, never>;
|
|
3196
|
+
static ngAcceptInputType_showSelectAll: unknown;
|
|
3197
|
+
static ngAcceptInputType_disabled: unknown;
|
|
2717
3198
|
}
|
|
2718
3199
|
|
|
2719
3200
|
declare class ToUpperCase implements ControlValueAccessor {
|
|
@@ -2759,5 +3240,5 @@ declare class StatusDisplayPipe implements PipeTransform {
|
|
|
2759
3240
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<StatusDisplayPipe, "statusDisplay", true>;
|
|
2760
3241
|
}
|
|
2761
3242
|
|
|
2762
|
-
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, AcpAlert, AcpDrawer, AcpDrawerConfig, AcpDrawerContainer, AcpDrawerRef, AcpPopover, AcpPopoverContent, AcpPopoverTarget, AcpPopoverTrigger,
|
|
2763
|
-
export type { AcpAlertType, AcpPopoverDefaultOptions, AcpPopoverPanel, AcpPopoverPosition, AcpPopoverPositionEnd, AcpPopoverPositionStart, AcpPopoverTriggerEvent,
|
|
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 };
|