import * as i0 from '@angular/core'; import { OnInit, OnChanges, WritableSignal, Signal, EventEmitter, ChangeDetectorRef, TemplateRef } from '@angular/core'; import * as i17 from 'ag-grid-angular'; import { ICellRendererAngularComp, IHeaderAngularComp, AgFilterComponent } from 'ag-grid-angular'; import { GridOptions, ColDef, IRowNode, IsFullWidthRowParams, ICellRendererParams, IHeaderParams, IAfterGuiAttachedParams, IFilterParams, IDoesFilterPassParams, AgPromise, CellMouseDownEvent, ColumnState } from 'ag-grid-community'; import * as i18 from '@angular/common'; import { isPlatformBrowser } from '@angular/common'; import * as i20 from '@angular/forms'; import { ControlValueAccessor, UntypedFormControl } from '@angular/forms'; import { UserActionVO, EntraIdTrace, AgEntraIdTraceCellRendererComponent as AgEntraIdTraceCellRendererComponent$1 } from '@datahive/util-m365'; import * as i19 from '@angular/material/checkbox'; import { MatCheckbox } from '@angular/material/checkbox'; import { hasValidValue } from '@datahive/util-datahive'; import * as i21 from '@angular/material/progress-spinner'; import * as i22 from '@datahive/ui-datahive'; declare enum GridSelectionMode { None = 0, Cell = 1, Row = 2, Multirow = 3, Range = 4 } interface DataHiveGridSelectionConfig { selectionMode: GridSelectionMode; } interface fullWidthCellRendererParams { asyncData: any; entity: any; } declare class DatahiveGridComponent implements OnInit, OnChanges { platformId: Object; gridOptions?: GridOptions; isPlatformBrowser: typeof isPlatformBrowser; selectionConfig: DataHiveGridSelectionConfig; colDefs: ColDef[]; headline?: string; gridData: WritableSignal | Signal; defaultRowHeight: number; sortable: boolean; fullWidthRowComponent: unknown; parentComponent: PARENT_COMPONENT_TYPE; expandResolverFn?: any; identifierName: string; totals?: WritableSignal; setQuickFilterUsed: boolean; getRowPictureFn?: (colData: any) => string; gOptions: EventEmitter>; prerequisitesLoaded: boolean; private environmentInjector; expandedIds: { [key: string]: boolean; }; heightMap: any; cssId: string; constructor(); clientConstructor(): void; ngOnInit(): void; ngOnChanges(changes: any): void; parentUpdatedColDefs(): void; timeout: any; clientNgOnInit(): void; upsertExpandColumn(): void; cellRendererRefs: any; getExpandableColumn(): ColDef; setGridOptions(): void; getDefaultColDefinition(): ColDef; expandFirst(dtoEntity: any): Promise; onExpand(data: any, id: number): Promise; openMasterDetailRow(data: fullWidthCellRendererParams, id: number): Promise; addFullWidthRow(indexOfNewRow: number, data: any): void; closeRow(data: any): void; numberOfFullWidthRowsBeforeThisIndex(id: string, identifierName: string): number; getFullWidthRowWithThisId(id: string, identifierName: string): IRowNode | undefined; isRowWithThisIndexFullWidth(index: number, identifierName: string): boolean | undefined; isFullWidth(params: IsFullWidthRowParams): boolean; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵcmp: i0.ɵɵComponentDeclaration, "grouphive-grid", never, { "selectionConfig": { "alias": "selectionConfig"; "required": false; }; "colDefs": { "alias": "colDefs"; "required": true; }; "headline": { "alias": "headline"; "required": false; }; "gridData": { "alias": "gridData"; "required": true; }; "defaultRowHeight": { "alias": "defaultRowHeight"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "fullWidthRowComponent": { "alias": "fullWidthRowComponent"; "required": false; }; "parentComponent": { "alias": "parentComponent"; "required": true; }; "expandResolverFn": { "alias": "expandResolverFn"; "required": false; }; "identifierName": { "alias": "identifierName"; "required": false; }; "totals": { "alias": "totals"; "required": false; }; "setQuickFilterUsed": { "alias": "setQuickFilterUsed"; "required": false; }; "getRowPictureFn": { "alias": "getRowPictureFn"; "required": false; }; }, { "gOptions": "gOptions"; }, never, never, false, never>; } declare class AgMasterDetailControlCellRendererComponent implements ICellRendererAngularComp { private change; refresh(params: ICellRendererParams): boolean; context: DatahiveGridComponent; object: any; params: any; id: number; imagePath?: string; expanded: boolean; showExpandIndicator: boolean; waitingForExpandFunction: boolean; onExpand: any; agInit(params: any): void; callOnExpand(event: Event, object: any, context: any, id: any): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgDateCellRendererComponent { showTime: boolean; multivalue: boolean; value: any; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class GHHeaderComponentComponent implements IHeaderAngularComp { private changeDetec; params: any; ascSortActive: boolean; descSortActive: boolean; ascSort: string; descSort: string; noSort: string; columnId: string; context: any; parentComponent: any; sortCallback: any; isValidColumn: boolean; menuButton: any; agInit(params: IHeaderParams): void; onMenuClicked(): void; interval: any; onSortRequested(order: string, event: any): void; private checkIfSortStillActive; refresh(params: IHeaderParams): boolean; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class OptionModel { Index: number; Value: string; } declare function getOptionWithoutVariables(option: string): string; declare class SetFilterComponent implements OnInit, ControlValueAccessor { changeDet: ChangeDetectorRef; optionLabels: OptionModel[]; selectionChanged: EventEmitter; getOptionWithoutVariables: typeof getOptionWithoutVariables; selectedOptions: boolean[]; ngOnInit(): void; publish(): void; change(): void; propagateChange: (_: any) => void; writeValue(inputValue: string): void; validate(formControl: UntypedFormControl): null; registerOnChange(fn: any): void; registerOnTouched(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgSetFilterComponent implements AgFilterComponent { selectOptions: OptionModel[]; selection: string; private params; private valueGetter; constructor(); agInit(params: IFilterParams): void; private refreshOptionSelection; isFilterActive(): boolean; doesFilterPass(params: IDoesFilterPassParams): boolean; getModel(): string; setModel(model: any): void; onNewRowsLoaded?(): void; onAnyFilterChanged(): void; getFrameworkComponentInstance?(): void; getModelAsString?(model: any): string; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgUserCellRendererComponent { user?: UserActionVO; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgCounryFlagsCellRendererComponent { countryCode: string; countryName: string; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgYesNoCellRendererComponent { yesNo?: boolean; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgDateAsCWCellRendererComponent { showTime: boolean; multivalue: boolean; value: any; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgEntraIdTraceCellRendererComponent { user?: EntraIdTrace; agInit(params: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TemplateRendererComponent implements ICellRendererAngularComp { template: TemplateRef; templateContext: { $implicit: any; params: any; }; refresh(params: any): boolean; agInit(params: ICellRendererParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgBoolFilterComponent implements AgFilterComponent { yesNoValue: boolean | undefined | null; hasValidValue: typeof hasValidValue; private params; private valueGetter; constructor(); agInit(params: IFilterParams): void; isFilterActive(): boolean; doesFilterPass(params: IDoesFilterPassParams): boolean; getModel(): "true" | "false" | null; setModel(model: any): void; onNewRowsLoaded?(): void; onAnyFilterChanged?(): void; getFrameworkComponentInstance?(): void; getModelAsString?(model: any): string; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; toggle(checkbox: MatCheckbox, event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgDateFilterComponent implements AgFilterComponent { selectOptions: string[]; selectedOptions: boolean[]; private params; private valueGetter; constructor(); agInit(params: IFilterParams): void; private refreshOptionSelection; isFilterActive(): boolean; doesFilterPass(params: IDoesFilterPassParams): boolean; getModel(): string; setModel(model: any): void; onNewRowsLoaded?(): void; onAnyFilterChanged?(): void; getFrameworkComponentInstance?(): void; getModelAsString?(model: any): string; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgNoFilterComponent implements AgFilterComponent { isFilterActive(): boolean; doesFilterPass(params: IDoesFilterPassParams): boolean; getModel(): void; setModel(model: any): void | AgPromise; onNewRowsLoaded?(): void; onAnyFilterChanged?(): void; getFrameworkComponentInstance?(): void; getModelAsString?(model: any): string; agInit(params: IFilterParams): void; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgTextFilterComponent implements AgFilterComponent { filterText: string; hasIndex: boolean; isNumeric: boolean; private params; private valueGetter; constructor(); agInit(params: IFilterParams): void; isFilterActive(): boolean; doesFilterPass(params: IDoesFilterPassParams): boolean; getModel(): string; setModel(model: any): void; onNewRowsLoaded?(): void; onAnyFilterChanged(): void; getFrameworkComponentInstance?(): void; getModelAsString?(model: any): string; afterGuiAttached?(params?: IAfterGuiAttachedParams): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DataHiveGridModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface DataHiveCellRenderer { parentComponent: ParentComponentType | undefined; } declare class FullWidthCellRendererBaseComponent implements DataHiveCellRenderer { parentComponent: ParentComponentType; context: any; data: any; randomId: any; heightMap: any; id: string; constructor(); agInit(params: any): void; getHeight(): number; resetHeightTo100AfterHeightMapHasCorrectValue(): void; } declare function dateTimeComparator(v1: string, v2: string): number; declare function getDetailColumn(): { headerName: string; id: string; children: ({ headerName: string; field: string; cellRenderer: typeof AgDateCellRendererComponent; cellRendererParams: { showTime: boolean; }; comparator: typeof dateTimeComparator; filter: string; width: number; } | { headerName: string; field: string; width: number; filter: null; cellRenderer: typeof AgUserCellRendererComponent; cellRendererParams?: undefined; comparator?: undefined; })[]; }; declare function getDetailColumns(): { headerName: string; id: string; children: ({ headerName: string; field: string; cellRenderer: typeof AgDateCellRendererComponent; cellRendererParams: { showTime: boolean; }; comparator: typeof dateTimeComparator; filter: string; width: number; } | { headerName: string; field: string; width: number; filter: null; cellRenderer: typeof AgEntraIdTraceCellRendererComponent$1; cellRendererParams?: undefined; comparator?: undefined; })[]; }; declare function getDetailArray(): ({ headerName: string; field: string; cellRenderer: typeof AgDateCellRendererComponent; cellRendererParams: { showTime: boolean; }; comparator: typeof dateTimeComparator; filter: string; width: number; } | { headerName: string; field: string; width: number; filter: null; cellRenderer: typeof AgUserCellRendererComponent; cellRendererParams?: undefined; comparator?: undefined; })[]; interface FullWidthCellRendererParams { asyncData: AsyncDataType; entity: EntityType; } declare class TableSelectionService { selectionCoordinates: Selection | null; selectionStarted: boolean; selectionEnabled: boolean; rangeSelectionEnabled: boolean; selectionAvoidFirstColumn: boolean; selectedGridData: any; isRightBottomSelection: boolean; isRightTopSelection: boolean; isLeftBottomSelection: boolean; isLeftTopSelection: boolean; domCache: any; globalMouseUpEventListener(): void; appendListenersToGridOptions(gridOptions: GridOptions): void; fillSelectedGrid(value: string, xPos: number, yPos: number): void; copySelection(gridOptions: GridOptions): void; copyToClipboard(): void; getCoordinates(cellEvent: CellMouseDownEvent): { x: number; y: number; }; getCoordinatesByNode(colId: string, rowIndex: number, columnState: ColumnState[]): { x: number; y: number; }; private getGridCellAsHtmlElement; private addClassToHtmLElement; private removeClassFromHtmLElement; detectCopyTable(gridOptions: GridOptions): void; detectSelection(gridOptions: GridOptions): void; private removeAllBorderClasses; private isInSelectedRange; private disableAllDirectionSelectors; private defineBorders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class Selection { rowYStart: any; rowYEnd: any; rowXStart: any; rowXEnd: any; } declare function copySingleValueToClipboard(value: string): void; export { AgBoolFilterComponent, AgCounryFlagsCellRendererComponent, AgDateAsCWCellRendererComponent, AgDateCellRendererComponent, AgDateFilterComponent, AgEntraIdTraceCellRendererComponent, AgNoFilterComponent, AgTextFilterComponent, AgUserCellRendererComponent, AgYesNoCellRendererComponent, DataHiveGridModule, DatahiveGridComponent, FullWidthCellRendererBaseComponent, GHHeaderComponentComponent, GridSelectionMode, OptionModel, Selection, SetFilterComponent, TableSelectionService, TemplateRendererComponent, copySingleValueToClipboard, getDetailArray, getDetailColumn, getDetailColumns, getOptionWithoutVariables }; export type { DataHiveGridSelectionConfig, FullWidthCellRendererParams };