@acontplus/ng-components 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -35
- package/fesm2022/acontplus-ng-components.mjs +133 -410
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acontplus-ng-components.d.ts +64 -204
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acontplus/ng-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Comprehensive Angular Material UI component library featuring dynamic Tabulator tables, theme toggle with dark mode, dialog wrappers, autocomplete components, cards, buttons, icons, input chips, spinners, directives, pipes, and SCSS styling utilities.",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@acontplus/ui-kit": "^1.0.
|
|
6
|
+
"@acontplus/ui-kit": "^1.0.2",
|
|
7
7
|
"@angular/cdk": "^21.0.5",
|
|
8
8
|
"@angular/common": "^21.0.6",
|
|
9
9
|
"@angular/core": "^21.0.6",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Type, AfterViewInit, OnDestroy, ViewContainerRef, ElementRef, OnInit, TemplateRef,
|
|
2
|
+
import { Type, AfterViewInit, OnDestroy, ViewContainerRef, ElementRef, OnInit, TemplateRef, OnChanges, SimpleChanges, InjectionToken, QueryList, TrackByFunction, KeyValueChangeRecord, PipeTransform } from '@angular/core';
|
|
3
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
5
5
|
import { FormControl, ControlValueAccessor } from '@angular/forms';
|
|
@@ -7,14 +7,13 @@ import { SelectOption, IconDefinition, ButtonVariant, ButtonType, MaterialButton
|
|
|
7
7
|
import { SafeHtml } from '@angular/platform-browser';
|
|
8
8
|
import { MatChipInputEvent, MatChipEditedEvent } from '@angular/material/chips';
|
|
9
9
|
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
10
|
-
import * as _angular_material_paginator from '@angular/material/paginator';
|
|
11
|
-
import { PageEvent, MatPaginator } from '@angular/material/paginator';
|
|
12
|
-
import { MatTableDataSource, MatHeaderRowDef, MatRowDef, MatFooterRowDef, MatColumnDef, MatTable } from '@angular/material/table';
|
|
13
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
14
10
|
import { Tabulator } from 'tabulator-tables';
|
|
15
11
|
import * as rxjs from 'rxjs';
|
|
16
12
|
import { Observable } from 'rxjs';
|
|
13
|
+
import { MatTable, MatRowDef, MatHeaderRowDef, MatFooterRowDef, MatTableDataSource } from '@angular/material/table';
|
|
14
|
+
import { PageEvent, MatPaginator } from '@angular/material/paginator';
|
|
17
15
|
import { SortDirection, MatSort, Sort } from '@angular/material/sort';
|
|
16
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
18
17
|
import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
|
|
19
18
|
import { MatButtonAppearance } from '@angular/material/button';
|
|
20
19
|
import { ThemePalette } from '@angular/material/core';
|
|
@@ -25,16 +24,6 @@ import { ComponentType } from '@angular/cdk/portal';
|
|
|
25
24
|
* A versatile card component that wraps Angular Material's mat-card with additional functionality
|
|
26
25
|
* and customization options. This component provides a consistent card layout with configurable
|
|
27
26
|
* header, content, and action areas.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* <acp-dynamic-card
|
|
31
|
-
* [cardTitle]="'Card Title'"
|
|
32
|
-
* [cardSubtitle]="'Card Subtitle'"
|
|
33
|
-
* [isHeaderVisible]="true"
|
|
34
|
-
* [areActionsVisible]="true"
|
|
35
|
-
* (primaryButtonClicked)="onPrimaryAction()">
|
|
36
|
-
* Card content goes here
|
|
37
|
-
* </acp-dynamic-card>
|
|
38
27
|
*/
|
|
39
28
|
declare class DynamicCard {
|
|
40
29
|
/**
|
|
@@ -174,15 +163,6 @@ interface MatCustomDialogConfig<T = unknown> {
|
|
|
174
163
|
*
|
|
175
164
|
* @interface DialogWrapperConfig
|
|
176
165
|
* @template T The type of data to pass to the content component
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* const config: DialogWrapperConfig = {
|
|
180
|
-
* component: YourDialogContentComponent,
|
|
181
|
-
* title: 'Dialog Title',
|
|
182
|
-
* icon: 'info',
|
|
183
|
-
* data: { message: 'This is some data passed to the dialog content component' },
|
|
184
|
-
* hideHeader: false
|
|
185
|
-
* };
|
|
186
166
|
*/
|
|
187
167
|
interface DialogWrapperConfig<T = unknown> {
|
|
188
168
|
/**
|
|
@@ -454,15 +434,6 @@ declare class AutocompleteWrapperService {
|
|
|
454
434
|
* including a draggable header and the ability to dynamically create components inside the dialog.
|
|
455
435
|
*
|
|
456
436
|
* This component is typically used with the AdvancedDialogService's openInWrapper method.
|
|
457
|
-
*
|
|
458
|
-
* @example
|
|
459
|
-
* // In your service or component:
|
|
460
|
-
* this.dialogService.openInWrapper({
|
|
461
|
-
* component: YourDialogContentComponent,
|
|
462
|
-
* title: 'Dialog Title',
|
|
463
|
-
* icon: 'info',
|
|
464
|
-
* data: { message: 'This is some data passed to the dialog content component' }
|
|
465
|
-
* });
|
|
466
437
|
*/
|
|
467
438
|
declare class DialogWrapper implements AfterViewInit, OnDestroy {
|
|
468
439
|
dialogRef: MatDialogRef<DialogWrapper, any>;
|
|
@@ -601,7 +572,7 @@ declare class SvgIcon {
|
|
|
601
572
|
/**
|
|
602
573
|
* Get the icon SVG from the registry
|
|
603
574
|
*/
|
|
604
|
-
protected iconSvg: _angular_core.Signal<SafeHtml | null>;
|
|
575
|
+
protected iconSvg: _angular_core.Signal<string | SafeHtml | null>;
|
|
605
576
|
constructor();
|
|
606
577
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SvgIcon, never>;
|
|
607
578
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SvgIcon, "acp-svg-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "useFallback": { "alias": "useFallback"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -749,169 +720,6 @@ declare class Spinner {
|
|
|
749
720
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Spinner, "acp-spinner", never, {}, {}, never, never, true, never>;
|
|
750
721
|
}
|
|
751
722
|
|
|
752
|
-
interface DateRangeConfig<T = any> {
|
|
753
|
-
startDate: FieldDefinition<T>;
|
|
754
|
-
endDate: FieldDefinition<T>;
|
|
755
|
-
}
|
|
756
|
-
declare type ControlType = 'textbox' | 'ktextbox' | 'combobox' | 'textboxNum' | 'dropdown' | 'dropdownlist' | 'multiselect' | 'autocomplete' | 'checkbox' | 'radiobutton' | 'inquiryInDialog' | 'timepicker' | 'datepicker' | 'daterange' | 'textarea' | 'slideToggle' | 'slider' | 'switch' | 'buttonToggleGroup';
|
|
757
|
-
declare type FieldType = 'number' | 'string' | 'boolean' | 'date' | 'month' | 'email' | 'password' | 'tel' | 'hidden' | 'image' | 'url' | 'week' | 'search' | 'reset' | 'template' | 'custom' | 'expand';
|
|
758
|
-
declare type ColumnType = 'text' | 'component' | 'html' | 'template';
|
|
759
|
-
declare class FieldDefinition<T = any> {
|
|
760
|
-
value?: T;
|
|
761
|
-
valueLabel?: string;
|
|
762
|
-
defaultValue?: T;
|
|
763
|
-
defaultValueLabel?: string;
|
|
764
|
-
key: string;
|
|
765
|
-
label: string;
|
|
766
|
-
dateRangeConfig?: DateRangeConfig<T>;
|
|
767
|
-
isDefaultSearchField?: boolean;
|
|
768
|
-
required?: boolean;
|
|
769
|
-
disabled?: boolean;
|
|
770
|
-
order?: number;
|
|
771
|
-
icon?: string;
|
|
772
|
-
controlType?: ControlType;
|
|
773
|
-
type?: FieldType;
|
|
774
|
-
editor?: 'numeric' | 'boolean' | '';
|
|
775
|
-
options?: {
|
|
776
|
-
label: string;
|
|
777
|
-
value: T;
|
|
778
|
-
}[];
|
|
779
|
-
valueOptions?: string[];
|
|
780
|
-
valuePrimitive?: boolean;
|
|
781
|
-
textField?: string;
|
|
782
|
-
valueField?: string;
|
|
783
|
-
errorMessage?: string;
|
|
784
|
-
width?: string;
|
|
785
|
-
valueChangeCallback?: (value: T) => void;
|
|
786
|
-
columnType?: ColumnType;
|
|
787
|
-
body?: any;
|
|
788
|
-
constructor(options?: Partial<FieldDefinition<T>>);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
interface TableContext<T = any> {
|
|
792
|
-
$implicit: T;
|
|
793
|
-
index?: number;
|
|
794
|
-
}
|
|
795
|
-
declare class ColumnDefinition<T = any> extends FieldDefinition<T> {
|
|
796
|
-
index?: number;
|
|
797
|
-
format?: any;
|
|
798
|
-
hasFooter?: boolean;
|
|
799
|
-
hideInOverlay?: boolean;
|
|
800
|
-
optionsAttribut?: string;
|
|
801
|
-
templateOutlet?: TemplateRef<TableContext<T>>;
|
|
802
|
-
constructor(options?: Partial<ColumnDefinition<T>>);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
interface OptionSearchConfig {
|
|
806
|
-
displayedColumns?: string[];
|
|
807
|
-
displayColumnDefs?: ColumnDefinition[];
|
|
808
|
-
close?: boolean;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
declare class TableCellIndex {
|
|
812
|
-
row: number;
|
|
813
|
-
column: number;
|
|
814
|
-
constructor(row: number, column: number);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
interface TableRow {
|
|
818
|
-
rowStyle?: {
|
|
819
|
-
backgroundColor?: string;
|
|
820
|
-
color?: string;
|
|
821
|
-
[key: string]: any;
|
|
822
|
-
};
|
|
823
|
-
disableSelection?: boolean;
|
|
824
|
-
[key: string]: any;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
declare class Pagination {
|
|
828
|
-
totalRecords: number;
|
|
829
|
-
pageSize: number;
|
|
830
|
-
pageIndex: number;
|
|
831
|
-
pageSizeOptions: number[];
|
|
832
|
-
hidePageSize: boolean;
|
|
833
|
-
showPageSizeOptions: boolean;
|
|
834
|
-
showFirstLastButtons: boolean;
|
|
835
|
-
disabled: boolean;
|
|
836
|
-
/**
|
|
837
|
-
* @param pageIndex Current page index (0-based for MatPaginator compatibility)
|
|
838
|
-
* @param pageSize Number of records per page
|
|
839
|
-
* @param totalRecords Total number of records
|
|
840
|
-
* @param pageSizeOptions Available page size options
|
|
841
|
-
* @param hidePageSize Whether to hide the page size selector
|
|
842
|
-
* @param showPageSizeOptions Whether to show page size options
|
|
843
|
-
* @param showFirstLastButtons Whether to show first/last buttons
|
|
844
|
-
* @param disabled Whether the paginator is disabled
|
|
845
|
-
*/
|
|
846
|
-
constructor(pageIndex?: number, // MatPaginator starts at 0
|
|
847
|
-
pageSize?: number, totalRecords?: number, pageSizeOptions?: number[], hidePageSize?: boolean, showPageSizeOptions?: boolean, showFirstLastButtons?: boolean, disabled?: boolean);
|
|
848
|
-
/**
|
|
849
|
-
* Calculates the total number of pages.
|
|
850
|
-
*/
|
|
851
|
-
getTotalPages(): number;
|
|
852
|
-
/**
|
|
853
|
-
* Handles page event similar to Angular Material example.
|
|
854
|
-
* @param event MatPaginator PageEvent
|
|
855
|
-
*/
|
|
856
|
-
handlePageEvent(event: PageEvent): void;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
declare class DynamicTable<T extends TableRow> implements AfterContentInit, OnChanges, OnInit, OnDestroy {
|
|
860
|
-
private componentRefs;
|
|
861
|
-
private embeddedViews;
|
|
862
|
-
private cdr;
|
|
863
|
-
readonly showExpand: _angular_core.InputSignal<boolean>;
|
|
864
|
-
readonly showFooter: _angular_core.InputSignal<boolean>;
|
|
865
|
-
readonly locale: _angular_core.InputSignal<string>;
|
|
866
|
-
readonly highlightRowIndex: _angular_core.InputSignal<number>;
|
|
867
|
-
visibleColumns: string[];
|
|
868
|
-
columnDefinitions: ColumnDefinition<T>[];
|
|
869
|
-
readonly showSelectBox: _angular_core.InputSignal<boolean>;
|
|
870
|
-
readonly multipleSelection: _angular_core.InputSignal<boolean>;
|
|
871
|
-
readonly tableData: _angular_core.InputSignal<T[]>;
|
|
872
|
-
readonly rowTemplate: _angular_core.InputSignal<TemplateRef<TableContext<T>> | null>;
|
|
873
|
-
expandedDetail: TemplateRef<TableContext<T>> | null;
|
|
874
|
-
readonly enablePagination: _angular_core.InputSignal<boolean>;
|
|
875
|
-
paginationConfig: Pagination | null;
|
|
876
|
-
readonly isLoadingData: _angular_core.InputSignal<boolean>;
|
|
877
|
-
readonly rowSelected: _angular_core.OutputEmitterRef<T[]>;
|
|
878
|
-
readonly copyRow: _angular_core.OutputEmitterRef<T>;
|
|
879
|
-
readonly showExpanded: _angular_core.OutputEmitterRef<T>;
|
|
880
|
-
readonly hideExpanded: _angular_core.OutputEmitterRef<T>;
|
|
881
|
-
readonly pageEvent: _angular_core.OutputEmitterRef<PageEvent>;
|
|
882
|
-
isNormalRow: (_: number, row: T) => boolean;
|
|
883
|
-
isExpandedRow: (_: number, row: T) => boolean;
|
|
884
|
-
dataSource: MatTableDataSource<T, _angular_material_paginator.MatPaginator>;
|
|
885
|
-
selection: SelectionModel<T>;
|
|
886
|
-
expandedElement: T | null;
|
|
887
|
-
columnsToDisplayWithExpand: string[];
|
|
888
|
-
readonly headerRowDefs: _angular_core.Signal<readonly MatHeaderRowDef[]>;
|
|
889
|
-
readonly rowDefs: _angular_core.Signal<readonly MatRowDef<unknown>[]>;
|
|
890
|
-
readonly footerRowDefs: _angular_core.Signal<readonly MatFooterRowDef[]>;
|
|
891
|
-
readonly columnDefs: _angular_core.Signal<readonly MatColumnDef[]>;
|
|
892
|
-
readonly table: _angular_core.Signal<MatTable<any>>;
|
|
893
|
-
readonly rows: _angular_core.Signal<readonly ViewContainerRef[]>;
|
|
894
|
-
ngOnInit(): void;
|
|
895
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
896
|
-
ngAfterContentInit(): void;
|
|
897
|
-
ngOnDestroy(): void;
|
|
898
|
-
private updateTableData;
|
|
899
|
-
private updateColumnsToDisplay;
|
|
900
|
-
private initializeSelection;
|
|
901
|
-
private registerTableContent;
|
|
902
|
-
private initializeTable;
|
|
903
|
-
private cleanupDynamicComponents;
|
|
904
|
-
isAllSelected(): boolean;
|
|
905
|
-
masterToggle(): void;
|
|
906
|
-
checkboxLabel(row?: T): string;
|
|
907
|
-
selectRow(row: T): void;
|
|
908
|
-
onExpand(event: Event, element: T): void;
|
|
909
|
-
getRowStyle(element: T): Record<string, string>;
|
|
910
|
-
handlePageEvent(e: PageEvent): void;
|
|
911
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicTable<any>, never>;
|
|
912
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicTable<any>, "acp-dynamic-table", never, { "showExpand": { "alias": "showExpand"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "highlightRowIndex": { "alias": "highlightRowIndex"; "required": false; "isSignal": true; }; "visibleColumns": { "alias": "visibleColumns"; "required": false; }; "columnDefinitions": { "alias": "columnDefinitions"; "required": false; }; "showSelectBox": { "alias": "showSelectBox"; "required": false; "isSignal": true; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; "isSignal": true; }; "tableData": { "alias": "tableData"; "required": false; "isSignal": true; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; "isSignal": true; }; "expandedDetail": { "alias": "expandedDetail"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; "isSignal": true; }; "paginationConfig": { "alias": "paginationConfig"; "required": false; }; "isLoadingData": { "alias": "isLoadingData"; "required": false; "isSignal": true; }; }, { "rowSelected": "rowSelected"; "copyRow": "copyRow"; "showExpanded": "showExpanded"; "hideExpanded": "hideExpanded"; "pageEvent": "pageEvent"; }, ["headerRowDefs", "rowDefs", "footerRowDefs", "columnDefs", "rows"], never, true, never>;
|
|
913
|
-
}
|
|
914
|
-
|
|
915
723
|
interface TabulatorColumn {
|
|
916
724
|
title: string;
|
|
917
725
|
field: string;
|
|
@@ -1210,13 +1018,64 @@ declare class TabulatorTable implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
1210
1018
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabulatorTable, "acp-tabulator-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "dataTree": { "alias": "dataTree"; "required": false; "isSignal": true; }; "dataTreeChildField": { "alias": "dataTreeChildField"; "required": false; "isSignal": true; }; "dataTreeStartExpanded": { "alias": "dataTreeStartExpanded"; "required": false; "isSignal": true; }; "dataTreeSelectPropagate": { "alias": "dataTreeSelectPropagate"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "reactiveData": { "alias": "reactiveData"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "autoResize": { "alias": "autoResize"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "customClass": { "alias": "customClass"; "required": false; "isSignal": true; }; "rowFormatter": { "alias": "rowFormatter"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "rowDeleted": "rowDeleted"; "cellEdited": "cellEdited"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "tableReady": "tableReady"; }, never, never, true, never>;
|
|
1211
1019
|
}
|
|
1212
1020
|
|
|
1021
|
+
/**
|
|
1022
|
+
* A theme toggle button component that allows users to switch between
|
|
1023
|
+
* light and dark modes. Follows WAI-ARIA best practices for toggle buttons.
|
|
1024
|
+
*/
|
|
1213
1025
|
declare class ThemeToggle {
|
|
1214
|
-
private
|
|
1215
|
-
|
|
1216
|
-
|
|
1026
|
+
private readonly themeSwitcher;
|
|
1027
|
+
/** Icon to display when in dark mode (clicking will switch to light) */
|
|
1028
|
+
readonly lightModeIcon: _angular_core.InputSignal<string>;
|
|
1029
|
+
/** Icon to display when in light mode (clicking will switch to dark) */
|
|
1030
|
+
readonly darkModeIcon: _angular_core.InputSignal<string>;
|
|
1031
|
+
/** Accessible label for when in dark mode */
|
|
1032
|
+
readonly lightModeLabel: _angular_core.InputSignal<string>;
|
|
1033
|
+
/** Accessible label for when in light mode */
|
|
1034
|
+
readonly darkModeLabel: _angular_core.InputSignal<string>;
|
|
1035
|
+
/** Test ID for automated testing */
|
|
1036
|
+
readonly testId: _angular_core.InputSignal<string>;
|
|
1037
|
+
/** Current dark mode state as a signal */
|
|
1038
|
+
protected readonly isDarkMode: _angular_core.Signal<boolean>;
|
|
1039
|
+
/** Computed icon based on current theme */
|
|
1040
|
+
protected readonly currentIcon: _angular_core.Signal<string>;
|
|
1041
|
+
/** Computed accessible label based on current theme */
|
|
1042
|
+
protected readonly currentLabel: _angular_core.Signal<string>;
|
|
1043
|
+
/** Toggle between dark and light mode */
|
|
1217
1044
|
toggleDarkMode(): void;
|
|
1218
1045
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeToggle, never>;
|
|
1219
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggle, "acp-theme-toggle", never, {}, {}, never, never, true, never>;
|
|
1046
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggle, "acp-theme-toggle", never, { "lightModeIcon": { "alias": "lightModeIcon"; "required": false; "isSignal": true; }; "darkModeIcon": { "alias": "darkModeIcon"; "required": false; "isSignal": true; }; "lightModeLabel": { "alias": "lightModeLabel"; "required": false; "isSignal": true; }; "darkModeLabel": { "alias": "darkModeLabel"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
declare class Pagination {
|
|
1050
|
+
totalRecords: number;
|
|
1051
|
+
pageSize: number;
|
|
1052
|
+
pageIndex: number;
|
|
1053
|
+
pageSizeOptions: number[];
|
|
1054
|
+
hidePageSize: boolean;
|
|
1055
|
+
showPageSizeOptions: boolean;
|
|
1056
|
+
showFirstLastButtons: boolean;
|
|
1057
|
+
disabled: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* @param pageIndex Current page index (0-based for MatPaginator compatibility)
|
|
1060
|
+
* @param pageSize Number of records per page
|
|
1061
|
+
* @param totalRecords Total number of records
|
|
1062
|
+
* @param pageSizeOptions Available page size options
|
|
1063
|
+
* @param hidePageSize Whether to hide the page size selector
|
|
1064
|
+
* @param showPageSizeOptions Whether to show page size options
|
|
1065
|
+
* @param showFirstLastButtons Whether to show first/last buttons
|
|
1066
|
+
* @param disabled Whether the paginator is disabled
|
|
1067
|
+
*/
|
|
1068
|
+
constructor(pageIndex?: number, // MatPaginator starts at 0
|
|
1069
|
+
pageSize?: number, totalRecords?: number, pageSizeOptions?: number[], hidePageSize?: boolean, showPageSizeOptions?: boolean, showFirstLastButtons?: boolean, disabled?: boolean);
|
|
1070
|
+
/**
|
|
1071
|
+
* Calculates the total number of pages.
|
|
1072
|
+
*/
|
|
1073
|
+
getTotalPages(): number;
|
|
1074
|
+
/**
|
|
1075
|
+
* Handles page event similar to Angular Material example.
|
|
1076
|
+
* @param event MatPaginator PageEvent
|
|
1077
|
+
*/
|
|
1078
|
+
handlePageEvent(event: PageEvent): void;
|
|
1220
1079
|
}
|
|
1221
1080
|
|
|
1222
1081
|
declare class ReusableAutocompleteComponent implements OnInit, OnDestroy {
|
|
@@ -1377,6 +1236,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
1377
1236
|
infiniteScrollDisabled: _angular_core.InputSignal<boolean>;
|
|
1378
1237
|
keyboardNavigation: _angular_core.InputSignal<boolean>;
|
|
1379
1238
|
focusedRowIndex: _angular_core.Signal<number>;
|
|
1239
|
+
highlightedRowIndex: _angular_core.InputSignal<number>;
|
|
1380
1240
|
sortOnFront: _angular_core.InputSignal<boolean>;
|
|
1381
1241
|
sortActive: _angular_core.InputSignal<string>;
|
|
1382
1242
|
sortDirection: _angular_core.InputSignal<SortDirection>;
|
|
@@ -1461,7 +1321,7 @@ declare class DataGrid<T = any> implements AfterViewInit, OnDestroy, OnChanges {
|
|
|
1461
1321
|
isColumnHide(item: DataGridColumn): boolean;
|
|
1462
1322
|
getIndex(index: number | undefined, dataIndex: number): number;
|
|
1463
1323
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGrid<any>, never>;
|
|
1464
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid<any>, "acp-data-grid", ["dataGrid"], { "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "showColumnMenuButton": { "alias": "showColumnMenuButton"; "required": false; "isSignal": true; }; "toolbarTitle": { "alias": "toolbarTitle"; "required": false; "isSignal": true; }; "toolbarTemplate": { "alias": "toolbarTemplate"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyValuePlaceholder": { "alias": "emptyValuePlaceholder"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "headerExtraTemplate": { "alias": "headerExtraTemplate"; "required": false; "isSignal": true; }; "noResultTemplate": { "alias": "noResultTemplate"; "required": false; "isSignal": true; }; "paginationTemplate": { "alias": "paginationTemplate"; "required": false; "isSignal": true; }; "summaryTemplate": { "alias": "summaryTemplate"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "headerCellTemplate": { "alias": "headerCellTemplate"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; "isSignal": true; }; "closeOthersOnExpand": { "alias": "closeOthersOnExpand"; "required": false; "isSignal": true; }; "pageOnFront": { "alias": "pageOnFront"; "required": false; "isSignal": true; }; "showPaginator": { "alias": "showPaginator"; "required": false; "isSignal": true; }; "pageDisabled": { "alias": "pageDisabled"; "required": false; "isSignal": true; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; "isSignal": true; }; "infiniteScrollThreshold": { "alias": "infiniteScrollThreshold"; "required": false; "isSignal": true; }; "infiniteScrollDisabled": { "alias": "infiniteScrollDisabled"; "required": false; "isSignal": true; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "sortOnFront": { "alias": "sortOnFront"; "required": false; "isSignal": true; }; "sortActive": { "alias": "sortActive"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortDisableClear": { "alias": "sortDisableClear"; "required": false; "isSignal": true; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; "isSignal": true; }; "sortStart": { "alias": "sortStart"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "required": false; "isSignal": true; }; "rowStriped": { "alias": "rowStriped"; "required": false; "isSignal": true; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; "isSignal": true; }; "multiSelectable": { "alias": "multiSelectable"; "required": false; "isSignal": true; }; "multiSelectionWithClick": { "alias": "multiSelectionWithClick"; "required": false; "isSignal": true; }; "hideRowSelectionCheckbox": { "alias": "hideRowSelectionCheckbox"; "required": false; "isSignal": true; }; "disableRowClickSelection": { "alias": "disableRowClickSelection"; "required": false; "isSignal": true; }; "rowClassFormatter": { "alias": "rowClassFormatter"; "required": false; "isSignal": true; }; "rowSelected": { "alias": "rowSelected"; "required": false; "isSignal": true; }; "rowSelectionFormatter": { "alias": "rowSelectionFormatter"; "required": false; "isSignal": true; }; "cellSelectable": { "alias": "cellSelectable"; "required": false; "isSignal": true; }; "useContentRowTemplate": { "alias": "useContentRowTemplate"; "required": false; "isSignal": true; }; "useContentHeaderRowTemplate": { "alias": "useContentHeaderRowTemplate"; "required": false; "isSignal": true; }; "useContentFooterRowTemplate": { "alias": "useContentFooterRowTemplate"; "required": false; "isSignal": true; }; "showSummary": { "alias": "showSummary"; "required": false; "isSignal": true; }; "noResultText": { "alias": "noResultText"; "required": false; "isSignal": true; }; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "rowSelectedChange": "rowSelectedChange"; "selectionChange": "selectionChange"; "cellClick": "cellClick"; "cellSelectedChange": "cellSelectedChange"; "expansionChange": "expansionChange"; "rowContextMenu": "rowContextMenu"; "infiniteScrollLoad": "infiniteScrollLoad"; "focusedRowChange": "focusedRowChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, true, never>;
|
|
1324
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid<any>, "acp-data-grid", ["dataGrid"], { "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "showColumnMenuButton": { "alias": "showColumnMenuButton"; "required": false; "isSignal": true; }; "toolbarTitle": { "alias": "toolbarTitle"; "required": false; "isSignal": true; }; "toolbarTemplate": { "alias": "toolbarTemplate"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyValuePlaceholder": { "alias": "emptyValuePlaceholder"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; "isSignal": true; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; "isSignal": true; }; "headerExtraTemplate": { "alias": "headerExtraTemplate"; "required": false; "isSignal": true; }; "noResultTemplate": { "alias": "noResultTemplate"; "required": false; "isSignal": true; }; "paginationTemplate": { "alias": "paginationTemplate"; "required": false; "isSignal": true; }; "summaryTemplate": { "alias": "summaryTemplate"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "headerCellTemplate": { "alias": "headerCellTemplate"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; "isSignal": true; }; "closeOthersOnExpand": { "alias": "closeOthersOnExpand"; "required": false; "isSignal": true; }; "pageOnFront": { "alias": "pageOnFront"; "required": false; "isSignal": true; }; "showPaginator": { "alias": "showPaginator"; "required": false; "isSignal": true; }; "pageDisabled": { "alias": "pageDisabled"; "required": false; "isSignal": true; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "infiniteScroll": { "alias": "infiniteScroll"; "required": false; "isSignal": true; }; "infiniteScrollThreshold": { "alias": "infiniteScrollThreshold"; "required": false; "isSignal": true; }; "infiniteScrollDisabled": { "alias": "infiniteScrollDisabled"; "required": false; "isSignal": true; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "highlightedRowIndex": { "alias": "highlightedRowIndex"; "required": false; "isSignal": true; }; "sortOnFront": { "alias": "sortOnFront"; "required": false; "isSignal": true; }; "sortActive": { "alias": "sortActive"; "required": false; "isSignal": true; }; "sortDirection": { "alias": "sortDirection"; "required": false; "isSignal": true; }; "sortDisableClear": { "alias": "sortDisableClear"; "required": false; "isSignal": true; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; "isSignal": true; }; "sortStart": { "alias": "sortStart"; "required": false; "isSignal": true; }; "rowHover": { "alias": "rowHover"; "required": false; "isSignal": true; }; "rowStriped": { "alias": "rowStriped"; "required": false; "isSignal": true; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; "isSignal": true; }; "multiSelectable": { "alias": "multiSelectable"; "required": false; "isSignal": true; }; "multiSelectionWithClick": { "alias": "multiSelectionWithClick"; "required": false; "isSignal": true; }; "hideRowSelectionCheckbox": { "alias": "hideRowSelectionCheckbox"; "required": false; "isSignal": true; }; "disableRowClickSelection": { "alias": "disableRowClickSelection"; "required": false; "isSignal": true; }; "rowClassFormatter": { "alias": "rowClassFormatter"; "required": false; "isSignal": true; }; "rowSelected": { "alias": "rowSelected"; "required": false; "isSignal": true; }; "rowSelectionFormatter": { "alias": "rowSelectionFormatter"; "required": false; "isSignal": true; }; "cellSelectable": { "alias": "cellSelectable"; "required": false; "isSignal": true; }; "useContentRowTemplate": { "alias": "useContentRowTemplate"; "required": false; "isSignal": true; }; "useContentHeaderRowTemplate": { "alias": "useContentHeaderRowTemplate"; "required": false; "isSignal": true; }; "useContentFooterRowTemplate": { "alias": "useContentFooterRowTemplate"; "required": false; "isSignal": true; }; "showSummary": { "alias": "showSummary"; "required": false; "isSignal": true; }; "noResultText": { "alias": "noResultText"; "required": false; "isSignal": true; }; }, { "page": "page"; "sortChange": "sortChange"; "rowClick": "rowClick"; "rowSelectedChange": "rowSelectedChange"; "selectionChange": "selectionChange"; "cellClick": "cellClick"; "cellSelectedChange": "cellSelectedChange"; "expansionChange": "expansionChange"; "rowContextMenu": "rowContextMenu"; "infiniteScrollLoad": "infiniteScrollLoad"; "focusedRowChange": "focusedRowChange"; }, ["rowDefs", "headerRowDefs", "footerRowDefs"], never, true, never>;
|
|
1465
1325
|
}
|
|
1466
1326
|
|
|
1467
1327
|
declare class ToUpperCase implements ControlValueAccessor {
|
|
@@ -1507,5 +1367,5 @@ declare class StatusDisplayPipe implements PipeTransform {
|
|
|
1507
1367
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<StatusDisplayPipe, "statusDisplay", true>;
|
|
1508
1368
|
}
|
|
1509
1369
|
|
|
1510
|
-
export { AUTOCOMPLETE_WRAPPER_CUSTOMER_CONFIG, AUTOCOMPLETE_WRAPPER_DEFAULT_CONFIG, AUTOCOMPLETE_WRAPPER_LOCAL_CONFIG, AUTOCOMPLETE_WRAPPER_PAGINATED_CONFIG, AUTOCOMPLETE_WRAPPER_PRODUCT_CONFIG, AUTOCOMPLETE_WRAPPER_SIMPLE_CONFIG, AdvancedDialogService, AutocompleteWrapperService, Button,
|
|
1511
|
-
export type { AutocompleteWrapperActions, AutocompleteWrapperConfig, AutocompleteWrapperEventHandler, AutocompleteWrapperEvents, AutocompleteWrapperFilters, AutocompleteWrapperItem, AutocompleteWrapperItemProperty, AutocompleteWrapperPaginationInfo, AutocompleteWrapperSearchField, AutocompleteWrapperSearchFunction, AutocompleteWrapperSearchMode, AutocompleteWrapperSearchResult, AutocompleteWrapperState, AutocompleteWrapperStockOption,
|
|
1370
|
+
export { AUTOCOMPLETE_WRAPPER_CUSTOMER_CONFIG, AUTOCOMPLETE_WRAPPER_DEFAULT_CONFIG, AUTOCOMPLETE_WRAPPER_LOCAL_CONFIG, AUTOCOMPLETE_WRAPPER_PAGINATED_CONFIG, AUTOCOMPLETE_WRAPPER_PRODUCT_CONFIG, AUTOCOMPLETE_WRAPPER_SIMPLE_CONFIG, AdvancedDialogService, AutocompleteWrapperService, Button, DATA_GRID_DEFAULT_OPTIONS, DataGrid, DialogWrapper, DynamicCard, DynamicSelect, GetTotalPipe, IconRegistryService, InputChip, OverlayService, Pagination, ReusableAutocompleteComponent, Spinner, StatusDisplayPipe, SvgIcon, TabulatorTable, ThemeSwitcher, ThemeToggle, ToUpperCase, UserIcon, createAutocompleteWrapperConfig };
|
|
1371
|
+
export type { 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, DialogSize, DialogWrapperConfig, IconRegistryConfig, MatCustomDialogConfig, ReusableAutocompleteWrapperComponent, TabulatorColumn, TabulatorConfig, TabulatorEventHandlers, TabulatorTheme };
|