import * as i0 from '@angular/core'; import { Type, TemplateRef, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, NgZone, OnInit } from '@angular/core'; import * as i1 from 'ngx-tethys/tooltip'; import * as i2 from 'ngx-tethys/icon'; import * as i3 from 'ngx-tethys/action'; import * as i4 from 'ngx-tethys/shared'; import * as i5 from '@angular/router'; import * as i6 from '@angular/common'; import { GridsterItemConfig, GridsterConfig } from 'angular-gridster2'; import { Observable } from 'rxjs'; import { SafeAny } from 'ngx-tethys/types'; type ThyWidgetViewOutlet = Type | TemplateRef; type ThyWidgetViewOutletContext = Record; type ThyWidgetVieOutletWithContext = { outlet: ThyWidgetViewOutlet; context: ThyWidgetViewOutletContext; }; interface WidgetGridsterItem extends GridsterItemConfig { widget: ThyWidgetItem; outlet: ThyWidgetViewOutlet; outletContext: ThyWidgetViewOutletContext; } interface ThyWidgetItem { type: string; size: { cols: number; rows: number; }; position: { x: number; y: number; }; minSize: { rows: number; cols: number; }; name?: string; _id?: string; config?: TConfig; } declare class ThyDashboardComponent implements AfterViewInit, OnDestroy { private cdr; private ngZone; /** * 仪表盘部件对应组件或模版映射 */ readonly thyWidgetViews: i0.InputSignal>; /** * 仪表盘部件是否允许拖拽 */ readonly thyDraggable: i0.InputSignalWithTransform; /** * 仪表盘部件数据 */ readonly thyWidgets: i0.InputSignal[]>; /** * 部件变更 */ readonly thyWidgetsChange: i0.OutputEmitterRef[]>; /** * 仪表盘整体大小发生变化 */ readonly thyResizeChange: i0.OutputEmitterRef; readonly gridster: i0.Signal>; widgetGridsterItems: WidgetGridsterItem[]; private ngUnsubscribe$; config: GridsterConfig; constructor(cdr: ChangeDetectorRef, ngZone: NgZone); ngAfterViewInit(): void; trackBy(index: number, item: WidgetGridsterItem): string | number; createResizeObserver(element: HTMLElement): Observable; private buildWidgetGridsterItems; private setDraggable; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyDashboardWidgetHeaderComponent implements OnInit { readonly thyTitle: i0.InputSignal>; readonly thyDescription: i0.InputSignal>; readonly operationTemplateRef: i0.Signal>; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyDashboardWidgetBodyComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyProDashboardModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ThyDashboardWidgetComponent { set widget(value: ThyWidgetItem); get widget(): ThyWidgetItem; private _widget; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, never, never, {}, {}, never, never, true, never>; } export { ThyDashboardComponent, ThyDashboardWidgetBodyComponent, ThyDashboardWidgetComponent, ThyDashboardWidgetHeaderComponent, ThyProDashboardModule }; export type { ThyWidgetItem, ThyWidgetVieOutletWithContext, ThyWidgetViewOutlet, ThyWidgetViewOutletContext, WidgetGridsterItem }; //# sourceMappingURL=tethys-pro-dashboard.d.ts.map