@acontplus/ng-components 2.1.29 → 2.1.31
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/fesm2022/acontplus-ng-components.mjs +5713 -3552
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/package.json +21 -20
- package/src/_index.scss +22 -0
- package/src/core/color/_all-color.scss +16 -0
- package/src/core/density/_all-density.scss +38 -0
- package/src/core/style/_elevation.scss +207 -0
- package/src/core/theming/_all-theme.scss +50 -0
- package/src/core/theming/_config-validation.scss +171 -0
- package/src/core/theming/_definition.scss +158 -0
- package/src/core/theming/_palettes.scss +1060 -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 +395 -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 +34 -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/data-grid/_grid-theme.scss +53 -0
- package/src/lib/components/data-grid/_m3-grid.scss +34 -0
- package/src/lib/components/data-grid/cell/cell.scss +38 -0
- package/src/lib/components/data-grid/column-menu/column-menu.scss +117 -0
- package/src/lib/components/data-grid/column-resize/_column-resize.scss +126 -0
- package/src/lib/components/data-grid/grid.scss +245 -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 +24 -0
- package/src/lib/components/drawer/drawer-container.scss +97 -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 +920 -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,31 @@ 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';
|
|
26
29
|
|
|
27
30
|
type AcpAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
28
31
|
declare class AcpAlert {
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
private _changeDetectorRef;
|
|
33
|
+
get hostClassList(): string;
|
|
31
34
|
/** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
|
|
32
|
-
type:
|
|
35
|
+
type: AcpAlertType;
|
|
33
36
|
/** Whether to display an inline close button. */
|
|
34
|
-
dismissible:
|
|
37
|
+
dismissible: boolean;
|
|
35
38
|
/** The alert's elevation (0~24). */
|
|
36
|
-
elevation:
|
|
39
|
+
elevation: number;
|
|
37
40
|
/** 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;
|
|
41
|
+
closed: EventEmitter<AcpAlert>;
|
|
44
42
|
_onClosed(): void;
|
|
45
43
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpAlert, never>;
|
|
46
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AcpAlert, "acp-alert", ["acpAlert"], { "type": { "alias": "type"; "required": false;
|
|
44
|
+
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>;
|
|
45
|
+
static ngAcceptInputType_dismissible: unknown;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/**
|
|
@@ -124,6 +123,18 @@ declare class DynamicCard {
|
|
|
124
123
|
* Event emitted when the card is clicked.
|
|
125
124
|
*/
|
|
126
125
|
cardClicked: _angular_core.OutputEmitterRef<Event>;
|
|
126
|
+
/**
|
|
127
|
+
* Event emitted when a key is pressed down on the card.
|
|
128
|
+
*/
|
|
129
|
+
keyDown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
130
|
+
/**
|
|
131
|
+
* Event emitted when a key is released on the card.
|
|
132
|
+
*/
|
|
133
|
+
keyUp: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
134
|
+
/**
|
|
135
|
+
* Event emitted when a key is pressed on the card.
|
|
136
|
+
*/
|
|
137
|
+
keyPress: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
127
138
|
/**
|
|
128
139
|
* Handles the primary button click event.
|
|
129
140
|
* Stops event propagation and emits the primaryButtonClicked event.
|
|
@@ -142,8 +153,26 @@ declare class DynamicCard {
|
|
|
142
153
|
* @param event The click event
|
|
143
154
|
*/
|
|
144
155
|
handleCardClick(event: Event): void;
|
|
156
|
+
/**
|
|
157
|
+
* Handles the key down event on the card.
|
|
158
|
+
* Emits the keyDown event with the original keyboard event.
|
|
159
|
+
* @param event The keyboard event
|
|
160
|
+
*/
|
|
161
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
162
|
+
/**
|
|
163
|
+
* Handles the key up event on the card.
|
|
164
|
+
* Emits the keyUp event with the original keyboard event.
|
|
165
|
+
* @param event The keyboard event
|
|
166
|
+
*/
|
|
167
|
+
handleKeyUp(event: KeyboardEvent): void;
|
|
168
|
+
/**
|
|
169
|
+
* Handles the key press event on the card.
|
|
170
|
+
* Emits the keyPress event with the original keyboard event.
|
|
171
|
+
* @param event The keyboard event
|
|
172
|
+
*/
|
|
173
|
+
handleKeyPress(event: KeyboardEvent): void;
|
|
145
174
|
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>;
|
|
175
|
+
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
176
|
}
|
|
148
177
|
|
|
149
178
|
type DialogSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'full';
|
|
@@ -510,173 +539,6 @@ declare class AutocompleteWrapperService {
|
|
|
510
539
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AutocompleteWrapperService>;
|
|
511
540
|
}
|
|
512
541
|
|
|
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
542
|
/**
|
|
681
543
|
* A wrapper component for Angular Material dialogs that provides a consistent look and feel,
|
|
682
544
|
* including a draggable header and the ability to dynamically create components inside the dialog.
|
|
@@ -742,7 +604,7 @@ declare class DynamicSelect implements OnInit, OnDestroy {
|
|
|
742
604
|
clearable: _angular_core.InputSignal<boolean>;
|
|
743
605
|
searchable: _angular_core.InputSignal<boolean>;
|
|
744
606
|
virtualScroll: _angular_core.InputSignal<boolean>;
|
|
745
|
-
dropdownPosition: _angular_core.InputSignal<"auto" | "
|
|
607
|
+
dropdownPosition: _angular_core.InputSignal<"auto" | "bottom" | "top">;
|
|
746
608
|
closeOnSelect: _angular_core.InputSignal<boolean>;
|
|
747
609
|
hideSelected: _angular_core.InputSignal<boolean>;
|
|
748
610
|
multiple: _angular_core.InputSignal<boolean>;
|
|
@@ -913,7 +775,7 @@ declare class Button {
|
|
|
913
775
|
text: _angular_core.InputSignal<string>;
|
|
914
776
|
icon: _angular_core.InputSignal<string>;
|
|
915
777
|
disabled: _angular_core.InputSignal<boolean>;
|
|
916
|
-
type: _angular_core.InputSignal<ButtonType
|
|
778
|
+
type: _angular_core.InputSignal<ButtonType>;
|
|
917
779
|
matStyle: _angular_core.InputSignal<MaterialButtonStyle>;
|
|
918
780
|
customClass: _angular_core.InputSignal<string | undefined>;
|
|
919
781
|
reportFormat: _angular_core.InputSignal<REPORT_FORMAT | undefined>;
|
|
@@ -1401,22 +1263,176 @@ declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
|
|
|
1401
1263
|
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
1264
|
}
|
|
1403
1265
|
|
|
1404
|
-
declare class
|
|
1266
|
+
declare class AcpGridSelectableCell {
|
|
1405
1267
|
ctrlKeyPressed: boolean;
|
|
1406
1268
|
shiftKeyPressed: boolean;
|
|
1407
1269
|
get selected(): boolean;
|
|
1408
1270
|
private _selected;
|
|
1409
|
-
cellSelectable:
|
|
1410
|
-
cellSelectedChange:
|
|
1271
|
+
cellSelectable: boolean;
|
|
1272
|
+
cellSelectedChange: EventEmitter<AcpGridSelectableCell>;
|
|
1411
1273
|
onClick(event: MouseEvent): void;
|
|
1412
1274
|
select(): void;
|
|
1413
1275
|
deselect(): void;
|
|
1414
1276
|
toggle(): void;
|
|
1415
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1416
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<
|
|
1277
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridSelectableCell, never>;
|
|
1278
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpGridSelectableCell, "[acpGridSelectableCell]", never, { "cellSelectable": { "alias": "cellSelectable"; "required": false; }; }, { "cellSelectedChange": "cellSelectedChange"; }, never, never, true, never>;
|
|
1417
1279
|
}
|
|
1418
1280
|
|
|
1419
|
-
|
|
1281
|
+
/** Indicates the width of a column. */
|
|
1282
|
+
interface ColumnSize {
|
|
1283
|
+
/** The ID/name of the column, as defined in CdkColumnDef. */
|
|
1284
|
+
readonly columnId: string;
|
|
1285
|
+
/** The width in pixels of the column. */
|
|
1286
|
+
readonly size: number;
|
|
1287
|
+
/** The width in pixels of the column prior to this update, if known. */
|
|
1288
|
+
readonly previousSize?: number;
|
|
1289
|
+
}
|
|
1290
|
+
/** Interface describing column size changes. */
|
|
1291
|
+
interface ColumnSizeAction extends ColumnSize {
|
|
1292
|
+
/**
|
|
1293
|
+
* Whether the resize action should be applied instantaneously. False for events triggered during
|
|
1294
|
+
* a UI-triggered resize (such as with the mouse) until the mouse button is released. True
|
|
1295
|
+
* for all programmatically triggered resizes.
|
|
1296
|
+
*/
|
|
1297
|
+
readonly completeImmediately?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Whether the resize action is being applied to a sticky/stickyEnd column.
|
|
1300
|
+
*/
|
|
1301
|
+
readonly isStickyColumn?: boolean;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Originating source of column resize events within a table.
|
|
1305
|
+
* @docs-private
|
|
1306
|
+
*/
|
|
1307
|
+
declare class ColumnResizeNotifierSource {
|
|
1308
|
+
/** Emits when an in-progress resize is canceled. */
|
|
1309
|
+
readonly resizeCanceled: Subject<ColumnSizeAction>;
|
|
1310
|
+
/** Emits when a resize is applied. */
|
|
1311
|
+
readonly resizeCompleted: Subject<ColumnSize>;
|
|
1312
|
+
/** Triggers a resize action. */
|
|
1313
|
+
readonly triggerResize: Subject<ColumnSizeAction>;
|
|
1314
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifierSource, never>;
|
|
1315
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifierSource>;
|
|
1316
|
+
}
|
|
1317
|
+
/** Service for triggering column resizes imperatively or being notified of them. */
|
|
1318
|
+
declare class ColumnResizeNotifier {
|
|
1319
|
+
private readonly _source;
|
|
1320
|
+
/** Emits whenever a column is resized. */
|
|
1321
|
+
readonly resizeCompleted: Observable<ColumnSize>;
|
|
1322
|
+
/** Instantly resizes the specified column. */
|
|
1323
|
+
resize(columnId: string, size: number): void;
|
|
1324
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
|
|
1325
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColumnResizeNotifier>;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/** Coordinates events between the column resize directives. */
|
|
1329
|
+
declare class HeaderRowEventDispatcher {
|
|
1330
|
+
private readonly _ngZone;
|
|
1331
|
+
/**
|
|
1332
|
+
* Emits the currently hovered header cell or null when no header cells are hovered.
|
|
1333
|
+
* Exposed publicly for events to feed in, but subscribers should use headerCellHoveredDistinct,
|
|
1334
|
+
* defined below.
|
|
1335
|
+
*/
|
|
1336
|
+
readonly headerCellHovered: Subject<Element | null>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Emits the header cell for which a user-triggered resize is active or null
|
|
1339
|
+
* when no resize is in progress.
|
|
1340
|
+
*/
|
|
1341
|
+
readonly overlayHandleActiveForCell: Subject<Element | null>;
|
|
1342
|
+
/** Distinct and shared version of headerCellHovered. */
|
|
1343
|
+
readonly headerCellHoveredDistinct: Observable<Element | null>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Emits the header that is currently hovered or hosting an active resize event (with active
|
|
1346
|
+
* taking precedence).
|
|
1347
|
+
*/
|
|
1348
|
+
readonly headerRowHoveredOrActiveDistinct: Observable<Element | null>;
|
|
1349
|
+
private readonly _headerRowHoveredOrActiveDistinctReenterZone;
|
|
1350
|
+
private _lastSeenRow;
|
|
1351
|
+
private _lastSeenRowHover;
|
|
1352
|
+
/**
|
|
1353
|
+
* Emits whether the specified row should show its overlay controls.
|
|
1354
|
+
* Emission occurs within the NgZone.
|
|
1355
|
+
*/
|
|
1356
|
+
resizeOverlayVisibleForHeaderRow(row: Element): Observable<boolean>;
|
|
1357
|
+
private _enterZone;
|
|
1358
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderRowEventDispatcher, never>;
|
|
1359
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<HeaderRowEventDispatcher>;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Base class for ColumnResize directives which attach to mat-table elements to
|
|
1364
|
+
* provide common events and services for column resizing.
|
|
1365
|
+
*/
|
|
1366
|
+
declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
|
|
1367
|
+
private _renderer;
|
|
1368
|
+
private _eventCleanups;
|
|
1369
|
+
protected readonly destroyed: Subject<void>;
|
|
1370
|
+
abstract readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
1371
|
+
abstract readonly elementRef: ElementRef<HTMLElement>;
|
|
1372
|
+
protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
1373
|
+
protected abstract readonly ngZone: NgZone;
|
|
1374
|
+
protected abstract readonly notifier: ColumnResizeNotifierSource;
|
|
1375
|
+
/** Unique ID for this table instance. */
|
|
1376
|
+
protected readonly selectorId: string;
|
|
1377
|
+
/** The id attribute of the table, if specified. */
|
|
1378
|
+
id?: string;
|
|
1379
|
+
/** @docs-private Whether a call to updateStickyColumnStyles is pending after a resize. */
|
|
1380
|
+
_flushPending: boolean;
|
|
1381
|
+
/**
|
|
1382
|
+
* Whether to update the column's width continuously as the mouse position
|
|
1383
|
+
* changes, or to wait until mouseup to apply the new size.
|
|
1384
|
+
*/
|
|
1385
|
+
liveResizeUpdates: boolean;
|
|
1386
|
+
ngAfterViewInit(): void;
|
|
1387
|
+
ngOnDestroy(): void;
|
|
1388
|
+
/** Gets the unique CSS class name for this table instance. */
|
|
1389
|
+
getUniqueCssClass(): string;
|
|
1390
|
+
/** Gets the ID for this table used for column size persistance. */
|
|
1391
|
+
getTableId(): string;
|
|
1392
|
+
/** Called when a column in the table is resized. Applies a css class to the table element. */
|
|
1393
|
+
setResized(): void;
|
|
1394
|
+
private _listenForRowHoverEvents;
|
|
1395
|
+
private _listenForResizeActivity;
|
|
1396
|
+
private _listenForHoverActivity;
|
|
1397
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnResize, never>;
|
|
1398
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColumnResize, never, never, { "liveResizeUpdates": { "alias": "liveResizeUpdates"; "required": false; }; }, {}, never, never, true, never>;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
declare class AcpGridColumnMenu {
|
|
1402
|
+
menuPanel: MatMenu;
|
|
1403
|
+
menuTrigger: MatMenuTrigger;
|
|
1404
|
+
columns: DataGridColumn[];
|
|
1405
|
+
selectable: boolean;
|
|
1406
|
+
selectableChecked: 'show' | 'hide';
|
|
1407
|
+
sortable: boolean;
|
|
1408
|
+
pinnable: boolean;
|
|
1409
|
+
get buttonText(): string;
|
|
1410
|
+
set buttonText(value: string);
|
|
1411
|
+
private _buttonText;
|
|
1412
|
+
buttonType: DataGridButtonType;
|
|
1413
|
+
buttonColor: ThemePalette;
|
|
1414
|
+
buttonClass: string;
|
|
1415
|
+
buttonIcon: string;
|
|
1416
|
+
buttonFontIcon: string;
|
|
1417
|
+
buttonSvgIcon: string;
|
|
1418
|
+
showHeader: boolean;
|
|
1419
|
+
headerText: string;
|
|
1420
|
+
headerTemplate: TemplateRef<any>;
|
|
1421
|
+
showFooter: boolean;
|
|
1422
|
+
footerText: string;
|
|
1423
|
+
footerTemplate: TemplateRef<any>;
|
|
1424
|
+
columnChange: EventEmitter<DataGridColumn<any>[]>;
|
|
1425
|
+
get pinOptions(): DataGridColumnPinOption[];
|
|
1426
|
+
set pinOptions(value: DataGridColumnPinOption[]);
|
|
1427
|
+
private _pinOptions;
|
|
1428
|
+
_handleDroped(e: CdkDragDrop<string[]>): void;
|
|
1429
|
+
_handleChecked(col: DataGridColumn): void;
|
|
1430
|
+
_handlePinSelect(col: DataGridColumn, val: DataGridColumnPinValue): void;
|
|
1431
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridColumnMenu, never>;
|
|
1432
|
+
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>;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare class AcpGridExpansionToggle {
|
|
1420
1436
|
private _opened;
|
|
1421
1437
|
private _row;
|
|
1422
1438
|
private _tplRef;
|
|
@@ -1425,148 +1441,298 @@ declare class DataGridExpansionToggle {
|
|
|
1425
1441
|
openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
1426
1442
|
set expandableRow(value: any);
|
|
1427
1443
|
set expansionRowTpl(value: TemplateRef<any>);
|
|
1428
|
-
toggleChange: _angular_core.OutputEmitterRef<
|
|
1444
|
+
toggleChange: _angular_core.OutputEmitterRef<AcpGridExpansionToggle>;
|
|
1429
1445
|
onClick(event: MouseEvent): void;
|
|
1430
1446
|
toggle(): void;
|
|
1431
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1432
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<
|
|
1447
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpGridExpansionToggle, never>;
|
|
1448
|
+
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
1449
|
}
|
|
1434
1450
|
|
|
1435
1451
|
declare const DATA_GRID_DEFAULT_OPTIONS: InjectionToken<DataGridDefaultOptions>;
|
|
1436
|
-
declare class DataGrid
|
|
1452
|
+
declare class DataGrid implements AfterViewInit, OnChanges {
|
|
1453
|
+
size: _angular_core.InputSignal<"normal" | "small" | "medium">;
|
|
1437
1454
|
protected _animationsDisabled: boolean;
|
|
1438
1455
|
private _utils;
|
|
1456
|
+
private _changeDetectorRef;
|
|
1439
1457
|
private _defaultOptions;
|
|
1440
|
-
private _keyboardNavService;
|
|
1441
|
-
private _destroy$;
|
|
1442
|
-
paginator: _angular_core.Signal<MatPaginator | undefined>;
|
|
1443
1458
|
table: MatTable<any>;
|
|
1444
|
-
|
|
1459
|
+
paginator: MatPaginator;
|
|
1445
1460
|
sort: MatSort;
|
|
1446
|
-
tableContainer: ElementRef<HTMLDivElement>;
|
|
1447
1461
|
rowDefs: QueryList<MatRowDef<any>>;
|
|
1448
1462
|
headerRowDefs: QueryList<MatHeaderRowDef>;
|
|
1449
1463
|
footerRowDefs: QueryList<MatFooterRowDef>;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1464
|
+
columnResize?: ColumnResize;
|
|
1465
|
+
columnMenu: AcpGridColumnMenu;
|
|
1466
|
+
tableContainer: ElementRef<HTMLDivElement>;
|
|
1467
|
+
dataSource: MatTableDataSource<unknown, MatPaginator>;
|
|
1468
|
+
/** The grid's displayed columns. */
|
|
1469
|
+
displayedColumns: string[];
|
|
1470
|
+
/** The grid's columns. */
|
|
1471
|
+
columns: DataGridColumn[];
|
|
1472
|
+
/** The grid's data. */
|
|
1473
|
+
data: any[];
|
|
1474
|
+
/** The total number of the data. */
|
|
1475
|
+
length: number;
|
|
1476
|
+
/** Whether the grid is loading. */
|
|
1477
|
+
loading: boolean;
|
|
1478
|
+
/** Tracking function that will be used to check the differences in data changes. */
|
|
1479
|
+
trackBy: TrackByFunction<any>;
|
|
1480
|
+
/** Whether the column is resizable. */
|
|
1481
|
+
columnResizable: boolean;
|
|
1482
|
+
/** Placeholder for the empty value (`null`, `''`, `[]`). */
|
|
1483
|
+
emptyValuePlaceholder: string;
|
|
1484
|
+
/** Whether to paginate the data on front end. */
|
|
1485
|
+
pageOnFront: boolean;
|
|
1486
|
+
/** Whether to show the paginator. */
|
|
1487
|
+
showPaginator: boolean;
|
|
1488
|
+
/** Whether the paginator is disabled. */
|
|
1489
|
+
pageDisabled: boolean;
|
|
1490
|
+
/** Whether to show the first/last buttons UI to the user. */
|
|
1491
|
+
showFirstLastButtons: boolean;
|
|
1492
|
+
/** The zero-based page index of the displayed list of items. */
|
|
1493
|
+
pageIndex: number;
|
|
1494
|
+
/** Number of items to display on a page. */
|
|
1495
|
+
pageSize: number;
|
|
1496
|
+
/** The set of provided page size options to display to the user. */
|
|
1497
|
+
pageSizeOptions: number[];
|
|
1498
|
+
/** Whether to hide the page size selection UI from the user. */
|
|
1499
|
+
hidePageSize: boolean;
|
|
1500
|
+
/** Event emitted when the paginator changes the page size or page index. */
|
|
1501
|
+
page: EventEmitter<PageEvent>;
|
|
1502
|
+
/** The template for the pagination. */
|
|
1503
|
+
paginationTemplate: TemplateRef<any>;
|
|
1504
|
+
/** Whether to sort the data on front end. */
|
|
1505
|
+
sortOnFront: boolean;
|
|
1506
|
+
/** The id of the most recently sorted MatSortable. */
|
|
1507
|
+
sortActive: string;
|
|
1508
|
+
/** The sort direction of the currently active MatSortable. */
|
|
1509
|
+
sortDirection: SortDirection;
|
|
1510
|
+
/**
|
|
1511
|
+
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
1512
|
+
* May be overriden by the column's `disableClear` in `sortProp`.
|
|
1513
|
+
*/
|
|
1514
|
+
sortDisableClear: boolean;
|
|
1515
|
+
/** Whether the sort is disabled. */
|
|
1516
|
+
sortDisabled: boolean;
|
|
1517
|
+
/**
|
|
1518
|
+
* The direction to set when an MatSortable is initially sorted.
|
|
1519
|
+
* May be overriden by the column's `start` in `sortProp`.
|
|
1520
|
+
*/
|
|
1521
|
+
sortStart: 'asc' | 'desc';
|
|
1522
|
+
/** Event emitted when the user changes either the active sort or sort direction. */
|
|
1523
|
+
sortChange: EventEmitter<Sort>;
|
|
1524
|
+
/** Whether to use the row hover style. */
|
|
1525
|
+
rowHover: boolean;
|
|
1526
|
+
/** Whether to use the row striped style. */
|
|
1527
|
+
rowStriped: boolean;
|
|
1528
|
+
/** Event emitted when the user clicks the row. */
|
|
1529
|
+
rowClick: EventEmitter<any>;
|
|
1530
|
+
/** Event emitted when the user attempts to open a context menu. */
|
|
1531
|
+
rowContextMenu: EventEmitter<any>;
|
|
1532
|
+
expansionRowStates: any[];
|
|
1533
|
+
/** Whether the row is expandable. */
|
|
1534
|
+
expandable: boolean;
|
|
1535
|
+
/** The template for the expandable row. */
|
|
1536
|
+
expansionTemplate: TemplateRef<any>;
|
|
1537
|
+
/** Event emitted when the user toggles the expandable row. */
|
|
1538
|
+
expansionChange: EventEmitter<any>;
|
|
1470
1539
|
closeOthersOnExpand: _angular_core.InputSignal<boolean>;
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1540
|
+
rowSelection: SelectionModel<any>;
|
|
1541
|
+
/** Whether to support multiple row/cell selection. */
|
|
1542
|
+
multiSelectable: boolean;
|
|
1543
|
+
/** Whether the user can select multiple rows with click. */
|
|
1544
|
+
multiSelectionWithClick: boolean;
|
|
1545
|
+
/** Whether the row is selectable. */
|
|
1546
|
+
rowSelectable: boolean;
|
|
1547
|
+
/** Whether to hide the row selection checkbox. */
|
|
1548
|
+
hideRowSelectionCheckbox: boolean;
|
|
1549
|
+
/** Whether disable rows to be selected when clicked. */
|
|
1550
|
+
disableRowClickSelection: boolean;
|
|
1551
|
+
/** The formatter to disable the row selection or hide the row's checkbox. */
|
|
1552
|
+
rowSelectionFormatter: DataGridRowSelectionFormatter;
|
|
1553
|
+
/** The formatter to set the row's class. */
|
|
1554
|
+
rowClassFormatter?: DataGridRowClassFormatter;
|
|
1555
|
+
/** The selected row items. */
|
|
1556
|
+
rowSelected: any[];
|
|
1557
|
+
/** Event emitted when the row is selected. */
|
|
1558
|
+
rowSelectedChange: EventEmitter<any[]>;
|
|
1559
|
+
checkboxKeyDown: EventEmitter<KeyboardEvent>;
|
|
1560
|
+
checkboxKeyUp: EventEmitter<KeyboardEvent>;
|
|
1561
|
+
checkboxKeyPress: EventEmitter<KeyboardEvent>;
|
|
1562
|
+
rowKeyDown: EventEmitter<{
|
|
1563
|
+
event: KeyboardEvent;
|
|
1564
|
+
row: Record<string, any>;
|
|
1565
|
+
index: number;
|
|
1566
|
+
}>;
|
|
1567
|
+
rowKeyUp: EventEmitter<{
|
|
1568
|
+
event: KeyboardEvent;
|
|
1569
|
+
row: Record<string, any>;
|
|
1570
|
+
index: number;
|
|
1571
|
+
}>;
|
|
1572
|
+
rowKeyPress: EventEmitter<{
|
|
1573
|
+
event: KeyboardEvent;
|
|
1574
|
+
row: Record<string, any>;
|
|
1575
|
+
index: number;
|
|
1576
|
+
}>;
|
|
1577
|
+
cellSelection: any[];
|
|
1578
|
+
/** Whether the cell is selectable. */
|
|
1579
|
+
cellSelectable: boolean;
|
|
1580
|
+
/** Event emitted when the cell is selected. */
|
|
1581
|
+
cellSelectedChange: EventEmitter<any[]>;
|
|
1582
|
+
private _selectedCell?;
|
|
1583
|
+
/** Whether to show the toolbar. */
|
|
1584
|
+
showToolbar: boolean;
|
|
1585
|
+
/** The text of the toolbar's title. */
|
|
1586
|
+
toolbarTitle: string;
|
|
1587
|
+
/** The template for the toolbar. */
|
|
1588
|
+
toolbarTemplate: TemplateRef<any>;
|
|
1589
|
+
/** Whether the column is hideable. */
|
|
1590
|
+
columnHideable: boolean;
|
|
1591
|
+
/** Hide or show when the column's checkbox is checked. */
|
|
1592
|
+
columnHideableChecked: 'show' | 'hide';
|
|
1593
|
+
/** Whether the column is sortable. */
|
|
1594
|
+
columnSortable: boolean;
|
|
1595
|
+
/** Whether the column is pinnable. */
|
|
1596
|
+
columnPinnable: boolean;
|
|
1597
|
+
/** Event emitted when the column is hided or is sorted. */
|
|
1598
|
+
columnChange: EventEmitter<DataGridColumn<any>[]>;
|
|
1599
|
+
/** The options for the column pin list. */
|
|
1600
|
+
columnPinOptions: DataGridColumnPinOption[];
|
|
1601
|
+
/** Whether to show the column menu button. */
|
|
1602
|
+
showColumnMenuButton: boolean;
|
|
1603
|
+
/** The text for the column menu button. */
|
|
1604
|
+
columnMenuButtonText: string;
|
|
1605
|
+
/** The type for the column menu button. */
|
|
1606
|
+
columnMenuButtonType: DataGridButtonType;
|
|
1607
|
+
/** The color for the column menu button. */
|
|
1608
|
+
columnMenuButtonColor: ThemePalette;
|
|
1609
|
+
/** The class for the column menu button. */
|
|
1610
|
+
columnMenuButtonClass: string;
|
|
1611
|
+
/** The icon for the column menu button. */
|
|
1612
|
+
columnMenuButtonIcon: string;
|
|
1613
|
+
/** The font icon for the column menu button. */
|
|
1614
|
+
columnMenuButtonFontIcon: string;
|
|
1615
|
+
/** The svg icon for the column menu button. */
|
|
1616
|
+
columnMenuButtonSvgIcon: string;
|
|
1617
|
+
/** Whether to show the column-menu's header. */
|
|
1618
|
+
showColumnMenuHeader: boolean;
|
|
1619
|
+
/** The text for the column-menu's header. */
|
|
1620
|
+
columnMenuHeaderText: string;
|
|
1621
|
+
/** The template for the column-menu's header. */
|
|
1622
|
+
columnMenuHeaderTemplate: TemplateRef<any>;
|
|
1623
|
+
/** Whether to show the the column-menu's footer. */
|
|
1624
|
+
showColumnMenuFooter: boolean;
|
|
1625
|
+
/** The text for the column-menu's footer. */
|
|
1626
|
+
columnMenuFooterText: string;
|
|
1627
|
+
/** The template for the column-menu's footer. */
|
|
1628
|
+
columnMenuFooterTemplate: TemplateRef<any>;
|
|
1629
|
+
/** The displayed text for the empty data. */
|
|
1630
|
+
noResultText: string;
|
|
1631
|
+
/** The template for the empty data. */
|
|
1632
|
+
noResultTemplate: TemplateRef<any>;
|
|
1482
1633
|
keyboardNavigation: _angular_core.InputSignal<boolean>;
|
|
1483
|
-
focusedRowIndex: _angular_core.Signal<number>;
|
|
1484
1634
|
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
1635
|
focusedRowChange: _angular_core.OutputEmitterRef<{
|
|
1521
|
-
row:
|
|
1636
|
+
row: any;
|
|
1522
1637
|
index: number;
|
|
1523
1638
|
}>;
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1639
|
+
get _hasNoResult(): boolean;
|
|
1640
|
+
/** The header's cell template for the grid. */
|
|
1641
|
+
headerTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1642
|
+
/** The header's cell template for the grid exclude sort. */
|
|
1643
|
+
headerExtraTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1644
|
+
/** The cell template for the grid. */
|
|
1645
|
+
cellTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1646
|
+
/** Whether to use custom row template. If true, you should define a matRowDef. */
|
|
1647
|
+
useContentRowTemplate: boolean;
|
|
1648
|
+
useContentHeaderRowTemplate: boolean;
|
|
1649
|
+
useContentFooterRowTemplate: boolean;
|
|
1650
|
+
/** Whether to show the summary. */
|
|
1651
|
+
showSummary: boolean;
|
|
1652
|
+
/** The template for the summary. */
|
|
1653
|
+
summaryTemplate: TemplateRef<any> | DataGridCellTemplate;
|
|
1654
|
+
get _whetherShowSummary(): boolean;
|
|
1655
|
+
/** Whether to show the sidebar. */
|
|
1656
|
+
showSidebar: boolean;
|
|
1657
|
+
/** The template for the sidebar. */
|
|
1658
|
+
sidebarTemplate: TemplateRef<any>;
|
|
1659
|
+
/** Whether to show the status bar. */
|
|
1660
|
+
showStatusbar: boolean;
|
|
1661
|
+
/** The template for the status bar. */
|
|
1662
|
+
statusbarTemplate: TemplateRef<any>;
|
|
1663
|
+
/** The changed record of row data. */
|
|
1527
1664
|
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;
|
|
1665
|
+
detectChanges(): void;
|
|
1666
|
+
_getColData(data: any[], colDef: DataGridColumn): any[];
|
|
1667
|
+
_isColumnHide(item: DataGridColumn): boolean;
|
|
1558
1668
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1669
|
+
ngAfterViewInit(): void;
|
|
1670
|
+
_countPinnedPosition(): void;
|
|
1671
|
+
_getIndex(index: number | undefined, dataIndex: number): number;
|
|
1672
|
+
_onSortChange(sort: Sort): void;
|
|
1673
|
+
_onRowDataChange(record: KeyValueChangeRecord<string, any>): void;
|
|
1674
|
+
/** Expansion change event */
|
|
1675
|
+
_onExpansionChange(expansionRef: AcpGridExpansionToggle, rowData: Record<string, any>, column: DataGridColumn, index: number): void;
|
|
1676
|
+
/** Cell select event */
|
|
1677
|
+
_selectCell(cellRef: AcpGridSelectableCell, rowData: Record<string, any>, colDef: DataGridColumn): void;
|
|
1678
|
+
/** Row select event */
|
|
1679
|
+
_selectRow(event: MouseEvent, rowData: Record<string, any>, index: number): void;
|
|
1680
|
+
/** Whether the number of selected elements matches the total number of rows. */
|
|
1681
|
+
_isAllSelected(): boolean;
|
|
1682
|
+
/** Select all rows if they are not all selected; otherwise clear selection. */
|
|
1683
|
+
_toggleMasterCheckbox(): void;
|
|
1684
|
+
/** Select normal row */
|
|
1685
|
+
_toggleNormalCheckbox(row: Record<string, any>): void;
|
|
1686
|
+
_onCheckboxKeyDown(event: KeyboardEvent): void;
|
|
1687
|
+
_onCheckboxKeyUp(event: KeyboardEvent): void;
|
|
1688
|
+
_onCheckboxKeyPress(event: KeyboardEvent): void;
|
|
1689
|
+
_onRowKeyDown(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1690
|
+
_onRowKeyUp(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1691
|
+
_onRowKeyPress(event: KeyboardEvent, row: Record<string, any>, index: number): void;
|
|
1692
|
+
/** Column change event */
|
|
1693
|
+
_onColumnChange(columns: DataGridColumn[]): void;
|
|
1694
|
+
getDisplayedColumnFields(columns: DataGridColumn[]): string[];
|
|
1695
|
+
/** Customize expansion event */
|
|
1696
|
+
toggleExpansion(index: number): any;
|
|
1697
|
+
/** Scroll to top when turn to the next page. */
|
|
1698
|
+
_onPage(e: PageEvent): void;
|
|
1562
1699
|
scrollTop(value?: number): number | void;
|
|
1563
1700
|
scrollLeft(value?: number): number | void;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
static
|
|
1569
|
-
static
|
|
1701
|
+
_contextmenu(event: MouseEvent, rowData: Record<string, any>, index: number): void;
|
|
1702
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGrid, never>;
|
|
1703
|
+
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>;
|
|
1704
|
+
static ngAcceptInputType_loading: unknown;
|
|
1705
|
+
static ngAcceptInputType_columnResizable: unknown;
|
|
1706
|
+
static ngAcceptInputType_pageOnFront: unknown;
|
|
1707
|
+
static ngAcceptInputType_showPaginator: unknown;
|
|
1708
|
+
static ngAcceptInputType_pageDisabled: unknown;
|
|
1709
|
+
static ngAcceptInputType_showFirstLastButtons: unknown;
|
|
1710
|
+
static ngAcceptInputType_hidePageSize: unknown;
|
|
1711
|
+
static ngAcceptInputType_sortOnFront: unknown;
|
|
1712
|
+
static ngAcceptInputType_sortDisableClear: unknown;
|
|
1713
|
+
static ngAcceptInputType_sortDisabled: unknown;
|
|
1714
|
+
static ngAcceptInputType_rowHover: unknown;
|
|
1715
|
+
static ngAcceptInputType_rowStriped: unknown;
|
|
1716
|
+
static ngAcceptInputType_expandable: unknown;
|
|
1717
|
+
static ngAcceptInputType_multiSelectable: unknown;
|
|
1718
|
+
static ngAcceptInputType_multiSelectionWithClick: unknown;
|
|
1719
|
+
static ngAcceptInputType_rowSelectable: unknown;
|
|
1720
|
+
static ngAcceptInputType_hideRowSelectionCheckbox: unknown;
|
|
1721
|
+
static ngAcceptInputType_disableRowClickSelection: unknown;
|
|
1722
|
+
static ngAcceptInputType_cellSelectable: unknown;
|
|
1723
|
+
static ngAcceptInputType_showToolbar: unknown;
|
|
1724
|
+
static ngAcceptInputType_columnHideable: unknown;
|
|
1725
|
+
static ngAcceptInputType_columnSortable: unknown;
|
|
1726
|
+
static ngAcceptInputType_columnPinnable: unknown;
|
|
1727
|
+
static ngAcceptInputType_showColumnMenuButton: unknown;
|
|
1728
|
+
static ngAcceptInputType_showColumnMenuHeader: unknown;
|
|
1729
|
+
static ngAcceptInputType_showColumnMenuFooter: unknown;
|
|
1730
|
+
static ngAcceptInputType_useContentRowTemplate: unknown;
|
|
1731
|
+
static ngAcceptInputType_useContentHeaderRowTemplate: unknown;
|
|
1732
|
+
static ngAcceptInputType_useContentFooterRowTemplate: unknown;
|
|
1733
|
+
static ngAcceptInputType_showSummary: unknown;
|
|
1734
|
+
static ngAcceptInputType_showSidebar: unknown;
|
|
1735
|
+
static ngAcceptInputType_showStatusbar: unknown;
|
|
1570
1736
|
}
|
|
1571
1737
|
|
|
1572
1738
|
/**
|
|
@@ -2083,15 +2249,6 @@ declare class AcpDrawer implements OnDestroy {
|
|
|
2083
2249
|
* retention of the class and its directive metadata.
|
|
2084
2250
|
*/
|
|
2085
2251
|
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
2252
|
declare abstract class _AcpPopoverContentBase implements OnDestroy {
|
|
2096
2253
|
private _template;
|
|
2097
2254
|
private _appRef;
|
|
@@ -2105,39 +2262,22 @@ declare abstract class _AcpPopoverContentBase implements OnDestroy {
|
|
|
2105
2262
|
readonly _attached: Subject<void>;
|
|
2106
2263
|
/**
|
|
2107
2264
|
* Attaches the content with a particular context.
|
|
2108
|
-
* @param context Context data to pass to the template
|
|
2109
2265
|
* @docs-private
|
|
2110
2266
|
*/
|
|
2111
2267
|
attach(context?: any): void;
|
|
2112
2268
|
/**
|
|
2113
|
-
* Detaches the content
|
|
2269
|
+
* Detaches the content.
|
|
2114
2270
|
* @docs-private
|
|
2115
2271
|
*/
|
|
2116
2272
|
detach(): void;
|
|
2117
|
-
/**
|
|
2118
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2119
|
-
* Cleans up the portal outlet to prevent memory leaks.
|
|
2120
|
-
*/
|
|
2121
2273
|
ngOnDestroy(): void;
|
|
2122
2274
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<_AcpPopoverContentBase, never>;
|
|
2123
2275
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<_AcpPopoverContentBase, never, never, {}, {}, never, never, true, never>;
|
|
2124
2276
|
}
|
|
2125
2277
|
/**
|
|
2126
2278
|
* 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
2279
|
*/
|
|
2139
2280
|
declare class AcpPopoverContent extends _AcpPopoverContentBase {
|
|
2140
|
-
constructor();
|
|
2141
2281
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpPopoverContent, never>;
|
|
2142
2282
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AcpPopoverContent, "ng-template[acpPopoverContent]", never, {}, {}, never, never, true, never>;
|
|
2143
2283
|
}
|
|
@@ -2285,7 +2425,6 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2285
2425
|
private _elevationPrefix;
|
|
2286
2426
|
private _baseElevation;
|
|
2287
2427
|
private _exitFallbackTimeout;
|
|
2288
|
-
private _mouseleaveTimer;
|
|
2289
2428
|
/** Whether animations are currently disabled. */
|
|
2290
2429
|
protected _animationsDisabled: boolean;
|
|
2291
2430
|
/** Config object to be passed into the popover's class. */
|
|
@@ -2354,22 +2493,8 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2354
2493
|
*/
|
|
2355
2494
|
set panelClass(classes: string);
|
|
2356
2495
|
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
2496
|
/** Event emitted when the popover is closed. */
|
|
2367
2497
|
closed: EventEmitter<PopoverCloseReason>;
|
|
2368
|
-
/**
|
|
2369
|
-
* Programmatically closes the popover.
|
|
2370
|
-
* @param reason Optional reason for closing
|
|
2371
|
-
*/
|
|
2372
|
-
close(reason?: PopoverCloseReason): void;
|
|
2373
2498
|
/** @docs-private */
|
|
2374
2499
|
templateRef: TemplateRef<any>;
|
|
2375
2500
|
/**
|
|
@@ -2378,66 +2503,31 @@ declare class AcpPopover implements AcpPopoverPanel, OnInit, OnDestroy {
|
|
|
2378
2503
|
*/
|
|
2379
2504
|
lazyContent?: AcpPopoverContent;
|
|
2380
2505
|
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
2506
|
ngOnInit(): void;
|
|
2386
|
-
/**
|
|
2387
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2388
|
-
* Cleans up subscriptions and timers.
|
|
2389
|
-
*/
|
|
2390
2507
|
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
|
-
*/
|
|
2508
|
+
/** Handle a keyboard event from the popover, delegating to the appropriate action. */
|
|
2395
2509
|
_handleKeydown(event: KeyboardEvent): void;
|
|
2396
|
-
/**
|
|
2397
|
-
* Close popover on click if `closeOnPanelClick` is true.
|
|
2398
|
-
*/
|
|
2510
|
+
/** Close popover on click if `closeOnPanelClick` is true. */
|
|
2399
2511
|
_handleClick(): void;
|
|
2400
|
-
/**
|
|
2401
|
-
* Disables close of popover when leaving trigger element and mouse over the popover.
|
|
2402
|
-
*/
|
|
2512
|
+
/** Disables close of popover when leaving trigger element and mouse over the popover. */
|
|
2403
2513
|
_handleMouseOver(): void;
|
|
2404
|
-
/**
|
|
2405
|
-
* Enables close of popover when mouse leaving popover element.
|
|
2406
|
-
*/
|
|
2514
|
+
/** Enables close of popover when mouse leaving popover element. */
|
|
2407
2515
|
_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
|
-
*/
|
|
2516
|
+
/** Sets the current styles for the popover to allow for dynamically changing settings. */
|
|
2412
2517
|
setCurrentStyles(pos?: AcpPopoverPosition): void;
|
|
2413
2518
|
/**
|
|
2414
2519
|
* It's necessary to set position-based classes to ensure the popover panel animation
|
|
2415
2520
|
* folds out from the correct direction.
|
|
2416
|
-
* @param pos The position to set classes for, defaults to current position
|
|
2417
2521
|
*/
|
|
2418
2522
|
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
|
-
*/
|
|
2523
|
+
/** Sets the popover-panel's elevation. */
|
|
2423
2524
|
setElevation(): void;
|
|
2424
|
-
/**
|
|
2425
|
-
* Callback that is invoked when the panel animation completes.
|
|
2426
|
-
* @param state The animation state that completed
|
|
2427
|
-
*/
|
|
2525
|
+
/** Callback that is invoked when the panel animation completes. */
|
|
2428
2526
|
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
2527
|
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
2528
|
_setIsOpen(isOpen: boolean): void;
|
|
2439
2529
|
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; };
|
|
2530
|
+
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
2531
|
static ngAcceptInputType_hideArrow: unknown;
|
|
2442
2532
|
static ngAcceptInputType_closeOnPanelClick: unknown;
|
|
2443
2533
|
static ngAcceptInputType_closeOnBackdropClick: unknown;
|
|
@@ -2470,52 +2560,6 @@ declare class AcpPopoverTarget {
|
|
|
2470
2560
|
|
|
2471
2561
|
/** Injection token that determines the scroll handling while the popover is open. */
|
|
2472
2562
|
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
2563
|
declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
2520
2564
|
private _overlay;
|
|
2521
2565
|
private _elementRef;
|
|
@@ -2533,7 +2577,6 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2533
2577
|
private _closingActionsSubscription;
|
|
2534
2578
|
private _scrollStrategy;
|
|
2535
2579
|
private _mouseoverTimer;
|
|
2536
|
-
private _mouseleaveTimer;
|
|
2537
2580
|
_openedBy: Exclude<FocusOrigin, 'program' | null> | undefined;
|
|
2538
2581
|
/** References the popover instance that the trigger is associated with. */
|
|
2539
2582
|
get popover(): AcpPopoverPanel;
|
|
@@ -2549,39 +2592,18 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2549
2592
|
popoverOpened: EventEmitter<void>;
|
|
2550
2593
|
/** Event emitted when the associated popover is closed. */
|
|
2551
2594
|
popoverClosed: EventEmitter<void>;
|
|
2552
|
-
/**
|
|
2553
|
-
* Lifecycle hook called after content initialization.
|
|
2554
|
-
* Validates the popover reference and sets up initial configuration.
|
|
2555
|
-
*/
|
|
2556
2595
|
ngAfterContentInit(): void;
|
|
2557
|
-
/**
|
|
2558
|
-
* Lifecycle hook called when the component is destroyed.
|
|
2559
|
-
* Cleans up subscriptions and overlay references.
|
|
2560
|
-
*/
|
|
2561
2596
|
ngOnDestroy(): void;
|
|
2562
|
-
/**
|
|
2563
|
-
* Sets the current configuration for the popover.
|
|
2564
|
-
* Updates trigger event and applies current styles.
|
|
2565
|
-
*/
|
|
2566
2597
|
private _setCurrentConfig;
|
|
2567
2598
|
/** Whether the popover is open. */
|
|
2568
2599
|
get popoverOpen(): boolean;
|
|
2569
2600
|
/** The text direction of the containing app. */
|
|
2570
2601
|
get dir(): Direction;
|
|
2571
|
-
/**
|
|
2572
|
-
* Handles mouse click on the trigger.
|
|
2573
|
-
* @param _event The mouse event
|
|
2574
|
-
*/
|
|
2602
|
+
/** Handles mouse click on the trigger. */
|
|
2575
2603
|
_handleClick(_event: MouseEvent): void;
|
|
2576
|
-
/**
|
|
2577
|
-
* Handles mouse enter on the trigger.
|
|
2578
|
-
* @param _event The mouse event
|
|
2579
|
-
*/
|
|
2604
|
+
/** Handles mouse enter on the trigger. */
|
|
2580
2605
|
_handleMouseEnter(_event: MouseEvent): void;
|
|
2581
|
-
/**
|
|
2582
|
-
* Handles mouse leave on the trigger.
|
|
2583
|
-
* @param _event The mouse event
|
|
2584
|
-
*/
|
|
2606
|
+
/** Handles mouse leave on the trigger. */
|
|
2585
2607
|
_handleMouseLeave(_event: MouseEvent): void;
|
|
2586
2608
|
/** Handles mouse presses on the trigger. */
|
|
2587
2609
|
_handleMousedown(event: MouseEvent): void;
|
|
@@ -2593,11 +2615,6 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2593
2615
|
openPopover(): void;
|
|
2594
2616
|
/** Closes the popover. */
|
|
2595
2617
|
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
2618
|
/**
|
|
2602
2619
|
* Focuses the popover trigger.
|
|
2603
2620
|
* @param origin Source of the popover trigger's focus.
|
|
@@ -2611,7 +2628,7 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2611
2628
|
private _initPopover;
|
|
2612
2629
|
private _setIsPopoverOpen;
|
|
2613
2630
|
/**
|
|
2614
|
-
* This method checks that a valid instance of
|
|
2631
|
+
* This method checks that a valid instance of MdPopover has been passed into
|
|
2615
2632
|
* `acpPopoverTriggerFor`. If not, an exception is thrown.
|
|
2616
2633
|
*/
|
|
2617
2634
|
private _checkPopover;
|
|
@@ -2643,79 +2660,446 @@ declare class AcpPopoverTrigger implements AfterContentInit, OnDestroy {
|
|
|
2643
2660
|
/** Gets the portal that should be attached to the overlay. */
|
|
2644
2661
|
private _getPortal;
|
|
2645
2662
|
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>;
|
|
2663
|
+
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
2664
|
}
|
|
2648
2665
|
|
|
2666
|
+
declare const ACP_ACTIVE_DATE_DEBOUNCE = 100;
|
|
2667
|
+
declare enum ACP_DATE_OPTION_TYPE {
|
|
2668
|
+
DATE_DIFF = 1,
|
|
2669
|
+
LAST_MONTH = 2,
|
|
2670
|
+
THIS_MONTH = 3,
|
|
2671
|
+
YEAR_TO_DATE = 4,
|
|
2672
|
+
CUSTOM = 5,
|
|
2673
|
+
MONTH_TO_DATE = 6,
|
|
2674
|
+
WEEK_TO_DATE = 7
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
interface IAcpSelectDateOption {
|
|
2678
|
+
/**
|
|
2679
|
+
* Etiqueta mostrada en la lista desplegable para esta opción.
|
|
2680
|
+
* Ejemplo: "Últimos 7 días", "Hoy", "Personalizado".
|
|
2681
|
+
*/
|
|
2682
|
+
optionLabel: string;
|
|
2683
|
+
/**
|
|
2684
|
+
* Tipo de opción que indica cómo se determina la fecha.
|
|
2685
|
+
* Por defecto es DATE_DIFF si no se proporciona.
|
|
2686
|
+
*/
|
|
2687
|
+
optionType?: ACP_DATE_OPTION_TYPE;
|
|
2688
|
+
/**
|
|
2689
|
+
* Número de días de desplazamiento desde hoy.
|
|
2690
|
+
*
|
|
2691
|
+
* - Números positivos indican fechas futuras.
|
|
2692
|
+
* - Números negativos indican fechas pasadas.
|
|
2693
|
+
* - Se utiliza solo cuando optionType es DATE_DIFF y no hay callback.
|
|
2694
|
+
*
|
|
2695
|
+
* Ejemplo: -7 → "Últimos 7 días"
|
|
2696
|
+
*/
|
|
2697
|
+
dateDiff?: number;
|
|
2698
|
+
/**
|
|
2699
|
+
* Indica si esta opción está actualmente seleccionada.
|
|
2700
|
+
*/
|
|
2701
|
+
isSelected: boolean;
|
|
2702
|
+
/**
|
|
2703
|
+
* Indica si esta opción debe mostrarse en la lista desplegable.
|
|
2704
|
+
*/
|
|
2705
|
+
isVisible: boolean;
|
|
2706
|
+
/**
|
|
2707
|
+
* Función personalizada para calcular y retornar un DateRange.
|
|
2708
|
+
* Se utiliza cuando optionType requiere manejo especial más allá de dateDiff.
|
|
2709
|
+
*/
|
|
2710
|
+
callBackFunction?: () => DateRange<Date>;
|
|
2711
|
+
/**
|
|
2712
|
+
* Expresión de fecha-matemática/relativa opcional mostrada para el inicio del rango
|
|
2713
|
+
* cuando los inputs editables están habilitados (ej: `now-7d`).
|
|
2714
|
+
* Anula el valor derivado de `dateDiff`. Debe estar emparejada con {@link endExpr}.
|
|
2715
|
+
*/
|
|
2716
|
+
startExpr?: string;
|
|
2717
|
+
/**
|
|
2718
|
+
* Expresión de fecha-matemática/relativa opcional mostrada para el fin del rango
|
|
2719
|
+
* cuando los inputs editables están habilitados (ej: `now`).
|
|
2720
|
+
* Debe estar emparejada con {@link startExpr}.
|
|
2721
|
+
*/
|
|
2722
|
+
endExpr?: string;
|
|
2723
|
+
}
|
|
2649
2724
|
/**
|
|
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'.
|
|
2725
|
+
* Implementación por defecto de una opción de fecha seleccionable.
|
|
2726
|
+
* Proporciona valores por defecto para todos los campos.
|
|
2661
2727
|
*/
|
|
2662
|
-
declare
|
|
2728
|
+
declare class AcpSelectDateOption implements IAcpSelectDateOption {
|
|
2729
|
+
optionLabel: string;
|
|
2730
|
+
optionType: ACP_DATE_OPTION_TYPE;
|
|
2731
|
+
dateDiff: number;
|
|
2732
|
+
isSelected: boolean;
|
|
2733
|
+
isVisible: boolean;
|
|
2734
|
+
callBackFunction: () => DateRange<Date>;
|
|
2735
|
+
}
|
|
2663
2736
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
private sanitizer;
|
|
2737
|
+
declare class AcpDateRangeCalendar implements AfterViewInit {
|
|
2738
|
+
firstViewStartDate: _angular_core.WritableSignal<Date>;
|
|
2739
|
+
secondViewStartDate: _angular_core.WritableSignal<Date>;
|
|
2740
|
+
secondViewMinDate: _angular_core.WritableSignal<Date>;
|
|
2741
|
+
minDate: Date;
|
|
2742
|
+
maxDate: Date;
|
|
2743
|
+
/** Emits when the user changes the selection by clicking dates in the views. */
|
|
2744
|
+
selectedDatesChange: EventEmitter<DateRange<Date>>;
|
|
2745
|
+
firstCalendarView: MatCalendar<Date>;
|
|
2746
|
+
secondCalendarView: MatCalendar<Date>;
|
|
2747
|
+
private _selectedDates;
|
|
2748
|
+
private isAllowHoverEvent;
|
|
2749
|
+
private cdref;
|
|
2750
|
+
private el;
|
|
2679
2751
|
private renderer;
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2752
|
+
/**
|
|
2753
|
+
* Updates the selected date range and synchronizes both calendar views.
|
|
2754
|
+
*/
|
|
2755
|
+
set selectedDates(selectedDates: DateRange<Date> | null);
|
|
2756
|
+
get selectedDates(): DateRange<Date> | null;
|
|
2757
|
+
/**
|
|
2758
|
+
* Lifecycle hook that is called after Angular has fully initialized
|
|
2759
|
+
* the component's view (and child views).
|
|
2760
|
+
*
|
|
2761
|
+
* Used here to attach hover events and register active date change
|
|
2762
|
+
* listeners once the calendar views are available in the DOM.
|
|
2763
|
+
*/
|
|
2764
|
+
ngAfterViewInit(): void;
|
|
2765
|
+
/**
|
|
2766
|
+
* Handles month selection in the first view.
|
|
2767
|
+
*
|
|
2768
|
+
* @param event - Selected month date
|
|
2769
|
+
*/
|
|
2770
|
+
monthSelected(viewName: string): void;
|
|
2771
|
+
/**
|
|
2772
|
+
* Updates the selected date range when a date is clicked.
|
|
2773
|
+
*
|
|
2774
|
+
* @param date - Date clicked by the user
|
|
2775
|
+
*/
|
|
2776
|
+
updateDateRangeSelection(date: Date | null): void;
|
|
2777
|
+
/**
|
|
2778
|
+
* Registers event handlers for active date changes on both calendar views.
|
|
2779
|
+
*
|
|
2780
|
+
* This method overrides the default `activeDate` property setter of each
|
|
2781
|
+
* calendar view to ensure custom handlers are executed whenever the
|
|
2782
|
+
* active date changes.
|
|
2783
|
+
*/
|
|
2784
|
+
private registerActiveDateChangeEvents;
|
|
2785
|
+
/**
|
|
2786
|
+
* Handles the event when the active date of the first calendar view changes.
|
|
2787
|
+
*
|
|
2788
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2789
|
+
*/
|
|
2790
|
+
private onFirstViewActiveDateChange;
|
|
2791
|
+
/**
|
|
2792
|
+
* Handles the event when the active date of the second calendar view changes.
|
|
2793
|
+
*
|
|
2794
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2795
|
+
*/
|
|
2796
|
+
private onSecondViewActiveDateChange;
|
|
2797
|
+
/**
|
|
2798
|
+
* Handles the "next" navigation event for the first calendar view.
|
|
2799
|
+
*
|
|
2800
|
+
* @param currDate - The currently active date in the first calendar view.
|
|
2801
|
+
* @param force - Optional flag that can be used to enforce updates (not used in current logic).
|
|
2802
|
+
*/
|
|
2803
|
+
private handleFirstViewNextEvent;
|
|
2804
|
+
/**
|
|
2805
|
+
* Handles the "previous" navigation event for the first calendar view.
|
|
2806
|
+
*
|
|
2807
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2808
|
+
*/
|
|
2809
|
+
private handleFirstViewPrevEvent;
|
|
2810
|
+
/**
|
|
2811
|
+
* Checks whether the previous date is greater than the current date.
|
|
2812
|
+
*
|
|
2813
|
+
* @param activeDate - Object containing `previous` and `current` date values.
|
|
2814
|
+
* @returns `true` if the previous date is later than the current date, otherwise `false`.
|
|
2815
|
+
*/
|
|
2816
|
+
private isPrevious;
|
|
2817
|
+
/**
|
|
2818
|
+
* Attaches hover events to all date cells in the first view.
|
|
2819
|
+
*/
|
|
2820
|
+
private attachHoverEvent;
|
|
2821
|
+
/**
|
|
2822
|
+
* Removes active focus from the second view.
|
|
2823
|
+
*
|
|
2824
|
+
* @param classRef - Reference to this component
|
|
2825
|
+
*/
|
|
2826
|
+
private removeDefaultFocus;
|
|
2827
|
+
/**
|
|
2828
|
+
* Updates the selection range dynamically on hover.
|
|
2829
|
+
*
|
|
2830
|
+
* @param date - Hovered date
|
|
2831
|
+
*/
|
|
2832
|
+
private updateSelectionOnMouseHover;
|
|
2833
|
+
/**
|
|
2834
|
+
* Attaches hover events to given nodes to update range selection.
|
|
2835
|
+
*
|
|
2836
|
+
* @param nodes - Date cell nodes
|
|
2837
|
+
*/
|
|
2838
|
+
private addHoverEvents;
|
|
2839
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpDateRangeCalendar, never>;
|
|
2840
|
+
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>;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
interface AcpSelectedDateEvent {
|
|
2844
|
+
/** Rango de fechas seleccionado, o null si se limpió la selección. */
|
|
2845
|
+
range: DateRange<Date> | null;
|
|
2846
|
+
/** Opción de fecha seleccionada, o null si se limpió la selección. */
|
|
2847
|
+
selectedOption: IAcpSelectDateOption | null;
|
|
2848
|
+
/**
|
|
2849
|
+
* Expresión legible para el inicio del rango: la entrada del usuario (ej: `now-7d`)
|
|
2850
|
+
* cuando se edita, la forma relativa de una opción de diferencia de días,
|
|
2851
|
+
* o la fecha formateada absoluta. `null` cuando se limpia la selección.
|
|
2852
|
+
*/
|
|
2853
|
+
startExpr: string | null;
|
|
2854
|
+
/** Expresión legible para el fin del rango. Ver {@link startExpr}. */
|
|
2855
|
+
endExpr: string | null;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
declare class AcpDateRangeInput implements OnInit, AfterViewInit {
|
|
2859
|
+
isDateOptionList: boolean;
|
|
2860
|
+
isCustomRange: boolean;
|
|
2861
|
+
inputLabel: string;
|
|
2862
|
+
showClearButton: _angular_core.InputSignal<boolean>;
|
|
2863
|
+
showCalendarIcon: _angular_core.InputSignal<boolean>;
|
|
2864
|
+
showRangeRequired: _angular_core.InputSignal<boolean>;
|
|
2865
|
+
isRangeRequired: _angular_core.InputSignal<boolean>;
|
|
2866
|
+
staticOptionId: string;
|
|
2867
|
+
dynamicOptionId: string;
|
|
2868
|
+
calendarId: string;
|
|
2869
|
+
enableDefaultOptions: boolean;
|
|
2870
|
+
selectedDates: DateRange<Date> | null;
|
|
2871
|
+
dateFormat: string;
|
|
2872
|
+
isShowStaticDefaultOptions: boolean;
|
|
2873
|
+
hideDefaultOptions: boolean;
|
|
2874
|
+
cdkConnectedOverlayOffsetX: number;
|
|
2875
|
+
cdkConnectedOverlayOffsetY: number;
|
|
2876
|
+
listCdkConnectedOverlayOffsetY: number;
|
|
2877
|
+
listCdkConnectedOverlayOffsetX: number;
|
|
2878
|
+
selectedOptionIndex: number;
|
|
2879
|
+
displaySelectedLabel: boolean;
|
|
2880
|
+
/**
|
|
2881
|
+
* When true, the main input shows the human-readable expressions
|
|
2882
|
+
* (e.g. `now-7d - now`) instead of the absolute date range. If
|
|
2883
|
+
* `displaySelectedLabel` is also true, the label takes priority.
|
|
2884
|
+
*/
|
|
2885
|
+
displaySelectedExpression: boolean;
|
|
2886
|
+
/**
|
|
2887
|
+
* When true, the custom-range footer shows two editable Material inputs
|
|
2888
|
+
* (start / end) that accept dates in `dateFormat`, ISO 8601 durations
|
|
2889
|
+
* (`p7d`), or date math (`now-7d`). When false, a read-only label is shown.
|
|
2890
|
+
*/
|
|
2891
|
+
enableEditableDates: boolean;
|
|
2892
|
+
cdkConnectedOverlayPush: boolean;
|
|
2893
|
+
cdkConnectedOverlayPositions: never[];
|
|
2894
|
+
allowSingleDateSelection: boolean;
|
|
2895
|
+
/**
|
|
2896
|
+
* When true, automatically selects the preset option whose computed date range
|
|
2897
|
+
* matches the provided selectedDates (works with both default and custom options).
|
|
2898
|
+
* Falls back to "Custom Range" if no option matches.
|
|
2899
|
+
*/
|
|
2900
|
+
autoSelectOption: boolean;
|
|
2901
|
+
minDate: Date;
|
|
2902
|
+
maxDate: Date;
|
|
2903
|
+
dateSelectionChanged: _angular_core.OutputEmitterRef<AcpSelectedDateEvent>;
|
|
2904
|
+
dateListOptions: _angular_core.OutputEmitterRef<IAcpSelectDateOption[]>;
|
|
2905
|
+
rangeRequiredChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2906
|
+
private cdref;
|
|
2907
|
+
private el;
|
|
2908
|
+
calendar?: AcpDateRangeCalendar;
|
|
2909
|
+
private _dateOptions;
|
|
2910
|
+
visibleOptions: _angular_core.Signal<IAcpSelectDateOption[]>;
|
|
2911
|
+
/**
|
|
2912
|
+
* Reactive form backing the editable start/end inputs. Each control accepts
|
|
2913
|
+
* a `dateFormat` date, an ISO 8601 duration, or a date-math expression; the
|
|
2914
|
+
* group is invalid when either value is unparseable or start is after end.
|
|
2915
|
+
*/
|
|
2916
|
+
editableForm: FormGroup<{
|
|
2917
|
+
start: FormControl<string>;
|
|
2918
|
+
end: FormControl<string>;
|
|
2919
|
+
}>;
|
|
2920
|
+
private editableExpr;
|
|
2921
|
+
set dateDropDownOptions(defaultDateList: IAcpSelectDateOption[]);
|
|
2922
|
+
get dateDropDownOptions(): IAcpSelectDateOption[];
|
|
2687
2923
|
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;
|
|
2924
|
+
ngAfterViewInit(): void;
|
|
2709
2925
|
/**
|
|
2710
|
-
*
|
|
2711
|
-
*
|
|
2712
|
-
*
|
|
2926
|
+
* Alterna la visibilidad de la lista de opciones de fecha predeterminada.
|
|
2927
|
+
* Si el panel de rango personalizado está abierto, lo cierra en su lugar.
|
|
2928
|
+
* Si el dropdown ya está abierto y se hace clic en el input, no lo cierra.
|
|
2929
|
+
*
|
|
2930
|
+
* @param event MouseEvent opcional que activa el alternador.
|
|
2713
2931
|
*/
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2932
|
+
toggleRangeSelection(event: MouseEvent): void;
|
|
2933
|
+
toggleDateOptionSelectionList(event?: MouseEvent): void;
|
|
2934
|
+
/**
|
|
2935
|
+
* Actualiza la selección de rango de fecha personalizado desde la entrada.
|
|
2936
|
+
*
|
|
2937
|
+
* @param input El elemento de entrada HTML asociado con el selector de fecha.
|
|
2938
|
+
* @param selectedDates El rango de fechas seleccionado.
|
|
2939
|
+
*/
|
|
2940
|
+
updateCustomRange(input: HTMLInputElement, selectedDates: DateRange<Date> | null): void;
|
|
2941
|
+
/**
|
|
2942
|
+
* Actualiza la selección cuando se hace clic en una opción de fecha específica.
|
|
2943
|
+
*
|
|
2944
|
+
* @param option La opción de fecha seleccionada.
|
|
2945
|
+
* @param input El elemento de entrada HTML a actualizar con fechas seleccionadas.
|
|
2946
|
+
*/
|
|
2947
|
+
updateSelection(option: IAcpSelectDateOption, input: HTMLInputElement): void;
|
|
2948
|
+
/**
|
|
2949
|
+
* Re-emite la señal de opciones después de un cambio de selección en el lugar para que
|
|
2950
|
+
* las vistas OnPush (vinculadas a `visibleOptions` calculado) reflejen de manera confiable
|
|
2951
|
+
* el nuevo estado `isSelected` - la misma notificación que proporciona el `set` de señal inicial.
|
|
2952
|
+
*/
|
|
2953
|
+
private syncOptionSelection;
|
|
2954
|
+
/**
|
|
2955
|
+
* Alterna la visibilidad de la vista de selección de rango de fecha personalizado.
|
|
2956
|
+
*/
|
|
2957
|
+
toggleCustomDateRangeView(): void;
|
|
2958
|
+
/**
|
|
2959
|
+
* Analiza un único valor de entrada editable, aceptando una fecha `dateFormat`
|
|
2960
|
+
* o uno de los formatos humanos (duración ISO 8601, matemática de fecha).
|
|
2961
|
+
*
|
|
2962
|
+
* @param value - La cadena de entrada sin procesar.
|
|
2963
|
+
* @returns La fecha analizada, o `null` si no se puede analizar.
|
|
2964
|
+
*/
|
|
2965
|
+
private parseInputValue;
|
|
2966
|
+
/**
|
|
2967
|
+
* Validador para un único control de fecha editable: válido cuando el valor se analiza
|
|
2968
|
+
* como una fecha. Los valores vacíos se dejan al validador `required`.
|
|
2969
|
+
*/
|
|
2970
|
+
private validateDateControl;
|
|
2971
|
+
/**
|
|
2972
|
+
* Validador de grupo que asegura que la fecha de inicio analizada no sea posterior a la fecha de fin.
|
|
2973
|
+
*/
|
|
2974
|
+
private validateRange;
|
|
2975
|
+
/**
|
|
2976
|
+
* Confirma las entradas editables en el calendario para que las vistas y la acción
|
|
2977
|
+
* Aplicar reflejen los valores escritos. No-op cuando la edición está deshabilitada o
|
|
2978
|
+
* el formulario es inválido.
|
|
2979
|
+
*
|
|
2980
|
+
* @param calendar - La instancia del componente de calendario desde la plantilla.
|
|
2981
|
+
*/
|
|
2982
|
+
commitEditableDates(calendar: AcpDateRangeCalendar): void;
|
|
2983
|
+
/**
|
|
2984
|
+
* Refleja una selección de calendario (clic de fecha) en las entradas editables como
|
|
2985
|
+
* fechas absolutas. Una selección de calendario es una selección absoluta explícita, por lo que
|
|
2986
|
+
* cualquier expresión recordada se borra y las entradas muestran fechas formateadas.
|
|
2987
|
+
*
|
|
2988
|
+
* @param range - El rango emitido por el calendario.
|
|
2989
|
+
*/
|
|
2990
|
+
onCalendarSelectionChange(range: DateRange<Date>): void;
|
|
2991
|
+
/**
|
|
2992
|
+
* Confirma las entradas editables y aplica el rango, cerrando el panel -
|
|
2993
|
+
* lo mismo que hacer clic en Aplicar. Se usa para la tecla Intro. No-op cuando la edición está
|
|
2994
|
+
* deshabilitada o el formulario es inválido, por lo que Intro nunca cierra con entrada incorrecta.
|
|
2995
|
+
*
|
|
2996
|
+
* @param input - El elemento de entrada de fecha principal a actualizar.
|
|
2997
|
+
* @param calendar - La instancia del componente de calendario desde la plantilla.
|
|
2998
|
+
*/
|
|
2999
|
+
applyEditableDates(input: HTMLInputElement, _calendar: AcpDateRangeCalendar): void;
|
|
3000
|
+
/**
|
|
3001
|
+
* Rellena previamente las entradas editables desde la selección actual: expresiones relativas
|
|
3002
|
+
* para una opción de diferencia de días (ej: `now-7d` .. `now`), de lo contrario las
|
|
3003
|
+
* fechas formateadas absolutas.
|
|
3004
|
+
*/
|
|
3005
|
+
private populateEditableForm;
|
|
3006
|
+
/**
|
|
3007
|
+
* Resuelve las expresiones legibles de inicio/fin para un rango. Prefiere la
|
|
3008
|
+
* expresión comprometida del usuario (cuando aún se resuelve a este rango),
|
|
3009
|
+
* luego la forma relativa de una opción de diferencia de días, y finalmente las
|
|
3010
|
+
* fechas formateadas absolutas. Compartido por las entradas editables y el evento emitido.
|
|
3011
|
+
*
|
|
3012
|
+
* @param start - Fecha de inicio del rango.
|
|
3013
|
+
* @param end - Fecha de fin del rango.
|
|
3014
|
+
* @param opt - La opción de fecha asociada, si la hay.
|
|
3015
|
+
* @returns Las cadenas de expresión de inicio y fin.
|
|
3016
|
+
*/
|
|
3017
|
+
private resolveDisplayExpr;
|
|
3018
|
+
/**
|
|
3019
|
+
* Checks whether a saved expression still resolves (to day precision) to the
|
|
3020
|
+
* given dates, so a stale expression is not reused after the range changed
|
|
3021
|
+
* by other means.
|
|
3022
|
+
*/
|
|
3023
|
+
private exprMatchesDates;
|
|
3024
|
+
/**
|
|
3025
|
+
* Clears the currently selected dates and resets all related properties.
|
|
3026
|
+
*
|
|
3027
|
+
* @param event The MouseEvent triggering the clear action.
|
|
3028
|
+
*/
|
|
3029
|
+
clearSelection(event: MouseEvent): void;
|
|
3030
|
+
/**
|
|
3031
|
+
* Clears the input field value for the date picker.
|
|
3032
|
+
*/
|
|
3033
|
+
private clearDateInput;
|
|
3034
|
+
/**
|
|
3035
|
+
* Updates selected dates based on a selected option and input element.
|
|
3036
|
+
*
|
|
3037
|
+
* @param option The selected date option.
|
|
3038
|
+
* @param input The HTML input element to update.
|
|
3039
|
+
*/
|
|
3040
|
+
private updateDateOnOptionSelect;
|
|
3041
|
+
/**
|
|
3042
|
+
* Calculates and updates the start and end dates based on the selected option.
|
|
3043
|
+
*
|
|
3044
|
+
* @param option The selected date option.
|
|
3045
|
+
* @param input The HTML input element to update.
|
|
3046
|
+
*/
|
|
3047
|
+
private updateDateWithSelectedOption;
|
|
3048
|
+
/**
|
|
3049
|
+
* Updates the date range and input display.
|
|
3050
|
+
*
|
|
3051
|
+
* @param input The HTML input element.
|
|
3052
|
+
* @param start Start date of the range.
|
|
3053
|
+
* @param end End date of the range.
|
|
3054
|
+
* @param opt Optional selected date option.
|
|
3055
|
+
*/
|
|
3056
|
+
private updateSelectedDates;
|
|
3057
|
+
/**
|
|
3058
|
+
* Updates the input and internal state with default dates on initialization.
|
|
3059
|
+
* When autoSelectOption is true and selectedDates is provided, attempts to
|
|
3060
|
+
* match against existing options before falling back to Custom Range.
|
|
3061
|
+
*/
|
|
3062
|
+
private updateDefaultDatesValues;
|
|
3063
|
+
/**
|
|
3064
|
+
* Maneja cambios manuales en el input principal de fecha.
|
|
3065
|
+
* Cuando el usuario escribe directamente, deselecciona todas las opciones
|
|
3066
|
+
* predefinidas y marca "Rango personalizado" como seleccionado.
|
|
3067
|
+
*
|
|
3068
|
+
* @param input El elemento de entrada HTML que cambió.
|
|
3069
|
+
*/
|
|
3070
|
+
onMainInputChange(input: HTMLInputElement): void;
|
|
3071
|
+
/**
|
|
3072
|
+
* Iterates over all non-custom options and returns the first one whose
|
|
3073
|
+
* computed date range matches the provided selectedDates (day-level comparison).
|
|
3074
|
+
* Works for both default options and consumer-provided options with callBackFunction.
|
|
3075
|
+
*
|
|
3076
|
+
* @param selectedDates The date range to match against
|
|
3077
|
+
* @returns The matching ISelectDateOption, or null if none found
|
|
3078
|
+
*/
|
|
3079
|
+
private findMatchingOption;
|
|
3080
|
+
/**
|
|
3081
|
+
* Updates the input and selected dates based on a selected option from the list.
|
|
3082
|
+
*
|
|
3083
|
+
* @param selectedOption The selected date option.
|
|
3084
|
+
* @param input The HTML input element to update.
|
|
3085
|
+
*/
|
|
3086
|
+
private updatedFromListValueSelection;
|
|
3087
|
+
/**
|
|
3088
|
+
* Checks whether default initialization of options is required.
|
|
3089
|
+
*
|
|
3090
|
+
* @returns True if default options need to be initialized, otherwise false.
|
|
3091
|
+
*/
|
|
3092
|
+
private isDefaultInitRequired;
|
|
3093
|
+
/**
|
|
3094
|
+
* Initializes the default date options with the selected index.
|
|
3095
|
+
*/
|
|
3096
|
+
private initDefaultOptions;
|
|
3097
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AcpDateRangeInput, never>;
|
|
3098
|
+
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>;
|
|
2717
3099
|
}
|
|
2718
3100
|
|
|
3101
|
+
declare const ACP_DEFAULT_DATE_OPTIONS: IAcpSelectDateOption[];
|
|
3102
|
+
|
|
2719
3103
|
declare class ToUpperCase implements ControlValueAccessor {
|
|
2720
3104
|
private el;
|
|
2721
3105
|
private renderer;
|
|
@@ -2759,5 +3143,5 @@ declare class StatusDisplayPipe implements PipeTransform {
|
|
|
2759
3143
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<StatusDisplayPipe, "statusDisplay", true>;
|
|
2760
3144
|
}
|
|
2761
3145
|
|
|
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,
|
|
3146
|
+
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, 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 };
|
|
3147
|
+
export type { AcpAlertType, 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 };
|