UNPKG

@plait/angular-board

Version:
36 lines (35 loc) 1.56 kB
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { PlaitBoard } from '@plait/core'; import * as i0 from "@angular/core"; export declare abstract class PlaitIslandBaseComponent { protected cdr: ChangeDetectorRef; board: PlaitBoard; constructor(cdr: ChangeDetectorRef); initialize(board: PlaitBoard): void; markForCheck(): void; static ɵfac: i0.ɵɵFactoryDeclaration<PlaitIslandBaseComponent, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PlaitIslandBaseComponent, never, never, {}, {}, never, never, false, never>; } export declare abstract class PlaitIslandPopoverBaseComponent implements OnInit, OnDestroy { cdr: ChangeDetectorRef; board: PlaitBoard; private subscription?; constructor(cdr: ChangeDetectorRef); initialize(board: PlaitBoard): void; ngOnInit(): void; ngOnDestroy(): void; /** * use islandOnInit replace ngOnInit to avoid ngOnInit being overridden */ abstract islandOnInit(): void; /** * use islandOnDestroy replace ngOnDestroy to avoid ngOnDestroy being overridden */ abstract islandOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<PlaitIslandPopoverBaseComponent, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<PlaitIslandPopoverBaseComponent, never, never, { "board": { "alias": "board"; "required": false; }; }, {}, never, never, false, never>; } export interface OnBoardChange { onBoardChange: () => void; } export declare const hasOnBoardChange: (value: any) => value is OnBoardChange;